diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..754186a --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - isomorphic-form-data > form-data > async > lodash: + patched: '2019-07-04T08:44:45.507Z' diff --git a/package.json b/package.json index 12480b5..98a7409 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "fs-readfile-promise": "^3.0.0", "ini": "^1.3.4", "isomorphic-fetch": "^2.2.1", - "isomorphic-form-data": "0.0.1" + "isomorphic-form-data": "0.0.1", + "snyk": "^1.190.0" }, "devDependencies": { "babel-cli": "^6.14.0", @@ -27,9 +28,10 @@ }, "scripts": { "compile": "babel --presets es2015 -d lib/ src/", - "prepublish": "npm run compile", + "prepublish": "npm run snyk-protect; npm run compile", "lint": "eslint src test examples", - "test": "npm run lint && mocha --recursive" + "test": "npm run lint && mocha --recursive", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -40,5 +42,6 @@ "bugs": { "url": "https://github.com/zulip/zulip-js/issues" }, - "homepage": "https://github.com/zulip/zulip-js#readme" + "homepage": "https://github.com/zulip/zulip-js#readme", + "snyk": true }