diff --git a/packages/react/.snyk b/packages/react/.snyk new file mode 100644 index 0000000..430a525 --- /dev/null +++ b/packages/react/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-AXIOS-174505: + - '@cityofzion/neon-js > axios': + patched: '2019-05-06T02:02:58.273Z' diff --git a/packages/react/package.json b/packages/react/package.json index c26a4ff..1fa049e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -8,7 +8,9 @@ "lint": "eslint 'src/**/*.js*'", "start": "parcel src/index.html --no-hmr", "test": "jest --all --verbose --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", - "test:local": "jest --all --verbose --coverage" + "test:local": "jest --all --verbose --coverage", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -42,7 +44,8 @@ "prop-types": "15.6.1", "react": "16.3.1", "react-dom": "16.3.3", - "react-jss": "8.4.0" + "react-jss": "8.4.0", + "snyk": "^1.161.1" }, "devDependencies": { "babel-cli": "6.26.0", @@ -90,5 +93,6 @@ "browserslist": [ "> 1%", "last 2 versions" - ] + ], + "snyk": true }