diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..b4ae53b3 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - ace-builds > ace > debug: + patched: '2020-04-15T08:21:44.018Z' + 'npm:ms:20170412': + - ace-builds > ace > debug > ms: + patched: '2020-04-15T08:21:44.018Z' + 'npm:node-uuid:20160328': + - ace-builds > ace > node-uuid: + patched: '2020-04-15T08:21:44.018Z' diff --git a/package.json b/package.json index cbb88add..f2af9cd7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "build": "rm -rf ./dist/ && NODE_ENV=production ./node_modules/.bin/webpack --colors --progress --bail", "build-dev": "rm -rf ./dist/ && ./node_modules/.bin/webpack -d --colors --display-reasons --progress --bail", "dev-server": "rm -rf ./dist/ && ./node_modules/.bin/webpack-dev-server -d --inline --colors --progress", - "lint": "./node_modules/.bin/eslint `find ./app/ -name '*.js'`" + "lint": "./node_modules/.bin/eslint `find ./app/ -name '*.js'`", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -110,6 +112,8 @@ "js-yaml": "^3.5.5", "spinkit": "^1.2.5", "underscore": "^1.8.3", - "whatwg-fetch": "^2.0.0" - } + "whatwg-fetch": "^2.0.0", + "snyk": "^1.305.1" + }, + "snyk": true }