@pkcprotocol/pkc-js 0.0.157 → 0.0.159
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/README.md +58 -3
- package/dist/browser/clients/base-client-manager.js +24 -11
- package/dist/browser/clients/base-client-manager.js.map +1 -1
- package/dist/browser/clients/rpc-client/pkc-rpc-client.js +17 -9
- package/dist/browser/clients/rpc-client/pkc-rpc-client.js.map +1 -1
- package/dist/browser/clients/rpc-client/schema.d.ts +2 -0
- package/dist/browser/community/schema.d.ts +26 -0
- package/dist/browser/detached-guard.d.ts +5 -0
- package/dist/browser/detached-guard.js +50 -0
- package/dist/browser/detached-guard.js.map +1 -0
- package/dist/browser/errors.d.ts +2 -0
- package/dist/browser/errors.js +2 -0
- package/dist/browser/errors.js.map +1 -1
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/helia/helia-for-pkc.js +6 -5
- package/dist/browser/helia/helia-for-pkc.js.map +1 -1
- package/dist/browser/index-with-compile-cache.d.ts +4 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/pages/schema.d.ts +6 -0
- package/dist/browser/pkc-error.d.ts +1 -1
- package/dist/browser/publications/comment/comment.d.ts +2 -0
- package/dist/browser/publications/comment/comment.js +2 -0
- package/dist/browser/publications/comment/comment.js.map +1 -1
- package/dist/browser/publications/comment/schema.d.ts +6 -2
- package/dist/browser/publications/comment/schema.js +13 -1
- package/dist/browser/publications/comment/schema.js.map +1 -1
- package/dist/browser/publications/comment-moderation/schema.js +2 -2
- package/dist/browser/publications/comment-moderation/schema.js.map +1 -1
- package/dist/browser/publications/publication.js +26 -32
- package/dist/browser/publications/publication.js.map +1 -1
- package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +4 -0
- package/dist/browser/rpc/src/schema.d.ts +24 -0
- package/dist/browser/runtime/node/community/db-handler.d.ts +1 -0
- package/dist/browser/runtime/node/community/db-handler.js +31 -7
- package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/cleanup.js +6 -0
- package/dist/browser/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/comment-updates.js +36 -0
- package/dist/browser/runtime/node/community/local-community/comment-updates.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/db-fault.d.ts +3 -0
- package/dist/browser/runtime/node/community/local-community/db-fault.js +13 -0
- package/dist/browser/runtime/node/community/local-community/db-fault.js.map +1 -0
- package/dist/browser/runtime/node/community/local-community/ipns-publishing.js +36 -2
- package/dist/browser/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/lifecycle.js +36 -2
- package/dist/browser/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/post-updates-bucket.d.ts +21 -0
- package/dist/browser/runtime/node/community/local-community/post-updates-bucket.js +141 -4
- package/dist/browser/runtime/node/community/local-community/post-updates-bucket.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community.d.ts +7 -0
- package/dist/browser/runtime/node/community/local-community.js +18 -0
- package/dist/browser/runtime/node/community/local-community.js.map +1 -1
- package/dist/browser/runtime/node/test/helpers/hanging-runner.js +7 -3
- package/dist/browser/runtime/node/test/helpers/hanging-runner.js.map +1 -1
- package/dist/browser/runtime/node/test/helpers/run-hanging-node.js +6 -1
- package/dist/browser/runtime/node/test/helpers/run-hanging-node.js.map +1 -1
- package/dist/browser/schema/schema-util.d.ts +10 -0
- package/dist/browser/schema/schema.d.ts +9 -0
- package/dist/browser/schema/schema.js +9 -1
- package/dist/browser/schema/schema.js.map +1 -1
- package/dist/browser/schema.d.ts +32 -0
- package/dist/browser/signer/pseudonymity-author-tag.d.ts +8 -0
- package/dist/browser/signer/pseudonymity-author-tag.js +39 -0
- package/dist/browser/signer/pseudonymity-author-tag.js.map +1 -0
- package/dist/browser/signer/signatures.js +16 -0
- package/dist/browser/signer/signatures.js.map +1 -1
- package/dist/browser/test/test-util.d.ts +10 -0
- package/dist/browser/version.js +1 -1
- package/dist/bundled/bundle-manifest.json +58 -53
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc-BT2UmDem.js → helia-for-pkc-CP5A7i4M.js} +5 -4
- package/dist/bundled/chunks/{local-community-oqjqTa9T.js → local-community-0xsjgulY.js} +373 -26
- package/dist/bundled/chunks/{local-community-BexngGU7.js → local-community-CUDfHfH_.js} +1 -1
- package/dist/bundled/chunks/{node-CvXtQ-4A.js → node-Bv7hIiW_.js} +40 -38
- package/dist/bundled/chunks/{page-sort-scoring-VN_GGInQ.js → page-sort-scoring-I02fuGkI.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-BjIHRbYy.js → rpc-local-community-Bo4Z7ilA.js} +57 -13
- package/dist/bundled/chunks/{util-DDsWXOtP.js → util-BZuCmqxu.js} +12 -9
- package/dist/bundled/chunks/{util-Bu3ItQsN.js → util-xhgmI11L.js} +1 -1
- package/dist/bundled/chunks/{validate-package-factories-CmJt781W.js → validate-package-factories-BsSEIr__.js} +2 -2
- package/dist/bundled/index.js +1 -1
- package/dist/bundled/page-sorts.js +1 -1
- package/dist/bundled/rpc/src/index.js +4 -4
- package/dist/node/clients/base-client-manager.js +24 -11
- package/dist/node/clients/base-client-manager.js.map +1 -1
- package/dist/node/clients/rpc-client/pkc-rpc-client.js +17 -9
- package/dist/node/clients/rpc-client/pkc-rpc-client.js.map +1 -1
- package/dist/node/clients/rpc-client/schema.d.ts +2 -0
- package/dist/node/community/schema.d.ts +26 -0
- package/dist/node/detached-guard.d.ts +5 -0
- package/dist/node/detached-guard.js +50 -0
- package/dist/node/detached-guard.js.map +1 -0
- package/dist/node/errors.d.ts +2 -0
- package/dist/node/errors.js +2 -0
- package/dist/node/errors.js.map +1 -1
- package/dist/node/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/dist/node/helia/helia-for-pkc.js +6 -5
- package/dist/node/helia/helia-for-pkc.js.map +1 -1
- package/dist/node/index-with-compile-cache.d.ts +4 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/pages/schema.d.ts +6 -0
- package/dist/node/pkc-error.d.ts +1 -1
- package/dist/node/publications/comment/comment.d.ts +2 -0
- package/dist/node/publications/comment/comment.js +2 -0
- package/dist/node/publications/comment/comment.js.map +1 -1
- package/dist/node/publications/comment/schema.d.ts +6 -2
- package/dist/node/publications/comment/schema.js +13 -1
- package/dist/node/publications/comment/schema.js.map +1 -1
- package/dist/node/publications/comment-moderation/schema.js +2 -2
- package/dist/node/publications/comment-moderation/schema.js.map +1 -1
- package/dist/node/publications/publication.js +26 -32
- package/dist/node/publications/publication.js.map +1 -1
- package/dist/node/rpc/src/lib/pkc-js/index.d.ts +4 -0
- package/dist/node/rpc/src/schema.d.ts +24 -0
- package/dist/node/runtime/node/community/db-handler.d.ts +1 -0
- package/dist/node/runtime/node/community/db-handler.js +31 -7
- package/dist/node/runtime/node/community/db-handler.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/cleanup.js +6 -0
- package/dist/node/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/comment-updates.js +36 -0
- package/dist/node/runtime/node/community/local-community/comment-updates.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/db-fault.d.ts +3 -0
- package/dist/node/runtime/node/community/local-community/db-fault.js +13 -0
- package/dist/node/runtime/node/community/local-community/db-fault.js.map +1 -0
- package/dist/node/runtime/node/community/local-community/ipns-publishing.js +36 -2
- package/dist/node/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/lifecycle.js +36 -2
- package/dist/node/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/post-updates-bucket.d.ts +21 -0
- package/dist/node/runtime/node/community/local-community/post-updates-bucket.js +141 -4
- package/dist/node/runtime/node/community/local-community/post-updates-bucket.js.map +1 -1
- package/dist/node/runtime/node/community/local-community.d.ts +7 -0
- package/dist/node/runtime/node/community/local-community.js +18 -0
- package/dist/node/runtime/node/community/local-community.js.map +1 -1
- package/dist/node/runtime/node/test/helpers/hanging-runner.js +7 -3
- package/dist/node/runtime/node/test/helpers/hanging-runner.js.map +1 -1
- package/dist/node/runtime/node/test/helpers/run-hanging-node.js +6 -1
- package/dist/node/runtime/node/test/helpers/run-hanging-node.js.map +1 -1
- package/dist/node/schema/schema-util.d.ts +10 -0
- package/dist/node/schema/schema.d.ts +9 -0
- package/dist/node/schema/schema.js +9 -1
- package/dist/node/schema/schema.js.map +1 -1
- package/dist/node/schema.d.ts +32 -0
- package/dist/node/signer/pseudonymity-author-tag.d.ts +8 -0
- package/dist/node/signer/pseudonymity-author-tag.js +39 -0
- package/dist/node/signer/pseudonymity-author-tag.js.map +1 -0
- package/dist/node/signer/signatures.js +16 -0
- package/dist/node/signer/signatures.js.map +1 -1
- package/dist/node/test/test-util.d.ts +10 -0
- package/dist/node/version.js +1 -1
- package/package.json +3 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"challenges.js": {
|
|
4
4
|
"isEntry": true,
|
|
5
5
|
"imports": [
|
|
6
|
-
"chunks/validate-package-factories-
|
|
6
|
+
"chunks/validate-package-factories-BsSEIr__.js"
|
|
7
7
|
],
|
|
8
8
|
"dynamicImports": [],
|
|
9
9
|
"inputs": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node:module"
|
|
17
17
|
],
|
|
18
18
|
"dynamicImports": [
|
|
19
|
-
"chunks/node-
|
|
19
|
+
"chunks/node-Bv7hIiW_.js"
|
|
20
20
|
],
|
|
21
21
|
"inputs": [
|
|
22
22
|
"dist/node/runtime/node/compile-cache.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"index.js": {
|
|
27
27
|
"isEntry": true,
|
|
28
28
|
"imports": [
|
|
29
|
-
"chunks/node-
|
|
29
|
+
"chunks/node-Bv7hIiW_.js"
|
|
30
30
|
],
|
|
31
31
|
"dynamicImports": [],
|
|
32
32
|
"inputs": []
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"page-sorts.js": {
|
|
35
35
|
"isEntry": true,
|
|
36
36
|
"imports": [
|
|
37
|
-
"chunks/validate-package-factories-
|
|
37
|
+
"chunks/validate-package-factories-BsSEIr__.js"
|
|
38
38
|
],
|
|
39
39
|
"dynamicImports": [],
|
|
40
40
|
"inputs": [
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"rpc/src/index.js": {
|
|
45
45
|
"isEntry": true,
|
|
46
46
|
"imports": [
|
|
47
|
-
"chunks/rpc-local-community-
|
|
48
|
-
"chunks/node-
|
|
49
|
-
"chunks/util-
|
|
50
|
-
"chunks/local-community-
|
|
47
|
+
"chunks/rpc-local-community-Bo4Z7ilA.js",
|
|
48
|
+
"chunks/node-Bv7hIiW_.js",
|
|
49
|
+
"chunks/util-BZuCmqxu.js",
|
|
50
|
+
"chunks/local-community-0xsjgulY.js",
|
|
51
51
|
"node:url",
|
|
52
52
|
"path",
|
|
53
53
|
"assert",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"\u0000rolldown/runtime.js"
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
|
-
"chunks/helia-for-pkc-
|
|
80
|
+
"chunks/helia-for-pkc-CP5A7i4M.js": {
|
|
81
81
|
"isEntry": false,
|
|
82
82
|
"imports": [
|
|
83
83
|
"chunks/chunk-2rV9d50f.js",
|
|
84
|
-
"chunks/util-
|
|
85
|
-
"chunks/util-
|
|
84
|
+
"chunks/util-BZuCmqxu.js",
|
|
85
|
+
"chunks/util-xhgmI11L.js",
|
|
86
86
|
"chunks/src-DKntVmyX.js",
|
|
87
87
|
"chunks/src-Cpx2Sts8.js",
|
|
88
88
|
"node:url",
|
|
@@ -204,21 +204,13 @@
|
|
|
204
204
|
"dist/node/helia/helia-for-pkc.js"
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
|
-
"chunks/local-community-
|
|
208
|
-
"isEntry": false,
|
|
209
|
-
"imports": [
|
|
210
|
-
"chunks/local-community-oqjqTa9T.js"
|
|
211
|
-
],
|
|
212
|
-
"dynamicImports": [],
|
|
213
|
-
"inputs": []
|
|
214
|
-
},
|
|
215
|
-
"chunks/local-community-oqjqTa9T.js": {
|
|
207
|
+
"chunks/local-community-0xsjgulY.js": {
|
|
216
208
|
"isEntry": false,
|
|
217
209
|
"imports": [
|
|
218
210
|
"chunks/chunk-2rV9d50f.js",
|
|
219
|
-
"chunks/rpc-local-community-
|
|
220
|
-
"chunks/util-
|
|
221
|
-
"chunks/page-sort-scoring-
|
|
211
|
+
"chunks/rpc-local-community-Bo4Z7ilA.js",
|
|
212
|
+
"chunks/util-BZuCmqxu.js",
|
|
213
|
+
"chunks/page-sort-scoring-I02fuGkI.js",
|
|
222
214
|
"chunks/src-BSYNGtIQ.js",
|
|
223
215
|
"chunks/src-CAvdjq_i.js",
|
|
224
216
|
"node:perf_hooks",
|
|
@@ -234,6 +226,7 @@
|
|
|
234
226
|
"multiformats/cid",
|
|
235
227
|
"@libp2p/peer-id",
|
|
236
228
|
"typestub-ipfs-only-hash",
|
|
229
|
+
"uint8arrays",
|
|
237
230
|
"node:v8",
|
|
238
231
|
"multiformats/hashes/sha2",
|
|
239
232
|
"@multiformats/murmur3"
|
|
@@ -249,6 +242,8 @@
|
|
|
249
242
|
"node_modules/remeda/dist/uniqueBy.js",
|
|
250
243
|
"dist/node/runtime/node/community/local-community/identity.js",
|
|
251
244
|
"dist/node/runtime/node/community/local-community/anchor-publishing.js",
|
|
245
|
+
"node_modules/@noble/hashes/hkdf.js",
|
|
246
|
+
"dist/node/signer/pseudonymity-author-tag.js",
|
|
252
247
|
"dist/node/runtime/node/community/comment-update-row.js",
|
|
253
248
|
"node_modules/uuid/dist-node/rng.js",
|
|
254
249
|
"node_modules/uuid/dist-node/stringify.js",
|
|
@@ -271,6 +266,7 @@
|
|
|
271
266
|
"dist/node/runtime/node/community/local-community/registry-sync.js",
|
|
272
267
|
"dist/node/runtime/node/community/local-community/ipns-publishing.js",
|
|
273
268
|
"dist/node/runtime/node/event-loop-watch.js",
|
|
269
|
+
"dist/node/runtime/node/community/local-community/db-fault.js",
|
|
274
270
|
"dist/node/runtime/node/community/local-community/reprovide-on-address-change.js",
|
|
275
271
|
"dist/node/runtime/node/community/local-community/lifecycle.js",
|
|
276
272
|
"dist/node/runtime/node/community/local-community/editing.js",
|
|
@@ -278,13 +274,21 @@
|
|
|
278
274
|
"dist/node/runtime/node/community/local-community.js"
|
|
279
275
|
]
|
|
280
276
|
},
|
|
281
|
-
"chunks/
|
|
277
|
+
"chunks/local-community-CUDfHfH_.js": {
|
|
278
|
+
"isEntry": false,
|
|
279
|
+
"imports": [
|
|
280
|
+
"chunks/local-community-0xsjgulY.js"
|
|
281
|
+
],
|
|
282
|
+
"dynamicImports": [],
|
|
283
|
+
"inputs": []
|
|
284
|
+
},
|
|
285
|
+
"chunks/node-Bv7hIiW_.js": {
|
|
282
286
|
"isEntry": false,
|
|
283
287
|
"imports": [
|
|
284
288
|
"chunks/chunk-2rV9d50f.js",
|
|
285
|
-
"chunks/rpc-local-community-
|
|
286
|
-
"chunks/util-
|
|
287
|
-
"chunks/util-
|
|
289
|
+
"chunks/rpc-local-community-Bo4Z7ilA.js",
|
|
290
|
+
"chunks/util-BZuCmqxu.js",
|
|
291
|
+
"chunks/util-xhgmI11L.js",
|
|
288
292
|
"path",
|
|
289
293
|
"assert",
|
|
290
294
|
"fs",
|
|
@@ -295,8 +299,8 @@
|
|
|
295
299
|
"rpc-websockets"
|
|
296
300
|
],
|
|
297
301
|
"dynamicImports": [
|
|
298
|
-
"chunks/helia-for-pkc-
|
|
299
|
-
"chunks/local-community-
|
|
302
|
+
"chunks/helia-for-pkc-CP5A7i4M.js",
|
|
303
|
+
"chunks/local-community-0xsjgulY.js"
|
|
300
304
|
],
|
|
301
305
|
"inputs": [
|
|
302
306
|
"dist/node/zod-error-map.js",
|
|
@@ -456,22 +460,22 @@
|
|
|
456
460
|
"dist/node/index.js"
|
|
457
461
|
]
|
|
458
462
|
},
|
|
459
|
-
"chunks/page-sort-scoring-
|
|
463
|
+
"chunks/page-sort-scoring-I02fuGkI.js": {
|
|
460
464
|
"isEntry": false,
|
|
461
465
|
"imports": [
|
|
462
|
-
"chunks/util-
|
|
466
|
+
"chunks/util-BZuCmqxu.js"
|
|
463
467
|
],
|
|
464
468
|
"dynamicImports": [],
|
|
465
469
|
"inputs": [
|
|
466
470
|
"dist/node/pages/page-sort-scoring.js"
|
|
467
471
|
]
|
|
468
472
|
},
|
|
469
|
-
"chunks/rpc-local-community-
|
|
473
|
+
"chunks/rpc-local-community-Bo4Z7ilA.js": {
|
|
470
474
|
"isEntry": false,
|
|
471
475
|
"imports": [
|
|
472
476
|
"chunks/chunk-2rV9d50f.js",
|
|
473
|
-
"chunks/util-
|
|
474
|
-
"chunks/page-sort-scoring-
|
|
477
|
+
"chunks/util-BZuCmqxu.js",
|
|
478
|
+
"chunks/page-sort-scoring-I02fuGkI.js",
|
|
475
479
|
"chunks/src-CYIMjhjK.js",
|
|
476
480
|
"node:crypto",
|
|
477
481
|
"node:url",
|
|
@@ -1082,6 +1086,7 @@
|
|
|
1082
1086
|
"dist/node/signer/encryption.js",
|
|
1083
1087
|
"dist/node/signer/ipns-record.js",
|
|
1084
1088
|
"dist/node/signer/index.js",
|
|
1089
|
+
"dist/node/detached-guard.js",
|
|
1085
1090
|
"node_modules/tiny-typed-emitter/lib/index.js",
|
|
1086
1091
|
"node_modules/@noble/hashes/hmac.js",
|
|
1087
1092
|
"node_modules/@noble/curves/abstract/der.js",
|
|
@@ -1592,22 +1597,7 @@
|
|
|
1592
1597
|
"node_modules/kubo-rpc-client/dist/src/index.js"
|
|
1593
1598
|
]
|
|
1594
1599
|
},
|
|
1595
|
-
"chunks/util-
|
|
1596
|
-
"isEntry": false,
|
|
1597
|
-
"imports": [
|
|
1598
|
-
"chunks/util-DDsWXOtP.js",
|
|
1599
|
-
"ipns/selector",
|
|
1600
|
-
"ipns/validator",
|
|
1601
|
-
"ipns",
|
|
1602
|
-
"uint8arrays/equals",
|
|
1603
|
-
"@libp2p/utils"
|
|
1604
|
-
],
|
|
1605
|
-
"dynamicImports": [],
|
|
1606
|
-
"inputs": [
|
|
1607
|
-
"dist/node/helia/util.js"
|
|
1608
|
-
]
|
|
1609
|
-
},
|
|
1610
|
-
"chunks/util-DDsWXOtP.js": {
|
|
1600
|
+
"chunks/util-BZuCmqxu.js": {
|
|
1611
1601
|
"isEntry": false,
|
|
1612
1602
|
"imports": [
|
|
1613
1603
|
"chunks/chunk-2rV9d50f.js",
|
|
@@ -1702,11 +1692,26 @@
|
|
|
1702
1692
|
"dist/node/util.js"
|
|
1703
1693
|
]
|
|
1704
1694
|
},
|
|
1705
|
-
"chunks/
|
|
1695
|
+
"chunks/util-xhgmI11L.js": {
|
|
1696
|
+
"isEntry": false,
|
|
1697
|
+
"imports": [
|
|
1698
|
+
"chunks/util-BZuCmqxu.js",
|
|
1699
|
+
"ipns/selector",
|
|
1700
|
+
"ipns/validator",
|
|
1701
|
+
"ipns",
|
|
1702
|
+
"uint8arrays/equals",
|
|
1703
|
+
"@libp2p/utils"
|
|
1704
|
+
],
|
|
1705
|
+
"dynamicImports": [],
|
|
1706
|
+
"inputs": [
|
|
1707
|
+
"dist/node/helia/util.js"
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
"chunks/validate-package-factories-BsSEIr__.js": {
|
|
1706
1711
|
"isEntry": false,
|
|
1707
1712
|
"imports": [
|
|
1708
|
-
"chunks/util-
|
|
1709
|
-
"chunks/page-sort-scoring-
|
|
1713
|
+
"chunks/util-BZuCmqxu.js",
|
|
1714
|
+
"chunks/page-sort-scoring-I02fuGkI.js"
|
|
1710
1715
|
],
|
|
1711
1716
|
"dynamicImports": [],
|
|
1712
1717
|
"inputs": [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-
|
|
1
|
+
import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-BsSEIr__.js";
|
|
2
2
|
export { validateChallengeFileFactory };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { C as hideClassPrivateProps, T as ipnsNameToIpnsOverPubsubTopic, Vr as logger_default, n as binaryKeyToPubsubTopic, zr as PKCError } from "./util-
|
|
3
|
-
import { a as directFetchIpnsRecordFromProviders, c as readFreshCachedIpnsRecordFromPubsubLocalStore, i as connectToPubsubPeers, l as selectBitswapSessionSeedPeers, n as REACHABILITY_DOCS_URL, o as fetchBlockWithStalledSessionFailover, r as cacheIpnsRecordInPubsubLocalStore, s as getHeliaDebugContext, u as summarizeProviderReachability } from "./util-
|
|
2
|
+
import { C as hideClassPrivateProps, T as ipnsNameToIpnsOverPubsubTopic, Vr as logger_default, n as binaryKeyToPubsubTopic, zr as PKCError } from "./util-BZuCmqxu.js";
|
|
3
|
+
import { a as directFetchIpnsRecordFromProviders, c as readFreshCachedIpnsRecordFromPubsubLocalStore, i as connectToPubsubPeers, l as selectBitswapSessionSeedPeers, n as REACHABILITY_DOCS_URL, o as fetchBlockWithStalledSessionFailover, r as cacheIpnsRecordInPubsubLocalStore, s as getHeliaDebugContext, u as summarizeProviderReachability } from "./util-xhgmI11L.js";
|
|
4
4
|
import { t as map } from "./src-Cpx2Sts8.js";
|
|
5
5
|
import { t as parallelBatch } from "./src-DKntVmyX.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -6496,6 +6496,7 @@ const pkcDialAddressSorter = (a, b) => loopbackAddressLast(a.multiaddr, b.multia
|
|
|
6496
6496
|
const log = logger_default("pkc-js:libp2p-js");
|
|
6497
6497
|
const libp2pJsClients = {};
|
|
6498
6498
|
const creatingLibp2pJsClients = {};
|
|
6499
|
+
const asUnixfsRoot = (rootCidString) => rootCidString;
|
|
6499
6500
|
const DELEGATED_ROUTING_CONCURRENT_REQUESTS = 32;
|
|
6500
6501
|
const DELEGATED_ROUTING_CACHE_NAME = "delegated-routing-v1-cache";
|
|
6501
6502
|
function deleteLeftoverDelegatedRoutingCache() {
|
|
@@ -7011,7 +7012,7 @@ async function createLibp2pJsClientOrUseExistingOne(pkcOptions) {
|
|
|
7011
7012
|
const session = createSeededBitswapSession(rootCid, bitswapSessionSeedScopeIpnsPubsubTopic);
|
|
7012
7013
|
let yieldedAnyBytes = false;
|
|
7013
7014
|
try {
|
|
7014
|
-
const catIterable = unixfs({ blockstore: session }).cat(
|
|
7015
|
+
const catIterable = unixfs({ blockstore: session }).cat(asUnixfsRoot(rootCidString), {
|
|
7015
7016
|
...unixfsCatOptions,
|
|
7016
7017
|
path: ipfsSubPath,
|
|
7017
7018
|
signal: controller.signal
|
|
@@ -7105,7 +7106,7 @@ async function createLibp2pJsClientOrUseExistingOne(pkcOptions) {
|
|
|
7105
7106
|
for (let attempt = 0;; attempt++) {
|
|
7106
7107
|
const session = createSeededBitswapSession(rootCid, options?.bitswapSessionSeedScopeIpnsPubsubTopic);
|
|
7107
7108
|
try {
|
|
7108
|
-
return `/ipfs/${(await unixfs({ blockstore: session }).stat(
|
|
7109
|
+
return `/ipfs/${(await unixfs({ blockstore: session }).stat(asUnixfsRoot(rootCidString), {
|
|
7109
7110
|
path: subPathSegments.length > 0 ? subPathSegments.join("/") : void 0,
|
|
7110
7111
|
signal: controller.signal
|
|
7111
7112
|
})).cid.toString()}`;
|