@pkcprotocol/pkc-js 0.0.144 → 0.0.145
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 +47 -47
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc--Xw7hTTu.js → helia-for-pkc-7vdzP67t.js} +33 -33
- package/dist/bundled/chunks/{local-community-CH8vMgTr.js → local-community-Bi1JGMMa.js} +1 -1
- package/dist/bundled/chunks/{local-community-DCVtQSci.js → local-community-UB_rVgR9.js} +32 -32
- package/dist/bundled/chunks/{node-Coyk7lC6.js → node-BT3m9Nml.js} +5 -5
- package/dist/bundled/chunks/{page-sort-scoring-DaW6urZ2.js → page-sort-scoring-Bsc4MAy1.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-KgRrTYjv.js → rpc-local-community-DVykDP0T.js} +2 -2
- package/dist/bundled/chunks/{util-DN7FMpHT.js → util-BxfB5cRB.js} +1 -1
- package/dist/bundled/chunks/{util-BYT-7zVn.js → util-D6z8nIoj.js} +1 -1
- package/dist/bundled/chunks/{validate-package-factories-CPVyODKw.js → validate-package-factories-CiY6DjnH.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.145";
|
|
@@ -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-CiY6DjnH.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-BT3m9Nml.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-BT3m9Nml.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-CiY6DjnH.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-DVykDP0T.js",
|
|
48
|
+
"chunks/node-BT3m9Nml.js",
|
|
49
|
+
"chunks/util-D6z8nIoj.js",
|
|
50
|
+
"chunks/local-community-UB_rVgR9.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-7vdzP67t.js": {
|
|
81
81
|
"isEntry": false,
|
|
82
82
|
"imports": [
|
|
83
83
|
"chunks/chunk-2rV9d50f.js",
|
|
84
|
-
"chunks/util-
|
|
85
|
-
"chunks/util-
|
|
84
|
+
"chunks/util-D6z8nIoj.js",
|
|
85
|
+
"chunks/util-BxfB5cRB.js",
|
|
86
86
|
"chunks/src-DKntVmyX.js",
|
|
87
87
|
"chunks/src-Cpx2Sts8.js",
|
|
88
88
|
"node:url",
|
|
@@ -204,21 +204,21 @@
|
|
|
204
204
|
"dist/node/helia/helia-for-pkc.js"
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
|
-
"chunks/local-community-
|
|
207
|
+
"chunks/local-community-Bi1JGMMa.js": {
|
|
208
208
|
"isEntry": false,
|
|
209
209
|
"imports": [
|
|
210
|
-
"chunks/local-community-
|
|
210
|
+
"chunks/local-community-UB_rVgR9.js"
|
|
211
211
|
],
|
|
212
212
|
"dynamicImports": [],
|
|
213
213
|
"inputs": []
|
|
214
214
|
},
|
|
215
|
-
"chunks/local-community-
|
|
215
|
+
"chunks/local-community-UB_rVgR9.js": {
|
|
216
216
|
"isEntry": false,
|
|
217
217
|
"imports": [
|
|
218
218
|
"chunks/chunk-2rV9d50f.js",
|
|
219
|
-
"chunks/rpc-local-community-
|
|
220
|
-
"chunks/util-
|
|
221
|
-
"chunks/page-sort-scoring-
|
|
219
|
+
"chunks/rpc-local-community-DVykDP0T.js",
|
|
220
|
+
"chunks/util-D6z8nIoj.js",
|
|
221
|
+
"chunks/page-sort-scoring-Bsc4MAy1.js",
|
|
222
222
|
"node:url",
|
|
223
223
|
"node:path",
|
|
224
224
|
"os",
|
|
@@ -270,13 +270,13 @@
|
|
|
270
270
|
"dist/node/runtime/node/community/local-community.js"
|
|
271
271
|
]
|
|
272
272
|
},
|
|
273
|
-
"chunks/node-
|
|
273
|
+
"chunks/node-BT3m9Nml.js": {
|
|
274
274
|
"isEntry": false,
|
|
275
275
|
"imports": [
|
|
276
276
|
"chunks/chunk-2rV9d50f.js",
|
|
277
|
-
"chunks/rpc-local-community-
|
|
278
|
-
"chunks/util-
|
|
279
|
-
"chunks/util-
|
|
277
|
+
"chunks/rpc-local-community-DVykDP0T.js",
|
|
278
|
+
"chunks/util-D6z8nIoj.js",
|
|
279
|
+
"chunks/util-BxfB5cRB.js",
|
|
280
280
|
"path",
|
|
281
281
|
"assert",
|
|
282
282
|
"fs",
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
"rpc-websockets"
|
|
288
288
|
],
|
|
289
289
|
"dynamicImports": [
|
|
290
|
-
"chunks/helia-for-pkc
|
|
291
|
-
"chunks/local-community-
|
|
290
|
+
"chunks/helia-for-pkc-7vdzP67t.js",
|
|
291
|
+
"chunks/local-community-UB_rVgR9.js"
|
|
292
292
|
],
|
|
293
293
|
"inputs": [
|
|
294
294
|
"dist/node/zod-error-map.js",
|
|
@@ -448,22 +448,22 @@
|
|
|
448
448
|
"dist/node/index.js"
|
|
449
449
|
]
|
|
450
450
|
},
|
|
451
|
-
"chunks/page-sort-scoring-
|
|
451
|
+
"chunks/page-sort-scoring-Bsc4MAy1.js": {
|
|
452
452
|
"isEntry": false,
|
|
453
453
|
"imports": [
|
|
454
|
-
"chunks/util-
|
|
454
|
+
"chunks/util-D6z8nIoj.js"
|
|
455
455
|
],
|
|
456
456
|
"dynamicImports": [],
|
|
457
457
|
"inputs": [
|
|
458
458
|
"dist/node/pages/page-sort-scoring.js"
|
|
459
459
|
]
|
|
460
460
|
},
|
|
461
|
-
"chunks/rpc-local-community-
|
|
461
|
+
"chunks/rpc-local-community-DVykDP0T.js": {
|
|
462
462
|
"isEntry": false,
|
|
463
463
|
"imports": [
|
|
464
464
|
"chunks/chunk-2rV9d50f.js",
|
|
465
|
-
"chunks/util-
|
|
466
|
-
"chunks/page-sort-scoring-
|
|
465
|
+
"chunks/util-D6z8nIoj.js",
|
|
466
|
+
"chunks/page-sort-scoring-Bsc4MAy1.js",
|
|
467
467
|
"chunks/src-CYIMjhjK.js",
|
|
468
468
|
"node:crypto",
|
|
469
469
|
"node:url",
|
|
@@ -1576,7 +1576,22 @@
|
|
|
1576
1576
|
"node_modules/kubo-rpc-client/dist/src/index.js"
|
|
1577
1577
|
]
|
|
1578
1578
|
},
|
|
1579
|
-
"chunks/util-
|
|
1579
|
+
"chunks/util-BxfB5cRB.js": {
|
|
1580
|
+
"isEntry": false,
|
|
1581
|
+
"imports": [
|
|
1582
|
+
"chunks/util-D6z8nIoj.js",
|
|
1583
|
+
"ipns/selector",
|
|
1584
|
+
"ipns/validator",
|
|
1585
|
+
"ipns",
|
|
1586
|
+
"uint8arrays/equals",
|
|
1587
|
+
"@libp2p/utils"
|
|
1588
|
+
],
|
|
1589
|
+
"dynamicImports": [],
|
|
1590
|
+
"inputs": [
|
|
1591
|
+
"dist/node/helia/util.js"
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1594
|
+
"chunks/util-D6z8nIoj.js": {
|
|
1580
1595
|
"isEntry": false,
|
|
1581
1596
|
"imports": [
|
|
1582
1597
|
"chunks/chunk-2rV9d50f.js",
|
|
@@ -1671,26 +1686,11 @@
|
|
|
1671
1686
|
"dist/node/util.js"
|
|
1672
1687
|
]
|
|
1673
1688
|
},
|
|
1674
|
-
"chunks/
|
|
1675
|
-
"isEntry": false,
|
|
1676
|
-
"imports": [
|
|
1677
|
-
"chunks/util-BYT-7zVn.js",
|
|
1678
|
-
"ipns/selector",
|
|
1679
|
-
"ipns/validator",
|
|
1680
|
-
"ipns",
|
|
1681
|
-
"uint8arrays/equals",
|
|
1682
|
-
"@libp2p/utils"
|
|
1683
|
-
],
|
|
1684
|
-
"dynamicImports": [],
|
|
1685
|
-
"inputs": [
|
|
1686
|
-
"dist/node/helia/util.js"
|
|
1687
|
-
]
|
|
1688
|
-
},
|
|
1689
|
-
"chunks/validate-package-factories-CPVyODKw.js": {
|
|
1689
|
+
"chunks/validate-package-factories-CiY6DjnH.js": {
|
|
1690
1690
|
"isEntry": false,
|
|
1691
1691
|
"imports": [
|
|
1692
|
-
"chunks/util-
|
|
1693
|
-
"chunks/page-sort-scoring-
|
|
1692
|
+
"chunks/util-D6z8nIoj.js",
|
|
1693
|
+
"chunks/page-sort-scoring-Bsc4MAy1.js"
|
|
1694
1694
|
],
|
|
1695
1695
|
"dynamicImports": [],
|
|
1696
1696
|
"inputs": [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-
|
|
1
|
+
import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-CiY6DjnH.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 { Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic } from "./util-
|
|
3
|
-
import { a as directFetchIpnsRecordFromProviders, c as readFreshCachedIpnsRecordFromPubsubLocalStore, i as connectToPubsubPeers, l as selectBitswapSessionSeedPeers, n as REACHABILITY_DOCS_URL, o as fetchBlockWithStalledSessionFailover, r as cacheIpnsRecordInPubsubLocalStore, s as getHeliaDebugContext, u as summarizeProviderReachability } from "./util-
|
|
2
|
+
import { Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic } from "./util-D6z8nIoj.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-BxfB5cRB.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";
|
|
@@ -152,7 +152,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
152
152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
153
153
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
154
154
|
const os$1 = __require("os");
|
|
155
|
-
const path$
|
|
155
|
+
const path$10 = __require("path");
|
|
156
156
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
157
157
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
158
158
|
/**
|
|
@@ -181,7 +181,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
181
181
|
}
|
|
182
182
|
exports.unixify = unixify;
|
|
183
183
|
function makeAbsolute(cwd, filepath) {
|
|
184
|
-
return path$
|
|
184
|
+
return path$10.resolve(cwd, filepath);
|
|
185
185
|
}
|
|
186
186
|
exports.makeAbsolute = makeAbsolute;
|
|
187
187
|
function removeLeadingDotSegment(entry) {
|
|
@@ -1433,7 +1433,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1433
1433
|
//#endregion
|
|
1434
1434
|
//#region node_modules/picomatch/lib/constants.js
|
|
1435
1435
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1436
|
-
const path$
|
|
1436
|
+
const path$9 = __require("path");
|
|
1437
1437
|
const WIN_SLASH = "\\\\/";
|
|
1438
1438
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1439
1439
|
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -1558,7 +1558,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1558
1558
|
CHAR_UNDERSCORE: 95,
|
|
1559
1559
|
CHAR_VERTICAL_LINE: 124,
|
|
1560
1560
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1561
|
-
SEP: path$
|
|
1561
|
+
SEP: path$9.sep,
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Create EXTGLOB_CHARS
|
|
1564
1564
|
*/
|
|
@@ -1602,7 +1602,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1602
1602
|
//#endregion
|
|
1603
1603
|
//#region node_modules/picomatch/lib/utils.js
|
|
1604
1604
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1605
|
-
const path$
|
|
1605
|
+
const path$8 = __require("path");
|
|
1606
1606
|
const win32 = process.platform === "win32";
|
|
1607
1607
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
1608
1608
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1622,7 +1622,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
exports.isWindows = (options) => {
|
|
1624
1624
|
if (options && typeof options.windows === "boolean") return options.windows;
|
|
1625
|
-
return win32 === true || path$
|
|
1625
|
+
return win32 === true || path$8.sep === "\\";
|
|
1626
1626
|
};
|
|
1627
1627
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
1628
1628
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -2992,7 +2992,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2992
2992
|
//#endregion
|
|
2993
2993
|
//#region node_modules/picomatch/lib/picomatch.js
|
|
2994
2994
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2995
|
-
const path$
|
|
2995
|
+
const path$7 = __require("path");
|
|
2996
2996
|
const scan = require_scan();
|
|
2997
2997
|
const parse = require_parse();
|
|
2998
2998
|
const utils = require_utils$2();
|
|
@@ -3131,7 +3131,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3131
3131
|
* @api public
|
|
3132
3132
|
*/
|
|
3133
3133
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
3134
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$
|
|
3134
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$7.basename(input));
|
|
3135
3135
|
};
|
|
3136
3136
|
/**
|
|
3137
3137
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -3686,7 +3686,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3686
3686
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3687
3687
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3688
3688
|
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;
|
|
3689
|
-
const path$
|
|
3689
|
+
const path$6 = __require("path");
|
|
3690
3690
|
const globParent = require_glob_parent();
|
|
3691
3691
|
const micromatch = require_micromatch();
|
|
3692
3692
|
const GLOBSTAR = "**";
|
|
@@ -3794,7 +3794,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
3796
3796
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
3797
|
-
const basename = path$
|
|
3797
|
+
const basename = path$6.basename(pattern);
|
|
3798
3798
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
3799
3799
|
}
|
|
3800
3800
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -3868,7 +3868,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3870
3870
|
function isAbsolute(pattern) {
|
|
3871
|
-
return path$
|
|
3871
|
+
return path$6.isAbsolute(pattern);
|
|
3872
3872
|
}
|
|
3873
3873
|
exports.isAbsolute = isAbsolute;
|
|
3874
3874
|
}));
|
|
@@ -4496,7 +4496,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4496
4496
|
//#region node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4497
4497
|
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4498
4498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4499
|
-
const path$
|
|
4499
|
+
const path$5 = __require("path");
|
|
4500
4500
|
const fsStat = require_out$3();
|
|
4501
4501
|
const fs = require_fs();
|
|
4502
4502
|
var Settings = class {
|
|
@@ -4504,7 +4504,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4504
4504
|
this._options = _options;
|
|
4505
4505
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4506
4506
|
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4507
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
4507
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
|
|
4508
4508
|
this.stats = this._getValue(this._options.stats, false);
|
|
4509
4509
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4510
4510
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -5098,7 +5098,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5098
5098
|
//#region node_modules/@nodelib/fs.walk/out/settings.js
|
|
5099
5099
|
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5100
5100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5101
|
-
const path$
|
|
5101
|
+
const path$4 = __require("path");
|
|
5102
5102
|
const fsScandir = require_out$2();
|
|
5103
5103
|
var Settings = class {
|
|
5104
5104
|
constructor(_options = {}) {
|
|
@@ -5108,7 +5108,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5108
5108
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
5109
5109
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
5110
5110
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
5111
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
5111
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
|
|
5112
5112
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
5113
5113
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
5114
5114
|
fs: this._options.fs,
|
|
@@ -5160,7 +5160,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5160
5160
|
//#region node_modules/fast-glob/out/readers/reader.js
|
|
5161
5161
|
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5162
5162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5163
|
-
const path$
|
|
5163
|
+
const path$3 = __require("path");
|
|
5164
5164
|
const fsStat = require_out$3();
|
|
5165
5165
|
const utils = require_utils$1();
|
|
5166
5166
|
var Reader = class {
|
|
@@ -5173,7 +5173,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5173
5173
|
});
|
|
5174
5174
|
}
|
|
5175
5175
|
_getFullEntryPath(filepath) {
|
|
5176
|
-
return path$
|
|
5176
|
+
return path$3.resolve(this._settings.cwd, filepath);
|
|
5177
5177
|
}
|
|
5178
5178
|
_makeEntry(stats, pattern) {
|
|
5179
5179
|
const entry = {
|
|
@@ -5508,7 +5508,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5508
5508
|
//#region node_modules/fast-glob/out/providers/provider.js
|
|
5509
5509
|
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5510
5510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5511
|
-
const path$
|
|
5511
|
+
const path$2 = __require("path");
|
|
5512
5512
|
const deep_1 = require_deep();
|
|
5513
5513
|
const entry_1 = require_entry$1();
|
|
5514
5514
|
const error_1 = require_error();
|
|
@@ -5522,7 +5522,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5522
5522
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
5523
5523
|
}
|
|
5524
5524
|
_getRootDirectory(task) {
|
|
5525
|
-
return path$
|
|
5525
|
+
return path$2.resolve(this._settings.cwd, task.base);
|
|
5526
5526
|
}
|
|
5527
5527
|
_getReaderOptions(task) {
|
|
5528
5528
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -5853,7 +5853,7 @@ var import_out = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
|
|
|
5853
5853
|
* Async iterable filename pattern matcher
|
|
5854
5854
|
*/
|
|
5855
5855
|
async function* glob(dir, pattern, options = {}) {
|
|
5856
|
-
const absoluteDir =
|
|
5856
|
+
const absoluteDir = path.resolve(dir);
|
|
5857
5857
|
const stats = await fsp.stat(absoluteDir);
|
|
5858
5858
|
for await (const entry of import_out.default.stream(pattern, {
|
|
5859
5859
|
...options,
|
|
@@ -6023,7 +6023,7 @@ var NextToLast = class {
|
|
|
6023
6023
|
};
|
|
6024
6024
|
}
|
|
6025
6025
|
decode(str) {
|
|
6026
|
-
let fileName =
|
|
6026
|
+
let fileName = path.basename(str);
|
|
6027
6027
|
if (fileName.endsWith(this.extension)) fileName = fileName.substring(0, fileName.length - this.extension.length);
|
|
6028
6028
|
return CID.decode(this.base.decoder.decode(fileName));
|
|
6029
6029
|
}
|
|
@@ -6049,7 +6049,7 @@ var NextToLast = class {
|
|
|
6049
6049
|
async function writeFile$1(file, contents, options) {
|
|
6050
6050
|
try {
|
|
6051
6051
|
options?.signal?.throwIfAborted();
|
|
6052
|
-
await raceSignal(fsp.mkdir(
|
|
6052
|
+
await raceSignal(fsp.mkdir(path.dirname(file), { recursive: true }), options?.signal);
|
|
6053
6053
|
const writer = new Writer(file);
|
|
6054
6054
|
options?.signal?.throwIfAborted();
|
|
6055
6055
|
await writer.write(contents);
|
|
@@ -6074,7 +6074,7 @@ var FsBlockstore = class {
|
|
|
6074
6074
|
deleteManyConcurrency;
|
|
6075
6075
|
shardingStrategy;
|
|
6076
6076
|
constructor(location, init = {}) {
|
|
6077
|
-
this.path =
|
|
6077
|
+
this.path = path.resolve(location);
|
|
6078
6078
|
this.createIfMissing = init.createIfMissing ?? true;
|
|
6079
6079
|
this.errorIfExists = init.errorIfExists ?? false;
|
|
6080
6080
|
this.deleteManyConcurrency = init.deleteManyConcurrency ?? 50;
|
|
@@ -6100,7 +6100,7 @@ var FsBlockstore = class {
|
|
|
6100
6100
|
async put(key, val, options) {
|
|
6101
6101
|
const { dir, file } = this.shardingStrategy.encode(key);
|
|
6102
6102
|
try {
|
|
6103
|
-
await writeFile$1(
|
|
6103
|
+
await writeFile$1(path.join(this.path, dir, file), val, options);
|
|
6104
6104
|
return key;
|
|
6105
6105
|
} catch (err) {
|
|
6106
6106
|
throw new PutFailedError(String(err));
|
|
@@ -6119,7 +6119,7 @@ var FsBlockstore = class {
|
|
|
6119
6119
|
let handle;
|
|
6120
6120
|
try {
|
|
6121
6121
|
options?.signal?.throwIfAborted();
|
|
6122
|
-
handle = await raceSignal(fsp.open(
|
|
6122
|
+
handle = await raceSignal(fsp.open(path.join(this.path, dir, file)), options?.signal);
|
|
6123
6123
|
yield* handle.createReadStream();
|
|
6124
6124
|
} catch (err) {
|
|
6125
6125
|
if (handle != null) await raceSignal(handle.close(), options?.signal);
|
|
@@ -6140,7 +6140,7 @@ var FsBlockstore = class {
|
|
|
6140
6140
|
const { dir, file } = this.shardingStrategy.encode(key);
|
|
6141
6141
|
try {
|
|
6142
6142
|
options?.signal?.throwIfAborted();
|
|
6143
|
-
await raceSignal(fsp.unlink(
|
|
6143
|
+
await raceSignal(fsp.unlink(path.join(this.path, dir, file)), options?.signal);
|
|
6144
6144
|
} catch (err) {
|
|
6145
6145
|
if (err.code === "ENOENT") return;
|
|
6146
6146
|
throw new DeleteFailedError(String(err));
|
|
@@ -6158,14 +6158,14 @@ var FsBlockstore = class {
|
|
|
6158
6158
|
const { dir, file } = this.shardingStrategy.encode(key);
|
|
6159
6159
|
try {
|
|
6160
6160
|
options?.signal?.throwIfAborted();
|
|
6161
|
-
await raceSignal(fsp.access(
|
|
6161
|
+
await raceSignal(fsp.access(path.join(this.path, dir, file)), options?.signal);
|
|
6162
6162
|
} catch (err) {
|
|
6163
6163
|
return false;
|
|
6164
6164
|
}
|
|
6165
6165
|
return true;
|
|
6166
6166
|
}
|
|
6167
6167
|
async *getAll(options) {
|
|
6168
|
-
const pattern = `**/*${this.shardingStrategy.extension}`.split(
|
|
6168
|
+
const pattern = `**/*${this.shardingStrategy.extension}`.split(path.sep).join("/");
|
|
6169
6169
|
const files = glob(this.path, pattern, { absolute: true });
|
|
6170
6170
|
for await (const file of files) try {
|
|
6171
6171
|
options?.signal?.throwIfAborted();
|
|
@@ -6217,7 +6217,7 @@ async function createBlockstoreForLibp2pJsClient({ dataPath, key }) {
|
|
|
6217
6217
|
defaultMaxBytes: DEFAULT_IN_MEMORY_BLOCKSTORE_MAX_BYTES,
|
|
6218
6218
|
close: async () => {}
|
|
6219
6219
|
};
|
|
6220
|
-
const store = new FsBlockstore(path.join(dataPath, "blockstore", key));
|
|
6220
|
+
const store = new FsBlockstore(path$1.join(dataPath, "blockstore", key));
|
|
6221
6221
|
await store.open();
|
|
6222
6222
|
return {
|
|
6223
6223
|
blockstore: store,
|
|
@@ -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-UB_rVgR9.js";
|
|
2
2
|
export { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as __toESM } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { Ar as t$2, At as pTimeout, B as pubsubTopicToDhtKey, Bn as CommentUpdateSchema, Br as logger_default, Bt as DecryptedChallengeRequestPublicationSchema, C as hideClassPrivateProps, Cr as e, Dn as VotePubsubReservedFields, Dt as untrackUpdatingCommunity, En as VotePubsubMessagePublicationSchema, Er as t$3, F as isLinkOfVideo, Ft as ChallengeRequestMessageSchema, G as removeBlocksFromKuboNode, Hn as CommentUpdateTableRowSchema, I as isLinkValid, J as removeNullUndefinedValues, K as removeMfsFilesSafely, Lt as ChallengeVerificationMessageSchema, M as isLinkOfAudio, Mn as CommentIpfsSchema, Mr as require_retry, N as isLinkOfImage, Nn as CommentPubsubMessageReservedFields, Nt as ChallengeMessageSchema, Ot as require_sha256, P as isLinkOfMedia, Q as retryKuboBlockPutPinAndProvidePubsubTopic, Qn as CommentEditReservedFields, Rr as PKCError, Sr as e$1, St as trackStartedCommunity, T as ipnsNameToIpnsOverPubsubTopic, Tr as r$1, Tt as untrackStartedCommunity, Un as CommentsTableRowSchema, Vt as DecryptedChallengeRequestSchema, Xn as CommentEditPubsubMessagePublicationSchema, Yt as version_default, Zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Zt as CommunityEditPublicationPubsubReservedFields, _ as genToArray, _r as n$3, an as CommentModerationsTableRowSchema, ar as AuthorReservedFields, b as getIpnsRecordInLocalKuboNode, br as t$5, c as contentContainsMarkdownImages, ct as withSortedKeys, dt as findCommunityInRegistry, er as CommentEditsTableRowSchema, et as retryKuboIpfsAddAndProvide, f as derivePublicationFromChallengeRequest, ft as findStartedCommunity, g as findMalformedUnicodeString, gr as isStringDomain, hn as CommunitySignedPropertyNames, i as calculateStringSizeSameAsIpfsAddCidV0, it as statMfsPathSafely, j as isLinkOfAnimatedImage, jt as ChallengeAnswerMessageSchema, kn as VoteTablesRowSchema, kr as t$4, l as contentContainsMarkdownVideos, lt as withSortedKeysDeep, mn as CommunityIpfsSchema, mt as findUpdatingCommunity, ni as ZodError, nn as CommentModerationPubsubMessagePublicationSchema, o as calculateUnixFsDagSizeCidV0, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, r as calculateIpfsCidV0, rn as CommentModerationReservedFields, rt as sleepUntilTimeoutOrAbort, s as contentContainsMarkdownAudio, ut as writeKuboFilesWithTimeout, v as getEquivalentCommunityAddresses, vr as t$7, wt as trackUpdatingCommunity, xr as t$6, xt as syncCommunityRegistryEntry, y as getErrorCodeFromMessage, yr as n$2, zr as messages } 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 { Ar as t$2, At as pTimeout, B as pubsubTopicToDhtKey, Bn as CommentUpdateSchema, Br as logger_default, Bt as DecryptedChallengeRequestPublicationSchema, C as hideClassPrivateProps, Cr as e, Dn as VotePubsubReservedFields, Dt as untrackUpdatingCommunity, En as VotePubsubMessagePublicationSchema, Er as t$3, F as isLinkOfVideo, Ft as ChallengeRequestMessageSchema, G as removeBlocksFromKuboNode, Hn as CommentUpdateTableRowSchema, I as isLinkValid, J as removeNullUndefinedValues, K as removeMfsFilesSafely, Lt as ChallengeVerificationMessageSchema, M as isLinkOfAudio, Mn as CommentIpfsSchema, Mr as require_retry, N as isLinkOfImage, Nn as CommentPubsubMessageReservedFields, Nt as ChallengeMessageSchema, Ot as require_sha256, P as isLinkOfMedia, Q as retryKuboBlockPutPinAndProvidePubsubTopic, Qn as CommentEditReservedFields, Rr as PKCError, Sr as e$1, St as trackStartedCommunity, T as ipnsNameToIpnsOverPubsubTopic, Tr as r$1, Tt as untrackStartedCommunity, Un as CommentsTableRowSchema, Vt as DecryptedChallengeRequestSchema, Xn as CommentEditPubsubMessagePublicationSchema, Yt as version_default, Zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Zt as CommunityEditPublicationPubsubReservedFields, _ as genToArray, _r as n$3, an as CommentModerationsTableRowSchema, ar as AuthorReservedFields, b as getIpnsRecordInLocalKuboNode, br as t$5, c as contentContainsMarkdownImages, ct as withSortedKeys, dt as findCommunityInRegistry, er as CommentEditsTableRowSchema, et as retryKuboIpfsAddAndProvide, f as derivePublicationFromChallengeRequest, ft as findStartedCommunity, g as findMalformedUnicodeString, gr as isStringDomain, hn as CommunitySignedPropertyNames, i as calculateStringSizeSameAsIpfsAddCidV0, it as statMfsPathSafely, j as isLinkOfAnimatedImage, jt as ChallengeAnswerMessageSchema, kn as VoteTablesRowSchema, kr as t$4, l as contentContainsMarkdownVideos, lt as withSortedKeysDeep, mn as CommunityIpfsSchema, mt as findUpdatingCommunity, ni as ZodError, nn as CommentModerationPubsubMessagePublicationSchema, o as calculateUnixFsDagSizeCidV0, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, r as calculateIpfsCidV0, rn as CommentModerationReservedFields, rt as sleepUntilTimeoutOrAbort, s as contentContainsMarkdownAudio, ut as writeKuboFilesWithTimeout, v as getEquivalentCommunityAddresses, vr as t$7, wt as trackUpdatingCommunity, xr as t$6, xt as syncCommunityRegistryEntry, y as getErrorCodeFromMessage, yr as n$2, zr as messages } from "./util-D6z8nIoj.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-DVykDP0T.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-Bsc4MAy1.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
|
}
|
|
@@ -1723,9 +1723,9 @@ var DbHandler = class {
|
|
|
1723
1723
|
if (needToMigrate) {
|
|
1724
1724
|
if (dbExistsAlready && currentDbVersion > 0) {
|
|
1725
1725
|
this.destoryConnection();
|
|
1726
|
-
backupDbPath = path.join(path.dirname(dbPath), ".backup_before_migration", `${path.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
|
|
1727
|
-
log(`Copying db ${path.basename(dbPath)} to ${backupDbPath} before migration`);
|
|
1728
|
-
if (!fs$1.existsSync(path.dirname(backupDbPath))) await fs$1.promises.mkdir(path.dirname(backupDbPath), { recursive: true });
|
|
1726
|
+
backupDbPath = path$1.join(path$1.dirname(dbPath), ".backup_before_migration", `${path$1.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
|
|
1727
|
+
log(`Copying db ${path$1.basename(dbPath)} to ${backupDbPath} before migration`);
|
|
1728
|
+
if (!fs$1.existsSync(path$1.dirname(backupDbPath))) await fs$1.promises.mkdir(path$1.dirname(backupDbPath), { recursive: true });
|
|
1729
1729
|
const sourceDb = new Database(dbPath, { fileMustExist: true });
|
|
1730
1730
|
await sourceDb.backup(backupDbPath);
|
|
1731
1731
|
sourceDb.close();
|
|
@@ -3784,10 +3784,10 @@ var DbHandler = class {
|
|
|
3784
3784
|
if (this._db || this._keyv) await this.destoryConnection();
|
|
3785
3785
|
this._transactionDepth = 0;
|
|
3786
3786
|
const dataPath = this._community._pkc.dataPath;
|
|
3787
|
-
const oldPathString = path.join(dataPath, "communities", oldDbName);
|
|
3788
|
-
const newPathString = path.join(dataPath, "communities", newDbName);
|
|
3789
|
-
await fs$1.promises.mkdir(path.dirname(oldPathString), { recursive: true });
|
|
3790
|
-
await fs$1.promises.mkdir(path.dirname(newPathString), { recursive: true });
|
|
3787
|
+
const oldPathString = path$1.join(dataPath, "communities", oldDbName);
|
|
3788
|
+
const newPathString = path$1.join(dataPath, "communities", newDbName);
|
|
3789
|
+
await fs$1.promises.mkdir(path$1.dirname(oldPathString), { recursive: true });
|
|
3790
|
+
await fs$1.promises.mkdir(path$1.dirname(newPathString), { recursive: true });
|
|
3791
3791
|
try {
|
|
3792
3792
|
if (!fs$1.existsSync(oldPathString)) log(`Old DB file ${oldPathString} does not exist. Cannot backup/rename.`);
|
|
3793
3793
|
else {
|
|
@@ -3809,8 +3809,8 @@ var DbHandler = class {
|
|
|
3809
3809
|
}
|
|
3810
3810
|
async lockCommunityStart(communityAddress = this._community.address) {
|
|
3811
3811
|
const log = logger_default("pkc-js:local-community:db-handler:lock:start");
|
|
3812
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3813
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3812
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3813
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3814
3814
|
try {
|
|
3815
3815
|
await import_src.default.lock(communityDbPath, {
|
|
3816
3816
|
lockfilePath,
|
|
@@ -3831,8 +3831,8 @@ var DbHandler = class {
|
|
|
3831
3831
|
async unlockCommunityStart(communityAddress = this._community.address) {
|
|
3832
3832
|
const log = logger_default("pkc-js:local-community:db-handler:unlock:start");
|
|
3833
3833
|
log.trace(`Attempting to unlock the start of community (${communityAddress})`);
|
|
3834
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3835
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3834
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
|
|
3835
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
|
|
3836
3836
|
if (!fs$1.existsSync(lockfilePath) || !fs$1.existsSync(communityDbPath)) return;
|
|
3837
3837
|
try {
|
|
3838
3838
|
await import_src.default.unlock(communityDbPath, { lockfilePath });
|
|
@@ -3850,8 +3850,8 @@ var DbHandler = class {
|
|
|
3850
3850
|
}
|
|
3851
3851
|
async lockCommunityState() {
|
|
3852
3852
|
const log = logger_default("pkc-js:local-community:db-handler:lock:lockCommunityState");
|
|
3853
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3854
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3853
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3854
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3855
3855
|
try {
|
|
3856
3856
|
await import_src.default.lock(communityDbPath, {
|
|
3857
3857
|
lockfilePath,
|
|
@@ -3868,8 +3868,8 @@ var DbHandler = class {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
async unlockCommunityState() {
|
|
3870
3870
|
const log = logger_default("pkc-js:local-community:db-handler:lock:unlockCommunityState");
|
|
3871
|
-
const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3872
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3871
|
+
const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
|
|
3872
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3873
3873
|
if (!fs$1.existsSync(lockfilePath)) return;
|
|
3874
3874
|
try {
|
|
3875
3875
|
await import_src.default.unlock(communityDbPath, { lockfilePath });
|
|
@@ -3879,7 +3879,7 @@ var DbHandler = class {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
}
|
|
3881
3881
|
communityDbExists() {
|
|
3882
|
-
const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3882
|
+
const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
|
|
3883
3883
|
return fs$1.existsSync(communityDbPath);
|
|
3884
3884
|
}
|
|
3885
3885
|
markCommentsAsPublishedToPostUpdates(commentCids) {
|
|
@@ -7119,10 +7119,10 @@ async function restoreCommunityAfterFailedRename({ community, oldAddress, newAdd
|
|
|
7119
7119
|
}
|
|
7120
7120
|
}
|
|
7121
7121
|
async function removePartialDbCopy({ community, oldAddress, newAddress, log }) {
|
|
7122
|
-
const communitiesPath =
|
|
7123
|
-
if (!fs.existsSync(
|
|
7122
|
+
const communitiesPath = path.join(community._pkc.dataPath, "communities");
|
|
7123
|
+
if (!fs.existsSync(path.join(communitiesPath, oldAddress))) return;
|
|
7124
7124
|
try {
|
|
7125
|
-
await fs.promises.rm(
|
|
7125
|
+
await fs.promises.rm(path.join(communitiesPath, newAddress), { force: true });
|
|
7126
7126
|
} catch (e) {
|
|
7127
7127
|
log.error(`Failed to remove the partial DB copy of community (${oldAddress}) at ${newAddress}`, e);
|
|
7128
7128
|
}
|
|
@@ -7266,11 +7266,11 @@ async function edit(community, newCommunityOptions) {
|
|
|
7266
7266
|
const EXPORTS_KEY = STORAGE_KEYS[STORAGE_KEYS.EXPORTS];
|
|
7267
7267
|
function defaultExportPathFor(community, exportId) {
|
|
7268
7268
|
if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
|
|
7269
|
-
return
|
|
7269
|
+
return path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
|
|
7270
7270
|
}
|
|
7271
7271
|
function sourceDbPathFor(community) {
|
|
7272
7272
|
if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
|
|
7273
|
-
return
|
|
7273
|
+
return path.join(community._pkc.dataPath, "communities", community.address);
|
|
7274
7274
|
}
|
|
7275
7275
|
async function persistExports(community) {
|
|
7276
7276
|
if (!community._dbHandler) return;
|
|
@@ -7346,9 +7346,9 @@ async function runExportTask(community, exportId, opts) {
|
|
|
7346
7346
|
async function exportCommunityEmbedded(community, options = {}) {
|
|
7347
7347
|
if (options.signal?.aborted) throw options.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
7348
7348
|
const exportId = v4();
|
|
7349
|
-
const destPath = options.exportPath ?
|
|
7349
|
+
const destPath = options.exportPath ? path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
|
|
7350
7350
|
const includePrivateKey = options.includePrivateKey === true;
|
|
7351
|
-
if (
|
|
7351
|
+
if (path.resolve(destPath) === path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
|
|
7352
7352
|
communityAddress: community.address,
|
|
7353
7353
|
exportPath: destPath
|
|
7354
7354
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { $ as retryKuboIpfsAdd, At as pTimeout, Bn as CommentUpdateSchema, Br as logger_default, C as hideClassPrivateProps, Cr as e$1, Ct as trackUpdatingComment, D as isIpfsCid, Dt as untrackUpdatingCommunity, E as isAbortError, Et as untrackUpdatingComment, Ft as ChallengeRequestMessageSchema, Ln as CommentUpdateForChallengeVerificationSchema, Lt as ChallengeVerificationMessageSchema, Mn as CommentIpfsSchema, Mr as require_retry$1, Nr as FailedToFetchCommentIpfsFromGatewaysError, Nt as ChallengeMessageSchema, Ot as require_sha256, Pr as FailedToFetchCommentUpdateFromGatewaysError, Rr as PKCError, Sn as PubsubTopicSchema, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tr as r, U as rejectWhenAbortSignalFires, Ur as setErrorMap, W as rejectWhenCommunityStopsOrAborts, X as replaceXWithY, Y as removeUndefinedValuesRecursively, Yt as version_default, Z as resolveWhenPredicateIsTrue, _r as n$2, _t as listUpdatingComments, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as throwIfAbortSignalAborted, d as deepMergeRuntimeFields, et as retryKuboIpfsAddAndProvide, ft as findStartedCommunity, gr as isStringDomain, gt as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, jt as ChallengeAnswerMessageSchema, k as isIpns, kt as TimeoutError, ln as CommunityAnchorSchema, mn as CommunityIpfsSchema, mt as findUpdatingCommunity, nt as shortifyCid, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, pt as findUpdatingComment, r as calculateIpfsCidV0, ri as en_default, rt as sleepUntilTimeoutOrAbort, st as waitForUpdateInCommunityInstanceWithErrorAndTimeout, tt as shortifyAddress, u as createAbortError, vt as listUpdatingCommunities, x as getPostUpdateTimestampRange, xr as t$1, yr as n$1, yt as refreshTrackedCommentAliases, z as linkAbortSignals, zr as messages } 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 retryKuboIpfsAdd, At as pTimeout, Bn as CommentUpdateSchema, Br as logger_default, C as hideClassPrivateProps, Cr as e$1, Ct as trackUpdatingComment, D as isIpfsCid, Dt as untrackUpdatingCommunity, E as isAbortError, Et as untrackUpdatingComment, Ft as ChallengeRequestMessageSchema, Ln as CommentUpdateForChallengeVerificationSchema, Lt as ChallengeVerificationMessageSchema, Mn as CommentIpfsSchema, Mr as require_retry$1, Nr as FailedToFetchCommentIpfsFromGatewaysError, Nt as ChallengeMessageSchema, Ot as require_sha256, Pr as FailedToFetchCommentUpdateFromGatewaysError, Rr as PKCError, Sn as PubsubTopicSchema, Sr as e, T as ipnsNameToIpnsOverPubsubTopic, Tr as r, U as rejectWhenAbortSignalFires, Ur as setErrorMap, W as rejectWhenCommunityStopsOrAborts, X as replaceXWithY, Y as removeUndefinedValuesRecursively, Yt as version_default, Z as resolveWhenPredicateIsTrue, _r as n$2, _t as listUpdatingComments, a as calculateStringSizeSameAsIpfsAddCidV0Sync, at as throwIfAbortSignalAborted, d as deepMergeRuntimeFields, et as retryKuboIpfsAddAndProvide, ft as findStartedCommunity, gr as isStringDomain, gt as listStartedCommunities, i as calculateStringSizeSameAsIpfsAddCidV0, jt as ChallengeAnswerMessageSchema, k as isIpns, kt as TimeoutError, ln as CommunityAnchorSchema, mn as CommunityIpfsSchema, mt as findUpdatingCommunity, nt as shortifyCid, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, pt as findUpdatingComment, r as calculateIpfsCidV0, ri as en_default, rt as sleepUntilTimeoutOrAbort, st as waitForUpdateInCommunityInstanceWithErrorAndTimeout, tt as shortifyAddress, u as createAbortError, vt as listUpdatingCommunities, x as getPostUpdateTimestampRange, xr as t$1, yr as n$1, yt as refreshTrackedCommentAliases, z as linkAbortSignals, zr as messages } from "./util-D6z8nIoj.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-DVykDP0T.js";
|
|
4
|
+
import { s as getHeliaDebugContext } from "./util-BxfB5cRB.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import assert from "assert";
|
|
7
7
|
import fs from "fs";
|
|
@@ -35946,7 +35946,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
35946
35946
|
this.clients.libp2pJsClients = {};
|
|
35947
35947
|
if (!this.libp2pJsClientsOptions) return;
|
|
35948
35948
|
if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
|
|
35949
|
-
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc
|
|
35949
|
+
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-7vdzP67t.js");
|
|
35950
35950
|
for (const clientOptions of this.libp2pJsClientsOptions) {
|
|
35951
35951
|
const heliaNode = await createLibp2pJsClientOrUseExistingOne({
|
|
35952
35952
|
...clientOptions,
|
|
@@ -36313,7 +36313,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
36313
36313
|
const log = logger_default("pkc-js:pkc:createLocalCommunity");
|
|
36314
36314
|
log.trace("Received community options to create a local community instance:", options);
|
|
36315
36315
|
if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
|
|
36316
|
-
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-
|
|
36316
|
+
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-Bi1JGMMa.js");
|
|
36317
36317
|
const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
|
|
36318
36318
|
const community = new LocalCommunity(this);
|
|
36319
36319
|
if (isLocalCommunity) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gr as isStringDomain, v as getEquivalentCommunityAddresses, xn as PageSortFileSchema } from "./util-
|
|
1
|
+
import { gr as isStringDomain, v as getEquivalentCommunityAddresses, xn as PageSortFileSchema } from "./util-D6z8nIoj.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-KgRrTYjv.js → rpc-local-community-DVykDP0T.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 { $n as CommentEditSignedPropertyNames, $r as record, $t as CommunityEditPubsubMessagePublicationSchema, A as isIpnsPath, An as CommentChallengeRequestToEncryptSchema, Ar as t$9, At as pTimeout, B as pubsubTopicToDhtKey, Bn as CommentUpdateSchema, Br as logger_default, C as hideClassPrivateProps, Cn as RpcRemoteCommunityUpdateEventResultSchema, Cr as e$5, D as isIpfsCid, Dr as n$8, Dt as untrackUpdatingCommunity, E as isAbortError, En as VotePubsubMessagePublicationSchema, Er as t$12, Fn as CommentSignedPropertyNames, Fr as FailedToFetchCommunityFromGatewaysError, Gn as GetPageParamSchema, Gr as array, Gt as NameResolverSerializedSchema, H as raceAgainstAbort, Hr as require_ms$1, Ht as DecryptedChallengeSchema, In as CommentUpdateChallengeReservedFieldNames, Ir as FailedToFetchGenericIpfsFromGatewaysError, It as ChallengeRequestMessageSignedPropertyNames, Jn as isReservedObjectKey, Jr as literal, Jt as PKCUserOptionsSchema, Kn as ModQueuePageIpfsSchema, Kr as boolean, Kt as PKCParsedOptionsSchema, L as isRequestPubsubPublicationOfPost, Lr as FailedToFetchPageIpfsFromGatewaysError, Mn as CommentIpfsSchema, Mr as require_retry$2, Mt as ChallengeAnswerMessageSignedPropertyNames, Nr as FailedToFetchCommentIpfsFromGatewaysError, O as isIpfsPath, On as VoteSignedPropertyNames, Or as r$7, Ot as require_sha256$1, Pn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Pr as FailedToFetchCommentUpdateFromGatewaysError, Pt as ChallengeMessageSignedPropertyNames, Qr as preprocess, Qt as CommunityEditPublicationSignedPropertyNames, R as isRequestPubsubPublicationOfReply, Rn as CommentUpdateForChallengeVerificationSignedPropertyNames, Rr as PKCError, Rt as ChallengeVerificationMessageSignedPropertyNames, S as hasTransientNetworkErrorCode, Sr as e$6, St as trackStartedCommunity, T as ipnsNameToIpnsOverPubsubTopic, Tn as VoteChallengeRequestToEncryptSchema, Tr as r$8, Tt as untrackStartedCommunity, Ut as DecryptedChallengeVerificationSchema, Vn as CommentUpdateSignedPropertyNames, Vr as require_supports_color, Wn as CreateCommentOptionsWithRefinementSchema, Wr as _enum, Wt as NameResolveCacheOptionsSchema, Xr as number, Xt as CommunityEditPublicationChallengeRequestToEncryptSchema, Yn as CommentEditChallengeRequestToEncryptSchema, Yr as looseObject, Zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Zr as object, _n as CreateRemoteCommunityFunctionArgumentSchema, _r as n$9, an as CommentModerationsTableRowSchema, ar as AuthorReservedFields, at as throwIfAbortSignalAborted, bn as PageSortFileFactorySchema, bt as refreshTrackedCommunityAliases, cn as ChallengeFileSchema, cr as CidStringSchema, d as deepMergeRuntimeFields, dn as CommunityEditOptionsSchema, dr as CreateSignerSchema, ei as string, en as CreateCommunityEditPublicationOptionsWithRefinementSchema, f as derivePublicationFromChallengeRequest, fn as CommunityExportRecordsSchema, fr as JsonSignatureSchema, ft as findStartedCommunity, gn as CreateNewLocalCommunityUserOptionsSchema, gr as isStringDomain, h as fetchAndValidateIpnsRecordFromGateway, hn as CommunitySignedPropertyNames, hr as areEquivalentNames, ht as forgetTrackedUpdatingCommunityName, in as CommentModerationSignedPropertyNames, ir as AuthorPubsubSchema, jn as CommentIpfsReservedFields, jr as e$4, k as isIpns, kr as t$10, lr as CommunityAddressSchema, m as extractNetworkErrorDetails, mn as CommunityIpfsSchema, mr as ProtocolVersionSchema, mt as findUpdatingCommunity, nn as CommentModerationPubsubMessagePublicationSchema, nr as AuthorAddressSchema, nt as shortifyCid, on as CreateCommentModerationOptionsWithRefinementSchema, or as ChallengeAnswersSchema, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsReservedFields, pr as PKCTimestampSchema, q as removeNullUndefinedEmptyObjectsValuesRecursively, qn as PageIpfsSchema, qr as custom, qt as PKCUserOptionBaseSchema, r as calculateIpfsCidV0, rr as AuthorCommentIpfsReservedFields, rt as sleepUntilTimeoutOrAbort, sn as ChallengeFileFactorySchema, sr as CidPathSchema, t as areEquivalentCommunityAddresses, ti as union, tn as CommentModerationChallengeRequestToEncryptSchema, tr as CreateCommentEditOptionsWithRefinementSchema, tt as shortifyAddress, u as createAbortError, un as CommunityChallengeSettingSchema, ur as CommunityAuthorChallengeReservedFieldNames, vn as CreateRpcCommunityFunctionArgumentSchema, w as interruptibleSleep, wn as CreateVoteUserOptionsWithRefinementSchema, wr as t$11, wt as trackUpdatingCommunity, xn as PageSortFileSchema, xr as t$13, yn as ExportCommunityModLogsOptionsSchema, yr as n$10, z as linkAbortSignals, zn as CommentUpdateReservedFields, zr as messages, zt as DecryptedChallengeAnswerSchema } from "./util-
|
|
2
|
+
import { $n as CommentEditSignedPropertyNames, $r as record, $t as CommunityEditPubsubMessagePublicationSchema, A as isIpnsPath, An as CommentChallengeRequestToEncryptSchema, Ar as t$9, At as pTimeout, B as pubsubTopicToDhtKey, Bn as CommentUpdateSchema, Br as logger_default, C as hideClassPrivateProps, Cn as RpcRemoteCommunityUpdateEventResultSchema, Cr as e$5, D as isIpfsCid, Dr as n$8, Dt as untrackUpdatingCommunity, E as isAbortError, En as VotePubsubMessagePublicationSchema, Er as t$12, Fn as CommentSignedPropertyNames, Fr as FailedToFetchCommunityFromGatewaysError, Gn as GetPageParamSchema, Gr as array, Gt as NameResolverSerializedSchema, H as raceAgainstAbort, Hr as require_ms$1, Ht as DecryptedChallengeSchema, In as CommentUpdateChallengeReservedFieldNames, Ir as FailedToFetchGenericIpfsFromGatewaysError, It as ChallengeRequestMessageSignedPropertyNames, Jn as isReservedObjectKey, Jr as literal, Jt as PKCUserOptionsSchema, Kn as ModQueuePageIpfsSchema, Kr as boolean, Kt as PKCParsedOptionsSchema, L as isRequestPubsubPublicationOfPost, Lr as FailedToFetchPageIpfsFromGatewaysError, Mn as CommentIpfsSchema, Mr as require_retry$2, Mt as ChallengeAnswerMessageSignedPropertyNames, Nr as FailedToFetchCommentIpfsFromGatewaysError, O as isIpfsPath, On as VoteSignedPropertyNames, Or as r$7, Ot as require_sha256$1, Pn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Pr as FailedToFetchCommentUpdateFromGatewaysError, Pt as ChallengeMessageSignedPropertyNames, Qr as preprocess, Qt as CommunityEditPublicationSignedPropertyNames, R as isRequestPubsubPublicationOfReply, Rn as CommentUpdateForChallengeVerificationSignedPropertyNames, Rr as PKCError, Rt as ChallengeVerificationMessageSignedPropertyNames, S as hasTransientNetworkErrorCode, Sr as e$6, St as trackStartedCommunity, T as ipnsNameToIpnsOverPubsubTopic, Tn as VoteChallengeRequestToEncryptSchema, Tr as r$8, Tt as untrackStartedCommunity, Ut as DecryptedChallengeVerificationSchema, Vn as CommentUpdateSignedPropertyNames, Vr as require_supports_color, Wn as CreateCommentOptionsWithRefinementSchema, Wr as _enum, Wt as NameResolveCacheOptionsSchema, Xr as number, Xt as CommunityEditPublicationChallengeRequestToEncryptSchema, Yn as CommentEditChallengeRequestToEncryptSchema, Yr as looseObject, Zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Zr as object, _n as CreateRemoteCommunityFunctionArgumentSchema, _r as n$9, an as CommentModerationsTableRowSchema, ar as AuthorReservedFields, at as throwIfAbortSignalAborted, bn as PageSortFileFactorySchema, bt as refreshTrackedCommunityAliases, cn as ChallengeFileSchema, cr as CidStringSchema, d as deepMergeRuntimeFields, dn as CommunityEditOptionsSchema, dr as CreateSignerSchema, ei as string, en as CreateCommunityEditPublicationOptionsWithRefinementSchema, f as derivePublicationFromChallengeRequest, fn as CommunityExportRecordsSchema, fr as JsonSignatureSchema, ft as findStartedCommunity, gn as CreateNewLocalCommunityUserOptionsSchema, gr as isStringDomain, h as fetchAndValidateIpnsRecordFromGateway, hn as CommunitySignedPropertyNames, hr as areEquivalentNames, ht as forgetTrackedUpdatingCommunityName, in as CommentModerationSignedPropertyNames, ir as AuthorPubsubSchema, jn as CommentIpfsReservedFields, jr as e$4, k as isIpns, kr as t$10, lr as CommunityAddressSchema, m as extractNetworkErrorDetails, mn as CommunityIpfsSchema, mr as ProtocolVersionSchema, mt as findUpdatingCommunity, nn as CommentModerationPubsubMessagePublicationSchema, nr as AuthorAddressSchema, nt as shortifyCid, on as CreateCommentModerationOptionsWithRefinementSchema, or as ChallengeAnswersSchema, ot as timestamp, p as doesDomainAddressHaveCapitalLetter, pn as CommunityIpfsReservedFields, pr as PKCTimestampSchema, q as removeNullUndefinedEmptyObjectsValuesRecursively, qn as PageIpfsSchema, qr as custom, qt as PKCUserOptionBaseSchema, r as calculateIpfsCidV0, rr as AuthorCommentIpfsReservedFields, rt as sleepUntilTimeoutOrAbort, sn as ChallengeFileFactorySchema, sr as CidPathSchema, t as areEquivalentCommunityAddresses, ti as union, tn as CommentModerationChallengeRequestToEncryptSchema, tr as CreateCommentEditOptionsWithRefinementSchema, tt as shortifyAddress, u as createAbortError, un as CommunityChallengeSettingSchema, ur as CommunityAuthorChallengeReservedFieldNames, vn as CreateRpcCommunityFunctionArgumentSchema, w as interruptibleSleep, wn as CreateVoteUserOptionsWithRefinementSchema, wr as t$11, wt as trackUpdatingCommunity, xn as PageSortFileSchema, xr as t$13, yn as ExportCommunityModLogsOptionsSchema, yr as n$10, z as linkAbortSignals, zn as CommentUpdateReservedFields, zr as messages, zt as DecryptedChallengeAnswerSchema } from "./util-D6z8nIoj.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-Bsc4MAy1.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
import dns from "node:dns";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rr as PKCError, V as pubsubTopicToDhtKeyCid } from "./util-
|
|
1
|
+
import { Rr as PKCError, V as pubsubTopicToDhtKeyCid } from "./util-D6z8nIoj.js";
|
|
2
2
|
import { ipnsSelector } from "ipns/selector";
|
|
3
3
|
import { ipnsValidator } from "ipns/validator";
|
|
4
4
|
import { unmarshalIPNSRecord } from "ipns";
|
|
@@ -16553,7 +16553,7 @@ const CommunityEditPublicationPubsubReservedFields = r$2([
|
|
|
16553
16553
|
], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
|
|
16554
16554
|
//#endregion
|
|
16555
16555
|
//#region dist/node/generated-version.js
|
|
16556
|
-
const version = "0.0.
|
|
16556
|
+
const version = "0.0.145";
|
|
16557
16557
|
//#endregion
|
|
16558
16558
|
//#region dist/node/version.js
|
|
16559
16559
|
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Rr as PKCError, bn as PageSortFileFactorySchema, cn as ChallengeFileSchema, sn as ChallengeFileFactorySchema } from "./util-
|
|
2
|
-
import { s as validatePageSortFile } from "./page-sort-scoring-
|
|
1
|
+
import { Rr as PKCError, bn as PageSortFileFactorySchema, cn as ChallengeFileSchema, sn as ChallengeFileFactorySchema } from "./util-D6z8nIoj.js";
|
|
2
|
+
import { s as validatePageSortFile } from "./page-sort-scoring-Bsc4MAy1.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-BT3m9Nml.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-CiY6DjnH.js";
|
|
2
2
|
export { validatePageSortFileFactory };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as pTimeout, Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, X as replaceXWithY, et as retryKuboIpfsAddAndProvide, ft as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, xr as t, yr as n } 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 { At as pTimeout, Br as logger_default, C as hideClassPrivateProps, Rr as PKCError, X as replaceXWithY, et as retryKuboIpfsAddAndProvide, ft as findStartedCommunity, i as calculateStringSizeSameAsIpfsAddCidV0, xr as t, yr as n } from "../../chunks/util-D6z8nIoj.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-BT3m9Nml.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-DVykDP0T.js";
|
|
4
|
+
import { t as LocalCommunity } from "../../chunks/local-community-UB_rVgR9.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.145";
|