Skip to content

Commit

Permalink
Merge pull request #4288 from guardian/dblatcher/grid-npm-fixes-misc
Browse files Browse the repository at this point in the history
npm vulnerability fixes in scripts and lambda
  • Loading branch information
dblatcher authored Jun 28, 2024
2 parents 27ba57a + 6b0eac8 commit 4f62f27
Show file tree
Hide file tree
Showing 9 changed files with 651 additions and 565 deletions.
7 changes: 7 additions & 0 deletions dev/oidc-provider/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# OIDC Provider

This project defines the auth provider used locally when the grid has been set-up using the `--with-local-auth` flag.

It is intended for **use in development only**.

See the docs for [set up](/docs/01-setup/03-running-setup.md#--with-local-auth) and [running the grid locally](/docs/02-running/01-running-locally.md#accessing-grid) for more details how to use this.
2 changes: 1 addition & 1 deletion dev/script/generate-config/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/script/generate-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"dependencies": {
"aws-sdk": "^2.874.0",
"dotenv": "^10.0.0",
"json5": "^2.2.0"
"json5": "^2.2.2"
}
}
782 changes: 369 additions & 413 deletions image-counter-lambda/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions image-counter-lambda/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const handler = async (): Promise<{
// post it to CW as metric
const client = new CloudWatch({ region: "eu-west-1" });

for (const key of Object.keys(images)) {
const met = metric(key.toUpperCase(), images[key]);
for (const [key, value] of Object.entries(images)) {
const met = metric(key.toUpperCase(), value as number);
await client.putMetricData(met).promise();
}

Expand Down
1 change: 0 additions & 1 deletion image-counter-lambda/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"strictNullChecks": true,
"noImplicitReturns": true,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
},
Expand Down
Loading

0 comments on commit 4f62f27

Please sign in to comment.