diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4dd0b9c --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - loopback > strong-remoting > async > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > jayson > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > strong-globalize > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > loopback-phase > strong-globalize > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > strong-globalize > g11n-pipeline > swagger-client > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > loopback-phase > strong-globalize > g11n-pipeline > swagger-client > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > strong-globalize > g11n-pipeline > swagger-client > isomorphic-form-data > form-data > async > lodash: + patched: '2019-07-04T03:25:35.015Z' + - loopback > strong-remoting > loopback-phase > strong-globalize > g11n-pipeline > swagger-client > isomorphic-form-data > form-data > async > lodash: + patched: '2019-07-04T03:25:35.015Z' diff --git a/package.json b/package.json index a86c61a..a43949d 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,15 @@ "errorhandler": "^1.1.1", "loopback": "~2.0.0-beta5", "loopback-boot": "2.0.0-beta2", - "loopback-datasource-juggler": "~2.0.0-beta2" + "loopback-datasource-juggler": "~2.0.0-beta2", + "snyk": "^1.189.0" }, "optionalDependencies": { "loopback-explorer": "^1.1.0" - } + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true } \ No newline at end of file