Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

[Snyk] Fix for 1 vulnerabilities #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions js/.snyk
Original file line number Diff line number Diff line change
@@ -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'
16 changes: 9 additions & 7 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,5 +26,6 @@
"prettier": "1.12.1",
"pretty-quick": "^1.4.1",
"react-app-rewired": "^1.5.2"
}
},
"snyk": true
}