Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit b024544

Browse files
authored
Fixed some security vulnerabilities (#2065)
* Fixed some security vulnerabilities. * Removed dead code. * Fixed package-lock name.
1 parent 1c5e370 commit b024544

12 files changed

Lines changed: 1817 additions & 8295 deletions

File tree

package-lock.json

Lines changed: 1765 additions & 1269 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/app/client/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"babel-jest": "24.8.0",
6060
"babel-loader": "^8.0.6",
6161
"babel-preset-react-app": "^3.1.1",
62-
"copy-webpack-plugin": "^4.5.1",
62+
"copy-webpack-plugin": "5.0.5",
6363
"coveralls": "^3.0.1",
6464
"cross-env": "^5.1.3",
6565
"css-loader": "^1.0.1",
@@ -87,10 +87,9 @@
8787
"rimraf": "^2.6.2",
8888
"sass-loader": "^7.1.0",
8989
"style-loader": "^0.21.0",
90-
"terser": "^4.0.0",
90+
"terser-webpack-plugin": "2.3.3",
9191
"typescript": "3.1.1",
9292
"typings-for-css-modules-loader": "^1.7.0",
93-
"uglifyjs-webpack-plugin": "^2.1.3",
9493
"url-loader": "^1.0.1",
9594
"webpack": "^4.32.2",
9695
"webpack-cli": "^3.3.2",

packages/app/client/webpack.config.js

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
const path = require('path');
3535

3636
const CopyWebpackPlugin = require('copy-webpack-plugin');
37-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
37+
const TerserWebpackPlugin = require('terser-webpack-plugin');
3838

3939
const webpack = require('webpack');
4040
const { DllPlugin, DllReferencePlugin, NamedModulesPlugin, DefinePlugin, WatchIgnorePlugin } = webpack;
@@ -166,26 +166,12 @@ const buildConfig = mode => {
166166
} else {
167167
config.optimization = {
168168
minimizer: [
169-
new UglifyJsPlugin({
169+
new TerserWebpackPlugin({
170170
cache: true,
171-
cacheKeys(defaultCacheKeys) {
172-
delete defaultCacheKeys['uglify-js'];
171+
cacheKeys: defaultCacheKeys => {
172+
delete defaultCacheKeys['terser'];
173173

174-
return Object.assign({}, defaultCacheKeys, { 'uglify-js': require('uglify-js/package.json').version });
175-
},
176-
minify(file, sourceMap) {
177-
// https://github.com/mishoo/UglifyJS2#minify-options
178-
const uglifyJsOptions = {
179-
/* your `uglify-js` package options */
180-
};
181-
182-
if (sourceMap) {
183-
uglifyJsOptions.sourceMap = {
184-
content: sourceMap,
185-
};
186-
}
187-
188-
return require('terser').minify(file, uglifyJsOptions);
174+
return Object.assign({}, defaultCacheKeys, { terser: require('terser/package.json').version });
189175
},
190176
}),
191177
],

packages/app/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"fs-extra": "^6.0.1",
145145
"got": "^7.1.0",
146146
"http-status-codes": "^1.3.0",
147-
"https-proxy-agent": "2.2.1",
147+
"https-proxy-agent": "2.2.3",
148148
"jest-fetch-mock": "^1.6.2",
149149
"jsonwebtoken": "^8.3.0",
150150
"keytar": "^4.7.0",

0 commit comments

Comments
 (0)