diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ea9968e --- /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-02T04:06:13.925Z' diff --git a/package.json b/package.json index c6cad0f..2af4014 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,9 @@ "build": "npm-run-all --parallel build:*", "build:main": "babel --out-dir dist src", "build:umd": "webpack", - "build:umd.min": "webpack -p --env.prod" + "build:umd.min": "webpack -p --env.prod", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "repository": { "type": "git", @@ -37,7 +39,8 @@ }, "homepage": "https://github.com/Thram/thrux#readme", "dependencies": { - "lodash": "^4.17.4" + "lodash": "^4.17.4", + "snyk": "^1.316.2" }, "devDependencies": { "babel-cli": "^6.24.1", @@ -71,5 +74,6 @@ "commitizen": { "path": "cz-conventional-changelog" } - } + }, + "snyk": true }