diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e4766ef --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - core-worker > lodash: + patched: '2020-05-06T05:45:55.368Z' diff --git a/package.json b/package.json index 5eacd01..2052026 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "prebuild": "npm run lint -s && npm run clean -s", "build": "babel src --out-dir lib --source-maps", "lint": "eslint src", - "clean": "rimraf lib" + "clean": "rimraf lib", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=4" @@ -34,7 +36,8 @@ "imgur": "^0.3.0", "koa": "^2.0.0", "koa-router": "^5.3.0", - "uuid": "^3.0.0" + "uuid": "^3.0.0", + "snyk": "^1.319.0" }, "devDependencies": { "babel-cli": "6.26.0", @@ -85,5 +88,6 @@ "syntax-async-functions", "transform-regenerator" ] - } + }, + "snyk": true }