diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..2989c15 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - microgateway-datastore > loopback-component-explorer > lodash: + patched: '2018-07-03T05:58:40.089Z' + - microgateway-datastore > loopback-component-explorer > loopback-swagger > lodash: + patched: '2018-07-03T05:58:40.089Z' diff --git a/package.json b/package.json index 2b379a3..10b7ed0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "lint": "eslint .", "pretest": "eslint .", "start": "node .", - "test": "mocha -t 600000" + "test": "mocha -t 600000", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "engines": { "node": ">=4.0.0" @@ -128,7 +130,9 @@ "type-is": "^1.6.11", "uid-safe": "^2.1.1", "pem": "^1.8.3", - "yamljs": "^0.2.4" + "yamljs": "^0.2.4", + "snyk": "^1.88.0" }, - "APIConnectGateway": "1.0.0" + "APIConnectGateway": "1.0.0", + "snyk": true }