@pkcprotocol/pkc-js 0.0.136 → 0.0.137
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/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/bundled/bundle-manifest.json +46 -46
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc-JX5_rjd4.js → helia-for-pkc-DrE9AZtp.js} +33 -33
- package/dist/bundled/chunks/{local-community-CqAmAwiN.js → local-community-BhrCFCCl.js} +32 -32
- package/dist/bundled/chunks/{local-community-D5IemrZ9.js → local-community-D4m4-sUw.js} +1 -1
- package/dist/bundled/chunks/{node-C9m0aKZG.js → node-CULFO_M2.js} +5 -5
- package/dist/bundled/chunks/{page-sort-scoring-Ddq3aqvs.js → page-sort-scoring-CMIhwYqH.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-BM2gT_7L.js → rpc-local-community-vvW_Lvzi.js} +2 -2
- package/dist/bundled/chunks/{util-D0mfyFqJ.js → util-B4ZXn1pD.js} +1 -1
- package/dist/bundled/chunks/{util-BwHOPEdf.js → util-RG3tBF0u.js} +1 -1
- package/dist/bundled/chunks/{validate-package-factories-CGl00v9k.js → validate-package-factories-C3PC9lVi.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/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.137";
|
|
@@ -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-C3PC9lVi.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-CULFO_M2.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-CULFO_M2.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-C3PC9lVi.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-vvW_Lvzi.js",
|
|
48
|
+
"chunks/node-CULFO_M2.js",
|
|
49
|
+
"chunks/util-B4ZXn1pD.js",
|
|
50
|
+
"chunks/local-community-BhrCFCCl.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-DrE9AZtp.js": {
|
|
81
81
|
"isEntry": false,
|
|
82
82
|
"imports": [
|
|
83
83
|
"chunks/chunk-2rV9d50f.js",
|
|
84
|
-
"chunks/util-
|
|
85
|
-
"chunks/util-
|
|
84
|
+
"chunks/util-B4ZXn1pD.js",
|
|
85
|
+
"chunks/util-RG3tBF0u.js",
|
|
86
86
|
"chunks/src-DKntVmyX.js",
|
|
87
87
|
"chunks/src-Cpx2Sts8.js",
|
|
88
88
|
"node:url",
|
|
@@ -201,13 +201,13 @@
|
|
|
201
201
|
"dist/node/helia/helia-for-pkc.js"
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
|
-
"chunks/local-community-
|
|
204
|
+
"chunks/local-community-BhrCFCCl.js": {
|
|
205
205
|
"isEntry": false,
|
|
206
206
|
"imports": [
|
|
207
207
|
"chunks/chunk-2rV9d50f.js",
|
|
208
|
-
"chunks/rpc-local-community-
|
|
209
|
-
"chunks/util-
|
|
210
|
-
"chunks/page-sort-scoring-
|
|
208
|
+
"chunks/rpc-local-community-vvW_Lvzi.js",
|
|
209
|
+
"chunks/util-B4ZXn1pD.js",
|
|
210
|
+
"chunks/page-sort-scoring-CMIhwYqH.js",
|
|
211
211
|
"node:url",
|
|
212
212
|
"node:path",
|
|
213
213
|
"os",
|
|
@@ -254,21 +254,21 @@
|
|
|
254
254
|
"dist/node/runtime/node/community/local-community.js"
|
|
255
255
|
]
|
|
256
256
|
},
|
|
257
|
-
"chunks/local-community-
|
|
257
|
+
"chunks/local-community-D4m4-sUw.js": {
|
|
258
258
|
"isEntry": false,
|
|
259
259
|
"imports": [
|
|
260
|
-
"chunks/local-community-
|
|
260
|
+
"chunks/local-community-BhrCFCCl.js"
|
|
261
261
|
],
|
|
262
262
|
"dynamicImports": [],
|
|
263
263
|
"inputs": []
|
|
264
264
|
},
|
|
265
|
-
"chunks/node-
|
|
265
|
+
"chunks/node-CULFO_M2.js": {
|
|
266
266
|
"isEntry": false,
|
|
267
267
|
"imports": [
|
|
268
268
|
"chunks/chunk-2rV9d50f.js",
|
|
269
|
-
"chunks/rpc-local-community-
|
|
270
|
-
"chunks/util-
|
|
271
|
-
"chunks/util-
|
|
269
|
+
"chunks/rpc-local-community-vvW_Lvzi.js",
|
|
270
|
+
"chunks/util-B4ZXn1pD.js",
|
|
271
|
+
"chunks/util-RG3tBF0u.js",
|
|
272
272
|
"path",
|
|
273
273
|
"assert",
|
|
274
274
|
"fs",
|
|
@@ -279,8 +279,8 @@
|
|
|
279
279
|
"rpc-websockets"
|
|
280
280
|
],
|
|
281
281
|
"dynamicImports": [
|
|
282
|
-
"chunks/helia-for-pkc-
|
|
283
|
-
"chunks/local-community-
|
|
282
|
+
"chunks/helia-for-pkc-DrE9AZtp.js",
|
|
283
|
+
"chunks/local-community-BhrCFCCl.js"
|
|
284
284
|
],
|
|
285
285
|
"inputs": [
|
|
286
286
|
"dist/node/zod-error-map.js",
|
|
@@ -440,22 +440,22 @@
|
|
|
440
440
|
"dist/node/index.js"
|
|
441
441
|
]
|
|
442
442
|
},
|
|
443
|
-
"chunks/page-sort-scoring-
|
|
443
|
+
"chunks/page-sort-scoring-CMIhwYqH.js": {
|
|
444
444
|
"isEntry": false,
|
|
445
445
|
"imports": [
|
|
446
|
-
"chunks/util-
|
|
446
|
+
"chunks/util-B4ZXn1pD.js"
|
|
447
447
|
],
|
|
448
448
|
"dynamicImports": [],
|
|
449
449
|
"inputs": [
|
|
450
450
|
"dist/node/pages/page-sort-scoring.js"
|
|
451
451
|
]
|
|
452
452
|
},
|
|
453
|
-
"chunks/rpc-local-community-
|
|
453
|
+
"chunks/rpc-local-community-vvW_Lvzi.js": {
|
|
454
454
|
"isEntry": false,
|
|
455
455
|
"imports": [
|
|
456
456
|
"chunks/chunk-2rV9d50f.js",
|
|
457
|
-
"chunks/util-
|
|
458
|
-
"chunks/page-sort-scoring-
|
|
457
|
+
"chunks/util-B4ZXn1pD.js",
|
|
458
|
+
"chunks/page-sort-scoring-CMIhwYqH.js",
|
|
459
459
|
"chunks/src-CYIMjhjK.js",
|
|
460
460
|
"node:crypto",
|
|
461
461
|
"node:url",
|
|
@@ -1531,21 +1531,7 @@
|
|
|
1531
1531
|
"node_modules/@ipld/dag-pb/src/index.js"
|
|
1532
1532
|
]
|
|
1533
1533
|
},
|
|
1534
|
-
"chunks/util-
|
|
1535
|
-
"isEntry": false,
|
|
1536
|
-
"imports": [
|
|
1537
|
-
"chunks/util-D0mfyFqJ.js",
|
|
1538
|
-
"ipns/selector",
|
|
1539
|
-
"ipns/validator",
|
|
1540
|
-
"ipns",
|
|
1541
|
-
"uint8arrays/equals"
|
|
1542
|
-
],
|
|
1543
|
-
"dynamicImports": [],
|
|
1544
|
-
"inputs": [
|
|
1545
|
-
"dist/node/helia/util.js"
|
|
1546
|
-
]
|
|
1547
|
-
},
|
|
1548
|
-
"chunks/util-D0mfyFqJ.js": {
|
|
1534
|
+
"chunks/util-B4ZXn1pD.js": {
|
|
1549
1535
|
"isEntry": false,
|
|
1550
1536
|
"imports": [
|
|
1551
1537
|
"chunks/chunk-2rV9d50f.js",
|
|
@@ -1640,11 +1626,25 @@
|
|
|
1640
1626
|
"dist/node/util.js"
|
|
1641
1627
|
]
|
|
1642
1628
|
},
|
|
1643
|
-
"chunks/
|
|
1629
|
+
"chunks/util-RG3tBF0u.js": {
|
|
1630
|
+
"isEntry": false,
|
|
1631
|
+
"imports": [
|
|
1632
|
+
"chunks/util-B4ZXn1pD.js",
|
|
1633
|
+
"ipns/selector",
|
|
1634
|
+
"ipns/validator",
|
|
1635
|
+
"ipns",
|
|
1636
|
+
"uint8arrays/equals"
|
|
1637
|
+
],
|
|
1638
|
+
"dynamicImports": [],
|
|
1639
|
+
"inputs": [
|
|
1640
|
+
"dist/node/helia/util.js"
|
|
1641
|
+
]
|
|
1642
|
+
},
|
|
1643
|
+
"chunks/validate-package-factories-C3PC9lVi.js": {
|
|
1644
1644
|
"isEntry": false,
|
|
1645
1645
|
"imports": [
|
|
1646
|
-
"chunks/util-
|
|
1647
|
-
"chunks/page-sort-scoring-
|
|
1646
|
+
"chunks/util-B4ZXn1pD.js",
|
|
1647
|
+
"chunks/page-sort-scoring-CMIhwYqH.js"
|
|
1648
1648
|
],
|
|
1649
1649
|
"dynamicImports": [],
|
|
1650
1650
|
"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-C3PC9lVi.js";
|
|
2
2
|
export { validateChallengeFileFactory };
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
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, Lr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic, zr as logger_default } from "./util-B4ZXn1pD.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-RG3tBF0u.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
7
|
import fsp, { rename, writeFile } from "node:fs/promises";
|
|
8
|
-
import
|
|
9
|
-
import path from "path";
|
|
8
|
+
import path, { basename, dirname, join } from "node:path";
|
|
9
|
+
import path$1 from "path";
|
|
10
10
|
import { CID } from "multiformats/cid";
|
|
11
11
|
import { peerIdFromString } from "@libp2p/peer-id";
|
|
12
12
|
import * as Digest from "multiformats/hashes/digest";
|
|
@@ -151,7 +151,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
151
151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
152
152
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
153
153
|
const os$1 = __require("os");
|
|
154
|
-
const path$
|
|
154
|
+
const path$10 = __require("path");
|
|
155
155
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
156
156
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
157
157
|
/**
|
|
@@ -180,7 +180,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
180
180
|
}
|
|
181
181
|
exports.unixify = unixify;
|
|
182
182
|
function makeAbsolute(cwd, filepath) {
|
|
183
|
-
return path$
|
|
183
|
+
return path$10.resolve(cwd, filepath);
|
|
184
184
|
}
|
|
185
185
|
exports.makeAbsolute = makeAbsolute;
|
|
186
186
|
function removeLeadingDotSegment(entry) {
|
|
@@ -1432,7 +1432,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1432
1432
|
//#endregion
|
|
1433
1433
|
//#region node_modules/picomatch/lib/constants.js
|
|
1434
1434
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1435
|
-
const path$
|
|
1435
|
+
const path$9 = __require("path");
|
|
1436
1436
|
const WIN_SLASH = "\\\\/";
|
|
1437
1437
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1438
1438
|
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -1557,7 +1557,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1557
1557
|
CHAR_UNDERSCORE: 95,
|
|
1558
1558
|
CHAR_VERTICAL_LINE: 124,
|
|
1559
1559
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1560
|
-
SEP: path$
|
|
1560
|
+
SEP: path$9.sep,
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Create EXTGLOB_CHARS
|
|
1563
1563
|
*/
|
|
@@ -1601,7 +1601,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1601
1601
|
//#endregion
|
|
1602
1602
|
//#region node_modules/picomatch/lib/utils.js
|
|
1603
1603
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1604
|
-
const path$
|
|
1604
|
+
const path$8 = __require("path");
|
|
1605
1605
|
const win32 = process.platform === "win32";
|
|
1606
1606
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
1607
1607
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1621,7 +1621,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
exports.isWindows = (options) => {
|
|
1623
1623
|
if (options && typeof options.windows === "boolean") return options.windows;
|
|
1624
|
-
return win32 === true || path$
|
|
1624
|
+
return win32 === true || path$8.sep === "\\";
|
|
1625
1625
|
};
|
|
1626
1626
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
1627
1627
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -2991,7 +2991,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2991
2991
|
//#endregion
|
|
2992
2992
|
//#region node_modules/picomatch/lib/picomatch.js
|
|
2993
2993
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2994
|
-
const path$
|
|
2994
|
+
const path$7 = __require("path");
|
|
2995
2995
|
const scan = require_scan();
|
|
2996
2996
|
const parse = require_parse();
|
|
2997
2997
|
const utils = require_utils$2();
|
|
@@ -3130,7 +3130,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3130
3130
|
* @api public
|
|
3131
3131
|
*/
|
|
3132
3132
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
3133
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$
|
|
3133
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$7.basename(input));
|
|
3134
3134
|
};
|
|
3135
3135
|
/**
|
|
3136
3136
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -3685,7 +3685,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3685
3685
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3686
3686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3687
3687
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
3688
|
-
const path$
|
|
3688
|
+
const path$6 = __require("path");
|
|
3689
3689
|
const globParent = require_glob_parent();
|
|
3690
3690
|
const micromatch = require_micromatch();
|
|
3691
3691
|
const GLOBSTAR = "**";
|
|
@@ -3793,7 +3793,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3793
3793
|
}
|
|
3794
3794
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
3795
3795
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
3796
|
-
const basename = path$
|
|
3796
|
+
const basename = path$6.basename(pattern);
|
|
3797
3797
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
3798
3798
|
}
|
|
3799
3799
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -3867,7 +3867,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3869
3869
|
function isAbsolute(pattern) {
|
|
3870
|
-
return path$
|
|
3870
|
+
return path$6.isAbsolute(pattern);
|
|
3871
3871
|
}
|
|
3872
3872
|
exports.isAbsolute = isAbsolute;
|
|
3873
3873
|
}));
|
|
@@ -4495,7 +4495,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4495
4495
|
//#region node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4496
4496
|
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4497
4497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4498
|
-
const path$
|
|
4498
|
+
const path$5 = __require("path");
|
|
4499
4499
|
const fsStat = require_out$3();
|
|
4500
4500
|
const fs = require_fs();
|
|
4501
4501
|
var Settings = class {
|
|
@@ -4503,7 +4503,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4503
4503
|
this._options = _options;
|
|
4504
4504
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4505
4505
|
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4506
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
4506
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
|
|
4507
4507
|
this.stats = this._getValue(this._options.stats, false);
|
|
4508
4508
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4509
4509
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -5097,7 +5097,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5097
5097
|
//#region node_modules/@nodelib/fs.walk/out/settings.js
|
|
5098
5098
|
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5099
5099
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5100
|
-
const path$
|
|
5100
|
+
const path$4 = __require("path");
|
|
5101
5101
|
const fsScandir = require_out$2();
|
|
5102
5102
|
var Settings = class {
|
|
5103
5103
|
constructor(_options = {}) {
|
|
@@ -5107,7 +5107,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5107
5107
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
5108
5108
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
5109
5109
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
5110
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
5110
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
|
|
5111
5111
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
5112
5112
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
5113
5113
|
fs: this._options.fs,
|
|
@@ -5159,7 +5159,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5159
5159
|
//#region node_modules/fast-glob/out/readers/reader.js
|
|
5160
5160
|
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5161
5161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5162
|
-
const path$
|
|
5162
|
+
const path$3 = __require("path");
|
|
5163
5163
|
const fsStat = require_out$3();
|
|
5164
5164
|
const utils = require_utils$1();
|
|
5165
5165
|
var Reader = class {
|
|
@@ -5172,7 +5172,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5172
5172
|
});
|
|
5173
5173
|
}
|
|
5174
5174
|
_getFullEntryPath(filepath) {
|
|
5175
|
-
return path$
|
|
5175
|
+
return path$3.resolve(this._settings.cwd, filepath);
|
|
5176
5176
|
}
|
|
5177
5177
|
_makeEntry(stats, pattern) {
|
|
5178
5178
|
const entry = {
|
|
@@ -5507,7 +5507,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5507
5507
|
//#region node_modules/fast-glob/out/providers/provider.js
|
|
5508
5508
|
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5509
5509
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5510
|
-
const path$
|
|
5510
|
+
const path$2 = __require("path");
|
|
5511
5511
|
const deep_1 = require_deep();
|
|
5512
5512
|
const entry_1 = require_entry$1();
|
|
5513
5513
|
const error_1 = require_error();
|
|
@@ -5521,7 +5521,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5521
5521
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
5522
5522
|
}
|
|
5523
5523
|
_getRootDirectory(task) {
|
|
5524
|
-
return path$
|
|
5524
|
+
return path$2.resolve(this._settings.cwd, task.base);
|
|
5525
5525
|
}
|
|
5526
5526
|
_getReaderOptions(task) {
|
|
5527
5527
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -5852,7 +5852,7 @@ var import_out = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
|
|
|
5852
5852
|
* Async iterable filename pattern matcher
|
|
5853
5853
|
*/
|
|
5854
5854
|
async function* glob(dir, pattern, options = {}) {
|
|
5855
|
-
const absoluteDir =
|
|
5855
|
+
const absoluteDir = path.resolve(dir);
|
|
5856
5856
|
const stats = await fsp.stat(absoluteDir);
|
|
5857
5857
|
for await (const entry of import_out.default.stream(pattern, {
|
|
5858
5858
|
...options,
|
|
@@ -6022,7 +6022,7 @@ var NextToLast = class {
|
|
|
6022
6022
|
};
|
|
6023
6023
|
}
|
|
6024
6024
|
decode(str) {
|
|
6025
|
-
let fileName =
|
|
6025
|
+
let fileName = path.basename(str);
|
|
6026
6026
|
if (fileName.endsWith(this.extension)) fileName = fileName.substring(0, fileName.length - this.extension.length);
|
|
6027
6027
|
return CID.decode(this.base.decoder.decode(fileName));
|
|
6028
6028
|
}
|
|
@@ -6048,7 +6048,7 @@ var NextToLast = class {
|
|
|
6048
6048
|
async function writeFile$1(file, contents, options) {
|
|
6049
6049
|
try {
|
|
6050
6050
|
options?.signal?.throwIfAborted();
|
|
6051
|
-
await raceSignal(fsp.mkdir(
|
|
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);
|
|
@@ -6073,7 +6073,7 @@ var FsBlockstore = class {
|
|
|
6073
6073
|
deleteManyConcurrency;
|
|
6074
6074
|
shardingStrategy;
|
|
6075
6075
|
constructor(location, init = {}) {
|
|
6076
|
-
this.path =
|
|
6076
|
+
this.path = path.resolve(location);
|
|
6077
6077
|
this.createIfMissing = init.createIfMissing ?? true;
|
|
6078
6078
|
this.errorIfExists = init.errorIfExists ?? false;
|
|
6079
6079
|
this.deleteManyConcurrency = init.deleteManyConcurrency ?? 50;
|
|
@@ -6099,7 +6099,7 @@ var FsBlockstore = class {
|
|
|
6099
6099
|
async put(key, val, options) {
|
|
6100
6100
|
const { dir, file } = this.shardingStrategy.encode(key);
|
|
6101
6101
|
try {
|
|
6102
|
-
await writeFile$1(
|
|
6102
|
+
await writeFile$1(path.join(this.path, dir, file), val, options);
|
|
6103
6103
|
return key;
|
|
6104
6104
|
} catch (err) {
|
|
6105
6105
|
throw new PutFailedError(String(err));
|
|
@@ -6118,7 +6118,7 @@ var FsBlockstore = class {
|
|
|
6118
6118
|
let handle;
|
|
6119
6119
|
try {
|
|
6120
6120
|
options?.signal?.throwIfAborted();
|
|
6121
|
-
handle = await raceSignal(fsp.open(
|
|
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(fsp.unlink(
|
|
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,14 +6157,14 @@ var FsBlockstore = class {
|
|
|
6157
6157
|
const { dir, file } = this.shardingStrategy.encode(key);
|
|
6158
6158
|
try {
|
|
6159
6159
|
options?.signal?.throwIfAborted();
|
|
6160
|
-
await raceSignal(fsp.access(
|
|
6160
|
+
await raceSignal(fsp.access(path.join(this.path, dir, file)), options?.signal);
|
|
6161
6161
|
} catch (err) {
|
|
6162
6162
|
return false;
|
|
6163
6163
|
}
|
|
6164
6164
|
return true;
|
|
6165
6165
|
}
|
|
6166
6166
|
async *getAll(options) {
|
|
6167
|
-
const pattern = `**/*${this.shardingStrategy.extension}`.split(
|
|
6167
|
+
const pattern = `**/*${this.shardingStrategy.extension}`.split(path.sep).join("/");
|
|
6168
6168
|
const files = glob(this.path, pattern, { absolute: true });
|
|
6169
6169
|
for await (const file of files) try {
|
|
6170
6170
|
options?.signal?.throwIfAborted();
|
|
@@ -6216,7 +6216,7 @@ async function createBlockstoreForLibp2pJsClient({ dataPath, key }) {
|
|
|
6216
6216
|
defaultMaxBytes: DEFAULT_IN_MEMORY_BLOCKSTORE_MAX_BYTES,
|
|
6217
6217
|
close: async () => {}
|
|
6218
6218
|
};
|
|
6219
|
-
const store = new FsBlockstore(path.join(dataPath, "blockstore", key));
|
|
6219
|
+
const store = new FsBlockstore(path$1.join(dataPath, "blockstore", key));
|
|
6220
6220
|
await store.open();
|
|
6221
6221
|
return {
|
|
6222
6222
|
blockstore: store,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as __toESM } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { $ as retryKuboIpfsAddAndProvide, $n as CommentEditsTableRowSchema, At as ChallengeAnswerMessageSchema, Bt as DecryptedChallengeRequestSchema, C as hideClassPrivateProps, Ct as trackUpdatingCommunity, Dt as require_sha256, En as VotePubsubReservedFields, Et as untrackUpdatingCommunity, F as isLinkOfVideo, G as removeMfsFilesSafely, Hn as CommentsTableRowSchema, I as isLinkValid, It as ChallengeVerificationMessageSchema, Jt as version_default, Lr as PKCError, M as isLinkOfAudio, Mn as CommentPubsubMessageReservedFields, Mt as ChallengeMessageSchema, N as isLinkOfImage, On as VoteTablesRowSchema, Or as t$4, P as isLinkOfMedia, Pt as ChallengeRequestMessageSchema, Rr as messages, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tn as VotePubsubMessagePublicationSchema, Tr as t$3, Vn as CommentUpdateTableRowSchema, W as removeBlocksFromKuboNode, Xn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Xt as CommunityEditPublicationPubsubReservedFields, Yn as CommentEditPubsubMessagePublicationSchema, Z as retryKuboBlockPutPinAndProvidePubsubTopic, Zn as CommentEditReservedFields, _ as genToArray, _r as t$7, at as timestamp, b as getIpnsRecordInLocalKuboNode, br as t$6, bt as syncCommunityRegistryEntry, c as contentContainsMarkdownImages, ct as withSortedKeysDeep, dt as findStartedCommunity, f as derivePublicationFromChallengeRequest, g as findMalformedUnicodeString, gr as n$3, hr as isStringDomain, i as calculateStringSizeSameAsIpfsAddCidV0, in as CommentModerationsTableRowSchema, ir as AuthorReservedFields, j as isLinkOfAnimatedImage, jn as CommentIpfsSchema, jr as require_retry, kr as t$2, kt as pTimeout, l as contentContainsMarkdownVideos, lt as writeKuboFilesWithTimeout, mn as CommunitySignedPropertyNames, nn as CommentModerationReservedFields, nt as sleepUntilTimeoutOrAbort, o as calculateUnixFsDagSizeCidV0, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, q as removeNullUndefinedValues, r as calculateIpfsCidV0, rt as statMfsPathSafely, s as contentContainsMarkdownAudio, st as withSortedKeys, ti as ZodError, tn as CommentModerationPubsubMessagePublicationSchema, ut as findCommunityInRegistry, v as getEquivalentCommunityAddresses, vr as n$2, wr as r$1, wt as untrackStartedCommunity, xr as e$1, xt as trackStartedCommunity, y as getErrorCodeFromMessage, yr as t$5, z as pubsubTopicToDhtKey, zn as CommentUpdateSchema, zr as logger_default, zt as DecryptedChallengeRequestPublicationSchema } from "./util-
|
|
3
|
-
import { $ as createSchemaRowParser, An as verifyChallengeAnswer, Bn as verifyCommunityEdit, Br as t$8, Cr as getThumbnailPropsOfLink, Dr as moveCommunityDbToDeletedDirectory, Dt as parseJsonWithPKCErrorIfFails, En as signCommunity, Fn as verifyCommentIpfs, Fr as isCommunityStartLocked, Gr as stringify, Hn as verifyVote, Hr as n$4, In as verifyCommentModeration, Ir as require_src, Kn as getAuthorNameFromWire, Ln as verifyCommentPubsubMessage, Lr as t$10, Mn as verifyChallengeRequest, Mr as findCommunitiesEntry, N as MAX_PAGE_SIZE_BYTES, Or as refreshCommunitiesList, Pn as verifyCommentEdit, Q as collectSchemaRowCoercions, Qn as effectiveMaxCrosspostDepth, Rn as verifyCommentUpdate, Rr as t$11, S as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, Sn as signCommentEdit, Tn as signCommentUpdateForChallengeVerification, Un as buildRuntimeAuthor, Vr as n$5, W as pLimit, Wn as cleanWireAuthor, Wr as t$9, X as coerceSchemaRowBoolean, Xr as STORAGE_KEYS, Z as coerceSchemaRowJson, Zn as crosspostChainDepthUpTo, Zr as require_lodash_merge, _ as createAuthorIdentityMatcher, _r as deriveCommentIpfsFromCommentTableRow, a as generatePagesReportingFailedSorts, ar as encode, b as KeyvBetterSqlite3, bn as signChallengeVerification, c as resolvePageSortsOrThrow, cn as SignerWithPublicKeyAddress, cr as getPKCAddressFromPublicKey, d as getChallengeVerification, dr as BackupAbortError, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, f as getCommunityChallengeFromCommunityChallengeSettings, fn as decryptEd25519AesGcmPublicKeyBuffer, fr as backupCommunityDb, g as authorNameResolveFailureReason, gn as cleanUpBeforePublishing, gr as deleteOldCommunityInWindows, h as authorIdentityMatcherForRequest, hn as _validateSignatureOfPKCRecord, i as derivePublicPageSorts, ir as decode, j as iterateOverPageCidsToFindAllCids, kr as resolveDbPostsCidRefs, lr as getPKCAddressFromPublicKeySync, m as pkcJsChallenges, mn as encryptEd25519AesGcmPublicKeyBuffer, mr as calculateInlineRepliesBudget, nr as getCommunityPublicKeyFromWire, o as loadPageSortsForStartedCommunity, p as loadChallengeFileFromCommunityChallengeSettings, pr as calculateExpectedSignatureSize, pt as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, r as computePageSortsFingerprint, s as lookupPageSortFactories, sr as getIpfsKeyFromPrivateKey, t as RpcLocalCommunity, tr as getCommunityNameFromWire, u as deriveCommunityChallengesOrThrow, ur as getPublicKeyFromPrivateKey, v as TrackedInstanceRegistry, vn as signChallengeMessage, vr as deriveDbPosts, w as TIMEFRAMES_TO_SECONDS, wn as signCommentUpdate, wr as importSignerIntoKuboNode, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, xn as signComment, xr as getDefaultCommunityDbConfig, y as LRUCache, yr as deriveDbReplies, zn as verifyCommunity, zr as r$2 } from "./rpc-local-community-
|
|
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, $n as CommentEditsTableRowSchema, At as ChallengeAnswerMessageSchema, Bt as DecryptedChallengeRequestSchema, C as hideClassPrivateProps, Ct as trackUpdatingCommunity, Dt as require_sha256, En as VotePubsubReservedFields, Et as untrackUpdatingCommunity, F as isLinkOfVideo, G as removeMfsFilesSafely, Hn as CommentsTableRowSchema, I as isLinkValid, It as ChallengeVerificationMessageSchema, Jt as version_default, Lr as PKCError, M as isLinkOfAudio, Mn as CommentPubsubMessageReservedFields, Mt as ChallengeMessageSchema, N as isLinkOfImage, On as VoteTablesRowSchema, Or as t$4, P as isLinkOfMedia, Pt as ChallengeRequestMessageSchema, Rr as messages, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tn as VotePubsubMessagePublicationSchema, Tr as t$3, Vn as CommentUpdateTableRowSchema, W as removeBlocksFromKuboNode, Xn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Xt as CommunityEditPublicationPubsubReservedFields, Yn as CommentEditPubsubMessagePublicationSchema, Z as retryKuboBlockPutPinAndProvidePubsubTopic, Zn as CommentEditReservedFields, _ as genToArray, _r as t$7, at as timestamp, b as getIpnsRecordInLocalKuboNode, br as t$6, bt as syncCommunityRegistryEntry, c as contentContainsMarkdownImages, ct as withSortedKeysDeep, dt as findStartedCommunity, f as derivePublicationFromChallengeRequest, g as findMalformedUnicodeString, gr as n$3, hr as isStringDomain, i as calculateStringSizeSameAsIpfsAddCidV0, in as CommentModerationsTableRowSchema, ir as AuthorReservedFields, j as isLinkOfAnimatedImage, jn as CommentIpfsSchema, jr as require_retry, kr as t$2, kt as pTimeout, l as contentContainsMarkdownVideos, lt as writeKuboFilesWithTimeout, mn as CommunitySignedPropertyNames, nn as CommentModerationReservedFields, nt as sleepUntilTimeoutOrAbort, o as calculateUnixFsDagSizeCidV0, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, q as removeNullUndefinedValues, r as calculateIpfsCidV0, rt as statMfsPathSafely, s as contentContainsMarkdownAudio, st as withSortedKeys, ti as ZodError, tn as CommentModerationPubsubMessagePublicationSchema, ut as findCommunityInRegistry, v as getEquivalentCommunityAddresses, vr as n$2, wr as r$1, wt as untrackStartedCommunity, xr as e$1, xt as trackStartedCommunity, y as getErrorCodeFromMessage, yr as t$5, z as pubsubTopicToDhtKey, zn as CommentUpdateSchema, zr as logger_default, zt as DecryptedChallengeRequestPublicationSchema } from "./util-B4ZXn1pD.js";
|
|
3
|
+
import { $ as createSchemaRowParser, An as verifyChallengeAnswer, Bn as verifyCommunityEdit, Br as t$8, Cr as getThumbnailPropsOfLink, Dr as moveCommunityDbToDeletedDirectory, Dt as parseJsonWithPKCErrorIfFails, En as signCommunity, Fn as verifyCommentIpfs, Fr as isCommunityStartLocked, Gr as stringify, Hn as verifyVote, Hr as n$4, In as verifyCommentModeration, Ir as require_src, Kn as getAuthorNameFromWire, Ln as verifyCommentPubsubMessage, Lr as t$10, Mn as verifyChallengeRequest, Mr as findCommunitiesEntry, N as MAX_PAGE_SIZE_BYTES, Or as refreshCommunitiesList, Pn as verifyCommentEdit, Q as collectSchemaRowCoercions, Qn as effectiveMaxCrosspostDepth, Rn as verifyCommentUpdate, Rr as t$11, S as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, Sn as signCommentEdit, Tn as signCommentUpdateForChallengeVerification, Un as buildRuntimeAuthor, Vr as n$5, W as pLimit, Wn as cleanWireAuthor, Wr as t$9, X as coerceSchemaRowBoolean, Xr as STORAGE_KEYS, Z as coerceSchemaRowJson, Zn as crosspostChainDepthUpTo, Zr as require_lodash_merge, _ as createAuthorIdentityMatcher, _r as deriveCommentIpfsFromCommentTableRow, a as generatePagesReportingFailedSorts, ar as encode, b as KeyvBetterSqlite3, bn as signChallengeVerification, c as resolvePageSortsOrThrow, cn as SignerWithPublicKeyAddress, cr as getPKCAddressFromPublicKey, d as getChallengeVerification, dr as BackupAbortError, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, f as getCommunityChallengeFromCommunityChallengeSettings, fn as decryptEd25519AesGcmPublicKeyBuffer, fr as backupCommunityDb, g as authorNameResolveFailureReason, gn as cleanUpBeforePublishing, gr as deleteOldCommunityInWindows, h as authorIdentityMatcherForRequest, hn as _validateSignatureOfPKCRecord, i as derivePublicPageSorts, ir as decode, j as iterateOverPageCidsToFindAllCids, kr as resolveDbPostsCidRefs, lr as getPKCAddressFromPublicKeySync, m as pkcJsChallenges, mn as encryptEd25519AesGcmPublicKeyBuffer, mr as calculateInlineRepliesBudget, nr as getCommunityPublicKeyFromWire, o as loadPageSortsForStartedCommunity, p as loadChallengeFileFromCommunityChallengeSettings, pr as calculateExpectedSignatureSize, pt as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, r as computePageSortsFingerprint, s as lookupPageSortFactories, sr as getIpfsKeyFromPrivateKey, t as RpcLocalCommunity, tr as getCommunityNameFromWire, u as deriveCommunityChallengesOrThrow, ur as getPublicKeyFromPrivateKey, v as TrackedInstanceRegistry, vn as signChallengeMessage, vr as deriveDbPosts, w as TIMEFRAMES_TO_SECONDS, wn as signCommentUpdate, wr as importSignerIntoKuboNode, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, xn as signComment, xr as getDefaultCommunityDbConfig, y as LRUCache, yr as deriveDbReplies, zn as verifyCommunity, zr as r$2 } from "./rpc-local-community-vvW_Lvzi.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-CMIhwYqH.js";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
-
import
|
|
6
|
+
import path from "node:path";
|
|
7
7
|
import os from "os";
|
|
8
8
|
import fs, { existsSync, promises } from "node:fs";
|
|
9
|
-
import path from "path";
|
|
9
|
+
import path$1 from "path";
|
|
10
10
|
import assert from "assert";
|
|
11
11
|
import { Buffer as Buffer$1 } from "buffer";
|
|
12
12
|
import fs$1 from "fs";
|
|
@@ -315,15 +315,15 @@ async function throwIfChallengeSettingsAreInvalid({ challengeSettings, pkc, comm
|
|
|
315
315
|
const processStartedCommunities = new TrackedInstanceRegistry();
|
|
316
316
|
function normalizeRegistryDataPath(dataPath) {
|
|
317
317
|
if (dataPath === void 0) return void 0;
|
|
318
|
-
const resolved = path.resolve(dataPath);
|
|
318
|
+
const resolved = path$1.resolve(dataPath);
|
|
319
319
|
let existing = resolved;
|
|
320
320
|
let tail = "";
|
|
321
321
|
while (true) try {
|
|
322
|
-
return path.join(fs$1.realpathSync.native(existing), tail);
|
|
322
|
+
return path$1.join(fs$1.realpathSync.native(existing), tail);
|
|
323
323
|
} catch {
|
|
324
|
-
const parent = path.dirname(existing);
|
|
324
|
+
const parent = path$1.dirname(existing);
|
|
325
325
|
if (parent === existing) return resolved;
|
|
326
|
-
tail = path.join(path.basename(existing), tail);
|
|
326
|
+
tail = path$1.join(path$1.basename(existing), tail);
|
|
327
327
|
existing = parent;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -1707,9 +1707,9 @@ var DbHandler = class {
|
|
|
1707
1707
|
if (needToMigrate) {
|
|
1708
1708
|
if (dbExistsAlready && currentDbVersion > 0) {
|
|
1709
1709
|
this.destoryConnection();
|
|
1710
|
-
backupDbPath = path.join(path.dirname(dbPath), ".backup_before_migration", `${path.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
|
|
1711
|
-
log(`Copying db ${path.basename(dbPath)} to ${backupDbPath} before migration`);
|
|
1712
|
-
if (!fs$1.existsSync(path.dirname(backupDbPath))) await fs$1.promises.mkdir(path.dirname(backupDbPath), { recursive: true });
|
|
1710
|
+
backupDbPath = path$1.join(path$1.dirname(dbPath), ".backup_before_migration", `${path$1.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
|
|
1711
|
+
log(`Copying db ${path$1.basename(dbPath)} to ${backupDbPath} before migration`);
|
|
1712
|
+
if (!fs$1.existsSync(path$1.dirname(backupDbPath))) await fs$1.promises.mkdir(path$1.dirname(backupDbPath), { recursive: true });
|
|
1713
1713
|
const sourceDb = new Database(dbPath, { fileMustExist: true });
|
|
1714
1714
|
await sourceDb.backup(backupDbPath);
|
|
1715
1715
|
sourceDb.close();
|
|
@@ -3760,10 +3760,10 @@ var DbHandler = class {
|
|
|
3760
3760
|
if (this._db || this._keyv) await this.destoryConnection();
|
|
3761
3761
|
this._transactionDepth = 0;
|
|
3762
3762
|
const dataPath = this._community._pkc.dataPath;
|
|
3763
|
-
const oldPathString = path.join(dataPath, "communities", oldDbName);
|
|
3764
|
-
const newPathString = path.join(dataPath, "communities", newDbName);
|
|
3765
|
-
await fs$1.promises.mkdir(path.dirname(oldPathString), { recursive: true });
|
|
3766
|
-
await fs$1.promises.mkdir(path.dirname(newPathString), { recursive: true });
|
|
3763
|
+
const oldPathString = path$1.join(dataPath, "communities", oldDbName);
|
|
3764
|
+
const newPathString = path$1.join(dataPath, "communities", newDbName);
|
|
3765
|
+
await fs$1.promises.mkdir(path$1.dirname(oldPathString), { recursive: true });
|
|
3766
|
+
await fs$1.promises.mkdir(path$1.dirname(newPathString), { recursive: true });
|
|
3767
3767
|
try {
|
|
3768
3768
|
if (!fs$1.existsSync(oldPathString)) log(`Old DB file ${oldPathString} does not exist. Cannot backup/rename.`);
|
|
3769
3769
|
else {
|
|
@@ -3785,8 +3785,8 @@ var DbHandler = class {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
async lockCommunityStart(communityAddress = this._community.address) {
|
|
3787
3787
|
const log = logger_default("pkc-js:local-community:db-handler:lock:start");
|
|
3788
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3789
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3788
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3789
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3790
3790
|
try {
|
|
3791
3791
|
await import_src.default.lock(communityDbPath, {
|
|
3792
3792
|
lockfilePath,
|
|
@@ -3807,8 +3807,8 @@ var DbHandler = class {
|
|
|
3807
3807
|
async unlockCommunityStart(communityAddress = this._community.address) {
|
|
3808
3808
|
const log = logger_default("pkc-js:local-community:db-handler:unlock:start");
|
|
3809
3809
|
log.trace(`Attempting to unlock the start of community (${communityAddress})`);
|
|
3810
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3811
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3810
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3811
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3812
3812
|
if (!fs$1.existsSync(lockfilePath) || !fs$1.existsSync(communityDbPath)) return;
|
|
3813
3813
|
try {
|
|
3814
3814
|
await import_src.default.unlock(communityDbPath, { lockfilePath });
|
|
@@ -3826,8 +3826,8 @@ var DbHandler = class {
|
|
|
3826
3826
|
}
|
|
3827
3827
|
async lockCommunityState() {
|
|
3828
3828
|
const log = logger_default("pkc-js:local-community:db-handler:lock:lockCommunityState");
|
|
3829
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3830
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3829
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3830
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3831
3831
|
try {
|
|
3832
3832
|
await import_src.default.lock(communityDbPath, {
|
|
3833
3833
|
lockfilePath,
|
|
@@ -3844,8 +3844,8 @@ var DbHandler = class {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
async unlockCommunityState() {
|
|
3846
3846
|
const log = logger_default("pkc-js:local-community:db-handler:lock:unlockCommunityState");
|
|
3847
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3848
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3847
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3848
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3849
3849
|
if (!fs$1.existsSync(lockfilePath)) return;
|
|
3850
3850
|
try {
|
|
3851
3851
|
await import_src.default.unlock(communityDbPath, { lockfilePath });
|
|
@@ -3855,7 +3855,7 @@ var DbHandler = class {
|
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
3857
|
communityDbExists() {
|
|
3858
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3858
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3859
3859
|
return fs$1.existsSync(communityDbPath);
|
|
3860
3860
|
}
|
|
3861
3861
|
markCommentsAsPublishedToPostUpdates(commentCids) {
|
|
@@ -6868,10 +6868,10 @@ async function restoreCommunityAfterFailedRename({ community, oldAddress, newAdd
|
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
6870
|
async function removePartialDbCopy({ community, oldAddress, newAddress, log }) {
|
|
6871
|
-
const communitiesPath =
|
|
6872
|
-
if (!fs.existsSync(
|
|
6871
|
+
const communitiesPath = path.join(community._pkc.dataPath, "communities");
|
|
6872
|
+
if (!fs.existsSync(path.join(communitiesPath, oldAddress))) return;
|
|
6873
6873
|
try {
|
|
6874
|
-
await fs.promises.rm(
|
|
6874
|
+
await fs.promises.rm(path.join(communitiesPath, newAddress), { force: true });
|
|
6875
6875
|
} catch (e) {
|
|
6876
6876
|
log.error(`Failed to remove the partial DB copy of community (${oldAddress}) at ${newAddress}`, e);
|
|
6877
6877
|
}
|
|
@@ -7015,11 +7015,11 @@ async function edit(community, newCommunityOptions) {
|
|
|
7015
7015
|
const EXPORTS_KEY = STORAGE_KEYS[STORAGE_KEYS.EXPORTS];
|
|
7016
7016
|
function defaultExportPathFor(community, exportId) {
|
|
7017
7017
|
if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
|
|
7018
|
-
return
|
|
7018
|
+
return path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
|
|
7019
7019
|
}
|
|
7020
7020
|
function sourceDbPathFor(community) {
|
|
7021
7021
|
if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
|
|
7022
|
-
return
|
|
7022
|
+
return path.join(community._pkc.dataPath, "communities", community.address);
|
|
7023
7023
|
}
|
|
7024
7024
|
async function persistExports(community) {
|
|
7025
7025
|
if (!community._dbHandler) return;
|
|
@@ -7095,9 +7095,9 @@ async function runExportTask(community, exportId, opts) {
|
|
|
7095
7095
|
async function exportCommunityEmbedded(community, options = {}) {
|
|
7096
7096
|
if (options.signal?.aborted) throw options.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
7097
7097
|
const exportId = v4();
|
|
7098
|
-
const destPath = options.exportPath ?
|
|
7098
|
+
const destPath = options.exportPath ? path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
|
|
7099
7099
|
const includePrivateKey = options.includePrivateKey === true;
|
|
7100
|
-
if (
|
|
7100
|
+
if (path.resolve(destPath) === path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
|
|
7101
7101
|
communityAddress: community.address,
|
|
7102
7102
|
exportPath: destPath
|
|
7103
7103
|
});
|
|
@@ -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-BhrCFCCl.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 { $ as retryKuboIpfsAddAndProvide, At as ChallengeAnswerMessageSchema, C as hideClassPrivateProps, D as isIpfsCid, Dt as require_sha256, E as isAbortError, Et as untrackUpdatingCommunity, H as rejectWhenAbortSignalFires, Hr as setErrorMap, In as CommentUpdateForChallengeVerificationSchema, It as ChallengeVerificationMessageSchema, J as removeUndefinedValuesRecursively, Jt as version_default, Lr as PKCError, Mr as FailedToFetchCommentIpfsFromGatewaysError, Mt as ChallengeMessageSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Ot as TimeoutError, Pt as ChallengeRequestMessageSchema, Q as retryKuboIpfsAdd, Rr as messages, Sr as e$1, St as trackUpdatingComment, T as ipnsNameToIpnsOverPubsubTopic, Tt as untrackUpdatingComment, U as rejectWhenCommunityStopsOrAborts, X as resolveWhenPredicateIsTrue, Y as replaceXWithY, _t as listUpdatingCommunities, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as timestamp, br as t$1, cn as CommunityAnchorSchema, d as deepMergeRuntimeFields, dt as findStartedCommunity, et as shortifyAddress, ft as findUpdatingComment, gr as n$2, gt as listUpdatingComments, hr as isStringDomain, ht as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, it as throwIfAbortSignalAborted, jn as CommentIpfsSchema, jr as require_retry$1, k as isIpns, kt as pTimeout, ni as en_default, nt as sleepUntilTimeoutOrAbort, ot as waitForUpdateInCommunityInstanceWithErrorAndTimeout, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, r as calculateIpfsCidV0, tt as shortifyCid, u as createAbortError, vr as n$1, vt as refreshTrackedCommentAliases, wr as r, x as getPostUpdateTimestampRange, xn as PubsubTopicSchema, xr as e, zn as CommentUpdateSchema, zr as logger_default } from "./util-
|
|
3
|
-
import { $n as buildRuntimeCommunityFields, $t as RpcPublishCommunityListParamSchema, A as findCommentInParsedPages, Ar as setNativeFunctions$1, At as parseRpcCommentUpdateEventWithPKCErrorIfItFails, B as GenericStateClient, Bn as verifyCommunityEdit, Br as t$3, Bt as RpcCommunityIdentifierParamSchema, C as RepliesPages, Cn as signCommentModeration, Ct as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, D as extractCommunityRuntimeFieldsFromParsedPages, Dn as signCommunityEdit, Dt as parseJsonWithPKCErrorIfFails, Er as monitorCommunitiesDirectory, Et as parseDecryptedChallengeWithPKCErrorIfItFails, F as cloneCrosspostForRuntime, Fn as verifyCommentIpfs, Ft as RpcAuthorNameParamSchema, G as PKCTypedEmitter, Gn as getAuthorNameFromRuntime, Gt as RpcExportCommunityParamSchema, H as InflightResourceTypes, Hn as verifyVote, Ht as RpcEditCommunityParamSchema, I as collectCrosspostAuthorsToResolve, In as verifyCommentModeration, It as RpcCancelExportParamSchema, J as decodeRpcChallengeRequestPubsubMsg, Jn as CreateCommunityListWithCidOptionsSchema, Jr as NAME_RESOLVED_TRUE_TTL_MS, Jt as RpcFetchCidResultSchema, K as decodeRpcChallengeAnswerPubsubMsg, Kn as getAuthorNameFromWire, Kr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, Kt as RpcExportCommunityResultSchema, Ln as verifyCommentPubsubMessage, Lr as t$5, Lt as RpcCidParamSchema, M as parseRawPages, Mr as findCommunitiesEntry, Nn as verifyChallengeVerification, Nr as toCommunitiesEntry, Nt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, O as findCommentInPageInstance, On as signCommunityList, Ot as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, P as applyNameResolvedCacheToCrosspost, Pn as verifyCommentEdit, Pt as RpcAnchorPublishPreparationResultSchema, Qr as nativeFunctions$2, Qt as RpcPublishChallengeAnswersParamSchema, R as stripNameResolvedFromCrosspost, Rn as verifyCommentUpdate, Rt as RpcCommentRepliesPageParamSchema, Sn as signCommentEdit, Sr as getDefaultDataPath, St as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Tr as listCommunitiesSync, Tt as parseDecryptedChallengeVerification, Un as buildRuntimeAuthor, Ur as t$2, Ut as RpcExportCommunityModLogsParamSchema, V as InflightFetchManager, Vn as verifyCommunityList, Vr as n$3, Vt as RpcCommunityPageParamSchema, Wn as cleanWireAuthor, Wr as t$4, Wt as RpcExportCommunityModLogsResultSchema, Xn as MAX_COMMUNITY_LIST_SIZE_BYTES, Xt as RpcFetchCommunityListResultSchema, Y as decodeRpcChallengeVerificationPubsubMsg, Yn as CreateNewCommunityListOptionsSchema, Yr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Yt as RpcFetchCommunityListParamSchema, Zt as RpcPublishAnchorRecordParamSchema, _n as signChallengeAnswer, _t as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, an as RpcUnsubscribeParamSchema, b as KeyvBetterSqlite3, br as findLocalCommunityAddress, ct as parseCommentUpdateSchemaWithPKCErrorIfItFails, dn as decryptEd25519AesGcm, en as RpcPublishCommunityListResultSchema, er as getCommunityAddressFromRecord, et as parseCidStringSchemaWithPKCErrorIfItFails, ft as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, gn as cleanUpBeforePublishing, gt as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, hr as createKuboRpcClient, ht as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, in as RpcSuccessResultSchema, ir as decode, it as parseCommentIpfsSchemaWithPKCErrorIfItFails, jn as verifyChallengeMessage, jr as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, k as findCommentInPageInstanceRecursively, kn as signVote, kt as parseRpcCommentEventWithPKCErrorIfItFails, l as pkcJsPageSorts, ln as createSigner, lr as getPKCAddressFromPublicKeySync, lt as parseCommunityAddressWithPKCErrorIfItFails, m as pkcJsChallenges, mt as parseCommunityListSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as RpcResolveAuthorNameResultSchema, nr as getCommunityPublicKeyFromWire, on as findCommunityRecordNameMismatch, or as getBufferedPKCAddressFromPublicKey, ot as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, pn as encryptEd25519AesGcm, q as decodeRpcChallengePubsubMsg, qn as normalizeCreatePublicationAuthor, qr as NAME_RESOLVED_FALSE_TTL_MS, qt as RpcFetchCidParamSchema, rn as RpcSubscriptionIdResultSchema, rr as normalizeCommunityInputFromCommunity, rt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, sn as require_lib$1, st as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, t as RpcLocalCommunity, tn as RpcPublishedAnchorRecordResultSchema, tr as getCommunityNameFromWire, un as createAnchorIpnsRecord$1, v as TrackedInstanceRegistry, vt as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, x as RemoteCommunity, xn as signComment, xt as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, y as LRUCache, yn as signChallengeRequest, z as PKCClientsManager, zt as RpcCommunitiesChangeEventResultSchema } from "./rpc-local-community-
|
|
4
|
-
import { s as getHeliaDebugContext } from "./util-
|
|
2
|
+
import { $ as retryKuboIpfsAddAndProvide, At as ChallengeAnswerMessageSchema, C as hideClassPrivateProps, D as isIpfsCid, Dt as require_sha256, E as isAbortError, Et as untrackUpdatingCommunity, H as rejectWhenAbortSignalFires, Hr as setErrorMap, In as CommentUpdateForChallengeVerificationSchema, It as ChallengeVerificationMessageSchema, J as removeUndefinedValuesRecursively, Jt as version_default, Lr as PKCError, Mr as FailedToFetchCommentIpfsFromGatewaysError, Mt as ChallengeMessageSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Ot as TimeoutError, Pt as ChallengeRequestMessageSchema, Q as retryKuboIpfsAdd, Rr as messages, Sr as e$1, St as trackUpdatingComment, T as ipnsNameToIpnsOverPubsubTopic, Tt as untrackUpdatingComment, U as rejectWhenCommunityStopsOrAborts, X as resolveWhenPredicateIsTrue, Y as replaceXWithY, _t as listUpdatingCommunities, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as timestamp, br as t$1, cn as CommunityAnchorSchema, d as deepMergeRuntimeFields, dt as findStartedCommunity, et as shortifyAddress, ft as findUpdatingComment, gr as n$2, gt as listUpdatingComments, hr as isStringDomain, ht as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, it as throwIfAbortSignalAborted, jn as CommentIpfsSchema, jr as require_retry$1, k as isIpns, kt as pTimeout, ni as en_default, nt as sleepUntilTimeoutOrAbort, ot as waitForUpdateInCommunityInstanceWithErrorAndTimeout, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pt as findUpdatingCommunity, r as calculateIpfsCidV0, tt as shortifyCid, u as createAbortError, vr as n$1, vt as refreshTrackedCommentAliases, wr as r, x as getPostUpdateTimestampRange, xn as PubsubTopicSchema, xr as e, zn as CommentUpdateSchema, zr as logger_default } from "./util-B4ZXn1pD.js";
|
|
3
|
+
import { $n as buildRuntimeCommunityFields, $t as RpcPublishCommunityListParamSchema, A as findCommentInParsedPages, Ar as setNativeFunctions$1, At as parseRpcCommentUpdateEventWithPKCErrorIfItFails, B as GenericStateClient, Bn as verifyCommunityEdit, Br as t$3, Bt as RpcCommunityIdentifierParamSchema, C as RepliesPages, Cn as signCommentModeration, Ct as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, D as extractCommunityRuntimeFieldsFromParsedPages, Dn as signCommunityEdit, Dt as parseJsonWithPKCErrorIfFails, Er as monitorCommunitiesDirectory, Et as parseDecryptedChallengeWithPKCErrorIfItFails, F as cloneCrosspostForRuntime, Fn as verifyCommentIpfs, Ft as RpcAuthorNameParamSchema, G as PKCTypedEmitter, Gn as getAuthorNameFromRuntime, Gt as RpcExportCommunityParamSchema, H as InflightResourceTypes, Hn as verifyVote, Ht as RpcEditCommunityParamSchema, I as collectCrosspostAuthorsToResolve, In as verifyCommentModeration, It as RpcCancelExportParamSchema, J as decodeRpcChallengeRequestPubsubMsg, Jn as CreateCommunityListWithCidOptionsSchema, Jr as NAME_RESOLVED_TRUE_TTL_MS, Jt as RpcFetchCidResultSchema, K as decodeRpcChallengeAnswerPubsubMsg, Kn as getAuthorNameFromWire, Kr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, Kt as RpcExportCommunityResultSchema, Ln as verifyCommentPubsubMessage, Lr as t$5, Lt as RpcCidParamSchema, M as parseRawPages, Mr as findCommunitiesEntry, Nn as verifyChallengeVerification, Nr as toCommunitiesEntry, Nt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, O as findCommentInPageInstance, On as signCommunityList, Ot as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, P as applyNameResolvedCacheToCrosspost, Pn as verifyCommentEdit, Pt as RpcAnchorPublishPreparationResultSchema, Qr as nativeFunctions$2, Qt as RpcPublishChallengeAnswersParamSchema, R as stripNameResolvedFromCrosspost, Rn as verifyCommentUpdate, Rt as RpcCommentRepliesPageParamSchema, Sn as signCommentEdit, Sr as getDefaultDataPath, St as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Tr as listCommunitiesSync, Tt as parseDecryptedChallengeVerification, Un as buildRuntimeAuthor, Ur as t$2, Ut as RpcExportCommunityModLogsParamSchema, V as InflightFetchManager, Vn as verifyCommunityList, Vr as n$3, Vt as RpcCommunityPageParamSchema, Wn as cleanWireAuthor, Wr as t$4, Wt as RpcExportCommunityModLogsResultSchema, Xn as MAX_COMMUNITY_LIST_SIZE_BYTES, Xt as RpcFetchCommunityListResultSchema, Y as decodeRpcChallengeVerificationPubsubMsg, Yn as CreateNewCommunityListOptionsSchema, Yr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Yt as RpcFetchCommunityListParamSchema, Zt as RpcPublishAnchorRecordParamSchema, _n as signChallengeAnswer, _t as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, an as RpcUnsubscribeParamSchema, b as KeyvBetterSqlite3, br as findLocalCommunityAddress, ct as parseCommentUpdateSchemaWithPKCErrorIfItFails, dn as decryptEd25519AesGcm, en as RpcPublishCommunityListResultSchema, er as getCommunityAddressFromRecord, et as parseCidStringSchemaWithPKCErrorIfItFails, ft as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, gn as cleanUpBeforePublishing, gt as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, hr as createKuboRpcClient, ht as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, in as RpcSuccessResultSchema, ir as decode, it as parseCommentIpfsSchemaWithPKCErrorIfItFails, jn as verifyChallengeMessage, jr as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, k as findCommentInPageInstanceRecursively, kn as signVote, kt as parseRpcCommentEventWithPKCErrorIfItFails, l as pkcJsPageSorts, ln as createSigner, lr as getPKCAddressFromPublicKeySync, lt as parseCommunityAddressWithPKCErrorIfItFails, m as pkcJsChallenges, mt as parseCommunityListSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as RpcResolveAuthorNameResultSchema, nr as getCommunityPublicKeyFromWire, on as findCommunityRecordNameMismatch, or as getBufferedPKCAddressFromPublicKey, ot as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, pn as encryptEd25519AesGcm, q as decodeRpcChallengePubsubMsg, qn as normalizeCreatePublicationAuthor, qr as NAME_RESOLVED_FALSE_TTL_MS, qt as RpcFetchCidParamSchema, rn as RpcSubscriptionIdResultSchema, rr as normalizeCommunityInputFromCommunity, rt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, sn as require_lib$1, st as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, t as RpcLocalCommunity, tn as RpcPublishedAnchorRecordResultSchema, tr as getCommunityNameFromWire, un as createAnchorIpnsRecord$1, v as TrackedInstanceRegistry, vt as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, x as RemoteCommunity, xn as signComment, xt as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, y as LRUCache, yn as signChallengeRequest, z as PKCClientsManager, zt as RpcCommunitiesChangeEventResultSchema } from "./rpc-local-community-vvW_Lvzi.js";
|
|
4
|
+
import { s as getHeliaDebugContext } from "./util-RG3tBF0u.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import assert from "assert";
|
|
7
7
|
import fs from "fs";
|
|
@@ -35902,7 +35902,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
35902
35902
|
this.clients.libp2pJsClients = {};
|
|
35903
35903
|
if (!this.libp2pJsClientsOptions) return;
|
|
35904
35904
|
if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
|
|
35905
|
-
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-
|
|
35905
|
+
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-DrE9AZtp.js");
|
|
35906
35906
|
for (const clientOptions of this.libp2pJsClientsOptions) {
|
|
35907
35907
|
const heliaNode = await createLibp2pJsClientOrUseExistingOne({
|
|
35908
35908
|
...clientOptions,
|
|
@@ -36267,7 +36267,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
36267
36267
|
const log = logger_default("pkc-js:pkc:createLocalCommunity");
|
|
36268
36268
|
log.trace("Received community options to create a local community instance:", options);
|
|
36269
36269
|
if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
|
|
36270
|
-
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-
|
|
36270
|
+
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-D4m4-sUw.js");
|
|
36271
36271
|
const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
|
|
36272
36272
|
const community = new LocalCommunity(this);
|
|
36273
36273
|
if (isLocalCommunity) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bn as PageSortFileSchema, hr as isStringDomain, v as getEquivalentCommunityAddresses } from "./util-
|
|
1
|
+
import { bn as PageSortFileSchema, hr as isStringDomain, v as getEquivalentCommunityAddresses } from "./util-B4ZXn1pD.js";
|
|
2
2
|
//#region dist/node/pages/page-sort-scoring.js
|
|
3
3
|
function validatePageSortFile(rawFile) {
|
|
4
4
|
const validated = PageSortFileSchema.parse(rawFile);
|
package/dist/bundled/chunks/{rpc-local-community-BM2gT_7L.js → rpc-local-community-vvW_Lvzi.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { $r as string, $t as CreateCommunityEditPublicationOptionsWithRefinementSchema, A as isIpnsPath, An as CommentIpfsReservedFields, Ar as e$4, Bn as CommentUpdateSignedPropertyNames, Br as require_supports_color, C as hideClassPrivateProps, Cn as CreateVoteUserOptionsWithRefinementSchema, Cr as t$11, Ct as trackUpdatingCommunity, D as isIpfsCid, Dn as VoteSignedPropertyNames, Dr as r$7, Dt as require_sha256$1, E as isAbortError, Er as n$8, Et as untrackUpdatingCommunity, Fn as CommentUpdateChallengeReservedFieldNames, Fr as FailedToFetchGenericIpfsFromGatewaysError, Ft as ChallengeRequestMessageSignedPropertyNames, Gn as ModQueuePageIpfsSchema, Gr as boolean, Gt as PKCParsedOptionsSchema, Ht as DecryptedChallengeVerificationSchema, Ir as FailedToFetchPageIpfsFromGatewaysError, Jn as CommentEditChallengeRequestToEncryptSchema, Jr as looseObject, K as removeNullUndefinedEmptyObjectsValuesRecursively, Kn as PageIpfsSchema, Kr as custom, Kt as PKCUserOptionBaseSchema, L as isRequestPubsubPublicationOfPost, Ln as CommentUpdateForChallengeVerificationSignedPropertyNames, Lr as PKCError, Lt as ChallengeVerificationMessageSignedPropertyNames, Mr as FailedToFetchCommentIpfsFromGatewaysError, Nn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Nt as ChallengeMessageSignedPropertyNames, O as isIpfsPath, Or as t$10, Pn as CommentSignedPropertyNames, Pr as FailedToFetchCommunityFromGatewaysError, Qn as CommentEditSignedPropertyNames, Qr as record, Qt as CommunityEditPubsubMessagePublicationSchema, R as isRequestPubsubPublicationOfReply, Rn as CommentUpdateReservedFields, Rr as messages, Rt as DecryptedChallengeAnswerSchema, S as hasTransientNetworkErrorCode, Sn as RpcRemoteCommunityUpdateEventResultSchema, Sr as e$5, T as ipnsNameToIpnsOverPubsubTopic, Tn as VotePubsubMessagePublicationSchema, Tr as t$12, Un as CreateCommentOptionsWithRefinementSchema, Ur as _enum, Ut as NameResolveCacheOptionsSchema, V as raceAgainstAbort, Vr as require_ms$1, Vt as DecryptedChallengeSchema, Wn as GetPageParamSchema, Wr as array, Wt as NameResolverSerializedSchema, Xn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Xr as object, Yr as number, Yt as CommunityEditPublicationChallengeRequestToEncryptSchema, Zr as preprocess, Zt as CommunityEditPublicationSignedPropertyNames, _n as CreateRpcCommunityFunctionArgumentSchema, an as CreateCommentModerationOptionsWithRefinementSchema, ar as ChallengeAnswersSchema, at as timestamp, bn as PageSortFileSchema, br as t$13, cr as CommunityAddressSchema, d as deepMergeRuntimeFields, dn as CommunityExportRecordsSchema, dr as JsonSignatureSchema, dt as findStartedCommunity, ei as union, en as CommentModerationChallengeRequestToEncryptSchema, er as CreateCommentEditOptionsWithRefinementSchema, et as shortifyAddress, f as derivePublicationFromChallengeRequest, fn as CommunityIpfsReservedFields, fr as PKCTimestampSchema, gn as CreateRemoteCommunityFunctionArgumentSchema, gr as n$9, h as fetchAndValidateIpnsRecordFromGateway, hn as CreateNewLocalCommunityUserOptionsSchema, hr as isStringDomain, in as CommentModerationsTableRowSchema, ir as AuthorReservedFields, it as throwIfAbortSignalAborted, jn as CommentIpfsSchema, jr as require_retry$2, jt as ChallengeAnswerMessageSignedPropertyNames, k as isIpns, kn as CommentChallengeRequestToEncryptSchema, kr as t$9, kt as pTimeout, ln as CommunityChallengeSettingSchema, lr as CommunityAuthorChallengeReservedFieldNames, m as extractNetworkErrorDetails, mn as CommunitySignedPropertyNames, mr as areEquivalentNames, mt as forgetTrackedUpdatingCommunityName, nr as AuthorCommentIpfsReservedFields, nt as sleepUntilTimeoutOrAbort, on as ChallengeFileFactorySchema, or as CidPathSchema, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pr as ProtocolVersionSchema, pt as findUpdatingCommunity, qn as isReservedObjectKey, qr as literal, qt as PKCUserOptionsSchema, r as calculateIpfsCidV0, rn as CommentModerationSignedPropertyNames, rr as AuthorPubsubSchema, sn as ChallengeFileSchema, sr as CidStringSchema, t as areEquivalentCommunityAddresses, tn as CommentModerationPubsubMessagePublicationSchema, tr as AuthorAddressSchema, tt as shortifyCid, u as createAbortError, un as CommunityEditOptionsSchema, ur as CreateSignerSchema, vn as ExportCommunityModLogsOptionsSchema, vr as n$10, w as interruptibleSleep, wn as VoteChallengeRequestToEncryptSchema, wr as r$8, wt as untrackStartedCommunity, xr as e$6, xt as trackStartedCommunity, yn as PageSortFileFactorySchema, yt as refreshTrackedCommunityAliases, z as pubsubTopicToDhtKey, zn as CommentUpdateSchema, zr as logger_default } from "./util-
|
|
2
|
+
import { $r as string, $t as CreateCommunityEditPublicationOptionsWithRefinementSchema, A as isIpnsPath, An as CommentIpfsReservedFields, Ar as e$4, Bn as CommentUpdateSignedPropertyNames, Br as require_supports_color, C as hideClassPrivateProps, Cn as CreateVoteUserOptionsWithRefinementSchema, Cr as t$11, Ct as trackUpdatingCommunity, D as isIpfsCid, Dn as VoteSignedPropertyNames, Dr as r$7, Dt as require_sha256$1, E as isAbortError, Er as n$8, Et as untrackUpdatingCommunity, Fn as CommentUpdateChallengeReservedFieldNames, Fr as FailedToFetchGenericIpfsFromGatewaysError, Ft as ChallengeRequestMessageSignedPropertyNames, Gn as ModQueuePageIpfsSchema, Gr as boolean, Gt as PKCParsedOptionsSchema, Ht as DecryptedChallengeVerificationSchema, Ir as FailedToFetchPageIpfsFromGatewaysError, Jn as CommentEditChallengeRequestToEncryptSchema, Jr as looseObject, K as removeNullUndefinedEmptyObjectsValuesRecursively, Kn as PageIpfsSchema, Kr as custom, Kt as PKCUserOptionBaseSchema, L as isRequestPubsubPublicationOfPost, Ln as CommentUpdateForChallengeVerificationSignedPropertyNames, Lr as PKCError, Lt as ChallengeVerificationMessageSignedPropertyNames, Mr as FailedToFetchCommentIpfsFromGatewaysError, Nn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Nr as FailedToFetchCommentUpdateFromGatewaysError, Nt as ChallengeMessageSignedPropertyNames, O as isIpfsPath, Or as t$10, Pn as CommentSignedPropertyNames, Pr as FailedToFetchCommunityFromGatewaysError, Qn as CommentEditSignedPropertyNames, Qr as record, Qt as CommunityEditPubsubMessagePublicationSchema, R as isRequestPubsubPublicationOfReply, Rn as CommentUpdateReservedFields, Rr as messages, Rt as DecryptedChallengeAnswerSchema, S as hasTransientNetworkErrorCode, Sn as RpcRemoteCommunityUpdateEventResultSchema, Sr as e$5, T as ipnsNameToIpnsOverPubsubTopic, Tn as VotePubsubMessagePublicationSchema, Tr as t$12, Un as CreateCommentOptionsWithRefinementSchema, Ur as _enum, Ut as NameResolveCacheOptionsSchema, V as raceAgainstAbort, Vr as require_ms$1, Vt as DecryptedChallengeSchema, Wn as GetPageParamSchema, Wr as array, Wt as NameResolverSerializedSchema, Xn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Xr as object, Yr as number, Yt as CommunityEditPublicationChallengeRequestToEncryptSchema, Zr as preprocess, Zt as CommunityEditPublicationSignedPropertyNames, _n as CreateRpcCommunityFunctionArgumentSchema, an as CreateCommentModerationOptionsWithRefinementSchema, ar as ChallengeAnswersSchema, at as timestamp, bn as PageSortFileSchema, br as t$13, cr as CommunityAddressSchema, d as deepMergeRuntimeFields, dn as CommunityExportRecordsSchema, dr as JsonSignatureSchema, dt as findStartedCommunity, ei as union, en as CommentModerationChallengeRequestToEncryptSchema, er as CreateCommentEditOptionsWithRefinementSchema, et as shortifyAddress, f as derivePublicationFromChallengeRequest, fn as CommunityIpfsReservedFields, fr as PKCTimestampSchema, gn as CreateRemoteCommunityFunctionArgumentSchema, gr as n$9, h as fetchAndValidateIpnsRecordFromGateway, hn as CreateNewLocalCommunityUserOptionsSchema, hr as isStringDomain, in as CommentModerationsTableRowSchema, ir as AuthorReservedFields, it as throwIfAbortSignalAborted, jn as CommentIpfsSchema, jr as require_retry$2, jt as ChallengeAnswerMessageSignedPropertyNames, k as isIpns, kn as CommentChallengeRequestToEncryptSchema, kr as t$9, kt as pTimeout, ln as CommunityChallengeSettingSchema, lr as CommunityAuthorChallengeReservedFieldNames, m as extractNetworkErrorDetails, mn as CommunitySignedPropertyNames, mr as areEquivalentNames, mt as forgetTrackedUpdatingCommunityName, nr as AuthorCommentIpfsReservedFields, nt as sleepUntilTimeoutOrAbort, on as ChallengeFileFactorySchema, or as CidPathSchema, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsSchema, pr as ProtocolVersionSchema, pt as findUpdatingCommunity, qn as isReservedObjectKey, qr as literal, qt as PKCUserOptionsSchema, r as calculateIpfsCidV0, rn as CommentModerationSignedPropertyNames, rr as AuthorPubsubSchema, sn as ChallengeFileSchema, sr as CidStringSchema, t as areEquivalentCommunityAddresses, tn as CommentModerationPubsubMessagePublicationSchema, tr as AuthorAddressSchema, tt as shortifyCid, u as createAbortError, un as CommunityEditOptionsSchema, ur as CreateSignerSchema, vn as ExportCommunityModLogsOptionsSchema, vr as n$10, w as interruptibleSleep, wn as VoteChallengeRequestToEncryptSchema, wr as r$8, wt as untrackStartedCommunity, xr as e$6, xt as trackStartedCommunity, yn as PageSortFileFactorySchema, yt as refreshTrackedCommunityAliases, z as pubsubTopicToDhtKey, zn as CommentUpdateSchema, zr as logger_default } from "./util-B4ZXn1pD.js";
|
|
3
3
|
import { t as all } from "./src-CYIMjhjK.js";
|
|
4
|
-
import { s as validatePageSortFile } from "./page-sort-scoring-
|
|
4
|
+
import { s as validatePageSortFile } from "./page-sort-scoring-CMIhwYqH.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
import dns from "node:dns";
|
|
@@ -16552,7 +16552,7 @@ const CommunityEditPublicationPubsubReservedFields = r$2([
|
|
|
16552
16552
|
], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
|
|
16553
16553
|
//#endregion
|
|
16554
16554
|
//#region dist/node/generated-version.js
|
|
16555
|
-
const version = "0.0.
|
|
16555
|
+
const version = "0.0.137";
|
|
16556
16556
|
//#endregion
|
|
16557
16557
|
//#region dist/node/version.js
|
|
16558
16558
|
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as pubsubTopicToDhtKeyCid, Lr as PKCError } from "./util-
|
|
1
|
+
import { B as pubsubTopicToDhtKeyCid, Lr as PKCError } from "./util-B4ZXn1pD.js";
|
|
2
2
|
import { ipnsSelector } from "ipns/selector";
|
|
3
3
|
import { ipnsValidator } from "ipns/validator";
|
|
4
4
|
import { unmarshalIPNSRecord } from "ipns";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Lr as PKCError, on as ChallengeFileFactorySchema, sn as ChallengeFileSchema, yn as PageSortFileFactorySchema } from "./util-
|
|
2
|
-
import { s as validatePageSortFile } from "./page-sort-scoring-
|
|
1
|
+
import { Lr as PKCError, on as ChallengeFileFactorySchema, sn as ChallengeFileSchema, yn as PageSortFileFactorySchema } from "./util-B4ZXn1pD.js";
|
|
2
|
+
import { s as validatePageSortFile } from "./page-sort-scoring-CMIhwYqH.js";
|
|
3
3
|
//#region dist/node/validate-package-factories.js
|
|
4
4
|
function validateChallengeFileFactory(factory, { name }) {
|
|
5
5
|
try {
|
package/dist/bundled/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-
|
|
1
|
+
import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-CULFO_M2.js";
|
|
2
2
|
export { challenges, createAnchorIpnsRecord, PKC as default, getShortAddress, getShortCid, nativeFunctions, pageSorts, setNativeFunctions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as validatePageSortFileFactory } from "./chunks/validate-package-factories-
|
|
1
|
+
import { n as validatePageSortFileFactory } from "./chunks/validate-package-factories-C3PC9lVi.js";
|
|
2
2
|
export { validatePageSortFileFactory };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as retryKuboIpfsAddAndProvide, C as hideClassPrivateProps, Lr as PKCError, Y as replaceXWithY, br as t, dt as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, kt as pTimeout, vr as n, zr as logger_default } from "../../chunks/util-
|
|
2
|
-
import { S as parseRpcUnsubscribeParam, _ as parseRpcExportCommunityParam, b as parseRpcPublishChallengeAnswersParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcFetchCommunityListParam, x as parseRpcPublishCommunityListParam, y as parseRpcPublishAnchorRecordParam } from "../../chunks/node-
|
|
3
|
-
import { Dt as parseJsonWithPKCErrorIfFails, E as buildPagesRuntimeFields, Gr as stringify, L as extractCrosspostRuntimeFields, Mt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Pr as toCommunitiesWireEntry, Rr as t$1, T as buildPageRuntimeFields, Tr as listCommunitiesSync, U as pRetry, Vn as verifyCommunityList, W as pLimit, Xn as MAX_COMMUNITY_LIST_SIZE_BYTES, at as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, br as findLocalCommunityAddress, bt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, mt as parseCommunityListSchemaWithPKCErrorIfItFails, nt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, sn as require_lib, tt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ut as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, yt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-
|
|
4
|
-
import { t as LocalCommunity } from "../../chunks/local-community-
|
|
1
|
+
import { $ as retryKuboIpfsAddAndProvide, C as hideClassPrivateProps, Lr as PKCError, Y as replaceXWithY, br as t, dt as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, kt as pTimeout, vr as n, zr as logger_default } from "../../chunks/util-B4ZXn1pD.js";
|
|
2
|
+
import { S as parseRpcUnsubscribeParam, _ as parseRpcExportCommunityParam, b as parseRpcPublishChallengeAnswersParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcFetchCommunityListParam, x as parseRpcPublishCommunityListParam, y as parseRpcPublishAnchorRecordParam } from "../../chunks/node-CULFO_M2.js";
|
|
3
|
+
import { Dt as parseJsonWithPKCErrorIfFails, E as buildPagesRuntimeFields, Gr as stringify, L as extractCrosspostRuntimeFields, Mt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Pr as toCommunitiesWireEntry, Rr as t$1, T as buildPageRuntimeFields, Tr as listCommunitiesSync, U as pRetry, Vn as verifyCommunityList, W as pLimit, Xn as MAX_COMMUNITY_LIST_SIZE_BYTES, at as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, br as findLocalCommunityAddress, bt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, dt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, jt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, mt as parseCommunityListSchemaWithPKCErrorIfItFails, nt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, sn as require_lib, tt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ut as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, wt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, yt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-vvW_Lvzi.js";
|
|
4
|
+
import { t as LocalCommunity } from "../../chunks/local-community-BhrCFCCl.js";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import assert from "assert";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.137";
|