Skip to content

Commit fae0fe1

Browse files
authored
more security fixes (#6237)
SECURITY
1 parent cfc3001 commit fae0fe1

File tree

13 files changed

+4367
-10416
lines changed

13 files changed

+4367
-10416
lines changed

e2e/benchmarks/browserstack-benchmark/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
"karma-browserstack-launcher": "^1.6.0",
1919
"karma-chrome-launcher": "^3.1.0",
2020
"karma-jasmine": "^3.3.1",
21-
"socket.io": "~2.2.0"
21+
"socket.io": "~4.4.1"
2222
},
2323
"staticFiles": {
2424
"staticPath": "./node_modules/@tensorflow/tfjs-backend-wasm/dist",
25-
"excludeGlob": ["**/!(*.wasm)"]
25+
"excludeGlob": [
26+
"**/!(*.wasm)"
27+
]
2628
},
2729
"scripts": {
2830
"test": "karma start",

e2e/benchmarks/browserstack-benchmark/yarn.lock

+598-641
Large diffs are not rendered by default.

e2e/custom_module/dense_model/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"rollup-plugin-node-resolve": "^5.2.0",
2525
"rollup-plugin-terser": "^6.1.0",
2626
"rollup-plugin-visualizer": "^4.0.4",
27-
"terser-webpack-plugin": "^4.2.1",
28-
"webpack": "^4.44.1",
29-
"webpack-cli": "^3.3.12"
27+
"terser-webpack-plugin": "^5.3.1",
28+
"webpack": "^5.70.0",
29+
"webpack-cli": "^4.9.2"
3030
}
3131
}

e2e/custom_module/dense_model/webpack.config.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,7 @@ module.exports = function(env, argv) {
3131
},
3232
optimization: {
3333
minimizer: [
34-
new TerserPlugin({
35-
cache: true,
36-
parallel: true,
37-
sourceMap: false,
38-
terserOptions: {
39-
comments: false,
40-
}
41-
}),
34+
new TerserPlugin({parallel: true, terserOptions: {}}),
4235
]
4336
},
4437
module: {

e2e/custom_module/dense_model/yarn.lock

+537-2,446
Large diffs are not rendered by default.

e2e/custom_module/universal_sentence_encoder/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-terser": "^6.1.0",
2727
"rollup-plugin-visualizer": "^4.0.4",
28-
"terser-webpack-plugin": "^4.2.1",
29-
"webpack": "^4.44.1",
30-
"webpack-cli": "^3.3.12"
28+
"terser-webpack-plugin": "^5.3.1",
29+
"webpack": "^5.70.0",
30+
"webpack-cli": "^4.9.2"
3131
}
3232
}

e2e/custom_module/universal_sentence_encoder/webpack.config.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,7 @@ module.exports = function(env, argv) {
3131
},
3232
optimization: {
3333
minimizer: [
34-
new TerserPlugin({
35-
cache: true,
36-
parallel: true,
37-
sourceMap: false,
38-
terserOptions: {
39-
comments: false,
40-
}
41-
}),
34+
new TerserPlugin({parallel: true, terserOptions: {}}),
4235
]
4336
},
4437
module: {

e2e/custom_module/universal_sentence_encoder/yarn.lock

+678-2,716
Large diffs are not rendered by default.

tfjs-backend-wasm/starter/webpack/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
],
1717
"devDependencies": {
1818
"file-loader": "^5.0.2",
19-
"html-webpack-plugin": "^3.2.0",
20-
"webpack": "^4.41.2",
21-
"webpack-cli": "^3.3.10",
22-
"webpack-dev-server": "^3.9.0"
19+
"html-webpack-plugin": "^5.5.0",
20+
"webpack": "^5.70.0",
21+
"webpack-cli": "^4.9.2",
22+
"webpack-dev-server": "^4.7.4"
2323
},
2424
"keywords": []
2525
}

tfjs-backend-wasm/starter/webpack/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
app: './src/index.js',
77
},
88
devServer: {
9-
contentBase: './dist',
9+
static: './dist',
1010
},
1111
plugins: [
1212
new HtmlWebpackPlugin({

tfjs-backend-wasm/starter/webpack/yarn.lock

+1,490-3,337
Large diffs are not rendered by default.

tfjs-core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"clang-format": "~1.2.4",
3434
"jasmine": "~3.1.0",
3535
"jasmine-core": "~3.1.0",
36-
"karma": "6.3.2",
36+
"karma": "6.3.17",
3737
"karma-browserstack-launcher": "~1.6.0",
3838
"karma-chrome-launcher": "~3.1.0",
3939
"karma-jasmine": "~4.0.1",
@@ -42,12 +42,12 @@
4242
"rimraf": "~2.6.2",
4343
"rollup": "~2.3.2",
4444
"rollup-plugin-terser": "~5.3.0",
45-
"rollup-plugin-visualizer": "~3.3.2",
45+
"rollup-plugin-visualizer": "~5.6.0",
4646
"shelljs": "~0.8.3",
4747
"ts-node": "~8.8.2",
4848
"typescript": "3.5.3",
4949
"yalc": "~1.0.0-pre.21",
50-
"yargs": "~13.2.2"
50+
"yargs": "~17.3.1"
5151
},
5252
"scripts": {
5353
"build-ci": "yarn build",

0 commit comments

Comments
 (0)