diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5331cc3 --- /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: + - superstatic > lodash: + patched: '2020-05-01T08:03:37.954Z' diff --git a/package.json b/package.json index f3456d9..b6b8931 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,9 @@ "pretest": "rimraf coverage/ & npm run lint", "test": "karma start --single-run", "posttest": "npm run cover", - "test:watch": "karma start --auto-run" + "test:watch": "karma start --auto-run", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "repository": { "type": "git", @@ -40,7 +42,8 @@ }, "dependencies": { "cross-env": "^3.1.3", - "superstatic": "^4.0.3" + "superstatic": "^4.0.3", + "snyk": "^1.316.1" }, "devDependencies": { "@angular/common": "2.4.3", @@ -106,5 +109,6 @@ "webpack-dev-server": "^2.3.0", "webpack-hot-middleware": "^2.13.0", "zone.js": "^0.7.4" - } + }, + "snyk": true }