diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..94ad1a4 --- /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-01T00:11:13.707Z' diff --git a/package.json b/package.json index e252695..25b11df 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,14 @@ "format": "prettier --write --config .prettierrc", "format:all": "prettier --write --config .prettierrc 'src/**/*.ts'", "prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build", - "precommit": "npm run type-check && npm run lint && npm test" + "precommit": "npm run type-check && npm run lint && npm test", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "lodash": "^4.17.5", - "tslib": "^1.9.0" + "tslib": "^1.9.0", + "snyk": "^1.316.1" }, "devDependencies": { "@types/jest": "^22.2.0", @@ -59,5 +62,6 @@ "npm run format", "git add" ] - } + }, + "snyk": true }