diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..92192c6 --- /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: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2020-05-06T08:56:14.064Z' + - async > lodash: + patched: '2020-05-06T08:56:14.064Z' + - fn-params-parser > lodash: + patched: '2020-05-06T08:56:14.064Z' + - oracle-prepare-sql > lodash: + patched: '2020-05-06T08:56:14.064Z' diff --git a/package.json b/package.json index dc2f1ce..9910e83 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "test": "NLS_DATE_FORMAT='yyyy-mm-dd' TZ='00:00' npx mocha -R spec --timeout 15000 ./test/", "testperf": "NLS_DATE_FORMAT='yyyy-mm-dd' TZ='00:00' npx mocha -R spec --timeout 150000 ./test/perf/", "changelog": "git changelog -a -n -x > changelog.txt", - "eslint": "eslint ./libs ./tests" + "eslint": "eslint ./libs ./tests", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=6" @@ -34,7 +36,8 @@ "fn-params-parser": "^1.0.1", "lodash": "^4.17.11", "oracle-prepare-sql": "1.1.3", - "semver": "^5.7.0" + "semver": "^5.7.0", + "snyk": "^1.319.0" }, "devDependencies": { "fast-stats": "0.0.3", @@ -42,5 +45,6 @@ "node-string-pad": "0.0.4", "oracledb": "^3.1.2", "should": "^11.1.2" - } + }, + "snyk": true }