File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 29
29
}
30
30
31
31
if ( ! global . fs && global . require ) {
32
- global . fs = require ( "fs" ) ;
32
+ global . fs = require ( "node: fs" ) ;
33
33
}
34
34
35
35
const enosys = ( ) => {
101
101
}
102
102
103
103
if ( ! global . crypto ) {
104
- const nodeCrypto = require ( "crypto" ) ;
104
+ const nodeCrypto = require ( "node: crypto" ) ;
105
105
global . crypto = {
106
106
getRandomValues ( b ) {
107
107
nodeCrypto . randomFillSync ( b ) ;
119
119
}
120
120
121
121
if ( ! global . TextEncoder ) {
122
- global . TextEncoder = require ( "util" ) . TextEncoder ;
122
+ global . TextEncoder = require ( "node: util" ) . TextEncoder ;
123
123
}
124
124
125
125
if ( ! global . TextDecoder ) {
126
- global . TextDecoder = require ( "util" ) . TextDecoder ;
126
+ global . TextDecoder = require ( "node: util" ) . TextDecoder ;
127
127
}
128
128
129
129
// End of polyfills for common API.
You can’t perform that action at this time.
0 commit comments