diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f7949d0 --- /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-01T06:46:20.222Z' diff --git a/package.json b/package.json index ec9c031..480e26c 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.316.1" }, "devDependencies": { "@types/lodash": "^4.14.70", "assert": "*", "mocha": "^3.2.0", "typescript": "^2.4.2" - } + }, + "snyk": true } \ No newline at end of file