@pkcprotocol/pkc-js 0.0.102 → 0.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -8
- package/dist/browser/clients/base-client-manager.d.ts +1 -0
- package/dist/browser/clients/base-client-manager.js +72 -11
- package/dist/browser/clients/base-client-manager.js.map +1 -1
- package/dist/browser/community/community-client-manager.d.ts +3 -0
- package/dist/browser/community/community-client-manager.js +87 -14
- package/dist/browser/community/community-client-manager.js.map +1 -1
- package/dist/browser/community/remote-community.js +3 -0
- package/dist/browser/community/remote-community.js.map +1 -1
- package/dist/browser/community/schema.d.ts +4 -0
- package/dist/browser/community/schema.js +7 -1
- package/dist/browser/community/schema.js.map +1 -1
- package/dist/browser/constants.d.ts +3 -0
- package/dist/browser/constants.js +35 -0
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/errors.d.ts +5 -1
- package/dist/browser/errors.js +7 -1
- package/dist/browser/errors.js.map +1 -1
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/index-with-compile-cache.d.ts +2 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/pkc/pkc.d.ts +4 -0
- package/dist/browser/pkc/pkc.js +30 -1
- package/dist/browser/pkc/pkc.js.map +1 -1
- package/dist/browser/pkc-error.d.ts +1 -1
- package/dist/browser/publications/comment/comment-client-manager.js +11 -0
- package/dist/browser/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/browser/publications/comment/comment.js +8 -6
- package/dist/browser/publications/comment/comment.js.map +1 -1
- package/dist/browser/publications/comment/crosspost-runtime.js +3 -2
- package/dist/browser/publications/comment/crosspost-runtime.js.map +1 -1
- package/dist/browser/rpc/src/index.js +6 -0
- package/dist/browser/rpc/src/index.js.map +1 -1
- package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +1 -0
- package/dist/browser/rpc/src/schema.d.ts +6 -0
- package/dist/browser/runtime/node/community/challenges/exclude/exclude.d.ts +11 -1
- package/dist/browser/runtime/node/community/challenges/exclude/exclude.js +32 -21
- package/dist/browser/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
- package/dist/browser/runtime/node/community/challenges/index.d.ts +10 -3
- package/dist/browser/runtime/node/community/challenges/index.js +82 -16
- package/dist/browser/runtime/node/community/challenges/index.js.map +1 -1
- package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +7 -4
- package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
- package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +13 -5
- package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/author-identity.d.ts +37 -2
- package/dist/browser/runtime/node/community/local-community/author-identity.js +73 -13
- package/dist/browser/runtime/node/community/local-community/author-identity.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/challenges.d.ts +16 -2
- package/dist/browser/runtime/node/community/local-community/challenges.js +40 -9
- package/dist/browser/runtime/node/community/local-community/challenges.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/editing.js +7 -2
- package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/publication-store.d.ts +13 -2
- package/dist/browser/runtime/node/community/local-community/publication-store.js +29 -7
- package/dist/browser/runtime/node/community/local-community/publication-store.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/publication-validation.d.ts +13 -3
- package/dist/browser/runtime/node/community/local-community/publication-validation.js +63 -28
- package/dist/browser/runtime/node/community/local-community/publication-validation.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community.d.ts +2 -2
- package/dist/browser/runtime/node/community/local-community.js +6 -4
- package/dist/browser/runtime/node/community/local-community.js.map +1 -1
- package/dist/browser/schema.d.ts +8 -0
- package/dist/browser/types.d.ts +1 -0
- package/dist/bundled/bundle-manifest.json +26 -26
- package/dist/bundled/chunks/{helia-for-pkc-ZbhRl9a-.js → helia-for-pkc-CQM2gwO-.js} +2 -2
- package/dist/bundled/chunks/{local-community-Cu95rtju.js → local-community-CaK2PibY.js} +1 -1
- package/dist/bundled/chunks/{local-community-L-1IkV1x.js → local-community-Cad8EnIh.js} +160 -61
- package/dist/bundled/chunks/{node-DaN6R9HB.js → node-C6LbmJAq.js} +19 -8
- package/dist/bundled/chunks/{rpc-local-community-aV790d8_.js → rpc-local-community-Dciiw7xH.js} +275 -103
- package/dist/bundled/chunks/{schema-gif6qroG.js → schema-CRAfzWYa.js} +8 -3
- package/dist/bundled/chunks/{util-BsJoElMm.js → util-BWhDfSw9.js} +1 -1
- package/dist/bundled/index.js +1 -1
- package/dist/bundled/rpc/src/index.js +9 -4
- package/dist/node/clients/base-client-manager.d.ts +1 -0
- package/dist/node/clients/base-client-manager.js +72 -11
- package/dist/node/clients/base-client-manager.js.map +1 -1
- package/dist/node/community/community-client-manager.d.ts +3 -0
- package/dist/node/community/community-client-manager.js +87 -14
- package/dist/node/community/community-client-manager.js.map +1 -1
- package/dist/node/community/remote-community.js +3 -0
- package/dist/node/community/remote-community.js.map +1 -1
- package/dist/node/community/schema.d.ts +4 -0
- package/dist/node/community/schema.js +7 -1
- package/dist/node/community/schema.js.map +1 -1
- package/dist/node/constants.d.ts +3 -0
- package/dist/node/constants.js +35 -0
- package/dist/node/constants.js.map +1 -1
- package/dist/node/errors.d.ts +5 -1
- package/dist/node/errors.js +7 -1
- package/dist/node/errors.js.map +1 -1
- package/dist/node/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/dist/node/index-with-compile-cache.d.ts +2 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/pkc/pkc.d.ts +4 -0
- package/dist/node/pkc/pkc.js +30 -1
- package/dist/node/pkc/pkc.js.map +1 -1
- package/dist/node/pkc-error.d.ts +1 -1
- package/dist/node/publications/comment/comment-client-manager.js +11 -0
- package/dist/node/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/node/publications/comment/comment.js +8 -6
- package/dist/node/publications/comment/comment.js.map +1 -1
- package/dist/node/publications/comment/crosspost-runtime.js +3 -2
- package/dist/node/publications/comment/crosspost-runtime.js.map +1 -1
- package/dist/node/rpc/src/index.js +6 -0
- package/dist/node/rpc/src/index.js.map +1 -1
- package/dist/node/rpc/src/lib/pkc-js/index.d.ts +1 -0
- package/dist/node/rpc/src/schema.d.ts +6 -0
- package/dist/node/runtime/node/community/challenges/exclude/exclude.d.ts +11 -1
- package/dist/node/runtime/node/community/challenges/exclude/exclude.js +32 -21
- package/dist/node/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
- package/dist/node/runtime/node/community/challenges/index.d.ts +10 -3
- package/dist/node/runtime/node/community/challenges/index.js +82 -16
- package/dist/node/runtime/node/community/challenges/index.js.map +1 -1
- package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +7 -4
- package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
- package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +13 -5
- package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/author-identity.d.ts +37 -2
- package/dist/node/runtime/node/community/local-community/author-identity.js +73 -13
- package/dist/node/runtime/node/community/local-community/author-identity.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/challenges.d.ts +16 -2
- package/dist/node/runtime/node/community/local-community/challenges.js +40 -9
- package/dist/node/runtime/node/community/local-community/challenges.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/editing.js +7 -2
- package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/publication-store.d.ts +13 -2
- package/dist/node/runtime/node/community/local-community/publication-store.js +29 -7
- package/dist/node/runtime/node/community/local-community/publication-store.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/publication-validation.d.ts +13 -3
- package/dist/node/runtime/node/community/local-community/publication-validation.js +63 -28
- package/dist/node/runtime/node/community/local-community/publication-validation.js.map +1 -1
- package/dist/node/runtime/node/community/local-community.d.ts +2 -2
- package/dist/node/runtime/node/community/local-community.js +6 -4
- package/dist/node/runtime/node/community/local-community.js.map +1 -1
- package/dist/node/schema.d.ts +8 -0
- package/dist/node/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { A as doesDomainAddressHaveCapitalLetter, At as refreshTrackedCommentAliases, B as ipnsNameToIpnsOverPubsubTopic, Br as stringifyPrimitive, Bt as TimeoutError, Cn as CommentIpfsSchema, Cr as messages, D as createAbortError, Dr as setErrorMap, Dt as listStartedCommunities, Et as findUpdatingCommunity, H as isIpfsCid, Lt as untrackUpdatingComment, O as deepMergeRuntimeFields, On as CommentUpdateForChallengeVerificationSchema, Ot as listUpdatingComments, Pt as trackUpdatingComment, R as hideClassPrivateProps, Rr as joinValues, Sr as PKCError, Tt as findUpdatingComment, V as isAbortError, Vt as pTimeout, W as isIpns, _r as FailedToFetchCommentIpfsFromGatewaysError, _t as sleepUntilTimeoutOrAbort, a as ChallengeRequestMessageSchema, ar as t$1, b as areEquivalentCommunityAddresses, bt as timestamp, dt as resolveWhenPredicateIsTrue, fn as PubsubTopicSchema, gr as require_retry, gt as shortifyCid, ht as shortifyAddress, it as rejectWhenCommunityStopsOrAborts, jn as CommentUpdateSchema, kt as listUpdatingCommunities, lr as r, lt as removeUndefinedValuesRecursively, mn as isStringDomain, on as CommunityIpfsSchema, or as e, pt as retryKuboIpfsAdd, r as ChallengeMessageSchema, rr as n$1, rt as rejectWhenAbortSignalFires, s as ChallengeVerificationMessageSchema, sr as e$1, t as ChallengeAnswerMessageSchema, tn as CommunityAnchorSchema, tr as n$2, ut as replaceXWithY, wr as logger_default, wt as findStartedCommunity, xt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, y as version_default, yt as throwIfAbortSignalAborted, zr as parsedType, zt as require_sha256 } from "./schema-
|
|
3
|
-
import { $ as
|
|
4
|
-
import { o as getHeliaDebugContext } from "./util-
|
|
2
|
+
import { A as doesDomainAddressHaveCapitalLetter, At as refreshTrackedCommentAliases, B as ipnsNameToIpnsOverPubsubTopic, Br as stringifyPrimitive, Bt as TimeoutError, Cn as CommentIpfsSchema, Cr as messages, D as createAbortError, Dr as setErrorMap, Dt as listStartedCommunities, Et as findUpdatingCommunity, H as isIpfsCid, Lt as untrackUpdatingComment, O as deepMergeRuntimeFields, On as CommentUpdateForChallengeVerificationSchema, Ot as listUpdatingComments, Pt as trackUpdatingComment, R as hideClassPrivateProps, Rr as joinValues, Sr as PKCError, Tt as findUpdatingComment, V as isAbortError, Vt as pTimeout, W as isIpns, _r as FailedToFetchCommentIpfsFromGatewaysError, _t as sleepUntilTimeoutOrAbort, a as ChallengeRequestMessageSchema, ar as t$1, b as areEquivalentCommunityAddresses, bt as timestamp, dt as resolveWhenPredicateIsTrue, fn as PubsubTopicSchema, gr as require_retry, gt as shortifyCid, ht as shortifyAddress, it as rejectWhenCommunityStopsOrAborts, jn as CommentUpdateSchema, kt as listUpdatingCommunities, lr as r, lt as removeUndefinedValuesRecursively, mn as isStringDomain, on as CommunityIpfsSchema, or as e, pt as retryKuboIpfsAdd, r as ChallengeMessageSchema, rr as n$1, rt as rejectWhenAbortSignalFires, s as ChallengeVerificationMessageSchema, sr as e$1, t as ChallengeAnswerMessageSchema, tn as CommunityAnchorSchema, tr as n$2, ut as replaceXWithY, wr as logger_default, wt as findStartedCommunity, xt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, y as version_default, yt as throwIfAbortSignalAborted, zr as parsedType, zt as require_sha256 } from "./schema-CRAfzWYa.js";
|
|
3
|
+
import { $ as findCommentInPageInstanceRecursively, $n as RpcResolveAuthorNameResultSchema, A as createKuboRpcClient, An as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, B as monitorCommunitiesDirectory, Bn as RpcCommentRepliesPageParamSchema, Bt as buildRuntimeAuthor, Cn as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Dn as parseDecryptedChallengeVerification, Dt as signVote, En as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Et as signCommunityEdit, Fn as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, Ft as verifyCommentPubsubMessage, G as CommentClientsManager, Gn as RpcExportCommunityModLogsResultSchema, Gt as buildRuntimeCommunityFields, Hn as RpcCommunityPageParamSchema, Ht as getAuthorNameFromRuntime, I as getDefaultDataPath, In as RpcAnchorPublishPreparationResultSchema, It as verifyCommentUpdate, Jn as RpcFetchCidParamSchema, Jt as getCommunityPublicKeyFromWire, Kn as RpcExportCommunityParamSchema, Kt as getCommunityAddressFromRecord, Ln as RpcAuthorNameParamSchema, Mn as parseRpcCommentUpdateEventWithPKCErrorIfItFails, Mt as verifyCommentEdit, Nn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Nt as verifyCommentIpfs, On as parseDecryptedChallengeWithPKCErrorIfItFails, Pt as verifyCommentModeration, Q as extractCommunityRuntimeFieldsFromParsedPages, Qn as RpcPublishedAnchorRecordResultSchema, Qt as getBufferedPKCAddressFromPublicKey, Rn as RpcCancelExportParamSchema, Rt as verifyCommunityEdit, S as decryptEd25519AesGcm, St as signCommentModeration, Tn as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, U as setNativeFunctions$1, Un as RpcEditCommunityParamSchema, Vn as RpcCommunityIdentifierParamSchema, Vt as cleanWireAuthor, W as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, Wn as RpcExportCommunityModLogsParamSchema, Wt as normalizeCreatePublicationAuthor, Xn as RpcPublishAnchorRecordParamSchema, Xt as decode, Yn as RpcFetchCidResultSchema, Yt as normalizeCommunityInputFromCommunity, Zn as RpcPublishChallengeAnswersParamSchema, _ as decodeRpcChallengeRequestPubsubMsg, _n as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, ar as t$4, at as collectCrosspostAuthorsToResolve, b as createSigner, bn as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, br as require_undici, bt as signComment, cn as parseCommentIpfsSchemaWithPKCErrorIfItFails, cr as t$3, ct as PublicationClientsManager, d as LRUCache, dn as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, dr as t$2, er as RpcSubscriptionIdResultSchema, f as RemoteCommunity, fn as parseCommunityAddressWithPKCErrorIfItFails, fr as t$5, g as decodeRpcChallengePubsubMsg, gr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, gt as signChallengeAnswer, h as decodeRpcChallengeAnswerPubsubMsg, hn as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, hr as NAME_RESOLVED_TRUE_TTL_MS, ht as cleanUpBeforePublishing, in as parseCidStringSchemaWithPKCErrorIfItFails, it as cloneCrosspostForRuntime, jn as parseRpcCommentEventWithPKCErrorIfItFails, jt as verifyChallengeVerification, kn as parseJsonWithPKCErrorIfFails, kt as verifyChallengeMessage, lr as n$3, lt as PKCClientsManager, m as KeyvBetterSqlite3, mr as NAME_RESOLVED_FALSE_TTL_MS, mt as require_lib$1, n as RpcRemoteCommunity, nr as RpcUnsubscribeParamSchema, nt as RepliesPages, o as pkcJsChallenges, pt as PKCTypedEmitter, qn as RpcExportCommunityResultSchema, qt as getCommunityNameFromWire, rt as applyNameResolvedCacheToCrosspost, sn as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, st as stripNameResolvedFromCrosspost, t as RpcLocalCommunity, tn as getPKCAddressFromPublicKeySync, tr as RpcSuccessResultSchema, tt as parseRawPages, u as TrackedInstanceRegistry, un as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, ut as InflightFetchManager, v as decodeRpcChallengeVerificationPubsubMsg, vn as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, vt as signChallengeRequest, w as encryptEd25519AesGcm, wn as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, x as createAnchorIpnsRecord$1, xt as signCommentEdit, yn as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, yr as nativeFunctions$2, z as listCommunitiesSync, zn as RpcCidParamSchema, zt as verifyVote } from "./rpc-local-community-Dciiw7xH.js";
|
|
4
|
+
import { o as getHeliaDebugContext } from "./util-BWhDfSw9.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import assert from "assert";
|
|
7
7
|
import fs from "fs";
|
|
@@ -1249,7 +1249,7 @@ var Comment = class extends Publication {
|
|
|
1249
1249
|
_resolveAuthorNamesInBackground() {
|
|
1250
1250
|
if (!this._pkc.resolveAuthorNames) return;
|
|
1251
1251
|
const domain = getAuthorNameFromRuntime(this.author);
|
|
1252
|
-
const ownAuthor = domain
|
|
1252
|
+
const ownAuthor = domain ? [{
|
|
1253
1253
|
authorName: domain,
|
|
1254
1254
|
signaturePublicKey: this.signature.publicKey
|
|
1255
1255
|
}] : [];
|
|
@@ -1258,7 +1258,7 @@ var Comment = class extends Publication {
|
|
|
1258
1258
|
if (!page) continue;
|
|
1259
1259
|
for (const comment of page.comments) {
|
|
1260
1260
|
const commentDomain = getAuthorNameFromRuntime(comment.author);
|
|
1261
|
-
if (commentDomain
|
|
1261
|
+
if (commentDomain) replyAuthors.push({
|
|
1262
1262
|
authorName: commentDomain,
|
|
1263
1263
|
signaturePublicKey: comment.signature.publicKey
|
|
1264
1264
|
});
|
|
@@ -6937,6 +6937,10 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
6937
6937
|
this._publishingPublications = /* @__PURE__ */ new Set();
|
|
6938
6938
|
this.destroyed = false;
|
|
6939
6939
|
this._storageLRUs = {};
|
|
6940
|
+
this._nameResolvedFalseTtlMs = NAME_RESOLVED_FALSE_TTL_MS;
|
|
6941
|
+
this._nameResolvedTrueTtlMs = NAME_RESOLVED_TRUE_TTL_MS;
|
|
6942
|
+
this._nameResolveFailedRetryFloorMs = NAME_RESOLVE_FAILED_RETRY_FLOOR_MS;
|
|
6943
|
+
this._authorNameResolvesInFlight = /* @__PURE__ */ new Set();
|
|
6940
6944
|
this._timeouts = {
|
|
6941
6945
|
"community-ipns": 300 * 1e3,
|
|
6942
6946
|
"community-ipfs": 60 * 1e3,
|
|
@@ -7016,7 +7020,14 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
7016
7020
|
}),
|
|
7017
7021
|
pageCidToSortTypes: new LRUCache({ max: 5e3 }),
|
|
7018
7022
|
pagesMaxSize: new LRUCache({ max: 5e4 }),
|
|
7019
|
-
nameResolvedCache: new LRUCache({
|
|
7023
|
+
nameResolvedCache: new LRUCache({
|
|
7024
|
+
max: 5e3,
|
|
7025
|
+
ttl: NAME_RESOLVED_TRUE_TTL_MS
|
|
7026
|
+
}),
|
|
7027
|
+
nameResolveFailedCache: new LRUCache({
|
|
7028
|
+
max: 5e3,
|
|
7029
|
+
ttl: NAME_RESOLVE_FAILED_RETRY_FLOOR_MS
|
|
7030
|
+
})
|
|
7020
7031
|
};
|
|
7021
7032
|
}
|
|
7022
7033
|
async _initKuboRpcClientsIfNeeded() {
|
|
@@ -7054,7 +7065,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
7054
7065
|
this.clients.libp2pJsClients = {};
|
|
7055
7066
|
if (!this.libp2pJsClientsOptions) return;
|
|
7056
7067
|
if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
|
|
7057
|
-
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-
|
|
7068
|
+
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-CQM2gwO-.js");
|
|
7058
7069
|
for (const clientOptions of this.libp2pJsClientsOptions) {
|
|
7059
7070
|
const heliaNode = await createLibp2pJsClientOrUseExistingOne({
|
|
7060
7071
|
...clientOptions,
|
|
@@ -7333,7 +7344,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
7333
7344
|
const log = logger_default("pkc-js:pkc:createLocalCommunity");
|
|
7334
7345
|
log.trace("Received community options to create a local community instance:", options);
|
|
7335
7346
|
if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
|
|
7336
|
-
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-
|
|
7347
|
+
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-CaK2PibY.js");
|
|
7337
7348
|
const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
|
|
7338
7349
|
const community = new LocalCommunity(this);
|
|
7339
7350
|
if (isLocalCommunity) {
|