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