diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..402a991f7b --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2020-05-01T05:17:38.762Z' + - mailgun-js > async > lodash: + patched: '2020-05-01T05:17:38.762Z' + - parse-server-simple-mailgun-adapter > mailgun-js > async > lodash: + patched: '2020-05-01T05:17:38.762Z' diff --git a/package.json b/package.json index da3bb7a67a..6eac9fb0d4 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "tv4": "^1.2.7", "winston": "^2.1.1", "winston-daily-rotate-file": "^1.0.1", - "ws": "^1.0.1" + "ws": "^1.0.1", + "snyk": "^1.316.1" }, "devDependencies": { "babel-cli": "^6.5.1", @@ -73,12 +74,14 @@ "posttest": "./node_modules/.bin/mongodb-runner stop", "coverage": "cross-env COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**' npm test", "start": "node ./bin/parse-server", - "prepublish": "npm run build" + "prepublish": "npm run snyk-protect && npm run build", + "snyk-protect": "snyk protect" }, "engines": { "node": ">=4.3" }, "bin": { "parse-server": "./bin/parse-server" - } + }, + "snyk": true }