@pkcprotocol/pkc-js 0.0.128 → 0.0.129

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.
Files changed (102) hide show
  1. package/README.md +16 -5
  2. package/dist/browser/clients/rpc-client/pkc-rpc-client.d.ts +2 -2
  3. package/dist/browser/clients/rpc-client/pkc-rpc-client.js +8 -3
  4. package/dist/browser/clients/rpc-client/pkc-rpc-client.js.map +1 -1
  5. package/dist/browser/clients/rpc-client/schema.d.ts +10 -1
  6. package/dist/browser/clients/rpc-client/schema.js +8 -1
  7. package/dist/browser/clients/rpc-client/schema.js.map +1 -1
  8. package/dist/browser/clients/rpc-client/types.d.ts +5 -1
  9. package/dist/browser/community/communities-entry-util.d.ts +14 -0
  10. package/dist/browser/community/communities-entry-util.js +20 -0
  11. package/dist/browser/community/communities-entry-util.js.map +1 -0
  12. package/dist/browser/errors.d.ts +1 -0
  13. package/dist/browser/errors.js +1 -0
  14. package/dist/browser/errors.js.map +1 -1
  15. package/dist/browser/generated-version.d.ts +1 -1
  16. package/dist/browser/generated-version.js +1 -1
  17. package/dist/browser/pkc/pkc-with-rpc-client.d.ts +2 -0
  18. package/dist/browser/pkc/pkc-with-rpc-client.js +66 -3
  19. package/dist/browser/pkc/pkc-with-rpc-client.js.map +1 -1
  20. package/dist/browser/pkc/pkc.d.ts +5 -3
  21. package/dist/browser/pkc/pkc.js +15 -10
  22. package/dist/browser/pkc/pkc.js.map +1 -1
  23. package/dist/browser/pkc-error.d.ts +1 -1
  24. package/dist/browser/rpc/src/index.js +10 -8
  25. package/dist/browser/rpc/src/index.js.map +1 -1
  26. package/dist/browser/runtime/browser/util.d.ts +1 -0
  27. package/dist/browser/runtime/browser/util.js +3 -0
  28. package/dist/browser/runtime/browser/util.js.map +1 -1
  29. package/dist/browser/runtime/node/community/db-handler.js +2 -4
  30. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  31. package/dist/browser/runtime/node/community/local-community/editing.js +13 -6
  32. package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
  33. package/dist/browser/runtime/node/community/local-community.js +9 -1
  34. package/dist/browser/runtime/node/community/local-community.js.map +1 -1
  35. package/dist/browser/runtime/node/community/start-lock.d.ts +8 -0
  36. package/dist/browser/runtime/node/community/start-lock.js +18 -0
  37. package/dist/browser/runtime/node/community/start-lock.js.map +1 -0
  38. package/dist/browser/runtime/node/util.d.ts +6 -0
  39. package/dist/browser/runtime/node/util.js +106 -8
  40. package/dist/browser/runtime/node/util.js.map +1 -1
  41. package/dist/browser/test/test-util.d.ts +20 -0
  42. package/dist/browser/test/test-util.js +25 -0
  43. package/dist/browser/test/test-util.js.map +1 -1
  44. package/dist/browser/types.d.ts +7 -3
  45. package/dist/bundled/bundle-manifest.json +65 -63
  46. package/dist/bundled/challenges.js +1 -1
  47. package/dist/bundled/chunks/{helia-for-pkc-6kkeZX1a.js → helia-for-pkc-Cg_zH9dT.js} +31 -31
  48. package/dist/bundled/chunks/{local-community-BST1U_f3.js → local-community-CufTrjaK.js} +1 -1
  49. package/dist/bundled/chunks/{local-community-B79BAYRo.js → local-community-Gj16RMFM.js} +18 -1381
  50. package/dist/bundled/chunks/{node-BEH8NA_I.js → node-jDoQBCgW.js} +76 -16
  51. package/dist/bundled/chunks/{page-sort-scoring-2FkqYYNf.js → page-sort-scoring-B53_j_WT.js} +1 -1
  52. package/dist/bundled/chunks/{rpc-local-community-SmLDPm1j.js → rpc-local-community-9DP4Rskv.js} +1571 -48
  53. package/dist/bundled/chunks/{util-jyIDYw_Q.js → util-CxVo5EMD.js} +1 -1
  54. package/dist/bundled/chunks/{util-LwSS90AE.js → util-D7gst5MT.js} +20 -19
  55. package/dist/bundled/chunks/{validate-package-factories-_KKnb8At.js → validate-package-factories-D2LBnQVu.js} +2 -2
  56. package/dist/bundled/index.js +1 -1
  57. package/dist/bundled/page-sorts.js +1 -1
  58. package/dist/bundled/rpc/src/index.js +10 -9
  59. package/dist/node/clients/rpc-client/pkc-rpc-client.d.ts +2 -2
  60. package/dist/node/clients/rpc-client/pkc-rpc-client.js +8 -3
  61. package/dist/node/clients/rpc-client/pkc-rpc-client.js.map +1 -1
  62. package/dist/node/clients/rpc-client/schema.d.ts +10 -1
  63. package/dist/node/clients/rpc-client/schema.js +8 -1
  64. package/dist/node/clients/rpc-client/schema.js.map +1 -1
  65. package/dist/node/clients/rpc-client/types.d.ts +5 -1
  66. package/dist/node/community/communities-entry-util.d.ts +14 -0
  67. package/dist/node/community/communities-entry-util.js +20 -0
  68. package/dist/node/community/communities-entry-util.js.map +1 -0
  69. package/dist/node/errors.d.ts +1 -0
  70. package/dist/node/errors.js +1 -0
  71. package/dist/node/errors.js.map +1 -1
  72. package/dist/node/generated-version.d.ts +1 -1
  73. package/dist/node/generated-version.js +1 -1
  74. package/dist/node/pkc/pkc-with-rpc-client.d.ts +2 -0
  75. package/dist/node/pkc/pkc-with-rpc-client.js +66 -3
  76. package/dist/node/pkc/pkc-with-rpc-client.js.map +1 -1
  77. package/dist/node/pkc/pkc.d.ts +5 -3
  78. package/dist/node/pkc/pkc.js +15 -10
  79. package/dist/node/pkc/pkc.js.map +1 -1
  80. package/dist/node/pkc-error.d.ts +1 -1
  81. package/dist/node/rpc/src/index.js +10 -8
  82. package/dist/node/rpc/src/index.js.map +1 -1
  83. package/dist/node/runtime/browser/util.d.ts +1 -0
  84. package/dist/node/runtime/browser/util.js +3 -0
  85. package/dist/node/runtime/browser/util.js.map +1 -1
  86. package/dist/node/runtime/node/community/db-handler.js +2 -4
  87. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  88. package/dist/node/runtime/node/community/local-community/editing.js +13 -6
  89. package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
  90. package/dist/node/runtime/node/community/local-community.js +9 -1
  91. package/dist/node/runtime/node/community/local-community.js.map +1 -1
  92. package/dist/node/runtime/node/community/start-lock.d.ts +8 -0
  93. package/dist/node/runtime/node/community/start-lock.js +18 -0
  94. package/dist/node/runtime/node/community/start-lock.js.map +1 -0
  95. package/dist/node/runtime/node/util.d.ts +6 -0
  96. package/dist/node/runtime/node/util.js +106 -8
  97. package/dist/node/runtime/node/util.js.map +1 -1
  98. package/dist/node/test/test-util.d.ts +20 -0
  99. package/dist/node/test/test-util.js +25 -0
  100. package/dist/node/test/test-util.js.map +1 -1
  101. package/dist/node/types.d.ts +7 -3
  102. 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-_KKnb8At.js"
