diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8e00ada --- /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-03T21:01:59.943Z' diff --git a/package.json b/package.json index bc82a08..d30cacd 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,11 @@ "build": "babel src --out-dir lib", "clean": "rimraf lib dist coverage", "lint": "eslint src test", - "prepublish": "npm run clean && npm run lint && npm run build", + "prepublish": "npm run snyk-protect; npm run clean && npm run lint && npm run build", "test": "mocha --compilers js:babel-core/register --recursive --require ./test/setup.js", "test:watch": "npm test -- --watch", - "test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require ./test/setup.js" + "test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require ./test/setup.js", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -65,9 +66,11 @@ "hoist-non-react-statics": "^1.0.3", "invariant": "^2.0.0", "lodash": "^4.11.0", - "warning": "^2.1.0" + "warning": "^2.1.0", + "snyk": "^1.189.0" }, "peerDependencies": { "react": "^0.14.0 || ^15.0.0" - } + }, + "snyk": true }