Skip to content

Commit 8a67fb9

Browse files
committed
AB#68391 fix critical vulnerabilities
1 parent ee9cb9c commit 8a67fb9

File tree

3 files changed

+7611
-4372
lines changed

3 files changed

+7611
-4372
lines changed

config-overrides.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
const { injectBabelPlugin } = require('react-app-rewired');
2-
const rewireReactHotLoader = require('react-app-rewire-hot-loader');
1+
const { override, addBabelPlugin } = require('customize-cra');
32

4-
module.exports = function(config, env) {
5-
6-
// Essential features
7-
config = injectBabelPlugin('transform-class-properties', config);
8-
config = injectBabelPlugin('transform-decorators-legacy', config);
9-
10-
// React Hot Loader
11-
config = rewireReactHotLoader(config, env);
12-
13-
return config;
14-
};
3+
module.exports = override(addBabelPlugin(['@babel/plugin-proposal-decorators', { legacy: true }]));

package.json

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"react-dropzone": "^4.3.0",
2828
"react-hot-loader": "^4.3.3",
2929
"react-resizable": "^1.7.5",
30-
"react-scripts": "^1.1.4",
30+
"react-scripts": "^3.4.4",
3131
"react-select": "^5.2.2",
3232
"react-slidedown": "^1.3.0",
3333
"react-test-renderer": "^16.12.0",
@@ -47,18 +47,32 @@
4747
"cypress": "cypress open"
4848
},
4949
"devDependencies": {
50-
"babel-eslint": "^8.2.3",
51-
"babel-plugin-transform-class-properties": "^6.24.1",
52-
"babel-plugin-transform-decorators-legacy": "^1.3.5",
53-
"eslint": "^4.19.1",
54-
"eslint-config-airbnb": "^16.1.0",
55-
"eslint-config-prettier": "^2.9.0",
56-
"eslint-plugin-import": "^2.12.0",
57-
"eslint-plugin-jsx-a11y": "^6.0.3",
58-
"eslint-plugin-prettier": "^2.6.0",
59-
"eslint-plugin-react": "^7.9.1",
50+
"@babel/core": "^7.29.0",
51+
"@babel/plugin-proposal-decorators": "^7.29.0",
52+
"babel-eslint": "10.1.0",
53+
"customize-cra": "^1.0.0",
6054
"jest-fetch-mock": "^3.0.3",
6155
"prettier": "^1.13.5",
62-
"react-app-rewired": "^1.5.2"
63-
}
56+
"react-app-rewired": "^2.0.0"
57+
},
58+
"resolutions": {
59+
"sha.js": "2.4.12",
60+
"cipher-base": "1.0.6",
61+
"pbkdf2": "3.1.3",
62+
"minimist": "1.2.8",
63+
"json-schema": "0.4.0",
64+
"eventsource": "1.1.2",
65+
"form-data": "2.5.4",
66+
"loader-utils": "1.4.2",
67+
"minimatch": "3.1.2",
68+
"jest": "24.9.0",
69+
"babel-jest": "24.9.0",
70+
"shell-quote": "1.7.3"
71+
},
72+
"browserslist": [
73+
">0.2%",
74+
"not dead",
75+
"not ie <= 11",
76+
"not op_mini all"
77+
]
6478
}

0 commit comments

Comments
 (0)