@pkcprotocol/pkc-js 0.0.146 → 0.0.147
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 +88 -55
- package/dist/browser/clients/base-client-manager.js +14 -2
- package/dist/browser/clients/base-client-manager.js.map +1 -1
- package/dist/browser/errors.d.ts +3 -0
- package/dist/browser/errors.js +3 -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/pkc-error.d.ts +1 -1
- package/dist/browser/publications/comment/comment-client-manager.d.ts +15 -3
- package/dist/browser/publications/comment/comment-client-manager.js +221 -10
- package/dist/browser/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/browser/publications/comment/comment.js +1 -0
- package/dist/browser/publications/comment/comment.js.map +1 -1
- package/dist/browser/runtime/node/community/db-handler.d.ts +5 -1
- package/dist/browser/runtime/node/community/db-handler.js +64 -12
- package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/db-state.js +95 -13
- package/dist/browser/runtime/node/community/local-community/db-state.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/editing.js +92 -22
- package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/lifecycle.d.ts +2 -0
- package/dist/browser/runtime/node/community/local-community/lifecycle.js +72 -20
- package/dist/browser/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community.d.ts +1 -0
- package/dist/browser/runtime/node/community/local-community.js +3 -0
- package/dist/browser/runtime/node/community/local-community.js.map +1 -1
- package/dist/browser/runtime/node/util.d.ts +9 -0
- package/dist/browser/runtime/node/util.js +141 -25
- package/dist/browser/runtime/node/util.js.map +1 -1
- package/dist/browser/test/test-util.d.ts +7 -1
- package/dist/browser/test/test-util.js +45 -16
- package/dist/browser/test/test-util.js.map +1 -1
- package/dist/bundled/bundle-manifest.json +47 -47
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc-PaZmkxgn.js → helia-for-pkc-jM3y3OXF.js} +2 -2
- package/dist/bundled/chunks/{local-community-BY1ouP1-.js → local-community-5X7bvOoN.js} +247 -52
- package/dist/bundled/chunks/{local-community-CeuVhBBn.js → local-community-P9e5jksW.js} +1 -1
- package/dist/bundled/chunks/{node-BXilwSVE.js → node-By3og2hw.js} +162 -16
- package/dist/bundled/chunks/{page-sort-scoring-DgSzIxmE.js → page-sort-scoring-DwYGP_0d.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-BK_HGb_u.js → rpc-local-community-WnhiTbxm.js} +122 -29
- package/dist/bundled/chunks/{util-DRSzW-LU.js → util-7QtFMzpc.js} +1 -1
- package/dist/bundled/chunks/{util-Bnqvxk-6.js → util-DMr7Hj-w.js} +4 -1
- package/dist/bundled/chunks/{validate-package-factories-MG5ehoSU.js → validate-package-factories-TwRblx9f.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 +14 -2
- package/dist/node/clients/base-client-manager.js.map +1 -1
- package/dist/node/errors.d.ts +3 -0
- package/dist/node/errors.js +3 -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/pkc-error.d.ts +1 -1
- package/dist/node/publications/comment/comment-client-manager.d.ts +15 -3
- package/dist/node/publications/comment/comment-client-manager.js +221 -10
- package/dist/node/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/node/publications/comment/comment.js +1 -0
- package/dist/node/publications/comment/comment.js.map +1 -1
- package/dist/node/runtime/node/community/db-handler.d.ts +5 -1
- package/dist/node/runtime/node/community/db-handler.js +64 -12
- package/dist/node/runtime/node/community/db-handler.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/db-state.js +95 -13
- package/dist/node/runtime/node/community/local-community/db-state.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/editing.js +92 -22
- package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/lifecycle.d.ts +2 -0
- package/dist/node/runtime/node/community/local-community/lifecycle.js +72 -20
- package/dist/node/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/node/runtime/node/community/local-community.d.ts +1 -0
- package/dist/node/runtime/node/community/local-community.js +3 -0
- package/dist/node/runtime/node/community/local-community.js.map +1 -1
- package/dist/node/runtime/node/util.d.ts +9 -0
- package/dist/node/runtime/node/util.js +141 -25
- package/dist/node/runtime/node/util.js.map +1 -1
- package/dist/node/test/test-util.d.ts +7 -1
- package/dist/node/test/test-util.js +45 -16
- package/dist/node/test/test-util.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-TwRblx9f.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-By3og2hw.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-By3og2hw.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-TwRblx9f.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-WnhiTbxm.js",
|
|
48
|
+
"chunks/node-By3og2hw.js",
|
|
49
|
+
"chunks/util-DMr7Hj-w.js",
|
|
50
|
+
"chunks/local-community-5X7bvOoN.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-jM3y3OXF.js": {
|
|
81
81
|
"isEntry": false,
|
|
82
82
|
"imports": [
|
|
83
83
|
"chunks/chunk-2rV9d50f.js",
|
|
84
|
-
"chunks/util-
|
|
85
|
-
"chunks/util-
|
|
84
|
+
"chunks/util-DMr7Hj-w.js",
|
|
85
|
+
"chunks/util-7QtFMzpc.js",
|
|
86
86
|
"chunks/src-DKntVmyX.js",
|
|
87
87
|
"chunks/src-Cpx2Sts8.js",
|
|
88
88
|
"node:url",
|
|
@@ -204,13 +204,13 @@
|
|
|
204
204
|
"dist/node/helia/helia-for-pkc.js"
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
|
-
"chunks/local-community-
|
|
207
|
+
"chunks/local-community-5X7bvOoN.js": {
|
|
208
208
|
"isEntry": false,
|
|
209
209
|
"imports": [
|
|
210
210
|
"chunks/chunk-2rV9d50f.js",
|
|
211
|
-
"chunks/rpc-local-community-
|
|
212
|
-
"chunks/util-
|
|
213
|
-
"chunks/page-sort-scoring-
|
|
211
|
+
"chunks/rpc-local-community-WnhiTbxm.js",
|
|
212
|
+
"chunks/util-DMr7Hj-w.js",
|
|
213
|
+
"chunks/page-sort-scoring-DwYGP_0d.js",
|
|
214
214
|
"node:url",
|
|
215
215
|
"node:path",
|
|
216
216
|
"os",
|
|
@@ -262,21 +262,21 @@
|
|
|
262
262
|
"dist/node/runtime/node/community/local-community.js"
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
|
-
"chunks/local-community-
|
|
265
|
+
"chunks/local-community-P9e5jksW.js": {
|
|
266
266
|
"isEntry": false,
|
|
267
267
|
"imports": [
|
|
268
|
-
"chunks/local-community-
|
|
268
|
+
"chunks/local-community-5X7bvOoN.js"
|
|
269
269
|
],
|
|
270
270
|
"dynamicImports": [],
|
|
271
271
|
"inputs": []
|
|
272
272
|
},
|
|
273
|
-
"chunks/node-
|
|
273
|
+
"chunks/node-By3og2hw.js": {
|
|
274
274
|
"isEntry": false,
|
|
275
275
|
"imports": [
|
|
276
276
|
"chunks/chunk-2rV9d50f.js",
|
|
277
|
-
"chunks/rpc-local-community-
|
|
278
|
-
"chunks/util-
|
|
279
|
-
"chunks/util-
|
|
277
|
+
"chunks/rpc-local-community-WnhiTbxm.js",
|
|
278
|
+
"chunks/util-DMr7Hj-w.js",
|
|
279
|
+
"chunks/util-7QtFMzpc.js",
|
|
280
280
|
"path",
|
|
281
281
|
"assert",
|
|
282
282
|
"fs",
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
"rpc-websockets"
|
|
288
288
|
],
|
|
289
289
|
"dynamicImports": [
|
|
290
|
-
"chunks/helia-for-pkc-
|
|
291
|
-
"chunks/local-community-
|
|
290
|
+
"chunks/helia-for-pkc-jM3y3OXF.js",
|
|
291
|
+
"chunks/local-community-5X7bvOoN.js"
|
|
292
292
|
],
|
|
293
293
|
"inputs": [
|
|
294
294
|
"dist/node/zod-error-map.js",
|
|
@@ -448,22 +448,22 @@
|
|
|
448
448
|
"dist/node/index.js"
|
|
449
449
|
]
|
|
450
450
|
},
|
|
451
|
-
"chunks/page-sort-scoring-
|
|
451
|
+
"chunks/page-sort-scoring-DwYGP_0d.js": {
|
|
452
452
|
"isEntry": false,
|
|
453
453
|
"imports": [
|
|
454
|
-
"chunks/util-
|
|
454
|
+
"chunks/util-DMr7Hj-w.js"
|
|
455
455
|
],
|
|
456
456
|
"dynamicImports": [],
|
|
457
457
|
"inputs": [
|
|
458
458
|
"dist/node/pages/page-sort-scoring.js"
|
|
459
459
|
]
|
|
460
460
|
},
|
|
461
|
-
"chunks/rpc-local-community-
|
|
461
|
+
"chunks/rpc-local-community-WnhiTbxm.js": {
|
|
462
462
|
"isEntry": false,
|
|
463
463
|
"imports": [
|
|
464
464
|
"chunks/chunk-2rV9d50f.js",
|
|
465
|
-
"chunks/util-
|
|
466
|
-
"chunks/page-sort-scoring-
|
|
465
|
+
"chunks/util-DMr7Hj-w.js",
|
|
466
|
+
"chunks/page-sort-scoring-DwYGP_0d.js",
|
|
467
467
|
"chunks/src-CYIMjhjK.js",
|
|
468
468
|
"node:crypto",
|
|
469
469
|
"node:url",
|
|
@@ -1576,7 +1576,22 @@
|
|
|
1576
1576
|
"node_modules/kubo-rpc-client/dist/src/index.js"
|
|
1577
1577
|
]
|
|
1578
1578
|
},
|
|
1579
|
-
"chunks/util-
|
|
1579
|
+
"chunks/util-7QtFMzpc.js": {
|
|
1580
|
+
"isEntry": false,
|
|
1581
|
+
"imports": [
|
|
1582
|
+
"chunks/util-DMr7Hj-w.js",
|
|
1583
|
+
"ipns/selector",
|
|
1584
|
+
"ipns/validator",
|
|
1585
|
+
"ipns",
|
|
1586
|
+
"uint8arrays/equals",
|
|
1587
|
+
"@libp2p/utils"
|
|
1588
|
+
],
|
|
1589
|
+
"dynamicImports": [],
|
|
1590
|
+
"inputs": [
|
|
1591
|
+
"dist/node/helia/util.js"
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1594
|
+
"chunks/util-DMr7Hj-w.js": {
|
|
1580
1595
|
"isEntry": false,
|
|
1581
1596
|
"imports": [
|
|
1582
1597
|
"chunks/chunk-2rV9d50f.js",
|
|
@@ -1671,26 +1686,11 @@
|
|
|
1671
1686
|
"dist/node/util.js"
|
|
1672
1687
|
]
|
|
1673
1688
|
},
|
|
1674
|
-
"chunks/
|
|
1675
|
-
"isEntry": false,
|
|
1676
|
-
"imports": [
|
|
1677
|
-
"chunks/util-Bnqvxk-6.js",
|
|
1678
|
-
"ipns/selector",
|
|
1679
|
-
"ipns/validator",
|
|
1680
|
-
"ipns",
|
|
1681
|
-
"uint8arrays/equals",
|
|
1682
|
-
"@libp2p/utils"
|
|
1683
|
-
],
|
|
1684
|
-
"dynamicImports": [],
|
|
1685
|
-
"inputs": [
|
|
1686
|
-
"dist/node/helia/util.js"
|
|
1687
|
-
]
|
|
1688
|
-
},
|
|
1689
|
-
"chunks/validate-package-factories-MG5ehoSU.js": {
|
|
1689
|
+
"chunks/validate-package-factories-TwRblx9f.js": {
|
|
1690
1690
|
"isEntry": false,
|
|
1691
1691
|
"imports": [
|
|
1692
|
-
"chunks/util-
|
|
1693
|
-
"chunks/page-sort-scoring-
|
|
1692
|
+
"chunks/util-DMr7Hj-w.js",
|
|
1693
|
+
"chunks/page-sort-scoring-DwYGP_0d.js"
|
|
1694
1694
|
],
|
|
1695
1695
|
"dynamicImports": [],
|
|
1696
1696
|
"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-TwRblx9f.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 { Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic } 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 { Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic } from "./util-DMr7Hj-w.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-7QtFMzpc.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";
|