6
+ "chunks/validate-package-factories-D2LBnQVu.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-BEH8NA_I.js"
19
+ "chunks/node-jDoQBCgW.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-BEH8NA_I.js"
29
+ "chunks/node-jDoQBCgW.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-_KKnb8At.js"
37
+ "chunks/validate-package-factories-D2LBnQVu.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-SmLDPm1j.js",
48
- "chunks/node-BEH8NA_I.js",
49
- "chunks/util-LwSS90AE.js",
50
- "chunks/local-community-B79BAYRo.js",
47
+ "chunks/rpc-local-community-9DP4Rskv.js",
48
+ "chunks/node-jDoQBCgW.js",
49
+ "chunks/util-D7gst5MT.js",
50
+ "chunks/local-community-Gj16RMFM.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-6kkeZX1a.js": {
80
+ "chunks/helia-for-pkc-Cg_zH9dT.js": {
81
81
  "isEntry": false,
82
82
  "imports": [
83
83
  "chunks/chunk-2rV9d50f.js",
84
- "chunks/util-LwSS90AE.js",
85
- "chunks/util-jyIDYw_Q.js",
84
+ "chunks/util-D7gst5MT.js",
85
+ "chunks/util-CxVo5EMD.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-B79BAYRo.js": {
204
+ "chunks/local-community-CufTrjaK.js": {
205
+ "isEntry": false,
206
+ "imports": [
207
+ "chunks/local-community-Gj16RMFM.js"
208
+ ],
209
+ "dynamicImports": [],
210
+ "inputs": []
211
+ },
212
+ "chunks/local-community-Gj16RMFM.js": {
205
213
  "isEntry": false,
206
214
  "imports": [
207
215
  "chunks/chunk-2rV9d50f.js",
208
- "chunks/rpc-local-community-SmLDPm1j.js",
209
- "chunks/util-LwSS90AE.js",
210
- "chunks/page-sort-scoring-2FkqYYNf.js",
216
+ "chunks/rpc-local-community-9DP4Rskv.js",
217
+ "chunks/util-D7gst5MT.js",
218
+ "chunks/page-sort-scoring-B53_j_WT.js",
211
219
  "node:crypto",
212
220
  "node:url",
213
221
  "node:path",
@@ -230,16 +238,6 @@
230
238
  "node_modules/remeda/dist/uniqueBy.js",
231
239
  "dist/node/runtime/node/community/local-community/identity.js",
232
240
  "dist/node/runtime/node/community/local-community/anchor-publishing.js",
233
- "node_modules/graceful-fs/polyfills.js",
234
- "node_modules/graceful-fs/legacy-streams.js",
235
- "node_modules/graceful-fs/clone.js",
236
- "node_modules/graceful-fs/graceful-fs.js",
237
- "node_modules/signal-exit/dist/cjs/signals.js",
238
- "node_modules/signal-exit/dist/cjs/index.js",
239
- "node_modules/@pkcprotocol/proper-lock-file/dist/src/mtime-precision.js",
240
- "node_modules/@pkcprotocol/proper-lock-file/dist/src/lockfile.js",
241
- "node_modules/@pkcprotocol/proper-lock-file/dist/src/adapter.js",
242
- "node_modules/@pkcprotocol/proper-lock-file/dist/src/index.js",
243
241
  "node_modules/uuid/dist-node/native.js",
244
242
  "node_modules/uuid/dist-node/rng.js",
245
243
  "node_modules/uuid/dist-node/stringify.js",
@@ -266,21 +264,13 @@
266
264
  "dist/node/runtime/node/community/local-community.js"
267
265
  ]
268
266
  },
269
- "chunks/local-community-BST1U_f3.js": {
270
- "isEntry": false,
271
- "imports": [
272
- "chunks/local-community-B79BAYRo.js"
273
- ],
274
- "dynamicImports": [],
275
- "inputs": []
276
- },
277
- "chunks/node-BEH8NA_I.js": {
267
+ "chunks/node-jDoQBCgW.js": {
278
268
  "isEntry": false,
279
269
  "imports": [
280
270
  "chunks/chunk-2rV9d50f.js",
281
- "chunks/rpc-local-community-SmLDPm1j.js",
282
- "chunks/util-LwSS90AE.js",
283
- "chunks/util-jyIDYw_Q.js",
271
+ "chunks/rpc-local-community-9DP4Rskv.js",
272
+ "chunks/util-D7gst5MT.js",
273
+ "chunks/util-CxVo5EMD.js",
284
274
  "path",
285
275
  "assert",
286
276
  "fs",
@@ -291,8 +281,8 @@
291
281
  "rpc-websockets"
292
282
  ],
293
283
  "dynamicImports": [
294
- "chunks/helia-for-pkc-6kkeZX1a.js",
295
- "chunks/local-community-B79BAYRo.js"
284
+ "chunks/helia-for-pkc-Cg_zH9dT.js",
285
+ "chunks/local-community-Gj16RMFM.js"
296
286
  ],
297
287
  "inputs": [
298
288
  "dist/node/zod-error-map.js",
@@ -339,22 +329,22 @@
339
329
  "dist/node/index.js"
340
330
  ]
341
331
  },
342
- "chunks/page-sort-scoring-2FkqYYNf.js": {
332
+ "chunks/page-sort-scoring-B53_j_WT.js": {
343
333
  "isEntry": false,
344
334
  "imports": [
345
- "chunks/util-LwSS90AE.js"
335
+ "chunks/util-D7gst5MT.js"
346
336
  ],
347
337
  "dynamicImports": [],
348
338
  "inputs": [
349
339
  "dist/node/pages/page-sort-scoring.js"
350
340
  ]
351
341
  },
352
- "chunks/rpc-local-community-SmLDPm1j.js": {
342
+ "chunks/rpc-local-community-9DP4Rskv.js": {
353
343
  "isEntry": false,
354
344
  "imports": [
355
345
  "chunks/chunk-2rV9d50f.js",
356
- "chunks/util-LwSS90AE.js",
357
- "chunks/page-sort-scoring-2FkqYYNf.js",
346
+ "chunks/util-D7gst5MT.js",
347
+ "chunks/page-sort-scoring-B53_j_WT.js",
358
348
  "chunks/src-CYIMjhjK.js",
359
349
  "node:crypto",
360
350
  "node:url",
@@ -769,6 +759,18 @@
769
759
  "node_modules/remeda/dist/withPrecision-CqXhgRqZ.js",
770
760
  "node_modules/remeda/dist/round.js",
771
761
  "node_modules/remeda/dist/stringToPath.js",
762
+ "node_modules/graceful-fs/polyfills.js",
763
+ "node_modules/graceful-fs/legacy-streams.js",
764
+ "node_modules/graceful-fs/clone.js",
765
+ "node_modules/graceful-fs/graceful-fs.js",
766
+ "node_modules/signal-exit/dist/cjs/signals.js",
767
+ "node_modules/signal-exit/dist/cjs/index.js",
768
+ "node_modules/@pkcprotocol/proper-lock-file/dist/src/mtime-precision.js",
769
+ "node_modules/@pkcprotocol/proper-lock-file/dist/src/lockfile.js",
770
+ "node_modules/@pkcprotocol/proper-lock-file/dist/src/adapter.js",
771
+ "node_modules/@pkcprotocol/proper-lock-file/dist/src/index.js",
772
+ "dist/node/runtime/node/community/start-lock.js",
773
+ "dist/node/community/communities-entry-util.js",
772
774
  "dist/node/runtime/node/util.js",
773
775
  "node_modules/@noble/hashes/utils.js",
774
776
  "node_modules/@noble/hashes/_md.js",
@@ -1306,7 +1308,21 @@
1306
1308
  "node_modules/it-parallel-batch/dist/src/index.js"
1307
1309
  ]
1308
1310
  },
1309
- "chunks/util-LwSS90AE.js": {
1311
+ "chunks/util-CxVo5EMD.js": {
1312
+ "isEntry": false,
1313
+ "imports": [
1314
+ "chunks/util-D7gst5MT.js",
1315
+ "ipns/selector",
1316
+ "ipns/validator",
1317
+ "ipns",
1318
+ "uint8arrays/equals"
1319
+ ],
1320
+ "dynamicImports": [],
1321
+ "inputs": [
1322
+ "dist/node/helia/util.js"
1323
+ ]
1324
+ },
1325
+ "chunks/util-D7gst5MT.js": {
1310
1326
  "isEntry": false,
1311
1327
  "imports": [
1312
1328
  "chunks/chunk-2rV9d50f.js",
@@ -1373,6 +1389,7 @@
1373
1389
  "node_modules/remeda/dist/omitBy.js",
1374
1390
  "node_modules/remeda/dist/pickBy.js",
1375
1391
  "node_modules/remeda/dist/unique.js",
1392
+ "dist/node/domain-util.js",
1376
1393
  "dist/node/schema/schema.js",
1377
1394
  "dist/node/signer/constants.js",
1378
1395
  "dist/node/publications/comment-edit/schema.js",
@@ -1387,7 +1404,6 @@
1387
1404
  "node_modules/sort-keys-length/index.js",
1388
1405
  "node_modules/ext-name/index.js",
1389
1406
  "dist/node/publications/vote/schema.js",
1390
- "dist/node/domain-util.js",
1391
1407
  "dist/node/community/schema.js",
1392
1408
  "dist/node/publications/comment-moderation/schema.js",
1393
1409
  "dist/node/publications/community-edit/schema.js",
@@ -1401,25 +1417,11 @@
1401
1417
  "dist/node/util.js"
1402
1418
  ]
1403
1419
  },
1404
- "chunks/util-jyIDYw_Q.js": {
1405
- "isEntry": false,
1406
- "imports": [
1407
- "chunks/util-LwSS90AE.js",
1408
- "ipns/selector",
1409
- "ipns/validator",
1410
- "ipns",
1411
- "uint8arrays/equals"
1412
- ],
1413
- "dynamicImports": [],
1414
- "inputs": [
1415
- "dist/node/helia/util.js"
1416
- ]
1417
- },
1418
- "chunks/validate-package-factories-_KKnb8At.js": {
1420
+ "chunks/validate-package-factories-D2LBnQVu.js": {
1419
1421
  "isEntry": false,
1420
1422
  "imports": [
1421
- "chunks/util-LwSS90AE.js",
1422
- "chunks/page-sort-scoring-2FkqYYNf.js"
1423
+ "chunks/util-D7gst5MT.js",
1424
+ "chunks/page-sort-scoring-B53_j_WT.js"
1423
1425
  ],
1424
1426
  "dynamicImports": [],
1425
1427
  "inputs": [
@@ -1,2 +1,2 @@
1
- import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-_KKnb8At.js";
1
+ import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-D2LBnQVu.js";
2
2
  export { validateChallengeFileFactory };
@@ -1,10 +1,10 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { C as hideClassPrivateProps, Lr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic, zr as logger_default } from "./util-LwSS90AE.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-jyIDYw_Q.js";
2
+ import { C as hideClassPrivateProps, Lr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic, zr as logger_default } from "./util-D7gst5MT.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-CxVo5EMD.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";
7
- import fs, { rename, writeFile } from "node:fs/promises";
7
+ import fsp, { rename, writeFile } from "node:fs/promises";
8
8
  import path, { basename, dirname, join } from "node:path";
9
9
  import path$1 from "path";
10
10
  import { CID } from "multiformats/cid";
@@ -4153,12 +4153,12 @@ var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
4153
4153
  var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
4154
4154
  Object.defineProperty(exports, "__esModule", { value: true });
4155
4155
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4156
- const fs$3 = __require("fs");
4156
+ const fs$2 = __require("fs");
4157
4157
  exports.FILE_SYSTEM_ADAPTER = {
4158
- lstat: fs$3.lstat,
4159
- stat: fs$3.stat,
4160
- lstatSync: fs$3.lstatSync,
4161
- statSync: fs$3.statSync
4158
+ lstat: fs$2.lstat,
4159
+ stat: fs$2.stat,
4160
+ lstatSync: fs$2.lstatSync,
4161
+ statSync: fs$2.statSync
4162
4162
  };
4163
4163
  function createFileSystemAdapter(fsMethods) {
4164
4164
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -4476,14 +4476,14 @@ var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
4476
4476
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
4477
4477
  Object.defineProperty(exports, "__esModule", { value: true });
4478
4478
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4479
- const fs$2 = __require("fs");
4479
+ const fs$1 = __require("fs");
4480
4480
  exports.FILE_SYSTEM_ADAPTER = {
4481
- lstat: fs$2.lstat,
4482
- stat: fs$2.stat,
4483
- lstatSync: fs$2.lstatSync,
4484
- statSync: fs$2.statSync,
4485
- readdir: fs$2.readdir,
4486
- readdirSync: fs$2.readdirSync
4481
+ lstat: fs$1.lstat,
4482
+ stat: fs$1.stat,
4483
+ lstatSync: fs$1.lstatSync,
4484
+ statSync: fs$1.statSync,
4485
+ readdir: fs$1.readdir,
4486
+ readdirSync: fs$1.readdirSync
4487
4487
  };
4488
4488
  function createFileSystemAdapter(fsMethods) {
4489
4489
  if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
@@ -5677,7 +5677,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
5677
5677
  var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
5678
5678
  Object.defineProperty(exports, "__esModule", { value: true });
5679
5679
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
5680
- const fs$1 = __require("fs");
5680
+ const fs = __require("fs");
5681
5681
  const os = __require("os");
5682
5682
  /**
5683
5683
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
@@ -5685,12 +5685,12 @@ var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
5685
5685
  */
5686
5686
  const CPU_COUNT = Math.max(os.cpus().length, 1);
5687
5687
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
5688
- lstat: fs$1.lstat,
5689
- lstatSync: fs$1.lstatSync,
5690
- stat: fs$1.stat,
5691
- statSync: fs$1.statSync,
5692
- readdir: fs$1.readdir,
5693
- readdirSync: fs$1.readdirSync
5688
+ lstat: fs.lstat,
5689
+ lstatSync: fs.lstatSync,
5690
+ stat: fs.stat,
5691
+ statSync: fs.statSync,
5692
+ readdir: fs.readdir,
5693
+ readdirSync: fs.readdirSync
5694
5694
  };
5695
5695
  var Settings = class {
5696
5696
  constructor(_options = {}) {
@@ -5853,7 +5853,7 @@ var import_out = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
5853
5853
  */
5854
5854
  async function* glob(dir, pattern, options = {}) {
5855
5855
  const absoluteDir = path.resolve(dir);
5856
- const stats = await fs.stat(absoluteDir);
5856
+ const stats = await fsp.stat(absoluteDir);
5857
5857
  for await (const entry of import_out.default.stream(pattern, {
5858
5858
  ...options,
5859
5859
  cwd: stats.isDirectory() ? dir : process.cwd()
@@ -6048,14 +6048,14 @@ var NextToLast = class {
6048
6048
  async function writeFile$1(file, contents, options) {
6049
6049
  try {
6050
6050
  options?.signal?.throwIfAborted();
6051
- await raceSignal(fs.mkdir(path.dirname(file), { recursive: true }), options?.signal);
6051
+ await raceSignal(fsp.mkdir(path.dirname(file), { recursive: true }), options?.signal);
6052
6052
  const writer = new Writer(file);
6053
6053
  options?.signal?.throwIfAborted();
6054
6054
  await writer.write(contents);
6055
6055
  } catch (err) {
6056
6056
  if (err.syscall === "rename" && ["ENOENT", "EPERM"].includes(err.code)) {
6057
6057
  options?.signal?.throwIfAborted();
6058
- await raceSignal(fs.access(file, fs.constants.F_OK | fs.constants.W_OK), options?.signal);
6058
+ await raceSignal(fsp.access(file, fsp.constants.F_OK | fsp.constants.W_OK), options?.signal);
6059
6059
  return;
6060
6060
  }
6061
6061
  throw err;
@@ -6083,11 +6083,11 @@ var FsBlockstore = class {
6083
6083
  }
6084
6084
  async open() {
6085
6085
  try {
6086
- await fs.access(this.path, fs.constants.F_OK | fs.constants.W_OK);
6086
+ await fsp.access(this.path, fsp.constants.F_OK | fsp.constants.W_OK);
6087
6087
  if (this.errorIfExists) throw new OpenFailedError(`Blockstore directory: ${this.path} already exists`);
6088
6088
  } catch (err) {
6089
6089
  if (err.code === "ENOENT") if (this.createIfMissing) {
6090
- await fs.mkdir(this.path, { recursive: true });
6090
+ await fsp.mkdir(this.path, { recursive: true });
6091
6091
  return;
6092
6092
  } else throw new OpenFailedError(`Blockstore directory: ${this.path} does not exist`);
6093
6093
  throw err;
@@ -6118,7 +6118,7 @@ var FsBlockstore = class {
6118
6118
  let handle;
6119
6119
  try {
6120
6120
  options?.signal?.throwIfAborted();
6121
- handle = await raceSignal(fs.open(path.join(this.path, dir, file)), options?.signal);
6121
+ handle = await raceSignal(fsp.open(path.join(this.path, dir, file)), options?.signal);
6122
6122
  yield* handle.createReadStream();
6123
6123
  } catch (err) {
6124
6124
  if (handle != null) await raceSignal(handle.close(), options?.signal);
@@ -6139,7 +6139,7 @@ var FsBlockstore = class {
6139
6139
  const { dir, file } = this.shardingStrategy.encode(key);
6140
6140
  try {
6141
6141
  options?.signal?.throwIfAborted();
6142
- await raceSignal(fs.unlink(path.join(this.path, dir, file)), options?.signal);
6142
+ await raceSignal(fsp.unlink(path.join(this.path, dir, file)), options?.signal);
6143
6143
  } catch (err) {
6144
6144
  if (err.code === "ENOENT") return;
6145
6145
  throw new DeleteFailedError(String(err));
@@ -6157,7 +6157,7 @@ var FsBlockstore = class {
6157
6157
  const { dir, file } = this.shardingStrategy.encode(key);
6158
6158
  try {
6159
6159
  options?.signal?.throwIfAborted();
6160
- await raceSignal(fs.access(path.join(this.path, dir, file)), options?.signal);
6160
+ await raceSignal(fsp.access(path.join(this.path, dir, file)), options?.signal);
6161
6161
  } catch (err) {
6162
6162
  return false;
6163
6163
  }
@@ -6173,7 +6173,7 @@ var FsBlockstore = class {
6173
6173
  bytes: (async function* () {
6174
6174
  let handle;
6175
6175
  try {
6176
- handle = await raceSignal(fs.open(file), options?.signal);
6176
+ handle = await raceSignal(fsp.open(file), options?.signal);
6177
6177
  yield* handle.createReadStream();
6178
6178
  } finally {
6179
6179
  if (handle != null) await raceSignal(handle.close(), options?.signal);
@@ -1,2 +1,2 @@
1
- import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-B79BAYRo.js";
1
+ import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-Gj16RMFM.js";
2
2
  export { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb };