diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..550f242ad --- /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: + - portfinder > async > lodash: + patched: '2020-05-01T02:57:30.039Z' diff --git a/package.json b/package.json index f42a2079b..ff85ce35b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "scripts": { "start": "node ./bin/http-server", "pretest": "common bin/http-server lib/ test", - "test": "vows --spec --isolate" + "test": "vows --spec --isolate", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "lib", @@ -73,7 +75,8 @@ "opener": "~1.4.0", "optimist": "0.6.x", "portfinder": "^1.0.13", - "union": "~0.4.3" + "union": "~0.4.3", + "snyk": "^1.316.1" }, "devDependencies": { "common-style": "^3.0.0", @@ -88,5 +91,6 @@ "bin": { "http-server": "./bin/http-server", "hs": "./bin/http-server" - } + }, + "snyk": true }