diff --git a/js/.snyk b/js/.snyk new file mode 100644 index 0000000..13353cd --- /dev/null +++ b/js/.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: + - react-refetch > lodash: + patched: '2020-05-01T00:04:10.160Z' diff --git a/js/package.json b/js/package.json index 1046502..577d199 100644 --- a/js/package.json +++ b/js/package.json @@ -6,17 +6,18 @@ "react": "^16.3.2", "react-dom": "^16.3.2", "react-image-gallery": "^0.8.7", - "react-refetch": "^1.0.4" + "react-refetch": "^1.0.4", + "snyk": "^1.316.1" }, "scripts": { "start": "react-scripts start", - "build": - "sh -ac '. .env.production; react-app-rewired build' && yarn run build:dist", - "build:dist": - "cd build && cp static/js/*.js ../dist/gallery.js && cp static/css/*.css ../dist/gallery.css", + "build": "sh -ac '. .env.production; react-app-rewired build' && yarn run build:dist", + "build:dist": "cd build && cp static/js/*.js ../dist/gallery.js && cp static/css/*.css ../dist/gallery.css", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", - "precommit": "pretty-quick --staged" + "precommit": "pretty-quick --staged", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "devDependencies": { "react-scripts": "1.1.4", @@ -25,5 +26,6 @@ "prettier": "1.12.1", "pretty-quick": "^1.4.1", "react-app-rewired": "^1.5.2" - } + }, + "snyk": true }