diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d40882e --- /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: + - lodash: + patched: '2020-04-30T22:16:00.931Z' diff --git a/package.json b/package.json index 5ded98d..aba015b 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "main": "./lib/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "prepublish": "npm run build", + "prepublish": "yarn run snyk-protect && npm run build", "build": "babel --presets es2015,stage-0 -d lib/ src/", - "lint": "eslint ." + "lint": "eslint .", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -36,6 +37,8 @@ "graphql": "^0.10.5", "is_js": "^0.9.0", "lodash": "^4.17.4", - "sanitizer": "^0.1.3" - } + "sanitizer": "^0.1.3", + "snyk": "^1.316.1" + }, + "snyk": true }