diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1feba4f --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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-03T23:11:39.024Z' diff --git a/package.json b/package.json index 984bb09..1e44e4d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "lodash": "^4.13.1", "openpixelcontrol-stream": "^0.1.2", "tinycolor2": "^1.3.0", - "tinygradient": "^0.3.0" + "tinygradient": "^0.3.0", + "snyk": "^1.189.0" }, "devDependencies": { "chai": "^3.5.0", @@ -40,6 +41,9 @@ "scripts": { "preversion": "npm test", "test": "./node_modules/.bin/mocha", - "debug": "DEBUG=* homebridge --debug --plugin-path ." - } + "debug": "DEBUG=* homebridge --debug --plugin-path .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }