@latticexyz/world-module-erc20 2.2.22-f7aa4c5722bf24103f4cd4ab01b5d9c55f9b2995 → 2.2.22-f85d1a78840761a3ffa61645d75ddd1a7d2352db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_esm-H47RQ4ED.js → _esm-4QBXERIC.js} +136 -131
- package/dist/_esm-4QBXERIC.js.map +1 -0
- package/dist/{ccip-VIBPEQNI.js → ccip-POWS7KFG.js} +3 -3
- package/dist/{chunk-XE443CMG.js → chunk-5LBWQX65.js} +732 -341
- package/dist/chunk-5LBWQX65.js.map +1 -0
- package/dist/chunk-Y6LDJZ7L.js +408 -0
- package/dist/chunk-Y6LDJZ7L.js.map +1 -0
- package/dist/internal.js +2 -2
- package/dist/{secp256k1-QT34R5PW.js → secp256k1-QCGY4Z6Q.js} +405 -624
- package/dist/secp256k1-QCGY4Z6Q.js.map +1 -0
- package/package.json +8 -8
- package/dist/_esm-H47RQ4ED.js.map +0 -1
- package/dist/chunk-M5FHJZR5.js +0 -139
- package/dist/chunk-M5FHJZR5.js.map +0 -1
- package/dist/chunk-XE443CMG.js.map +0 -1
- package/dist/secp256k1-QT34R5PW.js.map +0 -1
- /package/dist/{ccip-VIBPEQNI.js.map → ccip-POWS7KFG.js.map} +0 -0
|
@@ -5,106 +5,9 @@ import {
|
|
|
5
5
|
__toESM
|
|
6
6
|
} from "./chunk-PR4QN5HX.js";
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
9
|
-
var require_stream = __commonJS({
|
|
10
|
-
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
|
11
|
-
"use strict";
|
|
12
|
-
var { Duplex } = __require("stream");
|
|
13
|
-
function emitClose(stream) {
|
|
14
|
-
stream.emit("close");
|
|
15
|
-
}
|
|
16
|
-
function duplexOnEnd() {
|
|
17
|
-
if (!this.destroyed && this._writableState.finished) {
|
|
18
|
-
this.destroy();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function duplexOnError(err) {
|
|
22
|
-
this.removeListener("error", duplexOnError);
|
|
23
|
-
this.destroy();
|
|
24
|
-
if (this.listenerCount("error") === 0) {
|
|
25
|
-
this.emit("error", err);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function createWebSocketStream2(ws, options) {
|
|
29
|
-
let terminateOnDestroy = true;
|
|
30
|
-
const duplex = new Duplex({
|
|
31
|
-
...options,
|
|
32
|
-
autoDestroy: false,
|
|
33
|
-
emitClose: false,
|
|
34
|
-
objectMode: false,
|
|
35
|
-
writableObjectMode: false
|
|
36
|
-
});
|
|
37
|
-
ws.on("message", function message(msg, isBinary) {
|
|
38
|
-
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
39
|
-
if (!duplex.push(data)) ws.pause();
|
|
40
|
-
});
|
|
41
|
-
ws.once("error", function error(err) {
|
|
42
|
-
if (duplex.destroyed) return;
|
|
43
|
-
terminateOnDestroy = false;
|
|
44
|
-
duplex.destroy(err);
|
|
45
|
-
});
|
|
46
|
-
ws.once("close", function close() {
|
|
47
|
-
if (duplex.destroyed) return;
|
|
48
|
-
duplex.push(null);
|
|
49
|
-
});
|
|
50
|
-
duplex._destroy = function(err, callback) {
|
|
51
|
-
if (ws.readyState === ws.CLOSED) {
|
|
52
|
-
callback(err);
|
|
53
|
-
process.nextTick(emitClose, duplex);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
let called = false;
|
|
57
|
-
ws.once("error", function error(err2) {
|
|
58
|
-
called = true;
|
|
59
|
-
callback(err2);
|
|
60
|
-
});
|
|
61
|
-
ws.once("close", function close() {
|
|
62
|
-
if (!called) callback(err);
|
|
63
|
-
process.nextTick(emitClose, duplex);
|
|
64
|
-
});
|
|
65
|
-
if (terminateOnDestroy) ws.terminate();
|
|
66
|
-
};
|
|
67
|
-
duplex._final = function(callback) {
|
|
68
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
69
|
-
ws.once("open", function open() {
|
|
70
|
-
duplex._final(callback);
|
|
71
|
-
});
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (ws._socket === null) return;
|
|
75
|
-
if (ws._socket._writableState.finished) {
|
|
76
|
-
callback();
|
|
77
|
-
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
78
|
-
} else {
|
|
79
|
-
ws._socket.once("finish", function finish() {
|
|
80
|
-
callback();
|
|
81
|
-
});
|
|
82
|
-
ws.close();
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
duplex._read = function() {
|
|
86
|
-
if (ws.isPaused) ws.resume();
|
|
87
|
-
};
|
|
88
|
-
duplex._write = function(chunk, encoding, callback) {
|
|
89
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
90
|
-
ws.once("open", function open() {
|
|
91
|
-
duplex._write(chunk, encoding, callback);
|
|
92
|
-
});
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
ws.send(chunk, callback);
|
|
96
|
-
};
|
|
97
|
-
duplex.on("end", duplexOnEnd);
|
|
98
|
-
duplex.on("error", duplexOnError);
|
|
99
|
-
return duplex;
|
|
100
|
-
}
|
|
101
|
-
module.exports = createWebSocketStream2;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js
|
|
8
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js
|
|
106
9
|
var require_constants = __commonJS({
|
|
107
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
10
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js"(exports, module) {
|
|
108
11
|
"use strict";
|
|
109
12
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
110
13
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -124,9 +27,9 @@ var require_constants = __commonJS({
|
|
|
124
27
|
}
|
|
125
28
|
});
|
|
126
29
|
|
|
127
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
|
30
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js
|
|
128
31
|
var require_node_gyp_build = __commonJS({
|
|
129
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
|
32
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
|
|
130
33
|
"use strict";
|
|
131
34
|
var fs = __require("fs");
|
|
132
35
|
var path = __require("path");
|
|
@@ -294,9 +197,9 @@ var require_node_gyp_build = __commonJS({
|
|
|
294
197
|
}
|
|
295
198
|
});
|
|
296
199
|
|
|
297
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
|
200
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js
|
|
298
201
|
var require_node_gyp_build2 = __commonJS({
|
|
299
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
|
202
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js"(exports, module) {
|
|
300
203
|
"use strict";
|
|
301
204
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
302
205
|
if (typeof runtimeRequire.addon === "function") {
|
|
@@ -338,9 +241,9 @@ var require_bufferutil = __commonJS({
|
|
|
338
241
|
}
|
|
339
242
|
});
|
|
340
243
|
|
|
341
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
244
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js
|
|
342
245
|
var require_buffer_util = __commonJS({
|
|
343
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
246
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
344
247
|
"use strict";
|
|
345
248
|
var { EMPTY_BUFFER } = require_constants();
|
|
346
249
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -413,9 +316,9 @@ var require_buffer_util = __commonJS({
|
|
|
413
316
|
}
|
|
414
317
|
});
|
|
415
318
|
|
|
416
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
319
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js
|
|
417
320
|
var require_limiter = __commonJS({
|
|
418
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
321
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
419
322
|
"use strict";
|
|
420
323
|
var kDone = Symbol("kDone");
|
|
421
324
|
var kRun = Symbol("kRun");
|
|
@@ -463,9 +366,9 @@ var require_limiter = __commonJS({
|
|
|
463
366
|
}
|
|
464
367
|
});
|
|
465
368
|
|
|
466
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
369
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js
|
|
467
370
|
var require_permessage_deflate = __commonJS({
|
|
468
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
371
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
469
372
|
"use strict";
|
|
470
373
|
var zlib = __require("zlib");
|
|
471
374
|
var bufferUtil = require_buffer_util();
|
|
@@ -836,6 +739,10 @@ var require_permessage_deflate = __commonJS({
|
|
|
836
739
|
}
|
|
837
740
|
function inflateOnError(err) {
|
|
838
741
|
this[kPerMessageDeflate]._inflate = null;
|
|
742
|
+
if (this[kError]) {
|
|
743
|
+
this[kCallback](this[kError]);
|
|
744
|
+
return;
|
|
745
|
+
}
|
|
839
746
|
err[kStatusCode] = 1007;
|
|
840
747
|
this[kCallback](err);
|
|
841
748
|
}
|
|
@@ -891,9 +798,9 @@ var require_utf_8_validate = __commonJS({
|
|
|
891
798
|
}
|
|
892
799
|
});
|
|
893
800
|
|
|
894
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
801
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js
|
|
895
802
|
var require_validation = __commonJS({
|
|
896
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
803
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js"(exports, module) {
|
|
897
804
|
"use strict";
|
|
898
805
|
var { isUtf8 } = __require("buffer");
|
|
899
806
|
var { hasBlob } = require_constants();
|
|
@@ -1092,9 +999,9 @@ var require_validation = __commonJS({
|
|
|
1092
999
|
}
|
|
1093
1000
|
});
|
|
1094
1001
|
|
|
1095
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
1002
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js
|
|
1096
1003
|
var require_receiver = __commonJS({
|
|
1097
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
1004
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
1098
1005
|
"use strict";
|
|
1099
1006
|
var { Writable } = __require("stream");
|
|
1100
1007
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1684,9 +1591,9 @@ var require_receiver = __commonJS({
|
|
|
1684
1591
|
}
|
|
1685
1592
|
});
|
|
1686
1593
|
|
|
1687
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
1594
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js
|
|
1688
1595
|
var require_sender = __commonJS({
|
|
1689
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
1596
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1690
1597
|
"use strict";
|
|
1691
1598
|
var { Duplex } = __require("stream");
|
|
1692
1599
|
var { randomFillSync } = __require("crypto");
|
|
@@ -2141,7 +2048,7 @@ var require_sender = __commonJS({
|
|
|
2141
2048
|
/**
|
|
2142
2049
|
* Sends a frame.
|
|
2143
2050
|
*
|
|
2144
|
-
* @param {Buffer[]} list The frame to send
|
|
2051
|
+
* @param {(Buffer | String)[]} list The frame to send
|
|
2145
2052
|
* @param {Function} [cb] Callback
|
|
2146
2053
|
* @private
|
|
2147
2054
|
*/
|
|
@@ -2172,9 +2079,9 @@ var require_sender = __commonJS({
|
|
|
2172
2079
|
}
|
|
2173
2080
|
});
|
|
2174
2081
|
|
|
2175
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2082
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js
|
|
2176
2083
|
var require_event_target = __commonJS({
|
|
2177
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2084
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
2178
2085
|
"use strict";
|
|
2179
2086
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
2180
2087
|
var kCode = Symbol("kCode");
|
|
@@ -2401,9 +2308,9 @@ var require_event_target = __commonJS({
|
|
|
2401
2308
|
}
|
|
2402
2309
|
});
|
|
2403
2310
|
|
|
2404
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2311
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js
|
|
2405
2312
|
var require_extension = __commonJS({
|
|
2406
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2313
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2407
2314
|
"use strict";
|
|
2408
2315
|
var { tokenChars } = require_validation();
|
|
2409
2316
|
function push(dest, name, elem) {
|
|
@@ -2554,9 +2461,9 @@ var require_extension = __commonJS({
|
|
|
2554
2461
|
}
|
|
2555
2462
|
});
|
|
2556
2463
|
|
|
2557
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2464
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js
|
|
2558
2465
|
var require_websocket = __commonJS({
|
|
2559
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2466
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2560
2467
|
"use strict";
|
|
2561
2468
|
var EventEmitter = __require("events");
|
|
2562
2469
|
var https = __require("https");
|
|
@@ -3074,7 +2981,7 @@ var require_websocket = __commonJS({
|
|
|
3074
2981
|
const isIpcUrl = parsedUrl.protocol === "ws+unix:";
|
|
3075
2982
|
let invalidUrlMessage;
|
|
3076
2983
|
if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) {
|
|
3077
|
-
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`;
|
|
2984
|
+
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;
|
|
3078
2985
|
} else if (isIpcUrl && !parsedUrl.pathname) {
|
|
3079
2986
|
invalidUrlMessage = "The URL's pathname is empty";
|
|
3080
2987
|
} else if (parsedUrl.hash) {
|
|
@@ -3437,9 +3344,107 @@ var require_websocket = __commonJS({
|
|
|
3437
3344
|
}
|
|
3438
3345
|
});
|
|
3439
3346
|
|
|
3440
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3347
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js
|
|
3348
|
+
var require_stream = __commonJS({
|
|
3349
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3350
|
+
"use strict";
|
|
3351
|
+
var WebSocket4 = require_websocket();
|
|
3352
|
+
var { Duplex } = __require("stream");
|
|
3353
|
+
function emitClose(stream) {
|
|
3354
|
+
stream.emit("close");
|
|
3355
|
+
}
|
|
3356
|
+
function duplexOnEnd() {
|
|
3357
|
+
if (!this.destroyed && this._writableState.finished) {
|
|
3358
|
+
this.destroy();
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
function duplexOnError(err) {
|
|
3362
|
+
this.removeListener("error", duplexOnError);
|
|
3363
|
+
this.destroy();
|
|
3364
|
+
if (this.listenerCount("error") === 0) {
|
|
3365
|
+
this.emit("error", err);
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
function createWebSocketStream2(ws, options) {
|
|
3369
|
+
let terminateOnDestroy = true;
|
|
3370
|
+
const duplex = new Duplex({
|
|
3371
|
+
...options,
|
|
3372
|
+
autoDestroy: false,
|
|
3373
|
+
emitClose: false,
|
|
3374
|
+
objectMode: false,
|
|
3375
|
+
writableObjectMode: false
|
|
3376
|
+
});
|
|
3377
|
+
ws.on("message", function message(msg, isBinary) {
|
|
3378
|
+
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
3379
|
+
if (!duplex.push(data)) ws.pause();
|
|
3380
|
+
});
|
|
3381
|
+
ws.once("error", function error(err) {
|
|
3382
|
+
if (duplex.destroyed) return;
|
|
3383
|
+
terminateOnDestroy = false;
|
|
3384
|
+
duplex.destroy(err);
|
|
3385
|
+
});
|
|
3386
|
+
ws.once("close", function close() {
|
|
3387
|
+
if (duplex.destroyed) return;
|
|
3388
|
+
duplex.push(null);
|
|
3389
|
+
});
|
|
3390
|
+
duplex._destroy = function(err, callback) {
|
|
3391
|
+
if (ws.readyState === ws.CLOSED) {
|
|
3392
|
+
callback(err);
|
|
3393
|
+
process.nextTick(emitClose, duplex);
|
|
3394
|
+
return;
|
|
3395
|
+
}
|
|
3396
|
+
let called = false;
|
|
3397
|
+
ws.once("error", function error(err2) {
|
|
3398
|
+
called = true;
|
|
3399
|
+
callback(err2);
|
|
3400
|
+
});
|
|
3401
|
+
ws.once("close", function close() {
|
|
3402
|
+
if (!called) callback(err);
|
|
3403
|
+
process.nextTick(emitClose, duplex);
|
|
3404
|
+
});
|
|
3405
|
+
if (terminateOnDestroy) ws.terminate();
|
|
3406
|
+
};
|
|
3407
|
+
duplex._final = function(callback) {
|
|
3408
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
3409
|
+
ws.once("open", function open() {
|
|
3410
|
+
duplex._final(callback);
|
|
3411
|
+
});
|
|
3412
|
+
return;
|
|
3413
|
+
}
|
|
3414
|
+
if (ws._socket === null) return;
|
|
3415
|
+
if (ws._socket._writableState.finished) {
|
|
3416
|
+
callback();
|
|
3417
|
+
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
3418
|
+
} else {
|
|
3419
|
+
ws._socket.once("finish", function finish() {
|
|
3420
|
+
callback();
|
|
3421
|
+
});
|
|
3422
|
+
ws.close();
|
|
3423
|
+
}
|
|
3424
|
+
};
|
|
3425
|
+
duplex._read = function() {
|
|
3426
|
+
if (ws.isPaused) ws.resume();
|
|
3427
|
+
};
|
|
3428
|
+
duplex._write = function(chunk, encoding, callback) {
|
|
3429
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
3430
|
+
ws.once("open", function open() {
|
|
3431
|
+
duplex._write(chunk, encoding, callback);
|
|
3432
|
+
});
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
ws.send(chunk, callback);
|
|
3436
|
+
};
|
|
3437
|
+
duplex.on("end", duplexOnEnd);
|
|
3438
|
+
duplex.on("error", duplexOnError);
|
|
3439
|
+
return duplex;
|
|
3440
|
+
}
|
|
3441
|
+
module.exports = createWebSocketStream2;
|
|
3442
|
+
}
|
|
3443
|
+
});
|
|
3444
|
+
|
|
3445
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js
|
|
3441
3446
|
var require_subprotocol = __commonJS({
|
|
3442
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
3447
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3443
3448
|
"use strict";
|
|
3444
3449
|
var { tokenChars } = require_validation();
|
|
3445
3450
|
function parse(header) {
|
|
@@ -3482,9 +3487,9 @@ var require_subprotocol = __commonJS({
|
|
|
3482
3487
|
}
|
|
3483
3488
|
});
|
|
3484
3489
|
|
|
3485
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3490
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js
|
|
3486
3491
|
var require_websocket_server = __commonJS({
|
|
3487
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
3492
|
+
"../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3488
3493
|
"use strict";
|
|
3489
3494
|
var EventEmitter = __require("events");
|
|
3490
3495
|
var http = __require("http");
|
|
@@ -3869,7 +3874,7 @@ var require_websocket_server = __commonJS({
|
|
|
3869
3874
|
}
|
|
3870
3875
|
});
|
|
3871
3876
|
|
|
3872
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3877
|
+
// ../../node_modules/.pnpm/ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs
|
|
3873
3878
|
var wrapper_exports = {};
|
|
3874
3879
|
__export(wrapper_exports, {
|
|
3875
3880
|
Receiver: () => import_receiver.default,
|
|
@@ -3886,7 +3891,7 @@ var import_websocket = __toESM(require_websocket(), 1);
|
|
|
3886
3891
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
3887
3892
|
var wrapper_default = import_websocket.default;
|
|
3888
3893
|
|
|
3889
|
-
// ../../node_modules/.pnpm/isows@1.0.
|
|
3894
|
+
// ../../node_modules/.pnpm/isows@1.0.7_ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10_/node_modules/isows/_esm/utils.js
|
|
3890
3895
|
function getNativeWebSocket() {
|
|
3891
3896
|
if (typeof WebSocket !== "undefined")
|
|
3892
3897
|
return WebSocket;
|
|
@@ -3899,7 +3904,7 @@ function getNativeWebSocket() {
|
|
|
3899
3904
|
throw new Error("`WebSocket` is not supported in this environment");
|
|
3900
3905
|
}
|
|
3901
3906
|
|
|
3902
|
-
// ../../node_modules/.pnpm/isows@1.0.
|
|
3907
|
+
// ../../node_modules/.pnpm/isows@1.0.7_ws@8.18.2_bufferutil@4.0.8_utf-8-validate@5.0.10_/node_modules/isows/_esm/index.js
|
|
3903
3908
|
var WebSocket3 = (() => {
|
|
3904
3909
|
try {
|
|
3905
3910
|
return getNativeWebSocket();
|
|
@@ -3912,4 +3917,4 @@ var WebSocket3 = (() => {
|
|
|
3912
3917
|
export {
|
|
3913
3918
|
WebSocket3 as WebSocket
|
|
3914
3919
|
};
|
|
3915
|
-
//# sourceMappingURL=_esm-
|
|
3920
|
+
//# sourceMappingURL=_esm-4QBXERIC.js.map
|