From 389f18278e8530f58a766419fb49438a31d720e0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 5 Jul 2018 04:49:19 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..fe98a548e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - json-rpc2 > lodash: + patched: '2018-07-05T04:49:16.565Z' diff --git a/package.json b/package.json index c2b433f37..182791c2c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,9 @@ "compile": "node ./node_modules/vscode/bin/compile -watch -p ./", "postinstall": "node ./node_modules/vscode/bin/install", "test": "node ./node_modules/vscode/bin/test", - "lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts" + "lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "extensionDependencies": [], "dependencies": { @@ -36,7 +38,8 @@ "diff": "~3.0.0", "json-rpc2": "^1.0.2", "vscode-debugadapter": "^1.11.0", - "vscode-debugprotocol": "^1.11.0" + "vscode-debugprotocol": "^1.11.0", + "snyk": "^1.88.1" }, "devDependencies": { "fs-extra": "^0.30.0", @@ -387,5 +390,6 @@ } } } - } + }, + "snyk": true } \ No newline at end of file