diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0826d23 --- /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:ms:20170412': + - comunicator > jsonwebtoken > ms: + patched: '2017-05-28T08:12:01.817Z' diff --git a/package.json b/package.json index d7731da..ca2e3ac 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "precommit": "npm run-script lint", "preversion": "npm run-script lint", "version": "npm run-script min && ./tasks/bower-version-bump && git add -A .", - "postversion": "git push && git push --tags" + "postversion": "git push && git push --tags", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "src/node/index.js", @@ -32,7 +34,8 @@ "homepage": "https://github.com/720kb/signaler", "dependencies": { "comunicator": "^2.2.4", - "webrtc-adapter-test": "*" + "webrtc-adapter-test": "*", + "snyk": "^1.31.0" }, "devDependencies": { "eslint": "*", @@ -45,5 +48,6 @@ "node-inspector": "*", "plato": "*", "uglifyjs": "*" - } + }, + "snyk": true }