diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ccb8dd6 --- /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: + - lodash: + patched: '2020-05-01T02:29:44.424Z' diff --git a/package.json b/package.json index 73684b5..572f722 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "test": "mocha ./src/test", - "cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- src/test -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" + "cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- src/test -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -20,7 +22,8 @@ "license": "MIT", "dependencies": { "lodash": "^4.6.1", - "squel": "^5.0.0" + "squel": "^5.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "chai": "^4.2.0", @@ -32,5 +35,6 @@ "pg": "^7.12.0", "sequelize": "^5.12.3", "sqlite3": "^4.0.9" - } + }, + "snyk": true }