From 6ace6c37d2bb7a5795591101b75caf70bc47a630 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 01:27:31 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0d1a31a --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-04T01:27:29.335Z' + - cheerio > lodash: + patched: '2019-07-04T01:27:29.335Z' + - send-webmention > get-webmention-url > cheerio > lodash: + patched: '2019-07-04T01:27:29.335Z' diff --git a/package.json b/package.json index 28358c7..51e8cfb 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "prepare": "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", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -45,7 +47,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.189.0" }, "devDependencies": { "coveralls": "^3.0.1", @@ -55,5 +58,6 @@ "proxyquire": "^2.0.1", "sinon": "^4.1.2", "typescript": "^2.6.2" - } + }, + "snyk": true }