diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..6586454bd7 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.10.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - '@google-cloud/functions-emulator > @google-cloud/storage > @google-cloud/common > log-driver > codecov.io > request > hawk': + patched: '2018-02-10T05:34:44.064Z' + 'npm:request:20160119': + - '@google-cloud/functions-emulator > @google-cloud/storage > @google-cloud/common > log-driver > codecov.io > request': + patched: '2018-02-10T05:34:44.064Z' diff --git a/package.json b/package.json index e712364c0d..cd098049ff 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "runtypes": "^0.13.1", "serverless": "^1.25.0", "typescript-memoize": "^1.0.0-alpha.3", - "winston": "^2.4.0" + "winston": "^2.4.0", + "snyk": "^1.69.7" }, "devDependencies": { "@types/bluebird": "^3.5.18", @@ -68,6 +69,9 @@ "lint": "node_modules/.bin/tslint -p . && node_modules/.bin/tsfmt --verify", "posttest": "npm run lint", "test": "node_modules/.bin/mocha test/**/*.ts test/**/**/*.ts", - "watch": "node_modules/.bin/tsc -w -p ." - } + "watch": "node_modules/.bin/tsc -w -p .", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }