@dxos/hypercore 0.3.7-next.bfe6796 → 0.3.8-main.0ae9c21
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/lib/node/index.cjs
CHANGED
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __export = (target, all) => {
|
|
12
9
|
for (var name in all)
|
|
13
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,8 +26,74 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
26
|
mod
|
|
30
27
|
));
|
|
31
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
var node_exports = {};
|
|
30
|
+
__export(node_exports, {
|
|
31
|
+
HypercoreFactory: () => HypercoreFactory,
|
|
32
|
+
createAsyncIterator: () => createAsyncIterator,
|
|
33
|
+
createCodecEncoding: () => createCodecEncoding,
|
|
34
|
+
createCrypto: () => createCrypto,
|
|
35
|
+
createReadable: () => createReadable,
|
|
36
|
+
defaultFeedOptions: () => defaultFeedOptions,
|
|
37
|
+
defaultReadStreamOptions: () => defaultReadStreamOptions,
|
|
38
|
+
defaultReplicateOptions: () => defaultReplicateOptions,
|
|
39
|
+
defaultWriteStreamOptions: () => defaultWriteStreamOptions,
|
|
40
|
+
hypercore: () => export_hypercore
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(node_exports);
|
|
43
|
+
var import_sodium_universal = __toESM(require("sodium-universal"));
|
|
44
|
+
var import_node_util = __toESM(require("node:util"));
|
|
45
|
+
var import_sodium_native = __toESM(require("sodium-native"));
|
|
46
|
+
var import_node_timers = __toESM(require("node:timers"));
|
|
47
|
+
var import_node_os = __toESM(require("node:os"));
|
|
48
|
+
var import_node_tty = __toESM(require("node:tty"));
|
|
49
|
+
var import_node_events = __toESM(require("node:events"));
|
|
50
|
+
var import$sodium_universal_memory = __toESM(require("sodium-universal/memory"));
|
|
51
|
+
var import$sodium_universal_crypto_aead = __toESM(require("sodium-universal/crypto_aead"));
|
|
52
|
+
var import$sodium_universal_helpers = __toESM(require("sodium-universal/helpers"));
|
|
53
|
+
var import$sodium_universal_crypto_generichash = __toESM(require("sodium-universal/crypto_generichash"));
|
|
54
|
+
var import$sodium_universal_crypto_kx = __toESM(require("sodium-universal/crypto_kx"));
|
|
55
|
+
var import$sodium_universal_crypto_scalarmult = __toESM(require("sodium-universal/crypto_scalarmult"));
|
|
56
|
+
var import$streamx = __toESM(require("streamx"));
|
|
57
|
+
var import_node_util2 = require("node:util");
|
|
58
|
+
var import_crypto = require("@dxos/crypto");
|
|
59
|
+
var import_invariant = require("@dxos/invariant");
|
|
60
|
+
var import_util = require("@dxos/util");
|
|
61
|
+
var import_invariant2 = require("@dxos/invariant");
|
|
62
|
+
var import_random_access_storage = require("@dxos/random-access-storage");
|
|
63
|
+
var import_node_util3 = __toESM(require("node:util"));
|
|
64
|
+
var import_readable_stream = require("readable-stream");
|
|
65
|
+
var __create2 = Object.create;
|
|
66
|
+
var __defProp2 = Object.defineProperty;
|
|
67
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
68
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
69
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
70
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
71
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
72
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
73
|
+
}) : x)(function(x) {
|
|
74
|
+
if (typeof require !== "undefined")
|
|
75
|
+
return require.apply(this, arguments);
|
|
76
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
77
|
+
});
|
|
78
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
79
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
80
|
+
};
|
|
81
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
82
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
83
|
+
for (let key of __getOwnPropNames2(from))
|
|
84
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
85
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
86
|
+
}
|
|
87
|
+
return to;
|
|
88
|
+
};
|
|
89
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
90
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
91
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
92
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
93
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
94
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
95
|
+
mod
|
|
96
|
+
));
|
|
34
97
|
var require_last_one_wins = __commonJS({
|
|
35
98
|
"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js"(exports, module2) {
|
|
36
99
|
module2.exports = function(work) {
|
|
@@ -75,8 +138,6 @@ var require_last_one_wins = __commonJS({
|
|
|
75
138
|
}
|
|
76
139
|
}
|
|
77
140
|
});
|
|
78
|
-
|
|
79
|
-
// node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js
|
|
80
141
|
var require_unordered_array_remove = __commonJS({
|
|
81
142
|
"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js"(exports, module2) {
|
|
82
143
|
module2.exports = remove;
|
|
@@ -93,8 +154,6 @@ var require_unordered_array_remove = __commonJS({
|
|
|
93
154
|
}
|
|
94
155
|
}
|
|
95
156
|
});
|
|
96
|
-
|
|
97
|
-
// node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js
|
|
98
157
|
var require_unordered_set = __commonJS({
|
|
99
158
|
"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js"(exports) {
|
|
100
159
|
exports.add = add;
|
|
@@ -132,8 +191,6 @@ var require_unordered_set = __commonJS({
|
|
|
132
191
|
}
|
|
133
192
|
}
|
|
134
193
|
});
|
|
135
|
-
|
|
136
|
-
// node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js
|
|
137
194
|
var require_flat_tree = __commonJS({
|
|
138
195
|
"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js"(exports) {
|
|
139
196
|
exports.fullRoots = function(index, result) {
|
|
@@ -370,8 +427,6 @@ var require_flat_tree = __commonJS({
|
|
|
370
427
|
};
|
|
371
428
|
}
|
|
372
429
|
});
|
|
373
|
-
|
|
374
|
-
// node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js
|
|
375
430
|
var require_generator = __commonJS({
|
|
376
431
|
"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js"(exports, module2) {
|
|
377
432
|
var flat = require_flat_tree();
|
|
@@ -425,8 +480,6 @@ var require_generator = __commonJS({
|
|
|
425
480
|
};
|
|
426
481
|
}
|
|
427
482
|
});
|
|
428
|
-
|
|
429
|
-
// node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js
|
|
430
483
|
var require_codecs = __commonJS({
|
|
431
484
|
"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js"(exports, module2) {
|
|
432
485
|
module2.exports = codecs;
|
|
@@ -503,8 +556,6 @@ var require_codecs = __commonJS({
|
|
|
503
556
|
}
|
|
504
557
|
}
|
|
505
558
|
});
|
|
506
|
-
|
|
507
|
-
// node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js
|
|
508
559
|
var require_atomic_batcher = __commonJS({
|
|
509
560
|
"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js"(exports, module2) {
|
|
510
561
|
module2.exports = batcher;
|
|
@@ -566,8 +617,6 @@ var require_atomic_batcher = __commonJS({
|
|
|
566
617
|
}
|
|
567
618
|
}
|
|
568
619
|
});
|
|
569
|
-
|
|
570
|
-
// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
571
620
|
var require_inherits_browser = __commonJS({
|
|
572
621
|
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module2) {
|
|
573
622
|
if (typeof Object.create === "function") {
|
|
@@ -598,12 +647,10 @@ var require_inherits_browser = __commonJS({
|
|
|
598
647
|
}
|
|
599
648
|
}
|
|
600
649
|
});
|
|
601
|
-
|
|
602
|
-
// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
603
650
|
var require_inherits = __commonJS({
|
|
604
651
|
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module2) {
|
|
605
652
|
try {
|
|
606
|
-
util2 =
|
|
653
|
+
util2 = __require("node:util");
|
|
607
654
|
if (typeof util2.inherits !== "function")
|
|
608
655
|
throw "";
|
|
609
656
|
module2.exports = util2.inherits;
|
|
@@ -613,8 +660,6 @@ var require_inherits = __commonJS({
|
|
|
613
660
|
var util2;
|
|
614
661
|
}
|
|
615
662
|
});
|
|
616
|
-
|
|
617
|
-
// node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js
|
|
618
663
|
var require_encode = __commonJS({
|
|
619
664
|
"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js"(exports, module2) {
|
|
620
665
|
module2.exports = encode;
|
|
@@ -640,8 +685,6 @@ var require_encode = __commonJS({
|
|
|
640
685
|
}
|
|
641
686
|
}
|
|
642
687
|
});
|
|
643
|
-
|
|
644
|
-
// node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js
|
|
645
688
|
var require_decode = __commonJS({
|
|
646
689
|
"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js"(exports, module2) {
|
|
647
690
|
module2.exports = read;
|
|
@@ -664,8 +707,6 @@ var require_decode = __commonJS({
|
|
|
664
707
|
}
|
|
665
708
|
}
|
|
666
709
|
});
|
|
667
|
-
|
|
668
|
-
// node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js
|
|
669
710
|
var require_length = __commonJS({
|
|
670
711
|
"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js"(exports, module2) {
|
|
671
712
|
var N1 = Math.pow(2, 7);
|
|
@@ -682,8 +723,6 @@ var require_length = __commonJS({
|
|
|
682
723
|
};
|
|
683
724
|
}
|
|
684
725
|
});
|
|
685
|
-
|
|
686
|
-
// node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js
|
|
687
726
|
var require_varint = __commonJS({
|
|
688
727
|
"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js"(exports, module2) {
|
|
689
728
|
module2.exports = {
|
|
@@ -693,8 +732,6 @@ var require_varint = __commonJS({
|
|
|
693
732
|
};
|
|
694
733
|
}
|
|
695
734
|
});
|
|
696
|
-
|
|
697
|
-
// node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js
|
|
698
735
|
var require_buffer_alloc_unsafe = __commonJS({
|
|
699
736
|
"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js"(exports, module2) {
|
|
700
737
|
function allocUnsafe(size) {
|
|
@@ -713,8 +750,6 @@ var require_buffer_alloc_unsafe = __commonJS({
|
|
|
713
750
|
module2.exports = allocUnsafe;
|
|
714
751
|
}
|
|
715
752
|
});
|
|
716
|
-
|
|
717
|
-
// node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js
|
|
718
753
|
var require_bitfield_rle = __commonJS({
|
|
719
754
|
"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js"(exports, module2) {
|
|
720
755
|
var varint = require_varint();
|
|
@@ -857,8 +892,6 @@ var require_bitfield_rle = __commonJS({
|
|
|
857
892
|
}
|
|
858
893
|
}
|
|
859
894
|
});
|
|
860
|
-
|
|
861
|
-
// node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js
|
|
862
895
|
var require_memory_pager = __commonJS({
|
|
863
896
|
"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js"(exports, module2) {
|
|
864
897
|
module2.exports = Pager;
|
|
@@ -1006,8 +1039,6 @@ var require_memory_pager = __commonJS({
|
|
|
1006
1039
|
}
|
|
1007
1040
|
}
|
|
1008
1041
|
});
|
|
1009
|
-
|
|
1010
|
-
// node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js
|
|
1011
1042
|
var require_sparse_bitfield = __commonJS({
|
|
1012
1043
|
"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js"(exports, module2) {
|
|
1013
1044
|
var pager = require_memory_pager();
|
|
@@ -1091,8 +1122,6 @@ var require_sparse_bitfield = __commonJS({
|
|
|
1091
1122
|
}
|
|
1092
1123
|
}
|
|
1093
1124
|
});
|
|
1094
|
-
|
|
1095
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js
|
|
1096
1125
|
var require_bitfield = __commonJS({
|
|
1097
1126
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js"(exports, module2) {
|
|
1098
1127
|
var flat = require_flat_tree();
|
|
@@ -1379,8 +1408,6 @@ var require_bitfield = __commonJS({
|
|
|
1379
1408
|
}
|
|
1380
1409
|
}
|
|
1381
1410
|
});
|
|
1382
|
-
|
|
1383
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js
|
|
1384
1411
|
var require_tree_index = __commonJS({
|
|
1385
1412
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js"(exports, module2) {
|
|
1386
1413
|
var flat = require_flat_tree();
|
|
@@ -1546,8 +1573,6 @@ var require_tree_index = __commonJS({
|
|
|
1546
1573
|
}
|
|
1547
1574
|
}
|
|
1548
1575
|
});
|
|
1549
|
-
|
|
1550
|
-
// node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js
|
|
1551
1576
|
var require_buffer_fill = __commonJS({
|
|
1552
1577
|
"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js"(exports, module2) {
|
|
1553
1578
|
var hasFullSupport = function() {
|
|
@@ -1637,8 +1662,6 @@ var require_buffer_fill = __commonJS({
|
|
|
1637
1662
|
module2.exports = fill;
|
|
1638
1663
|
}
|
|
1639
1664
|
});
|
|
1640
|
-
|
|
1641
|
-
// node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js
|
|
1642
1665
|
var require_buffer_alloc = __commonJS({
|
|
1643
1666
|
"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js"(exports, module2) {
|
|
1644
1667
|
var bufferFill = require_buffer_fill();
|
|
@@ -1667,8 +1690,6 @@ var require_buffer_alloc = __commonJS({
|
|
|
1667
1690
|
};
|
|
1668
1691
|
}
|
|
1669
1692
|
});
|
|
1670
|
-
|
|
1671
|
-
// node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js
|
|
1672
1693
|
var require_uint64be = __commonJS({
|
|
1673
1694
|
"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js"(exports) {
|
|
1674
1695
|
var bufferAlloc = require_buffer_alloc();
|
|
@@ -1698,8 +1719,6 @@ var require_uint64be = __commonJS({
|
|
|
1698
1719
|
exports.decode.bytes = 8;
|
|
1699
1720
|
}
|
|
1700
1721
|
});
|
|
1701
|
-
|
|
1702
|
-
// node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js
|
|
1703
1722
|
var require_hypercore_cache = __commonJS({
|
|
1704
1723
|
"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js"(exports, module2) {
|
|
1705
1724
|
var DEFAULT_MAX_BYTE_SIZE = 1024 * 1024 * 16;
|
|
@@ -1802,8 +1821,6 @@ var require_hypercore_cache = __commonJS({
|
|
|
1802
1821
|
}
|
|
1803
1822
|
}
|
|
1804
1823
|
});
|
|
1805
|
-
|
|
1806
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js
|
|
1807
1824
|
var require_cache = __commonJS({
|
|
1808
1825
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js"(exports, module2) {
|
|
1809
1826
|
var HypercoreCache = require_hypercore_cache();
|
|
@@ -1832,8 +1849,6 @@ var require_cache = __commonJS({
|
|
|
1832
1849
|
module2.exports = createCache;
|
|
1833
1850
|
}
|
|
1834
1851
|
});
|
|
1835
|
-
|
|
1836
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js
|
|
1837
1852
|
var require_storage = __commonJS({
|
|
1838
1853
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js"(exports, module2) {
|
|
1839
1854
|
var uint64be = require_uint64be();
|
|
@@ -2233,8 +2248,6 @@ var require_storage = __commonJS({
|
|
|
2233
2248
|
}
|
|
2234
2249
|
}
|
|
2235
2250
|
});
|
|
2236
|
-
|
|
2237
|
-
// node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js
|
|
2238
2251
|
var require_uint64be2 = __commonJS({
|
|
2239
2252
|
"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js"(exports) {
|
|
2240
2253
|
var UINT_32_MAX = Math.pow(2, 32);
|
|
@@ -2263,11 +2276,9 @@ var require_uint64be2 = __commonJS({
|
|
|
2263
2276
|
exports.decode.bytes = 8;
|
|
2264
2277
|
}
|
|
2265
2278
|
});
|
|
2266
|
-
|
|
2267
|
-
// node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js
|
|
2268
2279
|
var require_hypercore_crypto = __commonJS({
|
|
2269
2280
|
"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js"(exports) {
|
|
2270
|
-
var sodium =
|
|
2281
|
+
var sodium = import_sodium_universal.default;
|
|
2271
2282
|
var uint64be = require_uint64be2();
|
|
2272
2283
|
var LEAF_TYPE = Buffer.from([0]);
|
|
2273
2284
|
var PARENT_TYPE = Buffer.from([1]);
|
|
@@ -2421,17 +2432,13 @@ var require_hypercore_crypto = __commonJS({
|
|
|
2421
2432
|
}
|
|
2422
2433
|
}
|
|
2423
2434
|
});
|
|
2424
|
-
|
|
2425
|
-
// node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js
|
|
2426
2435
|
var require_inspect_custom_symbol = __commonJS({
|
|
2427
2436
|
"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js"(exports, module2) {
|
|
2428
|
-
var util2 =
|
|
2437
|
+
var util2 = import_node_util.default;
|
|
2429
2438
|
var custom = util2.inspect.custom;
|
|
2430
2439
|
module2.exports = custom || Symbol.for("nodejs.util.inspect.custom");
|
|
2431
2440
|
}
|
|
2432
2441
|
});
|
|
2433
|
-
|
|
2434
|
-
// node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js
|
|
2435
2442
|
var require_pretty_hash = __commonJS({
|
|
2436
2443
|
"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js"(exports, module2) {
|
|
2437
2444
|
module2.exports = function prettyHash(buf) {
|
|
@@ -2444,8 +2451,6 @@ var require_pretty_hash = __commonJS({
|
|
|
2444
2451
|
};
|
|
2445
2452
|
}
|
|
2446
2453
|
});
|
|
2447
|
-
|
|
2448
|
-
// node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js
|
|
2449
2454
|
var require_nanoguard = __commonJS({
|
|
2450
2455
|
"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js"(exports, module2) {
|
|
2451
2456
|
module2.exports = class Nanoguard {
|
|
@@ -2518,8 +2523,6 @@ var require_nanoguard = __commonJS({
|
|
|
2518
2523
|
}
|
|
2519
2524
|
}
|
|
2520
2525
|
});
|
|
2521
|
-
|
|
2522
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js
|
|
2523
2526
|
var require_safe_buffer_equals = __commonJS({
|
|
2524
2527
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js"(exports, module2) {
|
|
2525
2528
|
module2.exports = function safeBufferEquals(a, b) {
|
|
@@ -2531,8 +2534,6 @@ var require_safe_buffer_equals = __commonJS({
|
|
|
2531
2534
|
};
|
|
2532
2535
|
}
|
|
2533
2536
|
});
|
|
2534
|
-
|
|
2535
|
-
// node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js
|
|
2536
2537
|
var require_nanoassert = __commonJS({
|
|
2537
2538
|
"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js"(exports, module2) {
|
|
2538
2539
|
module2.exports = assert;
|
|
@@ -2549,8 +2550,6 @@ var require_nanoassert = __commonJS({
|
|
|
2549
2550
|
}
|
|
2550
2551
|
}
|
|
2551
2552
|
});
|
|
2552
|
-
|
|
2553
|
-
// node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js
|
|
2554
2553
|
var require_clone = __commonJS({
|
|
2555
2554
|
"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js"(exports, module2) {
|
|
2556
2555
|
var clone = function() {
|
|
@@ -2749,18 +2748,16 @@ var require_clone = __commonJS({
|
|
|
2749
2748
|
}
|
|
2750
2749
|
}
|
|
2751
2750
|
});
|
|
2752
|
-
|
|
2753
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js
|
|
2754
2751
|
var require_cipher = __commonJS({
|
|
2755
2752
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js"(exports, module2) {
|
|
2756
|
-
var { sodium_malloc, sodium_memzero } =
|
|
2753
|
+
var { sodium_malloc, sodium_memzero } = import$sodium_universal_memory;
|
|
2757
2754
|
var {
|
|
2758
2755
|
crypto_aead_chacha20poly1305_ietf_KEYBYTES,
|
|
2759
2756
|
crypto_aead_chacha20poly1305_ietf_NPUBBYTES,
|
|
2760
2757
|
crypto_aead_chacha20poly1305_ietf_ABYTES,
|
|
2761
2758
|
crypto_aead_chacha20poly1305_ietf_encrypt,
|
|
2762
2759
|
crypto_aead_chacha20poly1305_ietf_decrypt
|
|
2763
|
-
} =
|
|
2760
|
+
} = import$sodium_universal_crypto_aead;
|
|
2764
2761
|
var assert = require_nanoassert();
|
|
2765
2762
|
var KEYLEN = 32;
|
|
2766
2763
|
var NONCELEN = 8;
|
|
@@ -2823,12 +2820,10 @@ var require_cipher = __commonJS({
|
|
|
2823
2820
|
rekey.bytesRead = 0;
|
|
2824
2821
|
}
|
|
2825
2822
|
});
|
|
2826
|
-
|
|
2827
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js
|
|
2828
2823
|
var require_cipher_state = __commonJS({
|
|
2829
2824
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js"(exports, module2) {
|
|
2830
|
-
var { sodium_memzero } =
|
|
2831
|
-
var { sodium_increment, sodium_memcmp, sodium_is_zero } =
|
|
2825
|
+
var { sodium_memzero } = import$sodium_universal_memory;
|
|
2826
|
+
var { sodium_increment, sodium_memcmp, sodium_is_zero } = import$sodium_universal_helpers;
|
|
2832
2827
|
var assert = require_nanoassert();
|
|
2833
2828
|
var cipher = require_cipher();
|
|
2834
2829
|
var STATELEN = cipher.KEYLEN + cipher.NONCELEN;
|
|
@@ -2935,8 +2930,6 @@ var require_cipher_state = __commonJS({
|
|
|
2935
2930
|
rekey.bytesWritten = 0;
|
|
2936
2931
|
}
|
|
2937
2932
|
});
|
|
2938
|
-
|
|
2939
|
-
// node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js
|
|
2940
2933
|
var require_nanoassert2 = __commonJS({
|
|
2941
2934
|
"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js"(exports, module2) {
|
|
2942
2935
|
assert.notEqual = notEqual;
|
|
@@ -2959,12 +2952,10 @@ var require_nanoassert2 = __commonJS({
|
|
|
2959
2952
|
}
|
|
2960
2953
|
}
|
|
2961
2954
|
});
|
|
2962
|
-
|
|
2963
|
-
// node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js
|
|
2964
2955
|
var require_hmac_blake2b = __commonJS({
|
|
2965
2956
|
"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js"(exports, module2) {
|
|
2966
|
-
var { sodium_malloc, sodium_memzero } =
|
|
2967
|
-
var { crypto_generichash, crypto_generichash_batch } =
|
|
2957
|
+
var { sodium_malloc, sodium_memzero } = import$sodium_universal_memory;
|
|
2958
|
+
var { crypto_generichash, crypto_generichash_batch } = import$sodium_universal_crypto_generichash;
|
|
2968
2959
|
var assert = require_nanoassert2();
|
|
2969
2960
|
var HASHLEN = 64;
|
|
2970
2961
|
var BLOCKLEN = 128;
|
|
@@ -2997,12 +2988,10 @@ var require_hmac_blake2b = __commonJS({
|
|
|
2997
2988
|
module2.exports.KEYBYTES = BLOCKLEN;
|
|
2998
2989
|
}
|
|
2999
2990
|
});
|
|
3000
|
-
|
|
3001
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js
|
|
3002
2991
|
var require_dh = __commonJS({
|
|
3003
2992
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js"(exports, module2) {
|
|
3004
|
-
var { crypto_kx_SEEDBYTES, crypto_kx_keypair, crypto_kx_seed_keypair } =
|
|
3005
|
-
var { crypto_scalarmult_BYTES, crypto_scalarmult_SCALARBYTES, crypto_scalarmult } =
|
|
2993
|
+
var { crypto_kx_SEEDBYTES, crypto_kx_keypair, crypto_kx_seed_keypair } = import$sodium_universal_crypto_kx;
|
|
2994
|
+
var { crypto_scalarmult_BYTES, crypto_scalarmult_SCALARBYTES, crypto_scalarmult } = import$sodium_universal_crypto_scalarmult;
|
|
3006
2995
|
var assert = require_nanoassert();
|
|
3007
2996
|
var DHLEN = crypto_scalarmult_BYTES;
|
|
3008
2997
|
var PKLEN = crypto_scalarmult_BYTES;
|
|
@@ -3040,12 +3029,10 @@ var require_dh = __commonJS({
|
|
|
3040
3029
|
}
|
|
3041
3030
|
}
|
|
3042
3031
|
});
|
|
3043
|
-
|
|
3044
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js
|
|
3045
3032
|
var require_hash = __commonJS({
|
|
3046
3033
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js"(exports, module2) {
|
|
3047
|
-
var { sodium_malloc, sodium_memzero } =
|
|
3048
|
-
var { crypto_generichash_batch } =
|
|
3034
|
+
var { sodium_malloc, sodium_memzero } = import$sodium_universal_memory;
|
|
3035
|
+
var { crypto_generichash_batch } = import$sodium_universal_crypto_generichash;
|
|
3049
3036
|
var assert = require_nanoassert();
|
|
3050
3037
|
var hmacBlake2b = require_hmac_blake2b();
|
|
3051
3038
|
var dh = require_dh();
|
|
@@ -3088,11 +3075,9 @@ var require_hash = __commonJS({
|
|
|
3088
3075
|
}
|
|
3089
3076
|
}
|
|
3090
3077
|
});
|
|
3091
|
-
|
|
3092
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js
|
|
3093
3078
|
var require_symmetric_state = __commonJS({
|
|
3094
3079
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js"(exports, module2) {
|
|
3095
|
-
var { sodium_malloc, sodium_memzero } =
|
|
3080
|
+
var { sodium_malloc, sodium_memzero } = import$sodium_universal_memory;
|
|
3096
3081
|
var assert = require_nanoassert();
|
|
3097
3082
|
var cipherState = require_cipher_state();
|
|
3098
3083
|
var hash = require_hash();
|
|
@@ -3217,11 +3202,9 @@ var require_symmetric_state = __commonJS({
|
|
|
3217
3202
|
}
|
|
3218
3203
|
}
|
|
3219
3204
|
});
|
|
3220
|
-
|
|
3221
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js
|
|
3222
3205
|
var require_handshake_state = __commonJS({
|
|
3223
3206
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js"(exports, module2) {
|
|
3224
|
-
var { sodium_malloc, sodium_memzero, sodium_free } =
|
|
3207
|
+
var { sodium_malloc, sodium_memzero, sodium_free } = import$sodium_universal_memory;
|
|
3225
3208
|
var assert = require_nanoassert();
|
|
3226
3209
|
var clone = require_clone();
|
|
3227
3210
|
var symmetricState = require_symmetric_state();
|
|
@@ -3646,15 +3629,11 @@ var require_handshake_state = __commonJS({
|
|
|
3646
3629
|
}
|
|
3647
3630
|
}
|
|
3648
3631
|
});
|
|
3649
|
-
|
|
3650
|
-
// node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js
|
|
3651
3632
|
var require_noise_protocol = __commonJS({
|
|
3652
3633
|
"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js"(exports, module2) {
|
|
3653
3634
|
module2.exports = require_handshake_state();
|
|
3654
3635
|
}
|
|
3655
3636
|
});
|
|
3656
|
-
|
|
3657
|
-
// node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js
|
|
3658
3637
|
var require_simple_handshake = __commonJS({
|
|
3659
3638
|
"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js"(exports, module2) {
|
|
3660
3639
|
var noise = require_noise_protocol();
|
|
@@ -3775,8 +3754,6 @@ var require_simple_handshake = __commonJS({
|
|
|
3775
3754
|
module2.exports = SimpleHandshake;
|
|
3776
3755
|
}
|
|
3777
3756
|
});
|
|
3778
|
-
|
|
3779
|
-
// node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js
|
|
3780
3757
|
var require_encode2 = __commonJS({
|
|
3781
3758
|
"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js"(exports, module2) {
|
|
3782
3759
|
module2.exports = encode;
|
|
@@ -3802,8 +3779,6 @@ var require_encode2 = __commonJS({
|
|
|
3802
3779
|
}
|
|
3803
3780
|
}
|
|
3804
3781
|
});
|
|
3805
|
-
|
|
3806
|
-
// node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js
|
|
3807
3782
|
var require_decode2 = __commonJS({
|
|
3808
3783
|
"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js"(exports, module2) {
|
|
3809
3784
|
module2.exports = read;
|
|
@@ -3825,8 +3800,6 @@ var require_decode2 = __commonJS({
|
|
|
3825
3800
|
}
|
|
3826
3801
|
}
|
|
3827
3802
|
});
|
|
3828
|
-
|
|
3829
|
-
// node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js
|
|
3830
3803
|
var require_length2 = __commonJS({
|
|
3831
3804
|
"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js"(exports, module2) {
|
|
3832
3805
|
var N1 = Math.pow(2, 7);
|
|
@@ -3843,8 +3816,6 @@ var require_length2 = __commonJS({
|
|
|
3843
3816
|
};
|
|
3844
3817
|
}
|
|
3845
3818
|
});
|
|
3846
|
-
|
|
3847
|
-
// node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js
|
|
3848
3819
|
var require_varint2 = __commonJS({
|
|
3849
3820
|
"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js"(exports, module2) {
|
|
3850
3821
|
module2.exports = {
|
|
@@ -3854,8 +3825,6 @@ var require_varint2 = __commonJS({
|
|
|
3854
3825
|
};
|
|
3855
3826
|
}
|
|
3856
3827
|
});
|
|
3857
|
-
|
|
3858
|
-
// node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js
|
|
3859
3828
|
var require_handshake = __commonJS({
|
|
3860
3829
|
"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js"(exports, module2) {
|
|
3861
3830
|
var SH = require_simple_handshake();
|
|
@@ -3976,8 +3945,6 @@ var require_handshake = __commonJS({
|
|
|
3976
3945
|
}
|
|
3977
3946
|
}
|
|
3978
3947
|
});
|
|
3979
|
-
|
|
3980
|
-
// node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js
|
|
3981
3948
|
var require_encode3 = __commonJS({
|
|
3982
3949
|
"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js"(exports, module2) {
|
|
3983
3950
|
module2.exports = encode;
|
|
@@ -4003,8 +3970,6 @@ var require_encode3 = __commonJS({
|
|
|
4003
3970
|
}
|
|
4004
3971
|
}
|
|
4005
3972
|
});
|
|
4006
|
-
|
|
4007
|
-
// node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js
|
|
4008
3973
|
var require_decode3 = __commonJS({
|
|
4009
3974
|
"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js"(exports, module2) {
|
|
4010
3975
|
module2.exports = read;
|
|
@@ -4026,8 +3991,6 @@ var require_decode3 = __commonJS({
|
|
|
4026
3991
|
}
|
|
4027
3992
|
}
|
|
4028
3993
|
});
|
|
4029
|
-
|
|
4030
|
-
// node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js
|
|
4031
3994
|
var require_length3 = __commonJS({
|
|
4032
3995
|
"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js"(exports, module2) {
|
|
4033
3996
|
var N1 = Math.pow(2, 7);
|
|
@@ -4044,8 +4007,6 @@ var require_length3 = __commonJS({
|
|
|
4044
4007
|
};
|
|
4045
4008
|
}
|
|
4046
4009
|
});
|
|
4047
|
-
|
|
4048
|
-
// node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js
|
|
4049
4010
|
var require_varint3 = __commonJS({
|
|
4050
4011
|
"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js"(exports, module2) {
|
|
4051
4012
|
module2.exports = {
|
|
@@ -4055,8 +4016,6 @@ var require_varint3 = __commonJS({
|
|
|
4055
4016
|
};
|
|
4056
4017
|
}
|
|
4057
4018
|
});
|
|
4058
|
-
|
|
4059
|
-
// node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js
|
|
4060
4019
|
var require_signed_varint = __commonJS({
|
|
4061
4020
|
"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js"(exports) {
|
|
4062
4021
|
var varint = require_varint2();
|
|
@@ -4076,8 +4035,6 @@ var require_signed_varint = __commonJS({
|
|
|
4076
4035
|
};
|
|
4077
4036
|
}
|
|
4078
4037
|
});
|
|
4079
|
-
|
|
4080
|
-
// node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js
|
|
4081
4038
|
var require_b4a = __commonJS({
|
|
4082
4039
|
"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js"(exports, module2) {
|
|
4083
4040
|
function isBuffer(value) {
|
|
@@ -4202,8 +4159,6 @@ var require_b4a = __commonJS({
|
|
|
4202
4159
|
};
|
|
4203
4160
|
}
|
|
4204
4161
|
});
|
|
4205
|
-
|
|
4206
|
-
// node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js
|
|
4207
4162
|
var require_protocol_buffers_encodings = __commonJS({
|
|
4208
4163
|
"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js"(exports) {
|
|
4209
4164
|
var varint = require_varint3();
|
|
@@ -4470,8 +4425,6 @@ var require_protocol_buffers_encodings = __commonJS({
|
|
|
4470
4425
|
}
|
|
4471
4426
|
}
|
|
4472
4427
|
});
|
|
4473
|
-
|
|
4474
|
-
// node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js
|
|
4475
4428
|
var require_messages = __commonJS({
|
|
4476
4429
|
"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js"(exports) {
|
|
4477
4430
|
var encodings = require_protocol_buffers_encodings();
|
|
@@ -5679,11 +5632,9 @@ var require_messages = __commonJS({
|
|
|
5679
5632
|
}
|
|
5680
5633
|
}
|
|
5681
5634
|
});
|
|
5682
|
-
|
|
5683
|
-
// node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js
|
|
5684
5635
|
var require_xsalsa20_universal = __commonJS({
|
|
5685
5636
|
"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js"(exports, module2) {
|
|
5686
|
-
var sodium =
|
|
5637
|
+
var sodium = import_sodium_native.default;
|
|
5687
5638
|
module2.exports = class XORNative {
|
|
5688
5639
|
constructor(nonce, key) {
|
|
5689
5640
|
this.handle = Buffer.alloc(sodium.crypto_stream_xor_STATEBYTES);
|
|
@@ -5700,8 +5651,6 @@ var require_xsalsa20_universal = __commonJS({
|
|
|
5700
5651
|
};
|
|
5701
5652
|
}
|
|
5702
5653
|
});
|
|
5703
|
-
|
|
5704
|
-
// node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js
|
|
5705
5654
|
var require_xor = __commonJS({
|
|
5706
5655
|
"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js"(exports, module2) {
|
|
5707
5656
|
var XSalsa20 = require_xsalsa20_universal();
|
|
@@ -5731,8 +5680,6 @@ var require_xor = __commonJS({
|
|
|
5731
5680
|
};
|
|
5732
5681
|
}
|
|
5733
5682
|
});
|
|
5734
|
-
|
|
5735
|
-
// node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js
|
|
5736
5683
|
var require_simple_message_channels = __commonJS({
|
|
5737
5684
|
"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js"(exports, module2) {
|
|
5738
5685
|
var varint = require_varint2();
|
|
@@ -5901,8 +5848,6 @@ var require_simple_message_channels = __commonJS({
|
|
|
5901
5848
|
};
|
|
5902
5849
|
}
|
|
5903
5850
|
});
|
|
5904
|
-
|
|
5905
|
-
// node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js
|
|
5906
5851
|
var require_simple_hypercore_protocol = __commonJS({
|
|
5907
5852
|
"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js"(exports, module2) {
|
|
5908
5853
|
var Handshake = require_handshake();
|
|
@@ -6164,8 +6109,6 @@ var require_simple_hypercore_protocol = __commonJS({
|
|
|
6164
6109
|
}
|
|
6165
6110
|
}
|
|
6166
6111
|
});
|
|
6167
|
-
|
|
6168
|
-
// node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js
|
|
6169
6112
|
var require_refresh = __commonJS({
|
|
6170
6113
|
"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js"(exports, module2) {
|
|
6171
6114
|
module2.exports = Timer;
|
|
@@ -6194,8 +6137,6 @@ var require_refresh = __commonJS({
|
|
|
6194
6137
|
}
|
|
6195
6138
|
}
|
|
6196
6139
|
});
|
|
6197
|
-
|
|
6198
|
-
// node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js
|
|
6199
6140
|
var require_browser = __commonJS({
|
|
6200
6141
|
"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js"(exports, module2) {
|
|
6201
6142
|
module2.exports = Timeout;
|
|
@@ -6224,11 +6165,9 @@ var require_browser = __commonJS({
|
|
|
6224
6165
|
}
|
|
6225
6166
|
}
|
|
6226
6167
|
});
|
|
6227
|
-
|
|
6228
|
-
// node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js
|
|
6229
6168
|
var require_timers = __commonJS({
|
|
6230
6169
|
"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js"(exports, module2) {
|
|
6231
|
-
var timers =
|
|
6170
|
+
var timers = import_node_timers.default;
|
|
6232
6171
|
var enroll = timers.enroll || noop;
|
|
6233
6172
|
var active = timers._unrefActive || timers.active || noop;
|
|
6234
6173
|
var unenroll = timers.unenroll || noop;
|
|
@@ -6260,8 +6199,6 @@ var require_timers = __commonJS({
|
|
|
6260
6199
|
}
|
|
6261
6200
|
}
|
|
6262
6201
|
});
|
|
6263
|
-
|
|
6264
|
-
// node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js
|
|
6265
6202
|
var require_timeout_refresh = __commonJS({
|
|
6266
6203
|
"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js"(exports, module2) {
|
|
6267
6204
|
var to = setTimeout(function() {
|
|
@@ -6270,8 +6207,6 @@ var require_timeout_refresh = __commonJS({
|
|
|
6270
6207
|
module2.exports = to.refresh ? require_refresh() : process.versions.electron ? require_browser() : require_timers();
|
|
6271
6208
|
}
|
|
6272
6209
|
});
|
|
6273
|
-
|
|
6274
|
-
// node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js
|
|
6275
6210
|
var require_abstract_extension = __commonJS({
|
|
6276
6211
|
"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js"(exports, module2) {
|
|
6277
6212
|
var codecs = require_codecs();
|
|
@@ -6422,8 +6357,6 @@ var require_abstract_extension = __commonJS({
|
|
|
6422
6357
|
module2.exports = AbstractExtension;
|
|
6423
6358
|
}
|
|
6424
6359
|
});
|
|
6425
|
-
|
|
6426
|
-
// node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
6427
6360
|
var require_ms = __commonJS({
|
|
6428
6361
|
"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
|
|
6429
6362
|
var s = 1e3;
|
|
@@ -6538,10 +6471,8 @@ var require_ms = __commonJS({
|
|
|
6538
6471
|
}
|
|
6539
6472
|
}
|
|
6540
6473
|
});
|
|
6541
|
-
|
|
6542
|
-
// node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
6543
6474
|
var require_common = __commonJS({
|
|
6544
|
-
"node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
6475
|
+
"node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
6545
6476
|
function setup(env) {
|
|
6546
6477
|
createDebug.debug = createDebug;
|
|
6547
6478
|
createDebug.default = createDebug;
|
|
@@ -6701,16 +6632,14 @@ var require_common = __commonJS({
|
|
|
6701
6632
|
module2.exports = setup;
|
|
6702
6633
|
}
|
|
6703
6634
|
});
|
|
6704
|
-
|
|
6705
|
-
// node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
6706
6635
|
var require_browser2 = __commonJS({
|
|
6707
|
-
"node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
6636
|
+
"node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
6708
6637
|
exports.formatArgs = formatArgs;
|
|
6709
6638
|
exports.save = save;
|
|
6710
6639
|
exports.load = load;
|
|
6711
6640
|
exports.useColors = useColors;
|
|
6712
6641
|
exports.storage = localstorage();
|
|
6713
|
-
exports.destroy = (() => {
|
|
6642
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
6714
6643
|
let warned = false;
|
|
6715
6644
|
return () => {
|
|
6716
6645
|
if (!warned) {
|
|
@@ -6870,44 +6799,32 @@ var require_browser2 = __commonJS({
|
|
|
6870
6799
|
};
|
|
6871
6800
|
}
|
|
6872
6801
|
});
|
|
6873
|
-
|
|
6874
|
-
// node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
6875
6802
|
var require_has_flag = __commonJS({
|
|
6876
|
-
"node_modules/.pnpm/has-flag@
|
|
6803
|
+
"node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
6877
6804
|
"use strict";
|
|
6878
|
-
module2.exports = (flag, argv
|
|
6805
|
+
module2.exports = (flag, argv) => {
|
|
6806
|
+
argv = argv || process.argv;
|
|
6879
6807
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
6880
|
-
const
|
|
6881
|
-
const
|
|
6882
|
-
return
|
|
6808
|
+
const pos = argv.indexOf(prefix + flag);
|
|
6809
|
+
const terminatorPos = argv.indexOf("--");
|
|
6810
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
6883
6811
|
};
|
|
6884
6812
|
}
|
|
6885
6813
|
});
|
|
6886
|
-
|
|
6887
|
-
// node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
6888
6814
|
var require_supports_color = __commonJS({
|
|
6889
|
-
"node_modules/.pnpm/supports-color@
|
|
6815
|
+
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
6890
6816
|
"use strict";
|
|
6891
|
-
var os =
|
|
6892
|
-
var tty = require("node:tty");
|
|
6817
|
+
var os = import_node_os.default;
|
|
6893
6818
|
var hasFlag = require_has_flag();
|
|
6894
|
-
var
|
|
6895
|
-
var
|
|
6896
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")
|
|
6897
|
-
|
|
6819
|
+
var env = process.env;
|
|
6820
|
+
var forceColor;
|
|
6821
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
6822
|
+
forceColor = false;
|
|
6898
6823
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
6899
|
-
|
|
6824
|
+
forceColor = true;
|
|
6900
6825
|
}
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
if (env.FORCE_COLOR === "true") {
|
|
6904
|
-
return 1;
|
|
6905
|
-
}
|
|
6906
|
-
if (env.FORCE_COLOR === "false") {
|
|
6907
|
-
return 0;
|
|
6908
|
-
}
|
|
6909
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
6910
|
-
}
|
|
6826
|
+
if ("FORCE_COLOR" in env) {
|
|
6827
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
6911
6828
|
}
|
|
6912
6829
|
function translateLevel(level) {
|
|
6913
6830
|
if (level === 0) {
|
|
@@ -6920,39 +6837,29 @@ var require_supports_color = __commonJS({
|
|
|
6920
6837
|
has16m: level >= 3
|
|
6921
6838
|
};
|
|
6922
6839
|
}
|
|
6923
|
-
function supportsColor(
|
|
6924
|
-
|
|
6925
|
-
if (noFlagForceColor !== void 0) {
|
|
6926
|
-
flagForceColor = noFlagForceColor;
|
|
6927
|
-
}
|
|
6928
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
6929
|
-
if (forceColor === 0) {
|
|
6840
|
+
function supportsColor(stream) {
|
|
6841
|
+
if (forceColor === false) {
|
|
6930
6842
|
return 0;
|
|
6931
6843
|
}
|
|
6932
|
-
if (
|
|
6933
|
-
|
|
6934
|
-
return 3;
|
|
6935
|
-
}
|
|
6936
|
-
if (hasFlag("color=256")) {
|
|
6937
|
-
return 2;
|
|
6938
|
-
}
|
|
6844
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
6845
|
+
return 3;
|
|
6939
6846
|
}
|
|
6940
|
-
if (
|
|
6941
|
-
return
|
|
6847
|
+
if (hasFlag("color=256")) {
|
|
6848
|
+
return 2;
|
|
6942
6849
|
}
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
return min;
|
|
6850
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
6851
|
+
return 0;
|
|
6946
6852
|
}
|
|
6853
|
+
const min = forceColor ? 1 : 0;
|
|
6947
6854
|
if (process.platform === "win32") {
|
|
6948
6855
|
const osRelease = os.release().split(".");
|
|
6949
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
6856
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
6950
6857
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
6951
6858
|
}
|
|
6952
6859
|
return 1;
|
|
6953
6860
|
}
|
|
6954
6861
|
if ("CI" in env) {
|
|
6955
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"
|
|
6862
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
6956
6863
|
return 1;
|
|
6957
6864
|
}
|
|
6958
6865
|
return min;
|
|
@@ -6964,7 +6871,7 @@ var require_supports_color = __commonJS({
|
|
|
6964
6871
|
return 3;
|
|
6965
6872
|
}
|
|
6966
6873
|
if ("TERM_PROGRAM" in env) {
|
|
6967
|
-
const version =
|
|
6874
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
6968
6875
|
switch (env.TERM_PROGRAM) {
|
|
6969
6876
|
case "iTerm.app":
|
|
6970
6877
|
return version >= 3 ? 3 : 2;
|
|
@@ -6981,28 +6888,26 @@ var require_supports_color = __commonJS({
|
|
|
6981
6888
|
if ("COLORTERM" in env) {
|
|
6982
6889
|
return 1;
|
|
6983
6890
|
}
|
|
6891
|
+
if (env.TERM === "dumb") {
|
|
6892
|
+
return min;
|
|
6893
|
+
}
|
|
6984
6894
|
return min;
|
|
6985
6895
|
}
|
|
6986
|
-
function getSupportLevel(stream
|
|
6987
|
-
const level = supportsColor(stream
|
|
6988
|
-
streamIsTTY: stream && stream.isTTY,
|
|
6989
|
-
...options
|
|
6990
|
-
});
|
|
6896
|
+
function getSupportLevel(stream) {
|
|
6897
|
+
const level = supportsColor(stream);
|
|
6991
6898
|
return translateLevel(level);
|
|
6992
6899
|
}
|
|
6993
6900
|
module2.exports = {
|
|
6994
6901
|
supportsColor: getSupportLevel,
|
|
6995
|
-
stdout: getSupportLevel(
|
|
6996
|
-
stderr: getSupportLevel(
|
|
6902
|
+
stdout: getSupportLevel(process.stdout),
|
|
6903
|
+
stderr: getSupportLevel(process.stderr)
|
|
6997
6904
|
};
|
|
6998
6905
|
}
|
|
6999
6906
|
});
|
|
7000
|
-
|
|
7001
|
-
// node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
7002
6907
|
var require_node = __commonJS({
|
|
7003
|
-
"node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
7004
|
-
var tty =
|
|
7005
|
-
var util2 =
|
|
6908
|
+
"node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
6909
|
+
var tty = import_node_tty.default;
|
|
6910
|
+
var util2 = import_node_util.default;
|
|
7006
6911
|
exports.init = init;
|
|
7007
6912
|
exports.log = log;
|
|
7008
6913
|
exports.formatArgs = formatArgs;
|
|
@@ -7171,10 +7076,8 @@ var require_node = __commonJS({
|
|
|
7171
7076
|
};
|
|
7172
7077
|
}
|
|
7173
7078
|
});
|
|
7174
|
-
|
|
7175
|
-
// node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
7176
7079
|
var require_src = __commonJS({
|
|
7177
|
-
"node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
7080
|
+
"node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
7178
7081
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
7179
7082
|
module2.exports = require_browser2();
|
|
7180
7083
|
} else {
|
|
@@ -7182,8 +7085,6 @@ var require_src = __commonJS({
|
|
|
7182
7085
|
}
|
|
7183
7086
|
}
|
|
7184
7087
|
});
|
|
7185
|
-
|
|
7186
|
-
// node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js
|
|
7187
7088
|
var require_hypercore_protocol = __commonJS({
|
|
7188
7089
|
"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js"(exports, module2) {
|
|
7189
7090
|
var SHP = require_simple_hypercore_protocol();
|
|
@@ -7193,7 +7094,7 @@ var require_hypercore_protocol = __commonJS({
|
|
|
7193
7094
|
var Nanoguard = require_nanoguard();
|
|
7194
7095
|
var pretty = require_pretty_hash();
|
|
7195
7096
|
var Message = require_abstract_extension();
|
|
7196
|
-
var { Duplex } =
|
|
7097
|
+
var { Duplex } = __require("streamx");
|
|
7197
7098
|
var debug = require_src()("hypercore-protocol");
|
|
7198
7099
|
var StreamExtension = class extends Message {
|
|
7199
7100
|
send(message) {
|
|
@@ -7678,8 +7579,6 @@ var require_hypercore_protocol = __commonJS({
|
|
|
7678
7579
|
};
|
|
7679
7580
|
}
|
|
7680
7581
|
});
|
|
7681
|
-
|
|
7682
|
-
// node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js
|
|
7683
7582
|
var require_ctz = __commonJS({
|
|
7684
7583
|
"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js"(exports, module2) {
|
|
7685
7584
|
module2.exports = function(v) {
|
|
@@ -7701,8 +7600,6 @@ var require_ctz = __commonJS({
|
|
|
7701
7600
|
};
|
|
7702
7601
|
}
|
|
7703
7602
|
});
|
|
7704
|
-
|
|
7705
|
-
// node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js
|
|
7706
7603
|
var require_fast_bitfield = __commonJS({
|
|
7707
7604
|
"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js"(exports, module2) {
|
|
7708
7605
|
"use strict";
|
|
@@ -8063,8 +7960,6 @@ var require_fast_bitfield = __commonJS({
|
|
|
8063
7960
|
}
|
|
8064
7961
|
}
|
|
8065
7962
|
});
|
|
8066
|
-
|
|
8067
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js
|
|
8068
7963
|
var require_replicate = __commonJS({
|
|
8069
7964
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js"(exports, module2) {
|
|
8070
7965
|
var Protocol = require_hypercore_protocol();
|
|
@@ -8803,11 +8698,9 @@ var require_replicate = __commonJS({
|
|
|
8803
8698
|
}
|
|
8804
8699
|
}
|
|
8805
8700
|
});
|
|
8806
|
-
|
|
8807
|
-
// node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js
|
|
8808
8701
|
var require_emitter = __commonJS({
|
|
8809
8702
|
"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js"(exports, module2) {
|
|
8810
|
-
var events =
|
|
8703
|
+
var events = import_node_events.default;
|
|
8811
8704
|
var inherits = require_inherits();
|
|
8812
8705
|
var opening = Symbol("opening queue");
|
|
8813
8706
|
var preclosing = Symbol("closing when inactive");
|
|
@@ -8941,8 +8834,6 @@ var require_emitter = __commonJS({
|
|
|
8941
8834
|
}
|
|
8942
8835
|
}
|
|
8943
8836
|
});
|
|
8944
|
-
|
|
8945
|
-
// packages/common/hypercore/src/empty.ts
|
|
8946
8837
|
var require_empty = __commonJS({
|
|
8947
8838
|
"packages/common/hypercore/src/empty.ts"(exports, module2) {
|
|
8948
8839
|
module2.exports = new Proxy({}, {
|
|
@@ -8952,11 +8843,9 @@ var require_empty = __commonJS({
|
|
|
8952
8843
|
});
|
|
8953
8844
|
}
|
|
8954
8845
|
});
|
|
8955
|
-
|
|
8956
|
-
// node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js
|
|
8957
8846
|
var require_hypercore_streams = __commonJS({
|
|
8958
8847
|
"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js"(exports, module2) {
|
|
8959
|
-
var { Writable, Readable: Readable2 } =
|
|
8848
|
+
var { Writable, Readable: Readable2 } = import$streamx;
|
|
8960
8849
|
var WriteStream = class extends Writable {
|
|
8961
8850
|
constructor(feed, opts) {
|
|
8962
8851
|
super();
|
|
@@ -9030,8 +8919,6 @@ var require_hypercore_streams = __commonJS({
|
|
|
9030
8919
|
module2.exports = { WriteStream, ReadStream };
|
|
9031
8920
|
}
|
|
9032
8921
|
});
|
|
9033
|
-
|
|
9034
|
-
// node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js
|
|
9035
8922
|
var require_hypercore = __commonJS({
|
|
9036
8923
|
"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js"(exports, module2) {
|
|
9037
8924
|
var low = require_last_one_wins();
|
|
@@ -10659,29 +10546,7 @@ var require_hypercore = __commonJS({
|
|
|
10659
10546
|
}
|
|
10660
10547
|
}
|
|
10661
10548
|
});
|
|
10662
|
-
|
|
10663
|
-
// packages/common/hypercore/src/index.ts
|
|
10664
|
-
var src_exports = {};
|
|
10665
|
-
__export(src_exports, {
|
|
10666
|
-
HypercoreFactory: () => HypercoreFactory,
|
|
10667
|
-
createAsyncIterator: () => createAsyncIterator,
|
|
10668
|
-
createCodecEncoding: () => createCodecEncoding,
|
|
10669
|
-
createCrypto: () => createCrypto,
|
|
10670
|
-
createReadable: () => createReadable,
|
|
10671
|
-
defaultFeedOptions: () => defaultFeedOptions,
|
|
10672
|
-
defaultReadStreamOptions: () => defaultReadStreamOptions,
|
|
10673
|
-
defaultReplicateOptions: () => defaultReplicateOptions,
|
|
10674
|
-
defaultWriteStreamOptions: () => defaultWriteStreamOptions,
|
|
10675
|
-
hypercore: () => import_hypercore2.default
|
|
10676
|
-
});
|
|
10677
|
-
module.exports = __toCommonJS(src_exports);
|
|
10678
|
-
var import_hypercore2 = __toESM(require_hypercore());
|
|
10679
|
-
|
|
10680
|
-
// packages/common/hypercore/src/crypto.ts
|
|
10681
|
-
var import_node_util = require("node:util");
|
|
10682
|
-
var import_crypto = require("@dxos/crypto");
|
|
10683
|
-
var import_invariant = require("@dxos/invariant");
|
|
10684
|
-
var import_util = require("@dxos/util");
|
|
10549
|
+
var import_hypercore2 = __toESM2(require_hypercore());
|
|
10685
10550
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/common/hypercore/src/crypto.ts";
|
|
10686
10551
|
var createCodecEncoding = (codec, opts) => ({
|
|
10687
10552
|
encode: (obj) => (0, import_util.arrayToBuffer)(codec.encode(obj, opts)),
|
|
@@ -10708,7 +10573,7 @@ var createCrypto = (signer, publicKey) => {
|
|
|
10708
10573
|
});
|
|
10709
10574
|
return {
|
|
10710
10575
|
sign: (message, secretKey, cb) => {
|
|
10711
|
-
(0,
|
|
10576
|
+
(0, import_node_util2.callbackify)(signer.sign.bind(signer))(publicKey, message, (err, result) => {
|
|
10712
10577
|
if (err) {
|
|
10713
10578
|
cb(err, null);
|
|
10714
10579
|
return;
|
|
@@ -10717,12 +10582,10 @@ var createCrypto = (signer, publicKey) => {
|
|
|
10717
10582
|
});
|
|
10718
10583
|
},
|
|
10719
10584
|
verify: async (message, signature, key, cb) => {
|
|
10720
|
-
(0,
|
|
10585
|
+
(0, import_node_util2.callbackify)(import_crypto.verifySignature)(publicKey, message, signature, cb);
|
|
10721
10586
|
}
|
|
10722
10587
|
};
|
|
10723
10588
|
};
|
|
10724
|
-
|
|
10725
|
-
// packages/common/hypercore/src/defaults.ts
|
|
10726
10589
|
var defaultFeedOptions = {
|
|
10727
10590
|
createIfMissing: true,
|
|
10728
10591
|
valueEncoding: "binary"
|
|
@@ -10748,17 +10611,8 @@ var defaultReplicateOptions = {
|
|
|
10748
10611
|
encrypted: true,
|
|
10749
10612
|
noise: true
|
|
10750
10613
|
};
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
var import_hypercore = __toESM(require_hypercore());
|
|
10754
|
-
var import_invariant2 = require("@dxos/invariant");
|
|
10755
|
-
var import_random_access_storage = require("@dxos/random-access-storage");
|
|
10756
|
-
|
|
10757
|
-
// packages/common/hypercore/src/util.ts
|
|
10758
|
-
var import_node_util2 = __toESM(require("node:util"));
|
|
10759
|
-
var py = (obj, fn) => import_node_util2.default.promisify(fn.bind(obj));
|
|
10760
|
-
|
|
10761
|
-
// packages/common/hypercore/src/hypercore-factory.ts
|
|
10614
|
+
var import_hypercore = __toESM2(require_hypercore());
|
|
10615
|
+
var py = (obj, fn) => import_node_util3.default.promisify(fn.bind(obj));
|
|
10762
10616
|
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/common/hypercore/src/hypercore-factory.ts";
|
|
10763
10617
|
var HypercoreFactory = class {
|
|
10764
10618
|
constructor(_root = (0, import_random_access_storage.createStorage)({
|
|
@@ -10795,9 +10649,6 @@ var HypercoreFactory = class {
|
|
|
10795
10649
|
return feed;
|
|
10796
10650
|
}
|
|
10797
10651
|
};
|
|
10798
|
-
|
|
10799
|
-
// packages/common/hypercore/src/iterator.ts
|
|
10800
|
-
var import_readable_stream = require("readable-stream");
|
|
10801
10652
|
var createReadable = (stream) => {
|
|
10802
10653
|
return new import_readable_stream.Readable({
|
|
10803
10654
|
objectMode: true
|
|
@@ -10806,6 +10657,7 @@ var createReadable = (stream) => {
|
|
|
10806
10657
|
var createAsyncIterator = (stream) => {
|
|
10807
10658
|
return stream[Symbol.asyncIterator]();
|
|
10808
10659
|
};
|
|
10660
|
+
var export_hypercore = import_hypercore2.default;
|
|
10809
10661
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10810
10662
|
0 && (module.exports = {
|
|
10811
10663
|
HypercoreFactory,
|