Skip to content

Commit 6556fdd

Browse files
committed
fix: upgrade snyk/config to 3.0.0
Resolves a high severity vulnerability. The package carries a breaking change so update the code that uses snyk-config.
1 parent a7b6bfe commit 6556fdd

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

package-lock.json

+22-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"lru-cache": "^5.1.1",
4545
"needle": "^2.4.0",
4646
"response-time": "^2.3.2",
47-
"snyk-config": "^2.2.0",
47+
"snyk-config": "3.0.0",
4848
"snyk-docker-plugin": "1.34.0",
4949
"source-map-support": "^0.5.9",
5050
"tslib": "^1.9.3",

src/common/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as uuidv4 from 'uuid/v4';
2-
import * as configFactory from 'snyk-config';
2+
import { loadConfig } from 'snyk-config';
33

4-
const config = configFactory(__dirname + '/../..', {
4+
const config: Record<string, any> = loadConfig(__dirname + '/../..', {
55
secretConfig: process.env.CONFIG_SECRET_FILE,
66
});
77

0 commit comments

Comments
 (0)