diff --git a/package.json b/package.json index f1d220b80922..ce53ab05d455 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/helpers/setup-helper.js b/test/helpers/setup-helper.js index a5597f4d431c..98994a8fe037 100644 --- a/test/helpers/setup-helper.js +++ b/test/helpers/setup-helper.js @@ -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 diff --git a/yarn.lock b/yarn.lock index a8d4a1602b8b..5976ad0666e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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" @@ -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"