diff --git a/package-lock.json b/package-lock.json index f01996264..8e130dcdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1919,7 +1919,8 @@ "lodash": { "version": "4.17.11", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "dev": true }, "lodash.unescape": { "version": "4.0.1", @@ -3710,13 +3711,28 @@ } }, "snyk-config": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/snyk-config/-/snyk-config-2.2.1.tgz", - "integrity": "sha512-eCsFKHHE4J2DpD/1NzAtCmkmVDK310OXRtmoW0RlLnld1ESprJ5A/QRJ5Zxx1JbA8gjuwERY5vfUFA8lEJeopA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/snyk-config/-/snyk-config-3.0.0.tgz", + "integrity": "sha512-sXjd7gUqPTmgkhtLowFkFU5J4xyS7tDIRUbHmpW/dvTjgmiH0ujobJzSdaim4W6pbiIf4snkGJsvHM3/wmdR5w==", "requires": { - "debug": "^3.1.0", - "lodash": "^4.17.11", + "debug": "^4.1.1", + "lodash": "^4.17.15", "nconf": "^0.10.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "requires": { + "ms": "^2.1.1" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + } } }, "snyk-docker-plugin": { diff --git a/package.json b/package.json index e8d392212..b12062057 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lru-cache": "^5.1.1", "needle": "^2.4.0", "response-time": "^2.3.2", - "snyk-config": "^2.2.0", + "snyk-config": "3.0.0", "snyk-docker-plugin": "1.34.0", "source-map-support": "^0.5.9", "tslib": "^1.9.3", diff --git a/src/common/config.ts b/src/common/config.ts index 684b3f795..3080aa4ed 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -1,7 +1,7 @@ import * as uuidv4 from 'uuid/v4'; -import * as configFactory from 'snyk-config'; +import { loadConfig } from 'snyk-config'; -const config = configFactory(__dirname + '/../..', { +const config: Record = loadConfig(__dirname + '/../..', { secretConfig: process.env.CONFIG_SECRET_FILE, });