diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..211986f --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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': + - smartcrop-cli > gm > debug > ms: + patched: '2017-05-25T05:37:08.982Z' + - smartcrop-cli > smartcrop-gm > gm > debug > ms: + patched: '2017-05-25T05:37:08.982Z' diff --git a/package.json b/package.json index 71d9541..9869968 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,9 @@ "distribute": "npm run build:front && npm run compile && npm run mvasset", "watchdev": "npm run build:front && npm run compile && npm run mvasset && nodemon --debug --exec npm run compile && npm run mvasset --kill-others", "startdev": "npm run build:front && npm run compile && npm run mvasset && node src/tasks/nodemon.js & npm run watch --kill-others", - "startdevOnly": "npm run js:admin && npm run js:users && npm run js:engine && node src/tasks/nodemon.js & npm run watch --kill-others" + "startdevOnly": "npm run js:admin && npm run js:users && npm run js:engine && node src/tasks/nodemon.js & npm run watch --kill-others", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Adfab Connect", "license": "ISC", @@ -101,7 +103,8 @@ "uuid": "^3.0.0", "watch": "^1.0.1", "which": "^1.2.11", - "xss": "^0.3.2" + "xss": "^0.3.2", + "snyk": "^1.30.1" }, "devDependencies": { "babel": "^6.3.26", @@ -123,5 +126,6 @@ "sinon": "^1.17.6", "sinon-chai": "^2.8.0", "watchify": "^3.4.0" - } + }, + "snyk": true }