diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..57998ca --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-04T06:46:22.225Z' diff --git a/package.json b/package.json index ec9c031..6968231 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "A fluent SQL query builder for node.js applications", "main": "index.js", "scripts": { - "prepublish": "tsc", - "test": "tsc && mocha" + "prepublish": "npm run snyk-protect; tsc", + "test": "tsc && mocha", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -28,12 +29,14 @@ }, "homepage": "https://github.com/vitaminjs/query-builder#readme", "dependencies": { - "lodash": "^4.16.6" + "lodash": "^4.16.6", + "snyk": "^1.189.0" }, "devDependencies": { "@types/lodash": "^4.14.70", "assert": "*", "mocha": "^3.2.0", "typescript": "^2.4.2" - } + }, + "snyk": true } \ No newline at end of file