diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..439ad285 --- /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-04T07:31:41.893Z' diff --git a/package.json b/package.json index 6419cda1..485e21c3 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ "build": "./scripts/build.sh", "example": "./scripts/buildExample.sh", "lint": "eslint .", - "prepublish": "npm run lint && npm test && npm run build", - "test": "./node_modules/karma/bin/karma start karma.conf.js" + "prepublish": "npm run snyk-protect; npm run lint && npm test && npm run build", + "test": "./node_modules/karma/bin/karma start karma.conf.js", + "snyk-protect": "snyk protect" }, "keywords": [ "bootstrap", @@ -37,7 +38,8 @@ "react-onclickoutside": "^5.7.0", "react-overlays": "^0.7.0", "react-prop-types": "^0.4.0", - "warning": "^3.0.0" + "warning": "^3.0.0", + "snyk": "^1.189.0" }, "peerDependencies": { "react": "^0.14.0 || ^15.2.0", @@ -84,5 +86,6 @@ "type": "git", "url": "https://github.com/ericgio/react-bootstrap-typeahead.git" }, - "bugs": "https://github.com/ericgio/react-bootstrap-typeahead/issues" + "bugs": "https://github.com/ericgio/react-bootstrap-typeahead/issues", + "snyk": true }