diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c1ff244 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tough-cookie:20170905': + - google-sheets-api > googleapis > request > tough-cookie: + patched: '2017-09-25T03:51:07.134Z' diff --git a/package.json b/package.json index 3257ebb..3ae5c0e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "private": "node dist/privateReminder.js", "preprivate": "babel src --out-dir dist", "pregeneral": "babel src --out-dir dist", - "postinstall": "mkdir -p dist && babel src --out-dir dist" + "postinstall": "mkdir -p dist && babel src --out-dir dist", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "babel": { "presets": [ @@ -28,7 +30,8 @@ "babel-preset-es2015": "^6.5.0", "google-sheets-api": "^0.4.1", "lodash": "^4.5.0", - "slack-client": "^2.0.2" + "slack-client": "^2.0.2", + "snyk": "^1.41.1" }, "devDependencies": { "eslint": "^3.7.1", @@ -37,5 +40,6 @@ "eslint-plugin-flowtype": "^2.20.0", "eslint-plugin-import": "^2.0.1", "eslint-plugin-react": "^6.4.1" - } + }, + "snyk": true }