Skip to content

Commit 783f4a5

Browse files
committed
Updating Node dependencies to the latest versions and fixing deprecated
dependencies with audit errors using npm-force-resolutions
1 parent 5289df5 commit 783f4a5

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

lab2/client/package.json

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,37 @@
44
"description": "Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. \nPermission is hereby granted, free of charge, to any person obtaining a copy of this \nsoftware and associated documentation files (the 'Software'), to deal in the Software \nwithout restriction, including without limitation the rights to use, copy, modify,\nmerge, publish, distribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so.\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
55
"private": true,
66
"dependencies": {
7-
"@fortawesome/fontawesome-svg-core": "^1.2.22",
8-
"@fortawesome/free-solid-svg-icons": "^5.10.2",
9-
"@fortawesome/react-fontawesome": "^0.1.4",
10-
"axios": ">=0.21.1",
11-
"bootstrap": "^4.3.1",
7+
"@fortawesome/fontawesome-svg-core": "^1.2.36",
8+
"@fortawesome/free-solid-svg-icons": "^5.15.4",
9+
"@fortawesome/react-fontawesome": "^0.1.16",
10+
"axios": "^0.24.0",
11+
"bootstrap": "^4.6.1",
1212
"jsonwebtoken": "^8.5.1",
13-
"moment": "^2.24.0",
13+
"moment": "^2.29.1",
14+
"npm-force-resolutions": "^0.0.10",
1415
"prop-types": "^15.7.2",
15-
"react": "^16.9.0",
16-
"react-bootstrap": "^1.0.0-beta.12",
17-
"react-dom": "^16.9.0",
18-
"react-redux": "^7.1.1",
19-
"react-router-dom": "^5.0.1",
20-
"react-scripts": "4.0.1",
21-
"redux": "^4.0.4",
22-
"redux-thunk": "^2.3.0",
23-
"request": "^2.88.0"
16+
"react": "^16.14.0",
17+
"react-bootstrap": "^1.6.4",
18+
"react-dom": "^16.14.0",
19+
"react-redux": "^7.2.6",
20+
"react-router-dom": "^5.3.0",
21+
"react-scripts": "^4.0.1",
22+
"redux": "^4.1.2",
23+
"redux-thunk": "^2.4.1",
24+
"request": "^2.88.2"
25+
},
26+
"resolutions": {
27+
"nth-check": "2.0.1",
28+
"immer": "9.0.6",
29+
"ansi-regex": "5.0.1",
30+
"glob-parent": "5.1.2",
31+
"browserslist": "4.16.5",
32+
"ansi-html": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz"
2433
},
2534
"scripts": {
35+
"preinstall": "([ ! -f package-lock.json ] && npm install --package-lock-only --ignore-scripts --no-audit); npx npm-force-resolutions",
2636
"start": "react-scripts start",
27-
"build": "react-scripts --openssl-legacy-provider build",
37+
"build": "react-scripts build",
2838
"test": "react-scripts test",
2939
"eject": "react-scripts eject"
3040
},

resources/website-lab2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ sed -i -r -e 's|(^\s+)(base_url: )(process.env.REACT_APP_BASE_URL,)|//\1\2\3\n\1
4747

4848
echo
4949
echo "Installing NodeJS dependencies"
50+
npm install npm-force-resolutions
5051
npm install
5152

5253
echo

0 commit comments

Comments
 (0)