diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d43f7da --- /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-08T08:15:59.862Z' diff --git a/package.json b/package.json index 3f16468..3d7f35c 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "node": ">= 6.0.0" }, "scripts": { - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect; npm run build", "test": "jest ./src/", "test:coverage": "jest --coverage ./src/", "test:watch": "jest --watch ./src/", @@ -40,7 +40,8 @@ "build-module": "cross-env BABEL_ENV=module babel ./src --out-dir ./module --source-maps --copy-files", "build-node": "babel ./src --out-dir ./dist --source-maps --copy-files", "build": "npm run build-node && npm run build-browser && npm run build-module", - "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ./src" + "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ./src", + "snyk-protect": "snyk protect" }, "jest": { "setupFiles": [ @@ -51,7 +52,8 @@ "@babel/runtime": "^7.4.2", "keymirror": "^0.1.1", "lodash": "^4.17.11", - "react-measure": "^2.2.4" + "react-measure": "^2.2.4", + "snyk": "^1.192.3" }, "devDependencies": { "@babel/cli": "^7.2.3", @@ -95,5 +97,6 @@ }, "peerDependencies": { "react": "16.x" - } + }, + "snyk": true }