Skip to content

Commit

Permalink
chore(test): remove polyfill-crypto.getrandomvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Mar 6, 2024
1 parent 800ba22 commit 00c1660
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@
"nock": "^13.2.9",
"node-fetch": "^2.6.1",
"nyc": "^15.0.0",
"polyfill-crypto.getrandomvalues": "^1.0.0",
"postcss": "^8.4.32",
"postcss-rtlcss": "^4.0.9",
"prettier": "^2.7.1",
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/setup-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if (!window.crypto) {
}
if (!window.crypto.getRandomValues) {
// eslint-disable-next-line node/global-require
window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues');
window.crypto.getRandomValues = require('crypto').webcrypto.getRandomValues;
}

// TextEncoder/TextDecoder
Expand Down
12 changes: 1 addition & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24755,7 +24755,7 @@ __metadata:
languageName: node
linkType: hard

"mersenne-twister@npm:^1.0.1, mersenne-twister@npm:^1.1.0":
"mersenne-twister@npm:^1.1.0":
version: 1.1.0
resolution: "mersenne-twister@npm:1.1.0"
checksum: 1123526199091097102f2f91639ad7d5b3df4b098de9a4a72c835920e11ef0ce08e25737d5af1d363325a60da8804365eae8a41e03b7a46a1acc22e18fa8f261
Expand Down Expand Up @@ -25056,7 +25056,6 @@ __metadata:
nyc: "npm:^15.0.0"
obj-multiplex: "npm:^1.0.0"
pify: "npm:^5.0.0"
polyfill-crypto.getrandomvalues: "npm:^1.0.0"
postcss: "npm:^8.4.32"
postcss-rtlcss: "npm:^4.0.9"
prettier: "npm:^2.7.1"
Expand Down Expand Up @@ -28051,15 +28050,6 @@ __metadata:
languageName: node
linkType: hard

"polyfill-crypto.getrandomvalues@npm:^1.0.0":
version: 1.0.0
resolution: "polyfill-crypto.getrandomvalues@npm:1.0.0"
dependencies:
mersenne-twister: "npm:^1.0.1"
checksum: 73f0880b022af0c5930ef2d34a83a25e03196081082d8ceb204a3e5609a1a3d0dd1656a183073b17bc069a2c5749e44689cebdc4254dae6ed7e4e8b83f451964
languageName: node
linkType: hard

"pony-cause@npm:^2.1.10":
version: 2.1.10
resolution: "pony-cause@npm:2.1.10"
Expand Down

0 comments on commit 00c1660

Please sign in to comment.