@pkcprotocol/pkc-js 0.0.123 → 0.0.125
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 +54 -54
- package/dist/browser/clients/rpc-client/pkc-rpc-client.d.ts +3 -1
- package/dist/browser/clients/rpc-client/pkc-rpc-client.js +18 -3
- package/dist/browser/clients/rpc-client/pkc-rpc-client.js.map +1 -1
- package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +16 -0
- package/dist/browser/clients/rpc-client/rpc-schema-util.js +6 -1
- package/dist/browser/clients/rpc-client/rpc-schema-util.js.map +1 -1
- package/dist/browser/clients/rpc-client/schema.d.ts +12 -0
- package/dist/browser/clients/rpc-client/schema.js +9 -0
- package/dist/browser/clients/rpc-client/schema.js.map +1 -1
- package/dist/browser/clients/rpc-client/types.d.ts +5 -1
- package/dist/browser/community-list/community-list.d.ts +143 -0
- package/dist/browser/community-list/community-list.js +401 -0
- package/dist/browser/community-list/community-list.js.map +1 -0
- package/dist/browser/community-list/schema.d.ts +239 -0
- package/dist/browser/community-list/schema.js +95 -0
- package/dist/browser/community-list/schema.js.map +1 -0
- package/dist/browser/community-list/types.d.ts +19 -0
- package/dist/browser/community-list/types.js +2 -0
- package/dist/browser/community-list/types.js.map +1 -0
- package/dist/browser/domain-util.d.ts +1 -0
- package/dist/browser/domain-util.js +10 -0
- package/dist/browser/domain-util.js.map +1 -1
- package/dist/browser/errors.d.ts +18 -1
- package/dist/browser/errors.js +18 -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/index.d.ts +2 -0
- package/dist/browser/pkc/pkc-client-manager.d.ts +4 -1
- package/dist/browser/pkc/pkc-client-manager.js +6 -4
- package/dist/browser/pkc/pkc-client-manager.js.map +1 -1
- package/dist/browser/pkc/pkc.d.ts +7 -0
- package/dist/browser/pkc/pkc.js +93 -0
- package/dist/browser/pkc/pkc.js.map +1 -1
- package/dist/browser/pkc-error.d.ts +1 -1
- package/dist/browser/rpc/src/index.d.ts +3 -1
- package/dist/browser/rpc/src/index.js +45 -3
- package/dist/browser/rpc/src/index.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/author-identity.js +3 -3
- package/dist/browser/runtime/node/community/local-community/author-identity.js.map +1 -1
- package/dist/browser/schema/schema-util.d.ts +3 -0
- package/dist/browser/schema/schema-util.js +10 -0
- package/dist/browser/schema/schema-util.js.map +1 -1
- package/dist/browser/signer/signatures.d.ts +9 -0
- package/dist/browser/signer/signatures.js +30 -1
- package/dist/browser/signer/signatures.js.map +1 -1
- package/dist/browser/util.d.ts +1 -1
- package/dist/browser/util.js +3 -9
- package/dist/browser/util.js.map +1 -1
- package/dist/bundled/bundle-manifest.json +48 -44
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc-BtJGszgv.js → helia-for-pkc-DXygdFt-.js} +2 -2
- package/dist/bundled/chunks/{local-community-TY_gAkZm.js → local-community-Bbqx5IaD.js} +1 -1
- package/dist/bundled/chunks/{local-community-CAkggMcY.js → local-community-D4I0gLqX.js} +3 -3
- package/dist/bundled/chunks/{node-1HiEdVe5.js → node-oqffR7Bn.js} +423 -109
- package/dist/bundled/chunks/{page-sort-scoring-D6-geqGX.js → page-sort-scoring-CK4vshII.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-ai5r92Ty.js → rpc-local-community-UpO9cs7k.js} +2253 -843
- package/dist/bundled/chunks/{util-BEHFLjBG.js → util-D3vx4Na0.js} +1 -1
- package/dist/bundled/chunks/{util-ZnZWh_jj.js → util-nmnnrzbz.js} +2709 -993
- package/dist/bundled/chunks/{validate-package-factories-BUhAFdOB.js → validate-package-factories-DkJmLpRe.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 +31 -4
- package/dist/node/clients/rpc-client/pkc-rpc-client.d.ts +3 -1
- package/dist/node/clients/rpc-client/pkc-rpc-client.js +18 -3
- package/dist/node/clients/rpc-client/pkc-rpc-client.js.map +1 -1
- package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +16 -0
- package/dist/node/clients/rpc-client/rpc-schema-util.js +6 -1
- package/dist/node/clients/rpc-client/rpc-schema-util.js.map +1 -1
- package/dist/node/clients/rpc-client/schema.d.ts +12 -0
- package/dist/node/clients/rpc-client/schema.js +9 -0
- package/dist/node/clients/rpc-client/schema.js.map +1 -1
- package/dist/node/clients/rpc-client/types.d.ts +5 -1
- package/dist/node/community-list/community-list.d.ts +143 -0
- package/dist/node/community-list/community-list.js +401 -0
- package/dist/node/community-list/community-list.js.map +1 -0
- package/dist/node/community-list/schema.d.ts +239 -0
- package/dist/node/community-list/schema.js +95 -0
- package/dist/node/community-list/schema.js.map +1 -0
- package/dist/node/community-list/types.d.ts +19 -0
- package/dist/node/community-list/types.js +2 -0
- package/dist/node/community-list/types.js.map +1 -0
- package/dist/node/domain-util.d.ts +1 -0
- package/dist/node/domain-util.js +10 -0
- package/dist/node/domain-util.js.map +1 -1
- package/dist/node/errors.d.ts +18 -1
- package/dist/node/errors.js +18 -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/index.d.ts +2 -0
- package/dist/node/pkc/pkc-client-manager.d.ts +4 -1
- package/dist/node/pkc/pkc-client-manager.js +6 -4
- package/dist/node/pkc/pkc-client-manager.js.map +1 -1
- package/dist/node/pkc/pkc.d.ts +7 -0
- package/dist/node/pkc/pkc.js +93 -0
- package/dist/node/pkc/pkc.js.map +1 -1
- package/dist/node/pkc-error.d.ts +1 -1
- package/dist/node/rpc/src/index.d.ts +3 -1
- package/dist/node/rpc/src/index.js +45 -3
- package/dist/node/rpc/src/index.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/author-identity.js +3 -3
- package/dist/node/runtime/node/community/local-community/author-identity.js.map +1 -1
- package/dist/node/schema/schema-util.d.ts +3 -0
- package/dist/node/schema/schema-util.js +10 -0
- package/dist/node/schema/schema-util.js.map +1 -1
- package/dist/node/signer/signatures.d.ts +9 -0
- package/dist/node/signer/signatures.js +30 -1
- package/dist/node/signer/signatures.js.map +1 -1
- package/dist/node/util.d.ts +1 -1
- package/dist/node/util.js +3 -9
- package/dist/node/util.js.map +1 -1
- package/package.json +6 -6
|
@@ -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-DkJmLpRe.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-oqffR7Bn.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-oqffR7Bn.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-DkJmLpRe.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-UpO9cs7k.js",
|
|
48
|
+
"chunks/node-oqffR7Bn.js",
|
|
49
|
+
"chunks/util-nmnnrzbz.js",
|
|
50
|
+
"chunks/local-community-D4I0gLqX.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-DXygdFt-.js": {
|
|
81
81
|
"isEntry": false,
|
|
82
82
|
"imports": [
|
|
83
83
|
"chunks/chunk-2rV9d50f.js",
|
|
84
|
-
"chunks/util-
|
|
85
|
-
"chunks/util-
|
|
84
|
+
"chunks/util-nmnnrzbz.js",
|
|
85
|
+
"chunks/util-D3vx4Na0.js",
|
|
86
86
|
"chunks/src-DKntVmyX.js",
|
|
87
87
|
"chunks/src-Cpx2Sts8.js",
|
|
88
88
|
"node:url",
|
|
@@ -201,13 +201,21 @@
|
|
|
201
201
|
"dist/node/helia/helia-for-pkc.js"
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
|
-
"chunks/local-community-
|
|
204
|
+
"chunks/local-community-Bbqx5IaD.js": {
|
|
205
|
+
"isEntry": false,
|
|
206
|
+
"imports": [
|
|
207
|
+
"chunks/local-community-D4I0gLqX.js"
|
|
208
|
+
],
|
|
209
|
+
"dynamicImports": [],
|
|
210
|
+
"inputs": []
|
|
211
|
+
},
|
|
212
|
+
"chunks/local-community-D4I0gLqX.js": {
|
|
205
213
|
"isEntry": false,
|
|
206
214
|
"imports": [
|
|
207
215
|
"chunks/chunk-2rV9d50f.js",
|
|
208
|
-
"chunks/rpc-local-community-
|
|
209
|
-
"chunks/util-
|
|
210
|
-
"chunks/page-sort-scoring-
|
|
216
|
+
"chunks/rpc-local-community-UpO9cs7k.js",
|
|
217
|
+
"chunks/util-nmnnrzbz.js",
|
|
218
|
+
"chunks/page-sort-scoring-CK4vshII.js",
|
|
211
219
|
"node:crypto",
|
|
212
220
|
"node:url",
|
|
213
221
|
"node:path",
|
|
@@ -266,21 +274,13 @@
|
|
|
266
274
|
"dist/node/runtime/node/community/local-community.js"
|
|
267
275
|
]
|
|
268
276
|
},
|
|
269
|
-
"chunks/
|
|
270
|
-
"isEntry": false,
|
|
271
|
-
"imports": [
|
|
272
|
-
"chunks/local-community-CAkggMcY.js"
|
|
273
|
-
],
|
|
274
|
-
"dynamicImports": [],
|
|
275
|
-
"inputs": []
|
|
276
|
-
},
|
|
277
|
-
"chunks/node-1HiEdVe5.js": {
|
|
277
|
+
"chunks/node-oqffR7Bn.js": {
|
|
278
278
|
"isEntry": false,
|
|
279
279
|
"imports": [
|
|
280
280
|
"chunks/chunk-2rV9d50f.js",
|
|
281
|
-
"chunks/rpc-local-community-
|
|
282
|
-
"chunks/util-
|
|
283
|
-
"chunks/util-
|
|
281
|
+
"chunks/rpc-local-community-UpO9cs7k.js",
|
|
282
|
+
"chunks/util-nmnnrzbz.js",
|
|
283
|
+
"chunks/util-D3vx4Na0.js",
|
|
284
284
|
"path",
|
|
285
285
|
"assert",
|
|
286
286
|
"fs",
|
|
@@ -291,11 +291,10 @@
|
|
|
291
291
|
"rpc-websockets"
|
|
292
292
|
],
|
|
293
293
|
"dynamicImports": [
|
|
294
|
-
"chunks/helia-for-pkc-
|
|
295
|
-
"chunks/local-community-
|
|
294
|
+
"chunks/helia-for-pkc-DXygdFt-.js",
|
|
295
|
+
"chunks/local-community-D4I0gLqX.js"
|
|
296
296
|
],
|
|
297
297
|
"inputs": [
|
|
298
|
-
"node_modules/zod/v4/locales/en.js",
|
|
299
298
|
"dist/node/zod-error-map.js",
|
|
300
299
|
"node_modules/@enhances/with-resolvers/dist/index.js",
|
|
301
300
|
"dist/node/runtime/node/polyfill.js",
|
|
@@ -333,28 +332,29 @@
|
|
|
333
332
|
"dist/node/publications/comment-moderation/comment-moderation.js",
|
|
334
333
|
"dist/node/runtime/node/setup-kubo-http-routers.js",
|
|
335
334
|
"dist/node/publications/community-edit/community-edit.js",
|
|
335
|
+
"dist/node/community-list/community-list.js",
|
|
336
336
|
"dist/node/pkc/pkc.js",
|
|
337
337
|
"dist/node/runtime/browser/native-functions.js",
|
|
338
338
|
"dist/node/pkc/pkc-with-rpc-client.js",
|
|
339
339
|
"dist/node/index.js"
|
|
340
340
|
]
|
|
341
341
|
},
|
|
342
|
-
"chunks/page-sort-scoring-
|
|
342
|
+
"chunks/page-sort-scoring-CK4vshII.js": {
|
|
343
343
|
"isEntry": false,
|
|
344
344
|
"imports": [
|
|
345
|
-
"chunks/util-
|
|
345
|
+
"chunks/util-nmnnrzbz.js"
|
|
346
346
|
],
|
|
347
347
|
"dynamicImports": [],
|
|
348
348
|
"inputs": [
|
|
349
349
|
"dist/node/pages/page-sort-scoring.js"
|
|
350
350
|
]
|
|
351
351
|
},
|
|
352
|
-
"chunks/rpc-local-community-
|
|
352
|
+
"chunks/rpc-local-community-UpO9cs7k.js": {
|
|
353
353
|
"isEntry": false,
|
|
354
354
|
"imports": [
|
|
355
355
|
"chunks/chunk-2rV9d50f.js",
|
|
356
|
-
"chunks/util-
|
|
357
|
-
"chunks/page-sort-scoring-
|
|
356
|
+
"chunks/util-nmnnrzbz.js",
|
|
357
|
+
"chunks/page-sort-scoring-CK4vshII.js",
|
|
358
358
|
"chunks/src-CYIMjhjK.js",
|
|
359
359
|
"node:crypto",
|
|
360
360
|
"node:url",
|
|
@@ -684,7 +684,8 @@
|
|
|
684
684
|
"node_modules/stream-parser/node_modules/debug/src/node.js",
|
|
685
685
|
"node_modules/stream-parser/node_modules/debug/src/index.js",
|
|
686
686
|
"node_modules/stream-parser/index.js",
|
|
687
|
-
"node_modules/probe-image-size/lib/common.js",
|
|
687
|
+
"node_modules/probe-image-size/lib/common/read_le_be.js",
|
|
688
|
+
"node_modules/probe-image-size/lib/common/index.js",
|
|
688
689
|
"node_modules/probe-image-size/lib/miaf_utils.js",
|
|
689
690
|
"node_modules/probe-image-size/lib/exif_utils.js",
|
|
690
691
|
"node_modules/probe-image-size/lib/parse_stream/avif.js",
|
|
@@ -694,6 +695,7 @@
|
|
|
694
695
|
"node_modules/probe-image-size/lib/parse_stream/jpeg.js",
|
|
695
696
|
"node_modules/probe-image-size/lib/parse_stream/png.js",
|
|
696
697
|
"node_modules/probe-image-size/lib/parse_stream/psd.js",
|
|
698
|
+
"node_modules/probe-image-size/lib/common/svg_header.js",
|
|
697
699
|
"node_modules/probe-image-size/lib/parse_stream/svg.js",
|
|
698
700
|
"node_modules/probe-image-size/lib/parse_stream/tiff.js",
|
|
699
701
|
"node_modules/probe-image-size/lib/parse_stream/webp.js",
|
|
@@ -799,6 +801,7 @@
|
|
|
799
801
|
"node_modules/cborg/cborg.js",
|
|
800
802
|
"dist/node/publications/publication-community.js",
|
|
801
803
|
"dist/node/publications/comment/crosspost-depth.js",
|
|
804
|
+
"dist/node/community-list/schema.js",
|
|
802
805
|
"dist/node/publications/publication-author.js",
|
|
803
806
|
"dist/node/signer/signatures.js",
|
|
804
807
|
"node_modules/node-forge/lib/forge.js",
|
|
@@ -1302,10 +1305,10 @@
|
|
|
1302
1305
|
"node_modules/it-parallel-batch/dist/src/index.js"
|
|
1303
1306
|
]
|
|
1304
1307
|
},
|
|
1305
|
-
"chunks/util-
|
|
1308
|
+
"chunks/util-D3vx4Na0.js": {
|
|
1306
1309
|
"isEntry": false,
|
|
1307
1310
|
"imports": [
|
|
1308
|
-
"chunks/util-
|
|
1311
|
+
"chunks/util-nmnnrzbz.js",
|
|
1309
1312
|
"ipns/selector",
|
|
1310
1313
|
"ipns/validator",
|
|
1311
1314
|
"ipns",
|
|
@@ -1316,7 +1319,7 @@
|
|
|
1316
1319
|
"dist/node/helia/util.js"
|
|
1317
1320
|
]
|
|
1318
1321
|
},
|
|
1319
|
-
"chunks/util-
|
|
1322
|
+
"chunks/util-nmnnrzbz.js": {
|
|
1320
1323
|
"isEntry": false,
|
|
1321
1324
|
"imports": [
|
|
1322
1325
|
"chunks/chunk-2rV9d50f.js",
|
|
@@ -1333,8 +1336,8 @@
|
|
|
1333
1336
|
"chunks/src-B07ldGHS.js"
|
|
1334
1337
|
],
|
|
1335
1338
|
"inputs": [
|
|
1336
|
-
"node_modules/zod/v4/core/core.js",
|
|
1337
1339
|
"node_modules/zod/v4/core/util.js",
|
|
1340
|
+
"node_modules/zod/v4/core/core.js",
|
|
1338
1341
|
"node_modules/zod/v4/core/errors.js",
|
|
1339
1342
|
"node_modules/zod/v4/core/parse.js",
|
|
1340
1343
|
"node_modules/zod/v4/core/regexes.js",
|
|
@@ -1342,11 +1345,12 @@
|
|
|
1342
1345
|
"node_modules/zod/v4/core/doc.js",
|
|
1343
1346
|
"node_modules/zod/v4/core/versions.js",
|
|
1344
1347
|
"node_modules/zod/v4/core/schemas.js",
|
|
1348
|
+
"node_modules/zod/v4/core/memoizer.js",
|
|
1349
|
+
"node_modules/zod/v4/locales/en.js",
|
|
1345
1350
|
"node_modules/zod/v4/core/registries.js",
|
|
1346
1351
|
"node_modules/zod/v4/core/api.js",
|
|
1347
1352
|
"node_modules/zod/v4/core/to-json-schema.js",
|
|
1348
1353
|
"node_modules/zod/v4/core/json-schema-processors.js",
|
|
1349
|
-
"node_modules/zod/v4/classic/iso.js",
|
|
1350
1354
|
"node_modules/zod/v4/classic/errors.js",
|
|
1351
1355
|
"node_modules/zod/v4/classic/parse.js",
|
|
1352
1356
|
"node_modules/zod/v4/classic/schemas.js",
|
|
@@ -1410,11 +1414,11 @@
|
|
|
1410
1414
|
"dist/node/util.js"
|
|
1411
1415
|
]
|
|
1412
1416
|
},
|
|
1413
|
-
"chunks/validate-package-factories-
|
|
1417
|
+
"chunks/validate-package-factories-DkJmLpRe.js": {
|
|
1414
1418
|
"isEntry": false,
|
|
1415
1419
|
"imports": [
|
|
1416
|
-
"chunks/util-
|
|
1417
|
-
"chunks/page-sort-scoring-
|
|
1420
|
+
"chunks/util-nmnnrzbz.js",
|
|
1421
|
+
"chunks/page-sort-scoring-CK4vshII.js"
|
|
1418
1422
|
],
|
|
1419
1423
|
"dynamicImports": [],
|
|
1420
1424
|
"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-DkJmLpRe.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 {
|
|
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, Ir as PKCError, Rr as logger_default, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic } from "./util-nmnnrzbz.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-D3vx4Na0.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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-
|
|
1
|
+
import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-D4I0gLqX.js";
|
|
2
2
|
export { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { $
|
|
3
|
-
import { $n as
|
|
4
|
-
import { a as scorePageCommentsWithFile, i as partitionPageCommentsForSort, n as filterRepliesForPageSort, o as stripRepliesFromPageComment, r as orderPageCommentsByScore, t as createDescendantsLookup } from "./page-sort-scoring-
|
|
2
|
+
import { $ as retryKuboIpfsAddAndProvide, Ar as require_retry, Bn as CommentUpdateSchema, C as hideClassPrivateProps, Cn as isStringDomain, Cr as r$1, Ct as untrackStartedCommunity, Dn as VotePubsubReservedFields, Dr as t$4, En as VotePubsubMessagePublicationSchema, Et as require_sha256, F as isLinkOfVideo, Ft as ChallengeVerificationMessageSchema, G as removeMfsFilesSafely, Hn as CommentUpdateTableRowSchema, I as isLinkValid, Ir as PKCError, Lr as messages, M as isLinkOfAudio, Mn as CommentIpfsSchema, N as isLinkOfImage, Nn as CommentPubsubMessageReservedFields, Nt as ChallengeRequestMessageSchema, Or as t$2, Ot as pTimeout, P as isLinkOfMedia, Qn as CommentEditReservedFields, Rr as logger_default, Rt as DecryptedChallengeRequestPublicationSchema, St as trackUpdatingCommunity, T as ipnsNameToIpnsOverPubsubTopic, Tt as untrackUpdatingCommunity, Un as CommentsTableRowSchema, W as removeBlocksFromKuboNode, Xn as CommentEditPubsubMessagePublicationSchema, Yt as CommunityEditPublicationPubsubReservedFields, Z as retryKuboBlockPutPinAndProvidePubsubTopic, Zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, _ as genToArray, _r as n$2, ar as AuthorReservedFields, at as timestamp, b as getIpnsRecordInLocalKuboNode, br as e$1, bt as trackStartedCommunity, c as contentContainsMarkdownImages, ct as withSortedKeysDeep, dt as findStartedCommunity, ei as ZodError, en as CommentModerationPubsubMessagePublicationSchema, er as CommentEditsTableRowSchema, f as derivePublicationFromChallengeRequest, fn as CommunityIpfsSchema, g as findMalformedUnicodeString, gr as t$7, hr as n$3, i as calculateStringSizeSameAsIpfsAddCidV0, j as isLinkOfAnimatedImage, jt as ChallengeMessageSchema, kn as VoteTablesRowSchema, kt as ChallengeAnswerMessageSchema, l as contentContainsMarkdownVideos, lt as writeKuboFilesWithTimeout, nt as sleepUntilTimeoutOrAbort, o as calculateUnixFsDagSizeCidV0, p as doesDomainAddressHaveCapitalLetter, pn as CommunitySignedPropertyNames, pt as findUpdatingCommunity, q as removeNullUndefinedValues, qt as version_default, r as calculateIpfsCidV0, rn as CommentModerationsTableRowSchema, rt as statMfsPathSafely, s as contentContainsMarkdownAudio, st as withSortedKeys, t as areEquivalentCommunityAddresses, tn as CommentModerationReservedFields, ut as findCommunityInRegistry, v as getEquivalentCommunityAddresses, vr as t$5, wr as t$3, xr as e, y as getErrorCodeFromMessage, yr as t$6, yt as syncCommunityRegistryEntry, z as pubsubTopicToDhtKey, zt as DecryptedChallengeRequestSchema } from "./util-nmnnrzbz.js";
|
|
3
|
+
import { $n as getCommunityPublicKeyFromWire, Ar as r$2, Bn as buildRuntimeAuthor, Cn as signCommunity, Cr as moveCommunityDbToDeletedDirectory, Ct as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Dn as verifyChallengeAnswer, Et as parseJsonWithPKCErrorIfFails, Fn as verifyCommentUpdate, Fr as t$9, Hr as require_lodash_merge, In as verifyCommunity, Ir as stringify, Jn as crosspostChainDepthUpTo, Ln as verifyCommunityEdit, Mn as verifyCommentIpfs, Mr as n$5, Nn as verifyCommentModeration, Nr as n$4, Or as t$10, Pn as verifyCommentPubsubMessage, Q as createSchemaRowParser, Qn as getCommunityNameFromWire, S as KeyvBetterSqlite3, Sn as signCommentUpdateForChallengeVerification, Tr as resolveDbPostsCidRefs, U as pLimit, Un as getAuthorNameFromWire, Vn as cleanWireAuthor, Vr as STORAGE_KEYS, X as coerceSchemaRowJson, Y as coerceSchemaRowBoolean, Yn as effectiveMaxCrosspostDepth, Z as collectSchemaRowCoercions, _ as createAuthorIdentityMatcher, _n as signChallengeVerification, _r as getDefaultCommunityDbConfig, a as generatePagesReportingFailedSorts, an as SignerWithPublicKeyAddress, ar as getPKCAddressFromPublicKey, br as importSignerIntoKuboNode, c as resolvePageSortsOrThrow, cr as BackupAbortError, d as getChallengeVerification, dn as encryptEd25519AesGcmPublicKeyBuffer, dr as calculateInlineRepliesBudget, f as getCommunityChallengeFromCommunityChallengeSettings, fn as _validateSignatureOfPKCRecord, ft as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, g as authorNameResolveFailureReason, gr as deriveDbReplies, h as authorIdentityMatcherForRequest, hn as signChallengeMessage, hr as deriveDbPosts, i as derivePublicPageSorts, ir as getIpfsKeyFromPrivateKey, j as iterateOverPageCidsToFindAllCids, jn as verifyCommentEdit, jr as t$8, kn as verifyChallengeRequest, kr as t$11, ln as decryptEd25519AesGcmPublicKeyBuffer, lr as backupCommunityDb, m as pkcJsChallenges, mr as deriveCommentIpfsFromCommentTableRow, nr as encode, o as loadPageSortsForStartedCommunity, or as getPKCAddressFromPublicKeySync, p as loadChallengeFileFromCommunityChallengeSettings, pn as cleanUpBeforePublishing, pr as deleteOldCommunityInWindows, r as computePageSortsFingerprint, s as lookupPageSortFactories, sr as getPublicKeyFromPrivateKey, t as RpcLocalCommunity, tr as decode, u as deriveCommunityChallengesOrThrow, ur as calculateExpectedSignatureSize, ut as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, v as TrackedInstanceRegistry, vn as signComment, w as TIMEFRAMES_TO_SECONDS, wr as refreshCommunitiesList, x as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, xn as signCommentUpdate, y as LRUCache, yn as signCommentEdit, yr as getThumbnailPropsOfLink, zn as verifyVote } from "./rpc-local-community-UpO9cs7k.js";
|
|
4
|
+
import { a as scorePageCommentsWithFile, i as partitionPageCommentsForSort, n as filterRepliesForPageSort, o as stripRepliesFromPageComment, r as orderPageCommentsByScore, t as createDescendantsLookup } from "./page-sort-scoring-CK4vshII.js";
|
|
5
5
|
import { randomFillSync, randomUUID } from "node:crypto";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
7
|
import Path from "node:path";
|