diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5f548b8 --- /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: + - lodash: + patched: '2020-05-01T01:27:10.373Z' + - cheerio > lodash: + patched: '2020-05-01T01:27:10.373Z' + - send-webmention > get-webmention-url > cheerio > lodash: + patched: '2020-05-01T01:27:10.373Z' diff --git a/package.json b/package.json index 28358c7..6dad118 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,11 @@ }, "scripts": { "build": "tsc", - "prepare": "npm run build", + "prepare": "npm run snyk-protect && npm run build", "test": "npm run build && nyc -r lcov -r text perjury test/*-test.js", "test:install": "npm install -g . && type lazymention", - "watch": "tsc -w" + "watch": "tsc -w", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -45,7 +46,8 @@ "url-toolkit": "^2.1.2", "uuid": "^3.1.0", "write-file-atomic": "^2.3.0", - "yargs": "^10.0.3" + "yargs": "^10.0.3", + "snyk": "^1.316.1" }, "devDependencies": { "coveralls": "^3.0.1", @@ -55,5 +57,6 @@ "proxyquire": "^2.0.1", "sinon": "^4.1.2", "typescript": "^2.6.2" - } + }, + "snyk": true }