diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1677bbc --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2020-05-07T06:17:39.804Z' + - async > lodash: + patched: '2020-05-07T06:17:39.804Z' diff --git a/package.json b/package.json index b483d2d..082743e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A cli tool to fetch information from an OpenComponents registry's API", "main": "index.js", "scripts": { - "test": "standard" + "test": "standard", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -27,12 +29,14 @@ "colors": "^1.1.2", "lodash": "^4.17.4", "minimal-request": "^2.2.0", - "parse-author": "^1.0.0" + "parse-author": "^1.0.0", + "snyk": "^1.319.1" }, "bin": { "oc-info": "./index.js" }, "devDependencies": { "standard": "^9.0.1" - } + }, + "snyk": true }