@xwiki/cristal-realtime 0.18.0 → 0.19.0-rc.0
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/{index.js → index.cjs} +213 -194
- package/package.json +6 -6
|
@@ -258,106 +258,9 @@ var require_async_lock = __commonJS({
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
|
|
261
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
262
|
-
var require_stream = __commonJS({
|
|
263
|
-
"../node_modules/.pnpm/ws@8.18.0/node_modules/ws/lib/stream.js"(exports3, module3) {
|
|
264
|
-
"use strict";
|
|
265
|
-
var { Duplex } = require("stream");
|
|
266
|
-
function emitClose(stream) {
|
|
267
|
-
stream.emit("close");
|
|
268
|
-
}
|
|
269
|
-
function duplexOnEnd() {
|
|
270
|
-
if (!this.destroyed && this._writableState.finished) {
|
|
271
|
-
this.destroy();
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
function duplexOnError(err) {
|
|
275
|
-
this.removeListener("error", duplexOnError);
|
|
276
|
-
this.destroy();
|
|
277
|
-
if (this.listenerCount("error") === 0) {
|
|
278
|
-
this.emit("error", err);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function createWebSocketStream2(ws, options) {
|
|
282
|
-
let terminateOnDestroy = true;
|
|
283
|
-
const duplex = new Duplex({
|
|
284
|
-
...options,
|
|
285
|
-
autoDestroy: false,
|
|
286
|
-
emitClose: false,
|
|
287
|
-
objectMode: false,
|
|
288
|
-
writableObjectMode: false
|
|
289
|
-
});
|
|
290
|
-
ws.on("message", function message(msg, isBinary) {
|
|
291
|
-
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
292
|
-
if (!duplex.push(data)) ws.pause();
|
|
293
|
-
});
|
|
294
|
-
ws.once("error", function error(err) {
|
|
295
|
-
if (duplex.destroyed) return;
|
|
296
|
-
terminateOnDestroy = false;
|
|
297
|
-
duplex.destroy(err);
|
|
298
|
-
});
|
|
299
|
-
ws.once("close", function close() {
|
|
300
|
-
if (duplex.destroyed) return;
|
|
301
|
-
duplex.push(null);
|
|
302
|
-
});
|
|
303
|
-
duplex._destroy = function(err, callback) {
|
|
304
|
-
if (ws.readyState === ws.CLOSED) {
|
|
305
|
-
callback(err);
|
|
306
|
-
process.nextTick(emitClose, duplex);
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
let called = false;
|
|
310
|
-
ws.once("error", function error(err2) {
|
|
311
|
-
called = true;
|
|
312
|
-
callback(err2);
|
|
313
|
-
});
|
|
314
|
-
ws.once("close", function close() {
|
|
315
|
-
if (!called) callback(err);
|
|
316
|
-
process.nextTick(emitClose, duplex);
|
|
317
|
-
});
|
|
318
|
-
if (terminateOnDestroy) ws.terminate();
|
|
319
|
-
};
|
|
320
|
-
duplex._final = function(callback) {
|
|
321
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
322
|
-
ws.once("open", function open() {
|
|
323
|
-
duplex._final(callback);
|
|
324
|
-
});
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
if (ws._socket === null) return;
|
|
328
|
-
if (ws._socket._writableState.finished) {
|
|
329
|
-
callback();
|
|
330
|
-
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
331
|
-
} else {
|
|
332
|
-
ws._socket.once("finish", function finish() {
|
|
333
|
-
callback();
|
|
334
|
-
});
|
|
335
|
-
ws.close();
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
duplex._read = function() {
|
|
339
|
-
if (ws.isPaused) ws.resume();
|
|
340
|
-
};
|
|
341
|
-
duplex._write = function(chunk, encoding, callback) {
|
|
342
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
343
|
-
ws.once("open", function open() {
|
|
344
|
-
duplex._write(chunk, encoding, callback);
|
|
345
|
-
});
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
ws.send(chunk, callback);
|
|
349
|
-
};
|
|
350
|
-
duplex.on("end", duplexOnEnd);
|
|
351
|
-
duplex.on("error", duplexOnError);
|
|
352
|
-
return duplex;
|
|
353
|
-
}
|
|
354
|
-
module3.exports = createWebSocketStream2;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
// ../node_modules/.pnpm/ws@8.18.0/node_modules/ws/lib/constants.js
|
|
261
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/constants.js
|
|
359
262
|
var require_constants = __commonJS({
|
|
360
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
263
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/constants.js"(exports3, module3) {
|
|
361
264
|
"use strict";
|
|
362
265
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
363
266
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -377,9 +280,9 @@ var require_constants = __commonJS({
|
|
|
377
280
|
}
|
|
378
281
|
});
|
|
379
282
|
|
|
380
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
283
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/buffer-util.js
|
|
381
284
|
var require_buffer_util = __commonJS({
|
|
382
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
285
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/buffer-util.js"(exports3, module3) {
|
|
383
286
|
"use strict";
|
|
384
287
|
var { EMPTY_BUFFER } = require_constants();
|
|
385
288
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -452,9 +355,9 @@ var require_buffer_util = __commonJS({
|
|
|
452
355
|
}
|
|
453
356
|
});
|
|
454
357
|
|
|
455
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
358
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/limiter.js
|
|
456
359
|
var require_limiter = __commonJS({
|
|
457
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
360
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/limiter.js"(exports3, module3) {
|
|
458
361
|
"use strict";
|
|
459
362
|
var kDone = Symbol("kDone");
|
|
460
363
|
var kRun = Symbol("kRun");
|
|
@@ -502,9 +405,9 @@ var require_limiter = __commonJS({
|
|
|
502
405
|
}
|
|
503
406
|
});
|
|
504
407
|
|
|
505
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
408
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/permessage-deflate.js
|
|
506
409
|
var require_permessage_deflate = __commonJS({
|
|
507
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
410
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/permessage-deflate.js"(exports3, module3) {
|
|
508
411
|
"use strict";
|
|
509
412
|
var zlib = require("zlib");
|
|
510
413
|
var bufferUtil = require_buffer_util();
|
|
@@ -875,15 +778,19 @@ var require_permessage_deflate = __commonJS({
|
|
|
875
778
|
}
|
|
876
779
|
function inflateOnError(err) {
|
|
877
780
|
this[kPerMessageDeflate]._inflate = null;
|
|
781
|
+
if (this[kError]) {
|
|
782
|
+
this[kCallback](this[kError]);
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
878
785
|
err[kStatusCode] = 1007;
|
|
879
786
|
this[kCallback](err);
|
|
880
787
|
}
|
|
881
788
|
}
|
|
882
789
|
});
|
|
883
790
|
|
|
884
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
791
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/validation.js
|
|
885
792
|
var require_validation = __commonJS({
|
|
886
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
793
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/validation.js"(exports3, module3) {
|
|
887
794
|
"use strict";
|
|
888
795
|
var { isUtf8 } = require("buffer");
|
|
889
796
|
var { hasBlob } = require_constants();
|
|
@@ -1082,9 +989,9 @@ var require_validation = __commonJS({
|
|
|
1082
989
|
}
|
|
1083
990
|
});
|
|
1084
991
|
|
|
1085
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
992
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/receiver.js
|
|
1086
993
|
var require_receiver = __commonJS({
|
|
1087
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
994
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/receiver.js"(exports3, module3) {
|
|
1088
995
|
"use strict";
|
|
1089
996
|
var { Writable } = require("stream");
|
|
1090
997
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1674,9 +1581,9 @@ var require_receiver = __commonJS({
|
|
|
1674
1581
|
}
|
|
1675
1582
|
});
|
|
1676
1583
|
|
|
1677
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
1584
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/sender.js
|
|
1678
1585
|
var require_sender = __commonJS({
|
|
1679
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
1586
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/sender.js"(exports3, module3) {
|
|
1680
1587
|
"use strict";
|
|
1681
1588
|
var { Duplex } = require("stream");
|
|
1682
1589
|
var { randomFillSync: randomFillSync2 } = require("crypto");
|
|
@@ -2131,7 +2038,7 @@ var require_sender = __commonJS({
|
|
|
2131
2038
|
/**
|
|
2132
2039
|
* Sends a frame.
|
|
2133
2040
|
*
|
|
2134
|
-
* @param {Buffer[]} list The frame to send
|
|
2041
|
+
* @param {(Buffer | String)[]} list The frame to send
|
|
2135
2042
|
* @param {Function} [cb] Callback
|
|
2136
2043
|
* @private
|
|
2137
2044
|
*/
|
|
@@ -2162,9 +2069,9 @@ var require_sender = __commonJS({
|
|
|
2162
2069
|
}
|
|
2163
2070
|
});
|
|
2164
2071
|
|
|
2165
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
2072
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/event-target.js
|
|
2166
2073
|
var require_event_target = __commonJS({
|
|
2167
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
2074
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/event-target.js"(exports3, module3) {
|
|
2168
2075
|
"use strict";
|
|
2169
2076
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
2170
2077
|
var kCode = Symbol("kCode");
|
|
@@ -2391,9 +2298,9 @@ var require_event_target = __commonJS({
|
|
|
2391
2298
|
}
|
|
2392
2299
|
});
|
|
2393
2300
|
|
|
2394
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
2301
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/extension.js
|
|
2395
2302
|
var require_extension = __commonJS({
|
|
2396
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
2303
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/extension.js"(exports3, module3) {
|
|
2397
2304
|
"use strict";
|
|
2398
2305
|
var { tokenChars } = require_validation();
|
|
2399
2306
|
function push(dest, name2, elem) {
|
|
@@ -2544,9 +2451,9 @@ var require_extension = __commonJS({
|
|
|
2544
2451
|
}
|
|
2545
2452
|
});
|
|
2546
2453
|
|
|
2547
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
2454
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/websocket.js
|
|
2548
2455
|
var require_websocket = __commonJS({
|
|
2549
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
2456
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/websocket.js"(exports3, module3) {
|
|
2550
2457
|
"use strict";
|
|
2551
2458
|
var EventEmitter = require("events");
|
|
2552
2459
|
var https = require("https");
|
|
@@ -3064,7 +2971,7 @@ var require_websocket = __commonJS({
|
|
|
3064
2971
|
const isIpcUrl = parsedUrl.protocol === "ws+unix:";
|
|
3065
2972
|
let invalidUrlMessage;
|
|
3066
2973
|
if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) {
|
|
3067
|
-
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`;
|
|
2974
|
+
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;
|
|
3068
2975
|
} else if (isIpcUrl && !parsedUrl.pathname) {
|
|
3069
2976
|
invalidUrlMessage = "The URL's pathname is empty";
|
|
3070
2977
|
} else if (parsedUrl.hash) {
|
|
@@ -3427,9 +3334,107 @@ var require_websocket = __commonJS({
|
|
|
3427
3334
|
}
|
|
3428
3335
|
});
|
|
3429
3336
|
|
|
3430
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
3337
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/stream.js
|
|
3338
|
+
var require_stream = __commonJS({
|
|
3339
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/stream.js"(exports3, module3) {
|
|
3340
|
+
"use strict";
|
|
3341
|
+
var WebSocket2 = require_websocket();
|
|
3342
|
+
var { Duplex } = require("stream");
|
|
3343
|
+
function emitClose(stream) {
|
|
3344
|
+
stream.emit("close");
|
|
3345
|
+
}
|
|
3346
|
+
function duplexOnEnd() {
|
|
3347
|
+
if (!this.destroyed && this._writableState.finished) {
|
|
3348
|
+
this.destroy();
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
function duplexOnError(err) {
|
|
3352
|
+
this.removeListener("error", duplexOnError);
|
|
3353
|
+
this.destroy();
|
|
3354
|
+
if (this.listenerCount("error") === 0) {
|
|
3355
|
+
this.emit("error", err);
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
function createWebSocketStream2(ws, options) {
|
|
3359
|
+
let terminateOnDestroy = true;
|
|
3360
|
+
const duplex = new Duplex({
|
|
3361
|
+
...options,
|
|
3362
|
+
autoDestroy: false,
|
|
3363
|
+
emitClose: false,
|
|
3364
|
+
objectMode: false,
|
|
3365
|
+
writableObjectMode: false
|
|
3366
|
+
});
|
|
3367
|
+
ws.on("message", function message(msg, isBinary) {
|
|
3368
|
+
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
3369
|
+
if (!duplex.push(data)) ws.pause();
|
|
3370
|
+
});
|
|
3371
|
+
ws.once("error", function error(err) {
|
|
3372
|
+
if (duplex.destroyed) return;
|
|
3373
|
+
terminateOnDestroy = false;
|
|
3374
|
+
duplex.destroy(err);
|
|
3375
|
+
});
|
|
3376
|
+
ws.once("close", function close() {
|
|
3377
|
+
if (duplex.destroyed) return;
|
|
3378
|
+
duplex.push(null);
|
|
3379
|
+
});
|
|
3380
|
+
duplex._destroy = function(err, callback) {
|
|
3381
|
+
if (ws.readyState === ws.CLOSED) {
|
|
3382
|
+
callback(err);
|
|
3383
|
+
process.nextTick(emitClose, duplex);
|
|
3384
|
+
return;
|
|
3385
|
+
}
|
|
3386
|
+
let called = false;
|
|
3387
|
+
ws.once("error", function error(err2) {
|
|
3388
|
+
called = true;
|
|
3389
|
+
callback(err2);
|
|
3390
|
+
});
|
|
3391
|
+
ws.once("close", function close() {
|
|
3392
|
+
if (!called) callback(err);
|
|
3393
|
+
process.nextTick(emitClose, duplex);
|
|
3394
|
+
});
|
|
3395
|
+
if (terminateOnDestroy) ws.terminate();
|
|
3396
|
+
};
|
|
3397
|
+
duplex._final = function(callback) {
|
|
3398
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
3399
|
+
ws.once("open", function open() {
|
|
3400
|
+
duplex._final(callback);
|
|
3401
|
+
});
|
|
3402
|
+
return;
|
|
3403
|
+
}
|
|
3404
|
+
if (ws._socket === null) return;
|
|
3405
|
+
if (ws._socket._writableState.finished) {
|
|
3406
|
+
callback();
|
|
3407
|
+
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
3408
|
+
} else {
|
|
3409
|
+
ws._socket.once("finish", function finish() {
|
|
3410
|
+
callback();
|
|
3411
|
+
});
|
|
3412
|
+
ws.close();
|
|
3413
|
+
}
|
|
3414
|
+
};
|
|
3415
|
+
duplex._read = function() {
|
|
3416
|
+
if (ws.isPaused) ws.resume();
|
|
3417
|
+
};
|
|
3418
|
+
duplex._write = function(chunk, encoding, callback) {
|
|
3419
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
3420
|
+
ws.once("open", function open() {
|
|
3421
|
+
duplex._write(chunk, encoding, callback);
|
|
3422
|
+
});
|
|
3423
|
+
return;
|
|
3424
|
+
}
|
|
3425
|
+
ws.send(chunk, callback);
|
|
3426
|
+
};
|
|
3427
|
+
duplex.on("end", duplexOnEnd);
|
|
3428
|
+
duplex.on("error", duplexOnError);
|
|
3429
|
+
return duplex;
|
|
3430
|
+
}
|
|
3431
|
+
module3.exports = createWebSocketStream2;
|
|
3432
|
+
}
|
|
3433
|
+
});
|
|
3434
|
+
|
|
3435
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/subprotocol.js
|
|
3431
3436
|
var require_subprotocol = __commonJS({
|
|
3432
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
3437
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/subprotocol.js"(exports3, module3) {
|
|
3433
3438
|
"use strict";
|
|
3434
3439
|
var { tokenChars } = require_validation();
|
|
3435
3440
|
function parse(header) {
|
|
@@ -3472,9 +3477,9 @@ var require_subprotocol = __commonJS({
|
|
|
3472
3477
|
}
|
|
3473
3478
|
});
|
|
3474
3479
|
|
|
3475
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
3480
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/websocket-server.js
|
|
3476
3481
|
var require_websocket_server = __commonJS({
|
|
3477
|
-
"../node_modules/.pnpm/ws@8.18.
|
|
3482
|
+
"../node_modules/.pnpm/ws@8.18.2/node_modules/ws/lib/websocket-server.js"(exports3, module3) {
|
|
3478
3483
|
"use strict";
|
|
3479
3484
|
var EventEmitter = require("events");
|
|
3480
3485
|
var http = require("http");
|
|
@@ -4666,9 +4671,9 @@ var require_ms = __commonJS({
|
|
|
4666
4671
|
}
|
|
4667
4672
|
});
|
|
4668
4673
|
|
|
4669
|
-
// ../node_modules/.pnpm/debug@4.4.
|
|
4674
|
+
// ../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
4670
4675
|
var require_common = __commonJS({
|
|
4671
|
-
"../node_modules/.pnpm/debug@4.4.
|
|
4676
|
+
"../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/common.js"(exports3, module3) {
|
|
4672
4677
|
function setup(env) {
|
|
4673
4678
|
createDebug.debug = createDebug;
|
|
4674
4679
|
createDebug.default = createDebug;
|
|
@@ -4769,7 +4774,7 @@ var require_common = __commonJS({
|
|
|
4769
4774
|
createDebug.namespaces = namespaces;
|
|
4770
4775
|
createDebug.names = [];
|
|
4771
4776
|
createDebug.skips = [];
|
|
4772
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(
|
|
4777
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
4773
4778
|
for (const ns of split) {
|
|
4774
4779
|
if (ns[0] === "-") {
|
|
4775
4780
|
createDebug.skips.push(ns.slice(1));
|
|
@@ -4843,9 +4848,9 @@ var require_common = __commonJS({
|
|
|
4843
4848
|
}
|
|
4844
4849
|
});
|
|
4845
4850
|
|
|
4846
|
-
// ../node_modules/.pnpm/debug@4.4.
|
|
4851
|
+
// ../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
4847
4852
|
var require_browser = __commonJS({
|
|
4848
|
-
"../node_modules/.pnpm/debug@4.4.
|
|
4853
|
+
"../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports3, module3) {
|
|
4849
4854
|
exports3.formatArgs = formatArgs;
|
|
4850
4855
|
exports3.save = save;
|
|
4851
4856
|
exports3.load = load;
|
|
@@ -4987,7 +4992,7 @@ var require_browser = __commonJS({
|
|
|
4987
4992
|
function load() {
|
|
4988
4993
|
let r;
|
|
4989
4994
|
try {
|
|
4990
|
-
r = exports3.storage.getItem("debug");
|
|
4995
|
+
r = exports3.storage.getItem("debug") || exports3.storage.getItem("DEBUG");
|
|
4991
4996
|
} catch (error) {
|
|
4992
4997
|
}
|
|
4993
4998
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -5122,9 +5127,9 @@ var require_supports_color = __commonJS({
|
|
|
5122
5127
|
}
|
|
5123
5128
|
});
|
|
5124
5129
|
|
|
5125
|
-
// ../node_modules/.pnpm/debug@4.4.
|
|
5130
|
+
// ../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
5126
5131
|
var require_node = __commonJS({
|
|
5127
|
-
"../node_modules/.pnpm/debug@4.4.
|
|
5132
|
+
"../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/node.js"(exports3, module3) {
|
|
5128
5133
|
var tty = require("tty");
|
|
5129
5134
|
var util = require("util");
|
|
5130
5135
|
exports3.init = init2;
|
|
@@ -5296,9 +5301,9 @@ var require_node = __commonJS({
|
|
|
5296
5301
|
}
|
|
5297
5302
|
});
|
|
5298
5303
|
|
|
5299
|
-
// ../node_modules/.pnpm/debug@4.4.
|
|
5304
|
+
// ../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
5300
5305
|
var require_src = __commonJS({
|
|
5301
|
-
"../node_modules/.pnpm/debug@4.4.
|
|
5306
|
+
"../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/index.js"(exports3, module3) {
|
|
5302
5307
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
5303
5308
|
module3.exports = require_browser();
|
|
5304
5309
|
} else {
|
|
@@ -19577,16 +19582,16 @@ var require_type = __commonJS({
|
|
|
19577
19582
|
}
|
|
19578
19583
|
});
|
|
19579
19584
|
|
|
19580
|
-
// ../node_modules/.pnpm/object-inspect@1.13.
|
|
19585
|
+
// ../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js
|
|
19581
19586
|
var require_util_inspect = __commonJS({
|
|
19582
|
-
"../node_modules/.pnpm/object-inspect@1.13.
|
|
19587
|
+
"../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js"(exports3, module3) {
|
|
19583
19588
|
module3.exports = require("util").inspect;
|
|
19584
19589
|
}
|
|
19585
19590
|
});
|
|
19586
19591
|
|
|
19587
|
-
// ../node_modules/.pnpm/object-inspect@1.13.
|
|
19592
|
+
// ../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/index.js
|
|
19588
19593
|
var require_object_inspect = __commonJS({
|
|
19589
|
-
"../node_modules/.pnpm/object-inspect@1.13.
|
|
19594
|
+
"../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/index.js"(exports3, module3) {
|
|
19590
19595
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
19591
19596
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
19592
19597
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -19841,26 +19846,29 @@ var require_object_inspect = __commonJS({
|
|
|
19841
19846
|
function quote(s) {
|
|
19842
19847
|
return $replace.call(String(s), /"/g, """);
|
|
19843
19848
|
}
|
|
19849
|
+
function canTrustToString(obj) {
|
|
19850
|
+
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
19851
|
+
}
|
|
19844
19852
|
function isArray2(obj) {
|
|
19845
|
-
return toStr(obj) === "[object Array]" && (
|
|
19853
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
19846
19854
|
}
|
|
19847
19855
|
function isDate(obj) {
|
|
19848
|
-
return toStr(obj) === "[object Date]" && (
|
|
19856
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
19849
19857
|
}
|
|
19850
19858
|
function isRegExp(obj) {
|
|
19851
|
-
return toStr(obj) === "[object RegExp]" && (
|
|
19859
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
19852
19860
|
}
|
|
19853
19861
|
function isError(obj) {
|
|
19854
|
-
return toStr(obj) === "[object Error]" && (
|
|
19862
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
19855
19863
|
}
|
|
19856
19864
|
function isString(obj) {
|
|
19857
|
-
return toStr(obj) === "[object String]" && (
|
|
19865
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
19858
19866
|
}
|
|
19859
19867
|
function isNumber(obj) {
|
|
19860
|
-
return toStr(obj) === "[object Number]" && (
|
|
19868
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
19861
19869
|
}
|
|
19862
19870
|
function isBoolean(obj) {
|
|
19863
|
-
return toStr(obj) === "[object Boolean]" && (
|
|
19871
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
19864
19872
|
}
|
|
19865
19873
|
function isSymbol(obj) {
|
|
19866
19874
|
if (hasShammedSymbols) {
|
|
@@ -20555,33 +20563,33 @@ var require_function_bind = __commonJS({
|
|
|
20555
20563
|
}
|
|
20556
20564
|
});
|
|
20557
20565
|
|
|
20558
|
-
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20566
|
+
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
|
|
20559
20567
|
var require_functionCall = __commonJS({
|
|
20560
|
-
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20568
|
+
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports3, module3) {
|
|
20561
20569
|
"use strict";
|
|
20562
20570
|
module3.exports = Function.prototype.call;
|
|
20563
20571
|
}
|
|
20564
20572
|
});
|
|
20565
20573
|
|
|
20566
|
-
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20574
|
+
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
|
|
20567
20575
|
var require_functionApply = __commonJS({
|
|
20568
|
-
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20576
|
+
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports3, module3) {
|
|
20569
20577
|
"use strict";
|
|
20570
20578
|
module3.exports = Function.prototype.apply;
|
|
20571
20579
|
}
|
|
20572
20580
|
});
|
|
20573
20581
|
|
|
20574
|
-
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20582
|
+
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
|
|
20575
20583
|
var require_reflectApply = __commonJS({
|
|
20576
|
-
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20584
|
+
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports3, module3) {
|
|
20577
20585
|
"use strict";
|
|
20578
20586
|
module3.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
20579
20587
|
}
|
|
20580
20588
|
});
|
|
20581
20589
|
|
|
20582
|
-
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20590
|
+
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
|
|
20583
20591
|
var require_actualApply = __commonJS({
|
|
20584
|
-
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20592
|
+
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports3, module3) {
|
|
20585
20593
|
"use strict";
|
|
20586
20594
|
var bind = require_function_bind();
|
|
20587
20595
|
var $apply = require_functionApply();
|
|
@@ -20591,9 +20599,9 @@ var require_actualApply = __commonJS({
|
|
|
20591
20599
|
}
|
|
20592
20600
|
});
|
|
20593
20601
|
|
|
20594
|
-
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20602
|
+
// ../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
|
|
20595
20603
|
var require_call_bind_apply_helpers = __commonJS({
|
|
20596
|
-
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.
|
|
20604
|
+
"../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports3, module3) {
|
|
20597
20605
|
"use strict";
|
|
20598
20606
|
var bind = require_function_bind();
|
|
20599
20607
|
var $TypeError = require_type();
|
|
@@ -20670,9 +20678,9 @@ var require_hasown = __commonJS({
|
|
|
20670
20678
|
}
|
|
20671
20679
|
});
|
|
20672
20680
|
|
|
20673
|
-
// ../node_modules/.pnpm/get-intrinsic@1.
|
|
20681
|
+
// ../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
|
|
20674
20682
|
var require_get_intrinsic = __commonJS({
|
|
20675
|
-
"../node_modules/.pnpm/get-intrinsic@1.
|
|
20683
|
+
"../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports3, module3) {
|
|
20676
20684
|
"use strict";
|
|
20677
20685
|
var undefined2;
|
|
20678
20686
|
var $Object = require_es_object_atoms();
|
|
@@ -20748,6 +20756,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
20748
20756
|
"%eval%": eval,
|
|
20749
20757
|
// eslint-disable-line no-eval
|
|
20750
20758
|
"%EvalError%": $EvalError,
|
|
20759
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
20751
20760
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
20752
20761
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
20753
20762
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
@@ -21000,20 +21009,23 @@ var require_get_intrinsic = __commonJS({
|
|
|
21000
21009
|
}
|
|
21001
21010
|
});
|
|
21002
21011
|
|
|
21003
|
-
// ../node_modules/.pnpm/call-bound@1.0.
|
|
21012
|
+
// ../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
21004
21013
|
var require_call_bound = __commonJS({
|
|
21005
|
-
"../node_modules/.pnpm/call-bound@1.0.
|
|
21014
|
+
"../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports3, module3) {
|
|
21006
21015
|
"use strict";
|
|
21007
21016
|
var GetIntrinsic = require_get_intrinsic();
|
|
21008
21017
|
var callBindBasic = require_call_bind_apply_helpers();
|
|
21009
21018
|
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
21010
21019
|
module3.exports = function callBoundIntrinsic(name2, allowMissing) {
|
|
21011
21020
|
var intrinsic = (
|
|
21012
|
-
/** @type {
|
|
21021
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
21013
21022
|
GetIntrinsic(name2, !!allowMissing)
|
|
21014
21023
|
);
|
|
21015
21024
|
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
21016
|
-
return callBindBasic(
|
|
21025
|
+
return callBindBasic(
|
|
21026
|
+
/** @type {const} */
|
|
21027
|
+
[intrinsic]
|
|
21028
|
+
);
|
|
21017
21029
|
}
|
|
21018
21030
|
return intrinsic;
|
|
21019
21031
|
};
|
|
@@ -26011,13 +26023,14 @@ var require_cookie_signature = __commonJS({
|
|
|
26011
26023
|
}
|
|
26012
26024
|
});
|
|
26013
26025
|
|
|
26014
|
-
// ../node_modules/.pnpm/cookie@0.7.
|
|
26026
|
+
// ../node_modules/.pnpm/cookie@0.7.2/node_modules/cookie/index.js
|
|
26015
26027
|
var require_cookie = __commonJS({
|
|
26016
|
-
"../node_modules/.pnpm/cookie@0.7.
|
|
26028
|
+
"../node_modules/.pnpm/cookie@0.7.2/node_modules/cookie/index.js"(exports3) {
|
|
26017
26029
|
"use strict";
|
|
26018
26030
|
exports3.parse = parse;
|
|
26019
26031
|
exports3.serialize = serialize;
|
|
26020
26032
|
var __toString = Object.prototype.toString;
|
|
26033
|
+
var __hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
26021
26034
|
var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
26022
26035
|
var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
|
|
26023
26036
|
var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
|
@@ -26046,7 +26059,7 @@ var require_cookie = __commonJS({
|
|
|
26046
26059
|
var keyStartIdx = startIndex(str, index, eqIdx);
|
|
26047
26060
|
var keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
|
|
26048
26061
|
var key = str.slice(keyStartIdx, keyEndIdx);
|
|
26049
|
-
if (!
|
|
26062
|
+
if (!__hasOwnProperty.call(obj, key)) {
|
|
26050
26063
|
var valStartIdx = startIndex(str, eqIdx + 1, endIdx);
|
|
26051
26064
|
var valEndIdx = endIndex(str, endIdx, valStartIdx);
|
|
26052
26065
|
if (str.charCodeAt(valStartIdx) === 34 && str.charCodeAt(valEndIdx - 1) === 34) {
|
|
@@ -30778,7 +30791,7 @@ var WsReadyStates;
|
|
|
30778
30791
|
WsReadyStates2[WsReadyStates2["Closed"] = 3] = "Closed";
|
|
30779
30792
|
})(WsReadyStates || (WsReadyStates = {}));
|
|
30780
30793
|
|
|
30781
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30794
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/map.js
|
|
30782
30795
|
var create2 = () => /* @__PURE__ */ new Map();
|
|
30783
30796
|
var copy = (m) => {
|
|
30784
30797
|
const r = create2();
|
|
@@ -30803,10 +30816,10 @@ var any = (m, f) => {
|
|
|
30803
30816
|
return false;
|
|
30804
30817
|
};
|
|
30805
30818
|
|
|
30806
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30819
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/set.js
|
|
30807
30820
|
var create3 = () => /* @__PURE__ */ new Set();
|
|
30808
30821
|
|
|
30809
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30822
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/array.js
|
|
30810
30823
|
var last = (arr) => arr[arr.length - 1];
|
|
30811
30824
|
var appendTo = (dest, src) => {
|
|
30812
30825
|
for (let i = 0; i < src.length; i++) {
|
|
@@ -30816,7 +30829,7 @@ var appendTo = (dest, src) => {
|
|
|
30816
30829
|
var from = Array.from;
|
|
30817
30830
|
var isArray = Array.isArray;
|
|
30818
30831
|
|
|
30819
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30832
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/observable.js
|
|
30820
30833
|
var ObservableV2 = class {
|
|
30821
30834
|
constructor() {
|
|
30822
30835
|
this._observers = create2();
|
|
@@ -30887,7 +30900,7 @@ var ObservableV2 = class {
|
|
|
30887
30900
|
}
|
|
30888
30901
|
};
|
|
30889
30902
|
|
|
30890
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30903
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/math.js
|
|
30891
30904
|
var floor2 = Math.floor;
|
|
30892
30905
|
var abs = Math.abs;
|
|
30893
30906
|
var min2 = (a, b) => a < b ? a : b;
|
|
@@ -30895,7 +30908,7 @@ var max2 = (a, b) => a > b ? a : b;
|
|
|
30895
30908
|
var isNaN2 = Number.isNaN;
|
|
30896
30909
|
var isNegativeZero = (n) => n !== 0 ? n < 0 : 1 / n < 0;
|
|
30897
30910
|
|
|
30898
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30911
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/binary.js
|
|
30899
30912
|
var BIT1 = 1;
|
|
30900
30913
|
var BIT2 = 2;
|
|
30901
30914
|
var BIT3 = 4;
|
|
@@ -30937,7 +30950,7 @@ var BITS29 = BIT30 - 1;
|
|
|
30937
30950
|
var BITS30 = BIT31 - 1;
|
|
30938
30951
|
var BITS31 = 2147483647;
|
|
30939
30952
|
|
|
30940
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30953
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/number.js
|
|
30941
30954
|
var MAX_SAFE_INTEGER2 = Number.MAX_SAFE_INTEGER;
|
|
30942
30955
|
var MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER;
|
|
30943
30956
|
var LOWEST_INT32 = 1 << 31;
|
|
@@ -30945,7 +30958,7 @@ var isInteger = Number.isInteger || ((num) => typeof num === "number" && isFinit
|
|
|
30945
30958
|
var isNaN3 = Number.isNaN;
|
|
30946
30959
|
var parseInt2 = Number.parseInt;
|
|
30947
30960
|
|
|
30948
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30961
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/string.js
|
|
30949
30962
|
var fromCharCode = String.fromCharCode;
|
|
30950
30963
|
var fromCodePoint = String.fromCodePoint;
|
|
30951
30964
|
var MAX_UTF16_CHARACTER = fromCharCode(65535);
|
|
@@ -30975,7 +30988,7 @@ if (utf8TextDecoder2 && utf8TextDecoder2.decode(new Uint8Array()).length === 1)
|
|
|
30975
30988
|
utf8TextDecoder2 = null;
|
|
30976
30989
|
}
|
|
30977
30990
|
|
|
30978
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
30991
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/encoding.js
|
|
30979
30992
|
var Encoder = class {
|
|
30980
30993
|
constructor() {
|
|
30981
30994
|
this.cpos = 0;
|
|
@@ -31282,7 +31295,7 @@ var StringEncoder = class {
|
|
|
31282
31295
|
}
|
|
31283
31296
|
};
|
|
31284
31297
|
|
|
31285
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31298
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/error.js
|
|
31286
31299
|
var create4 = (s) => new Error(s);
|
|
31287
31300
|
var methodUnimplemented = () => {
|
|
31288
31301
|
throw create4("Method unimplemented");
|
|
@@ -31291,7 +31304,7 @@ var unexpectedCase = () => {
|
|
|
31291
31304
|
throw create4("Unexpected case");
|
|
31292
31305
|
};
|
|
31293
31306
|
|
|
31294
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31307
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/decoding.js
|
|
31295
31308
|
var errorUnexpectedEndOfArray2 = create4("Unexpected end of array");
|
|
31296
31309
|
var errorIntegerOutOfRange2 = create4("Integer out of Range");
|
|
31297
31310
|
var Decoder = class {
|
|
@@ -31534,7 +31547,7 @@ var StringDecoder = class {
|
|
|
31534
31547
|
}
|
|
31535
31548
|
};
|
|
31536
31549
|
|
|
31537
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31550
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/webcrypto.node.js
|
|
31538
31551
|
var import_node_crypto = require("node:crypto");
|
|
31539
31552
|
var subtle = (
|
|
31540
31553
|
/** @type {any} */
|
|
@@ -31545,7 +31558,7 @@ var getRandomValues = (
|
|
|
31545
31558
|
import_node_crypto.webcrypto.getRandomValues.bind(import_node_crypto.webcrypto)
|
|
31546
31559
|
);
|
|
31547
31560
|
|
|
31548
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31561
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/random.js
|
|
31549
31562
|
var uint32 = () => getRandomValues(new Uint32Array(1))[0];
|
|
31550
31563
|
var uuidv4Template = "10000000-1000-4000-8000" + -1e11;
|
|
31551
31564
|
var uuidv4 = () => uuidv4Template.replace(
|
|
@@ -31554,20 +31567,20 @@ var uuidv4 = () => uuidv4Template.replace(
|
|
|
31554
31567
|
(c) => (c ^ uint32() & 15 >> c / 4).toString(16)
|
|
31555
31568
|
);
|
|
31556
31569
|
|
|
31557
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31570
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/time.js
|
|
31558
31571
|
var getUnixTime = Date.now;
|
|
31559
31572
|
|
|
31560
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31573
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/promise.js
|
|
31561
31574
|
var create5 = (f) => (
|
|
31562
31575
|
/** @type {Promise<T>} */
|
|
31563
31576
|
new Promise(f)
|
|
31564
31577
|
);
|
|
31565
31578
|
var all = Promise.all.bind(Promise);
|
|
31566
31579
|
|
|
31567
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31580
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/conditions.js
|
|
31568
31581
|
var undefinedToNull = (v) => v === void 0 ? null : v;
|
|
31569
31582
|
|
|
31570
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31583
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/storage.js
|
|
31571
31584
|
var VarStoragePolyfill = class {
|
|
31572
31585
|
constructor() {
|
|
31573
31586
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -31597,7 +31610,7 @@ try {
|
|
|
31597
31610
|
}
|
|
31598
31611
|
var varStorage = _localStorage;
|
|
31599
31612
|
|
|
31600
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31613
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/object.js
|
|
31601
31614
|
var assign = Object.assign;
|
|
31602
31615
|
var keys = Object.keys;
|
|
31603
31616
|
var forEach = (obj, f) => {
|
|
@@ -31633,7 +31646,7 @@ var deepFreeze = (o) => {
|
|
|
31633
31646
|
return freeze(o);
|
|
31634
31647
|
};
|
|
31635
31648
|
|
|
31636
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31649
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/function.js
|
|
31637
31650
|
var callAll = (fs, args2, i = 0) => {
|
|
31638
31651
|
try {
|
|
31639
31652
|
for (; i < fs.length; i++) {
|
|
@@ -31648,7 +31661,7 @@ var callAll = (fs, args2, i = 0) => {
|
|
|
31648
31661
|
var id = (a) => a;
|
|
31649
31662
|
var isOneOf = (value, options) => options.includes(value);
|
|
31650
31663
|
|
|
31651
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31664
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/environment.js
|
|
31652
31665
|
var isNode = typeof process !== "undefined" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
|
|
31653
31666
|
var isMac = typeof navigator !== "undefined" ? /Mac/.test(navigator.platform) : false;
|
|
31654
31667
|
var params;
|
|
@@ -31701,7 +31714,7 @@ var forceColor = isNode && isOneOf(process.env.FORCE_COLOR, ["true", "1", "2"]);
|
|
|
31701
31714
|
var supportsColor = forceColor || !hasParam("--no-colors") && // @todo deprecate --no-colors
|
|
31702
31715
|
!hasConf("no-color") && (!isNode || process.stdout.isTTY) && (!isNode || hasParam("--color") || getVariable("COLORTERM") !== null || (getVariable("TERM") || "").includes("color"));
|
|
31703
31716
|
|
|
31704
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31717
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/buffer.js
|
|
31705
31718
|
var createUint8ArrayFromLen = (len) => new Uint8Array(len);
|
|
31706
31719
|
var copyUint8Array = (uint8Array) => {
|
|
31707
31720
|
const newBuf = createUint8ArrayFromLen(uint8Array.byteLength);
|
|
@@ -31709,10 +31722,10 @@ var copyUint8Array = (uint8Array) => {
|
|
|
31709
31722
|
return newBuf;
|
|
31710
31723
|
};
|
|
31711
31724
|
|
|
31712
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31725
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/symbol.js
|
|
31713
31726
|
var create6 = Symbol;
|
|
31714
31727
|
|
|
31715
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31728
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/logging.common.js
|
|
31716
31729
|
var BOLD = create6();
|
|
31717
31730
|
var UNBOLD = create6();
|
|
31718
31731
|
var BLUE = create6();
|
|
@@ -31754,7 +31767,7 @@ var computeNoColorLoggingArgs = (args2) => {
|
|
|
31754
31767
|
};
|
|
31755
31768
|
var lastLoggingTime = getUnixTime();
|
|
31756
31769
|
|
|
31757
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31770
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/logging.node.js
|
|
31758
31771
|
var _nodeStyleMap = {
|
|
31759
31772
|
[BOLD]: "\x1B[1m",
|
|
31760
31773
|
[UNBOLD]: "\x1B[2m",
|
|
@@ -31810,7 +31823,7 @@ var warn = (...args2) => {
|
|
|
31810
31823
|
console.warn(...computeLoggingArgs(args2));
|
|
31811
31824
|
};
|
|
31812
31825
|
|
|
31813
|
-
// ../node_modules/.pnpm/lib0@0.2.
|
|
31826
|
+
// ../node_modules/.pnpm/lib0@0.2.108/node_modules/lib0/iterator.js
|
|
31814
31827
|
var createIterator = (next) => ({
|
|
31815
31828
|
/**
|
|
31816
31829
|
* @return {IterableIterator<T>}
|
|
@@ -38391,7 +38404,7 @@ function init(open, close) {
|
|
|
38391
38404
|
}
|
|
38392
38405
|
var kleur_default = $;
|
|
38393
38406
|
|
|
38394
|
-
// ../node_modules/.pnpm/uuid@11.0
|
|
38407
|
+
// ../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/stringify.js
|
|
38395
38408
|
var byteToHex = [];
|
|
38396
38409
|
for (let i = 0; i < 256; ++i) {
|
|
38397
38410
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -38400,7 +38413,7 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
38400
38413
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
38401
38414
|
}
|
|
38402
38415
|
|
|
38403
|
-
// ../node_modules/.pnpm/uuid@11.0
|
|
38416
|
+
// ../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/rng.js
|
|
38404
38417
|
var import_crypto = require("crypto");
|
|
38405
38418
|
var rnds8Pool = new Uint8Array(256);
|
|
38406
38419
|
var poolPtr = rnds8Pool.length;
|
|
@@ -38412,21 +38425,27 @@ function rng() {
|
|
|
38412
38425
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
38413
38426
|
}
|
|
38414
38427
|
|
|
38415
|
-
// ../node_modules/.pnpm/uuid@11.0
|
|
38428
|
+
// ../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/native.js
|
|
38416
38429
|
var import_crypto2 = require("crypto");
|
|
38417
38430
|
var native_default = { randomUUID: import_crypto2.randomUUID };
|
|
38418
38431
|
|
|
38419
|
-
// ../node_modules/.pnpm/uuid@11.0
|
|
38432
|
+
// ../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/v4.js
|
|
38420
38433
|
function v4(options, buf, offset) {
|
|
38421
38434
|
if (native_default.randomUUID && !buf && !options) {
|
|
38422
38435
|
return native_default.randomUUID();
|
|
38423
38436
|
}
|
|
38424
38437
|
options = options || {};
|
|
38425
|
-
const rnds = options.random
|
|
38438
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
38439
|
+
if (rnds.length < 16) {
|
|
38440
|
+
throw new Error("Random bytes length must be >= 16");
|
|
38441
|
+
}
|
|
38426
38442
|
rnds[6] = rnds[6] & 15 | 64;
|
|
38427
38443
|
rnds[8] = rnds[8] & 63 | 128;
|
|
38428
38444
|
if (buf) {
|
|
38429
38445
|
offset = offset || 0;
|
|
38446
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
38447
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
38448
|
+
}
|
|
38430
38449
|
for (let i = 0; i < 16; ++i) {
|
|
38431
38450
|
buf[offset + i] = rnds[i];
|
|
38432
38451
|
}
|
|
@@ -38439,7 +38458,7 @@ var v4_default = v4;
|
|
|
38439
38458
|
// ../node_modules/.pnpm/@hocuspocus+server@2.15.2_y-protocols@1.0.6_yjs@13.6.26__yjs@13.6.26/node_modules/@hocuspocus/server/dist/hocuspocus-server.esm.js
|
|
38440
38459
|
var import_http = require("http");
|
|
38441
38460
|
|
|
38442
|
-
// ../node_modules/.pnpm/ws@8.18.
|
|
38461
|
+
// ../node_modules/.pnpm/ws@8.18.2/node_modules/ws/wrapper.mjs
|
|
38443
38462
|
var import_stream = __toESM(require_stream(), 1);
|
|
38444
38463
|
var import_receiver = __toESM(require_receiver(), 1);
|
|
38445
38464
|
var import_sender = __toESM(require_sender(), 1);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-realtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-rc.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"directory": "realtime",
|
|
10
|
-
"url": "https://github.com/xwiki-contrib/cristal
|
|
10
|
+
"url": "git+https://github.com/xwiki-contrib/cristal.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://jira.xwiki.org/projects/CRISTAL/"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"express-ws": "5.0.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/express": "5.0.
|
|
22
|
+
"@types/express": "5.0.3",
|
|
23
23
|
"@types/express-ws": "3.0.5",
|
|
24
|
-
"esbuild": "0.25.
|
|
25
|
-
"tsx": "4.
|
|
24
|
+
"esbuild": "0.25.5",
|
|
25
|
+
"tsx": "4.20.2",
|
|
26
26
|
"typescript": "5.8.3",
|
|
27
27
|
"vite": "6.3.5"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "tsc --project tsconfig.json && esbuild ./src/index.ts --bundle --outfile=dist/index.
|
|
30
|
+
"build": "tsc --project tsconfig.json && esbuild ./src/index.ts --bundle --outfile=dist/index.cjs --platform=node",
|
|
31
31
|
"clean": "rimraf dist",
|
|
32
32
|
"dev": "tsx src/index.ts",
|
|
33
33
|
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
|