diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f786d2e --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - winston > async > lodash: + patched: '2020-05-06T22:09:51.368Z' diff --git a/package.json b/package.json index 9547296..546203e 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,16 @@ "description": "node room", "main": "server.js", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, - "dependencies": { + "dependencies": { "nodejs-websocket": "*", - "winston": "*" + "winston": "*", + "snyk": "^1.319.1" }, "author": "", - "license": "ISC" + "license": "ISC", + "snyk": true }