diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..726c922 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-01T08:28:16.562Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-01T08:28:16.562Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-01T08:28:16.562Z' diff --git a/package.json b/package.json index 9d2aaab..b2a98b9 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,9 @@ ], "scripts": { "test": "jest", - "lint": "./node_modules/.bin/eslint ./" + "lint": "./node_modules/.bin/eslint ./", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "softest": "./index.js" @@ -35,10 +37,12 @@ "pug": "^2.0.4", "puppeteer": "^1.19.0", "typescript": "^3.5.3", - "ws": "^7.1.1" + "ws": "^7.1.1", + "snyk": "^1.316.1" }, "devDependencies": { "eslint": "^6.1.0", "jest": "^24.8.0" - } + }, + "snyk": true } \ No newline at end of file