diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ca52742 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - mirror-mirror > nightmare > electron > extract-zip > debug: + patched: '2017-09-30T22:59:07.262Z' diff --git a/package.json b/package.json index 89c3486..acd2229 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Look at your OC component in production before deploying it to production", "main": "index.js", "scripts": { - "test": "eslint ." + "test": "eslint .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -25,10 +27,12 @@ "homepage": "https://github.com/opencomponents/oh-see", "dependencies": { "lodash": "^4.12.0", - "mirror-mirror": "^1.0.0" + "mirror-mirror": "^1.0.0", + "snyk": "^1.41.1" }, "devDependencies": { "eslint": "^2.11.1", "eslint-config-defaults": "^9.0.0" - } + }, + "snyk": true }