diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b8c5d70 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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-04-30T21:56:29.566Z' + - beam-uri > lodash: + patched: '2020-04-30T21:56:29.566Z' diff --git a/package.json b/package.json index ad8814d..0d093e2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "test": "mocha test/index.js", "performance": "node --allow-natives-syntax ./node_modules/mocha/bin/_mocha --reporter mocha-performance ./test/index.js", "cover": "NODE_ENV=test istanbul cover _mocha -- -R spec test/index.js", - "lint": "eslint ." + "lint": "eslint .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -20,11 +22,13 @@ "joi": "^14.3.1", "lodash": "^4.5.1", "moment": "^2.15.0", - "uuid": "^3.3.2" + "uuid": "^3.3.2", + "snyk": "^1.316.1" }, "devDependencies": { "debug": "^4.1.1", "eslint": "^5.15.3", "mocha": "^6.0.2" - } + }, + "snyk": true }