diff --git a/packages/prediction/.snyk b/packages/prediction/.snyk new file mode 100644 index 00000000000..5b1623a2770 --- /dev/null +++ b/packages/prediction/.snyk @@ -0,0 +1,10 @@ +# 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: + - '@google-cloud/common > google-auto-auth > async > lodash': + patched: '2019-07-03T22:30:17.162Z' + - '@google-cloud/common > split-array-stream > async > lodash': + patched: '2019-07-03T22:30:17.162Z' diff --git a/packages/prediction/package.json b/packages/prediction/package.json index 389a0e0ba26..fd3970566a3 100644 --- a/packages/prediction/package.json +++ b/packages/prediction/package.json @@ -58,7 +58,8 @@ "pumpify": "^1.3.3", "stream-events": "^1.0.1", "string-format-obj": "^1.0.0", - "through2": "^2.0.0" + "through2": "^2.0.0", + "snyk": "^1.189.0" }, "devDependencies": { "@google-cloud/storage": "*", @@ -71,10 +72,13 @@ "scripts": { "publish-module": "node ../../scripts/publish.js prediction", "test": "mocha test/*.js", - "system-test": "mocha system-test/*.js --no-timeouts --bail" + "system-test": "mocha system-test/*.js --no-timeouts --bail", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "Apache-2.0", "engines": { "node": ">=0.12.0" - } + }, + "snyk": true }