From ad835f28f8daa16a49cbe28b0d2c13d666808642 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 09:28:00 +0800 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2ac2aa6..cb3abc0 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "test": "npm run lint && npm run test:unit && npm run test:int", "test:pack": "bash -x scripts/npm-pack-testing.sh", "test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\"", - "test:int": "blue-tape -r ts-node/register \"src/*.spec.ts\" \"tests/**/*.spec.ts\"" + "test:int": "blue-tape -r ts-node/register \"src/*.spec.ts\" \"tests/**/*.spec.ts\"", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -97,7 +99,8 @@ "socks5-client": "^1.2.6", "socks5-http-client": "^1.0.4", "uuid": "^3.3.2", - "xml2js": "^0.4.19" + "xml2js": "^0.4.19", + "snyk": "^1.316.1" }, "git": { "scripts": { @@ -106,5 +109,6 @@ }, "publishConfig": { "tag": "next" - } + }, + "snyk": true } From 335a857c5e41cc4f8ee20d3e15a725c10a6e41e8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 09:28:01 +0800 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..3806906 --- /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: + - request-promise > request-promise-core > lodash: + patched: '2020-05-01T01:27:58.603Z' + - socks5-client > ip-address > lodash: + patched: '2020-05-01T01:27:58.603Z' + - socks5-http-client > socks5-client > ip-address > lodash: + patched: '2020-05-01T01:27:58.603Z'