Skip to content

Commit

Permalink
Bump seedrandom to avoid unsafe-eval issues (#6440)
Browse files Browse the repository at this point in the history
* Bump seedrandom to avoid unsafe-eval issues

* Reset to upstream

* Update lock files

Co-authored-by: Ping Yu <[email protected]>
  • Loading branch information
s-mustafa and pyu10055 authored Jun 28, 2022
1 parent 8f00196 commit b83e5b4
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 33 deletions.
4 changes: 2 additions & 2 deletions tfjs-backend-cpu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"test-ci": "yarn test"
},
"dependencies": {
"@types/seedrandom": "2.4.27",
"seedrandom": "2.4.3"
"@types/seedrandom": "^2.4.28",
"seedrandom": "^3.0.5"
},
"peerDependencies": {
"@tensorflow/tfjs-core": "link:../link-package/node_modules/@tensorflow/tfjs-core"
Expand Down
16 changes: 8 additions & 8 deletions tfjs-backend-cpu/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
resolved "https://registry.yarnpkg.com/@bazel/ibazel/-/ibazel-0.16.2.tgz#05dd7f06659759fda30f87b15534f1e42f1201bb"
integrity sha512-KgqAWMH0emL6f3xH6nqyTryoBMqlJ627LBIe9PT1PRRQPz2FtHib3FIHJPukp1slzF3hJYZvdiVwgPnHbaSOOA==

"@types/[email protected].27":
version "2.4.27"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.27.tgz#9db563937dd86915f69092bc43259d2f48578e41"
integrity sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=
"@types/seedrandom@^2.4.28":
version "2.4.30"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.30.tgz#d2efe425869b84163c2d56e779dddadb9372cbfa"
integrity sha512-AnxLHewubLVzoF/A4qdxBGHCKifw8cY32iro3DQX9TPcetE95zBeVt3jnsvtvAUf1vwzMfwzp4t/L2yqPlnjkQ==

[email protected]:
version "1.2.6"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==

seedrandom@2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-2.4.3.tgz#2438504dad33917314bff18ac4d794f16d6aaecc"
integrity sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=
seedrandom@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==
4 changes: 2 additions & 2 deletions tfjs-backend-webgl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"dependencies": {
"@tensorflow/tfjs-backend-cpu": "link:../link-package/node_modules/@tensorflow/tfjs-backend-cpu",
"@types/offscreencanvas": "~2019.3.0",
"@types/seedrandom": "2.4.27",
"@types/seedrandom": "^2.4.28",
"@types/webgl-ext": "0.0.30",
"@types/webgl2": "0.0.6",
"seedrandom": "2.4.3"
"seedrandom": "^3.0.5"
},
"peerDependencies": {
"@tensorflow/tfjs-core": "link:../link-package/node_modules/@tensorflow/tfjs-core"
Expand Down
16 changes: 8 additions & 8 deletions tfjs-backend-webgl/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
resolved "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz#3336428ec7e9180cf4566dfea5da04eb586a6553"
integrity sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==

"@types/[email protected].27":
version "2.4.27"
resolved "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz#9db563937dd86915f69092bc43259d2f48578e41"
integrity sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=
"@types/seedrandom@^2.4.28":
version "2.4.30"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.30.tgz#d2efe425869b84163c2d56e779dddadb9372cbfa"
integrity sha512-AnxLHewubLVzoF/A4qdxBGHCKifw8cY32iro3DQX9TPcetE95zBeVt3jnsvtvAUf1vwzMfwzp4t/L2yqPlnjkQ==

"@types/[email protected]":
version "0.0.30"
Expand All @@ -49,7 +49,7 @@ regenerator-runtime@^0.13.4:
resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==

seedrandom@2.4.3:
version "2.4.3"
resolved "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz#2438504dad33917314bff18ac4d794f16d6aaecc"
integrity sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=
seedrandom@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==
4 changes: 2 additions & 2 deletions tfjs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"dependencies": {
"@types/long": "^4.0.1",
"@types/offscreencanvas": "~2019.3.0",
"@types/seedrandom": "2.4.27",
"@types/seedrandom": "^2.4.28",
"@types/webgl-ext": "0.0.30",
"@webgpu/types": "^0.1.16",
"long": "4.0.0",
"node-fetch": "~2.6.1",
"seedrandom": "2.4.3"
"seedrandom": "^3.0.5"
},
"browser": {
"node-fetch": false,
Expand Down
16 changes: 8 additions & 8 deletions tfjs-core/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
resolved "https://registry.yarnpkg.com/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz#3336428ec7e9180cf4566dfea5da04eb586a6553"
integrity sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==

"@types/[email protected].27":
version "2.4.27"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.27.tgz#9db563937dd86915f69092bc43259d2f48578e41"
integrity sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=
"@types/seedrandom@^2.4.28":
version "2.4.30"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.30.tgz#d2efe425869b84163c2d56e779dddadb9372cbfa"
integrity sha512-AnxLHewubLVzoF/A4qdxBGHCKifw8cY32iro3DQX9TPcetE95zBeVt3jnsvtvAUf1vwzMfwzp4t/L2yqPlnjkQ==

"@types/[email protected]":
version "0.0.30"
Expand Down Expand Up @@ -54,10 +54,10 @@ node-fetch@~2.6.1:
dependencies:
whatwg-url "^5.0.0"

seedrandom@2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-2.4.3.tgz#2438504dad33917314bff18ac4d794f16d6aaecc"
integrity sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=
seedrandom@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==

tr46@~0.0.3:
version "0.0.3"
Expand Down
2 changes: 1 addition & 1 deletion tfjs-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"peerDependencies": {
"@tensorflow/tfjs-core": "link:../link-package/node_modules/@tensorflow/tfjs-core",
"seedrandom": "~2.4.3"
"seedrandom": "^3.0.5"
},
"dependencies": {
"@types/node-fetch": "^2.1.2",
Expand Down
4 changes: 2 additions & 2 deletions tfjs-inference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"test-python-ci": "./scripts/run_python.sh"
},
"dependencies": {
"@types/seedrandom": "2.4.27",
"@types/seedrandom": "^2.4.28",
"@types/yargs": "~15.0.5",
"seedrandom": "2.4.3",
"seedrandom": "^3.0.5",
"yargs": "~15.3.1",
"pkg": "~4.5.1"
},
Expand Down
10 changes: 10 additions & 0 deletions tfjs-inference/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.27.tgz#9db563937dd86915f69092bc43259d2f48578e41"
integrity sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=

"@types/seedrandom@^2.4.28":
version "2.4.30"
resolved "https://registry.yarnpkg.com/@types/seedrandom/-/seedrandom-2.4.30.tgz#d2efe425869b84163c2d56e779dddadb9372cbfa"
integrity sha512-AnxLHewubLVzoF/A4qdxBGHCKifw8cY32iro3DQX9TPcetE95zBeVt3jnsvtvAUf1vwzMfwzp4t/L2yqPlnjkQ==

"@types/[email protected]":
version "0.0.30"
resolved "https://registry.yarnpkg.com/@types/webgl-ext/-/webgl-ext-0.0.30.tgz#0ce498c16a41a23d15289e0b844d945b25f0fb9d"
Expand Down Expand Up @@ -1366,6 +1371,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-2.4.3.tgz#2438504dad33917314bff18ac4d794f16d6aaecc"
integrity sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=

seedrandom@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==

semver@^5.3.0, semver@^5.4.1:
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
Expand Down

0 comments on commit b83e5b4

Please sign in to comment.