@pkcprotocol/pkc-js 0.0.46 → 0.0.47
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 +31 -31
- package/dist/bundled/chunks/{helia-for-pkc-uRINWDzG.js → helia-for-pkc-Kr0fvym5.js} +2 -2
- package/dist/bundled/chunks/{local-community-iVvgerOY.js → local-community-1YWTMINk.js} +2 -2
- package/dist/bundled/chunks/{local-community-CCSP8e6_.js → local-community-DyL61Q84.js} +1 -1
- package/dist/bundled/chunks/{node-DMNVMYGv.js → node-7bvDHqBl.js} +5 -5
- package/dist/bundled/chunks/{rpc-local-community-DG6G0xL6.js → rpc-local-community-Xpx65cbz.js} +1 -1
- package/dist/bundled/chunks/{schema-Bo3XK8Oe.js → schema-CijXm_fr.js} +1 -1
- package/dist/bundled/chunks/{util-I3gVOp6w.js → util-RR1J0iZB.js} +1 -1
- package/dist/bundled/index.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 +12 -2
- package/dist/browser/decorator-util.d.ts +0 -1
- package/dist/browser/decorator-util.js +0 -35
- package/dist/browser/decorator-util.js.map +0 -1
- package/dist/browser/rpc/src/lib/pkc-js/pkc-js-mock.d.ts +0 -1
- package/dist/browser/rpc/src/lib/pkc-js/pkc-js-mock.js +0 -472
- package/dist/browser/rpc/src/lib/pkc-js/pkc-js-mock.js.map +0 -1
- package/dist/node/decorator-util.d.ts +0 -1
- package/dist/node/decorator-util.js +0 -35
- package/dist/node/decorator-util.js.map +0 -1
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.d.ts +0 -1
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.js +0 -472
- package/dist/node/rpc/src/lib/pkc-js/pkc-js-mock.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.47";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node:module"
|
|
15
15
|
],
|
|
16
16
|
"dynamicImports": [
|
|
17
|
-
"chunks/node-
|
|
17
|
+
"chunks/node-7bvDHqBl.js"
|
|
18
18
|
],
|
|
19
19
|
"inputs": [
|
|
20
20
|
"dist/node/runtime/node/compile-cache.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"index.js": {
|
|
25
25
|
"isEntry": true,
|
|
26
26
|
"imports": [
|
|
27
|
-
"chunks/node-
|
|
27
|
+
"chunks/node-7bvDHqBl.js"
|
|
28
28
|
],
|
|
29
29
|
"dynamicImports": [],
|
|
30
30
|
"inputs": []
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"rpc/src/index.js": {
|
|
33
33
|
"isEntry": true,
|
|
34
34
|
"imports": [
|
|
35
|
-
"chunks/schema-
|
|
36
|
-
"chunks/rpc-local-community-
|
|
37
|
-
"chunks/node-
|
|
38
|
-
"chunks/local-community-
|
|
35
|
+
"chunks/schema-CijXm_fr.js",
|
|
36
|
+
"chunks/rpc-local-community-Xpx65cbz.js",
|
|
37
|
+
"chunks/node-7bvDHqBl.js",
|
|
38
|
+
"chunks/local-community-1YWTMINk.js",
|
|
39
39
|
"node:url",
|
|
40
40
|
"path",
|
|
41
41
|
"assert",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"dist/node/rpc/src/index.js"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
-
"chunks/helia-for-pkc-
|
|
57
|
+
"chunks/helia-for-pkc-Kr0fvym5.js": {
|
|
58
58
|
"isEntry": false,
|
|
59
59
|
"imports": [
|
|
60
|
-
"chunks/schema-
|
|
61
|
-
"chunks/util-
|
|
60
|
+
"chunks/schema-CijXm_fr.js",
|
|
61
|
+
"chunks/util-RR1J0iZB.js",
|
|
62
62
|
"multiformats/cid",
|
|
63
63
|
"@libp2p/peer-id",
|
|
64
64
|
"ipns",
|
|
@@ -82,19 +82,11 @@
|
|
|
82
82
|
"dist/node/helia/helia-for-pkc.js"
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
|
-
"chunks/local-community-
|
|
85
|
+
"chunks/local-community-1YWTMINk.js": {
|
|
86
86
|
"isEntry": false,
|
|
87
87
|
"imports": [
|
|
88
|
-
"chunks/
|
|
89
|
-
|
|
90
|
-
"dynamicImports": [],
|
|
91
|
-
"inputs": []
|
|
92
|
-
},
|
|
93
|
-
"chunks/local-community-iVvgerOY.js": {
|
|
94
|
-
"isEntry": false,
|
|
95
|
-
"imports": [
|
|
96
|
-
"chunks/schema-Bo3XK8Oe.js",
|
|
97
|
-
"chunks/rpc-local-community-DG6G0xL6.js",
|
|
88
|
+
"chunks/schema-CijXm_fr.js",
|
|
89
|
+
"chunks/rpc-local-community-Xpx65cbz.js",
|
|
98
90
|
"node:crypto",
|
|
99
91
|
"node:url",
|
|
100
92
|
"node:path",
|
|
@@ -141,12 +133,20 @@
|
|
|
141
133
|
"dist/node/runtime/node/community/local-community.js"
|
|
142
134
|
]
|
|
143
135
|
},
|
|
144
|
-
"chunks/
|
|
136
|
+
"chunks/local-community-DyL61Q84.js": {
|
|
137
|
+
"isEntry": false,
|
|
138
|
+
"imports": [
|
|
139
|
+
"chunks/local-community-1YWTMINk.js"
|
|
140
|
+
],
|
|
141
|
+
"dynamicImports": [],
|
|
142
|
+
"inputs": []
|
|
143
|
+
},
|
|
144
|
+
"chunks/node-7bvDHqBl.js": {
|
|
145
145
|
"isEntry": false,
|
|
146
146
|
"imports": [
|
|
147
|
-
"chunks/schema-
|
|
148
|
-
"chunks/rpc-local-community-
|
|
149
|
-
"chunks/util-
|
|
147
|
+
"chunks/schema-CijXm_fr.js",
|
|
148
|
+
"chunks/rpc-local-community-Xpx65cbz.js",
|
|
149
|
+
"chunks/util-RR1J0iZB.js",
|
|
150
150
|
"path",
|
|
151
151
|
"assert",
|
|
152
152
|
"fs",
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
"rpc-websockets"
|
|
157
157
|
],
|
|
158
158
|
"dynamicImports": [
|
|
159
|
-
"chunks/helia-for-pkc-
|
|
160
|
-
"chunks/local-community-
|
|
159
|
+
"chunks/helia-for-pkc-Kr0fvym5.js",
|
|
160
|
+
"chunks/local-community-1YWTMINk.js"
|
|
161
161
|
],
|
|
162
162
|
"inputs": [
|
|
163
163
|
"node_modules/zod/v4/locales/en.js",
|
|
@@ -198,10 +198,10 @@
|
|
|
198
198
|
"dist/node/index.js"
|
|
199
199
|
]
|
|
200
200
|
},
|
|
201
|
-
"chunks/rpc-local-community-
|
|
201
|
+
"chunks/rpc-local-community-Xpx65cbz.js": {
|
|
202
202
|
"isEntry": false,
|
|
203
203
|
"imports": [
|
|
204
|
-
"chunks/schema-
|
|
204
|
+
"chunks/schema-CijXm_fr.js",
|
|
205
205
|
"node:crypto",
|
|
206
206
|
"node:url",
|
|
207
207
|
"node:dns",
|
|
@@ -733,7 +733,7 @@
|
|
|
733
733
|
"dist/node/community/rpc-local-community.js"
|
|
734
734
|
]
|
|
735
735
|
},
|
|
736
|
-
"chunks/schema-
|
|
736
|
+
"chunks/schema-CijXm_fr.js": {
|
|
737
737
|
"isEntry": false,
|
|
738
738
|
"imports": [
|
|
739
739
|
"node:module",
|
|
@@ -1274,10 +1274,10 @@
|
|
|
1274
1274
|
"dist/node/pubsub-messages/schema.js"
|
|
1275
1275
|
]
|
|
1276
1276
|
},
|
|
1277
|
-
"chunks/util-
|
|
1277
|
+
"chunks/util-RR1J0iZB.js": {
|
|
1278
1278
|
"isEntry": false,
|
|
1279
1279
|
"imports": [
|
|
1280
|
-
"chunks/schema-
|
|
1280
|
+
"chunks/schema-CijXm_fr.js"
|
|
1281
1281
|
],
|
|
1282
1282
|
"dynamicImports": [],
|
|
1283
1283
|
"inputs": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as hideClassPrivateProps, R as ipnsNameToIpnsOverPubsubTopic, ir as PKCError, or as logger_default } from "./schema-
|
|
2
|
-
import { n as getHeliaDebugContext, t as connectToPubsubPeers } from "./util-
|
|
1
|
+
import { L as hideClassPrivateProps, R as ipnsNameToIpnsOverPubsubTopic, ir as PKCError, or as logger_default } from "./schema-CijXm_fr.js";
|
|
2
|
+
import { n as getHeliaDebugContext, t as connectToPubsubPeers } from "./util-RR1J0iZB.js";
|
|
3
3
|
import { CID } from "multiformats/cid";
|
|
4
4
|
import { peerIdFromString } from "@libp2p/peer-id";
|
|
5
5
|
import { multihashToIPNSRoutingKey, unmarshalIPNSRecord } from "ipns";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as pubsubTopicToDhtKey, At as trackUpdatingCommunity, C as contentContainsMarkdownAudio, Cr as __commonJSMin, Dn as CommentsTableRowSchema, Dt as syncCommunityRegistryEntry, En as CommentUpdateTableRowSchema, Er as __toESM, F as getIpnsRecordInLocalKuboNode, Fn as CommentEditReservedFields, G as isLinkOfAudio, J as isLinkOfVideo, Jn as require_commonjs, K as isLinkOfImage, Kt as CommentModerationsTableRowSchema, L as hideClassPrivateProps, Ln as CommentEditsTableRowSchema, M as genToArray, N as getEquivalentCommunityAddresses, Nn as CommentEditPubsubMessagePublicationSchema, Nt as untrackUpdatingCommunity, O as derivePublicationFromChallengeRequest, Ot as trackStartedCommunity, P as getErrorCodeFromMessage, Pn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Pt as require_sha256, Q as isStringDomain, R as ipnsNameToIpnsOverPubsubTopic, Rt as CommunityEditPublicationPubsubReservedFields, S as calculateStringSizeSameAsIpfsAddCidV0, T as contentContainsMarkdownVideos, Tr as __require, Ut as CommentModerationPubsubMessagePublicationSchema, Vn as AuthorReservedFields, W as isLinkOfAnimatedImage, Wt as CommentModerationReservedFields, Y as isLinkValid, Yn as require_retry, _n as CommentPubsubMessageReservedFields, _t as writeKuboFilesWithTimeout, a as ChallengeRequestMessageSchema, ar as messages, b as areEquivalentCommunityAddresses, ct as retryKuboBlockPutPinAndProvidePubsubTopic, d as DecryptedChallengeRequestSchema, dn as VotePubsubReservedFields, en as CommunityIpfsSchema, gn as CommentIpfsSchema, ht as timestamp, ir as PKCError, it as removeNullUndefinedValues, jt as untrackStartedCommunity, k as doesDomainAddressHaveCapitalLetter, nt as removeMfsFilesSafely, or as logger_default, pn as VoteTablesRowSchema, pt as statMfsPathSafely, q as isLinkOfMedia, r as ChallengeMessageSchema, s as ChallengeVerificationMessageSchema, t as ChallengeAnswerMessageSchema, tn as CommunitySignedPropertyNames, tt as removeBlocksFromKuboNode, u as DecryptedChallengeRequestPublicationSchema, un as VotePubsubMessagePublicationSchema, ut as retryKuboIpfsAddAndProvide, vt as findCommunityInRegistry, w as contentContainsMarkdownImages, wn as CommentUpdateSchema, x as calculateIpfsCidV0, xt as findUpdatingCommunity, y as version_default, yr as ZodError, yt as findStartedCommunity } from "./schema-
|
|
2
|
-
import { A as getDefaultCommunityDbConfig, At as cleanWireAuthor, Bt as encode, C as calculateExpectedSignatureSize, Ct as verifyCommentModeration, D as deriveCommentIpfsFromCommentTableRow, Dt as verifyCommunityEdit, E as deleteOldCommunityInWindows, Et as verifyCommunity, Gn as require_lodash_merge, Gt as getPublicKeyFromPrivateKey, H as POST_REPLIES_SORT_TYPES, Ht as getIpfsKeyFromPrivateKey, I as moveCommunityDbToDeletedDirectory, It as getCommunityNameFromWire, Kt as createSchemaRowParser, L as resolveDbPostsCidRefs, Lt as getCommunityPublicKeyFromWire, M as getThumbnailPropsOfLink, Mt as getAuthorNameFromWire, N as importSignerIntoKuboNode, O as deriveDbPosts, Ot as verifyVote, S as backupCommunityDb, St as verifyCommentIpfs, Tt as verifyCommentUpdate, U as REPLY_REPLIES_SORT_TYPES, Un as stringify, Ut as getPKCAddressFromPublicKey, V as POSTS_SORT_TYPES, W as TIMEFRAMES_TO_SECONDS, Wn as STORAGE_KEYS, Wt as getPKCAddressFromPublicKeySync, Y as iterateOverPageCidsToFindAllCids, _t as verifyChallengeAnswer, a as pkcJsChallenges, an as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, b as encryptEd25519AesGcmPublicKeyBuffer, ct as signChallengeVerification, ft as signCommentUpdate, h as SignerWithPublicKeyAddress, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, i as getCommunityChallengeFromCommunityChallengeSettings, it as cleanUpBeforePublishing, k as deriveDbReplies, kt as buildRuntimeAuthor, l as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, lt as signComment, mt as signCommunity, o as TrackedInstanceRegistry, ot as signChallengeMessage, pt as signCommentUpdateForChallengeVerification, r as getChallengeVerification, rn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, s as LRUCache, t as RpcLocalCommunity, tt as pLimit, u as KeyvBetterSqlite3, ut as signCommentEdit, v as decryptEd25519AesGcmPublicKeyBuffer, vn as parseJsonWithPKCErrorIfFails, w as calculateInlineRepliesBudget, wt as verifyCommentPubsubMessage, x as BackupAbortError, xt as verifyCommentEdit, yt as verifyChallengeRequest, zt as decode } from "./rpc-local-community-
|
|
1
|
+
import { $ as pubsubTopicToDhtKey, At as trackUpdatingCommunity, C as contentContainsMarkdownAudio, Cr as __commonJSMin, Dn as CommentsTableRowSchema, Dt as syncCommunityRegistryEntry, En as CommentUpdateTableRowSchema, Er as __toESM, F as getIpnsRecordInLocalKuboNode, Fn as CommentEditReservedFields, G as isLinkOfAudio, J as isLinkOfVideo, Jn as require_commonjs, K as isLinkOfImage, Kt as CommentModerationsTableRowSchema, L as hideClassPrivateProps, Ln as CommentEditsTableRowSchema, M as genToArray, N as getEquivalentCommunityAddresses, Nn as CommentEditPubsubMessagePublicationSchema, Nt as untrackUpdatingCommunity, O as derivePublicationFromChallengeRequest, Ot as trackStartedCommunity, P as getErrorCodeFromMessage, Pn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Pt as require_sha256, Q as isStringDomain, R as ipnsNameToIpnsOverPubsubTopic, Rt as CommunityEditPublicationPubsubReservedFields, S as calculateStringSizeSameAsIpfsAddCidV0, T as contentContainsMarkdownVideos, Tr as __require, Ut as CommentModerationPubsubMessagePublicationSchema, Vn as AuthorReservedFields, W as isLinkOfAnimatedImage, Wt as CommentModerationReservedFields, Y as isLinkValid, Yn as require_retry, _n as CommentPubsubMessageReservedFields, _t as writeKuboFilesWithTimeout, a as ChallengeRequestMessageSchema, ar as messages, b as areEquivalentCommunityAddresses, ct as retryKuboBlockPutPinAndProvidePubsubTopic, d as DecryptedChallengeRequestSchema, dn as VotePubsubReservedFields, en as CommunityIpfsSchema, gn as CommentIpfsSchema, ht as timestamp, ir as PKCError, it as removeNullUndefinedValues, jt as untrackStartedCommunity, k as doesDomainAddressHaveCapitalLetter, nt as removeMfsFilesSafely, or as logger_default, pn as VoteTablesRowSchema, pt as statMfsPathSafely, q as isLinkOfMedia, r as ChallengeMessageSchema, s as ChallengeVerificationMessageSchema, t as ChallengeAnswerMessageSchema, tn as CommunitySignedPropertyNames, tt as removeBlocksFromKuboNode, u as DecryptedChallengeRequestPublicationSchema, un as VotePubsubMessagePublicationSchema, ut as retryKuboIpfsAddAndProvide, vt as findCommunityInRegistry, w as contentContainsMarkdownImages, wn as CommentUpdateSchema, x as calculateIpfsCidV0, xt as findUpdatingCommunity, y as version_default, yr as ZodError, yt as findStartedCommunity } from "./schema-CijXm_fr.js";
|
|
2
|
+
import { A as getDefaultCommunityDbConfig, At as cleanWireAuthor, Bt as encode, C as calculateExpectedSignatureSize, Ct as verifyCommentModeration, D as deriveCommentIpfsFromCommentTableRow, Dt as verifyCommunityEdit, E as deleteOldCommunityInWindows, Et as verifyCommunity, Gn as require_lodash_merge, Gt as getPublicKeyFromPrivateKey, H as POST_REPLIES_SORT_TYPES, Ht as getIpfsKeyFromPrivateKey, I as moveCommunityDbToDeletedDirectory, It as getCommunityNameFromWire, Kt as createSchemaRowParser, L as resolveDbPostsCidRefs, Lt as getCommunityPublicKeyFromWire, M as getThumbnailPropsOfLink, Mt as getAuthorNameFromWire, N as importSignerIntoKuboNode, O as deriveDbPosts, Ot as verifyVote, S as backupCommunityDb, St as verifyCommentIpfs, Tt as verifyCommentUpdate, U as REPLY_REPLIES_SORT_TYPES, Un as stringify, Ut as getPKCAddressFromPublicKey, V as POSTS_SORT_TYPES, W as TIMEFRAMES_TO_SECONDS, Wn as STORAGE_KEYS, Wt as getPKCAddressFromPublicKeySync, Y as iterateOverPageCidsToFindAllCids, _t as verifyChallengeAnswer, a as pkcJsChallenges, an as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, b as encryptEd25519AesGcmPublicKeyBuffer, ct as signChallengeVerification, ft as signCommentUpdate, h as SignerWithPublicKeyAddress, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, i as getCommunityChallengeFromCommunityChallengeSettings, it as cleanUpBeforePublishing, k as deriveDbReplies, kt as buildRuntimeAuthor, l as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, lt as signComment, mt as signCommunity, o as TrackedInstanceRegistry, ot as signChallengeMessage, pt as signCommentUpdateForChallengeVerification, r as getChallengeVerification, rn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, s as LRUCache, t as RpcLocalCommunity, tt as pLimit, u as KeyvBetterSqlite3, ut as signCommentEdit, v as decryptEd25519AesGcmPublicKeyBuffer, vn as parseJsonWithPKCErrorIfFails, w as calculateInlineRepliesBudget, wt as verifyCommentPubsubMessage, x as BackupAbortError, xt as verifyCommentEdit, yt as verifyChallengeRequest, zt as decode } from "./rpc-local-community-Xpx65cbz.js";
|
|
3
3
|
import { randomFillSync, randomUUID } from "node:crypto";
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import path from "node:path";
|
|
@@ -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-1YWTMINk.js";
|
|
2
2
|
export { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as FailedToFetchCommentIpfsFromGatewaysError, B as isIpfsCid, Cr as __commonJSMin, Ct as listUpdatingComments, D as deepMergeRuntimeFields, E as createAbortError, Er as __toESM, Ft as TimeoutError, It as pTimeout, Jn as require_commonjs, L as hideClassPrivateProps, Mt as untrackUpdatingComment, Pt as require_sha256, Q as isStringDomain, Sr as stringifyPrimitive, St as listStartedCommunities, Tr as __require, Tt as refreshTrackedCommentAliases, Xn as CID, Yn as require_retry, a as ChallengeRequestMessageSchema, ar as messages, at as removeUndefinedValuesRecursively, b as areEquivalentCommunityAddresses, br as joinValues, bt as findUpdatingComment, dt as shortifyAddress, en as CommunityIpfsSchema, ft as shortifyCid, gn as CommentIpfsSchema, gt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, ht as timestamp, ir as PKCError, k as doesDomainAddressHaveCapitalLetter, kt as trackUpdatingComment, lr as setErrorMap, lt as retryKuboIpfsAdd, on as PubsubTopicSchema, or as logger_default, ot as replaceXWithY, r as ChallengeMessageSchema, s as ChallengeVerificationMessageSchema, st as resolveWhenPredicateIsTrue, t as ChallengeAnswerMessageSchema, wn as CommentUpdateSchema, wt as listUpdatingCommunities, xn as CommentUpdateForChallengeVerificationSchema, xr as parsedType, xt as findUpdatingCommunity, y as version_default, yt as findStartedCommunity, z as isAbortError } from "./schema-
|
|
2
|
-
import { $ as PKCClientsManager, $t as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, An as RpcCommunityPageParamSchema, At as cleanWireAuthor, B as CommentClientsManager, Bn as RpcSubscriptionIdResultSchema, Ct as verifyCommentModeration, Dn as RpcCidParamSchema, Dt as verifyCommunityEdit, En as RpcCancelExportParamSchema, F as monitorCommunitiesDirectory, Fn as RpcExportCommunityResultSchema, Ft as getCommunityAddressFromRecord, Hn as RpcUnsubscribeParamSchema, In as RpcFetchCidParamSchema, It as getCommunityNameFromWire, J as findCommentInPageInstanceRecursively, Kn as nativeFunctions$2, Ln as RpcFetchCidResultSchema, Lt as getCommunityPublicKeyFromWire, Mn as RpcExportCommunityModLogsParamSchema, Nn as RpcExportCommunityModLogsResultSchema, Nt as normalizeCreatePublicationAuthor, On as RpcCommentRepliesPageParamSchema, Ot as verifyVote, P as listCommunitiesSync, Pn as RpcExportCommunityParamSchema, Pt as buildRuntimeCommunityFields, Q as PublicationClientsManager, R as setNativeFunctions$1, Rn as RpcPublishChallengeAnswersParamSchema, Rt as normalizeCommunityInputFromCommunity, Sn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, St as verifyCommentIpfs, T as createKuboRpcClient, Tn as RpcAuthorNameParamSchema, Tt as verifyCommentUpdate, Vn as RpcSuccessResultSchema, Vt as getBufferedPKCAddressFromPublicKey, X as parseRawPages, Xt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, Z as RepliesPages, Zt as parseCommentIpfsSchemaWithPKCErrorIfItFails, _ as decryptEd25519AesGcm, _n as parseDecryptedChallengeWithPKCErrorIfItFails, a as pkcJsChallenges, at as signChallengeAnswer, bn as parseRpcCommentEventWithPKCErrorIfItFails, bt as verifyChallengeVerification, c as RemoteCommunity, cn as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, d as decodeRpcChallengeAnswerPubsubMsg, dt as signCommentModeration, en as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, et as InflightFetchManager, f as decodeRpcChallengePubsubMsg, fn as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, g as createSigner, gn as parseDecryptedChallengeVerification, gt as signVote, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, ht as signCommunityEdit, in as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, it as cleanUpBeforePublishing, j as getDefaultDataPath, jn as RpcEditCommunityParamSchema, jt as getAuthorNameFromRuntime, kn as RpcCommunityIdentifierParamSchema, kt as buildRuntimeAuthor, ln as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, lt as signComment, m as decodeRpcChallengeVerificationPubsubMsg, mn as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nt as PKCTypedEmitter, o as TrackedInstanceRegistry, on as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, p as decodeRpcChallengeRequestPubsubMsg, pn as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, q as extractCommunityRuntimeFieldsFromParsedPages, qn as require_undici, qt as parseCidStringSchemaWithPKCErrorIfItFails, rt as require_lib$1, s as LRUCache, sn as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, st as signChallengeRequest, t as RpcLocalCommunity, tn as parseCommunityAddressWithPKCErrorIfItFails, u as KeyvBetterSqlite3, ut as signCommentEdit, vn as parseJsonWithPKCErrorIfFails, vt as verifyChallengeMessage, wn as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, wt as verifyCommentPubsubMessage, xn as parseRpcCommentUpdateEventWithPKCErrorIfItFails, xt as verifyCommentEdit, y as encryptEd25519AesGcm, yn as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, z as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, zn as RpcResolveAuthorNameResultSchema, zt as decode } from "./rpc-local-community-
|
|
3
|
-
import { n as getHeliaDebugContext } from "./util-
|
|
1
|
+
import { $n as FailedToFetchCommentIpfsFromGatewaysError, B as isIpfsCid, Cr as __commonJSMin, Ct as listUpdatingComments, D as deepMergeRuntimeFields, E as createAbortError, Er as __toESM, Ft as TimeoutError, It as pTimeout, Jn as require_commonjs, L as hideClassPrivateProps, Mt as untrackUpdatingComment, Pt as require_sha256, Q as isStringDomain, Sr as stringifyPrimitive, St as listStartedCommunities, Tr as __require, Tt as refreshTrackedCommentAliases, Xn as CID, Yn as require_retry, a as ChallengeRequestMessageSchema, ar as messages, at as removeUndefinedValuesRecursively, b as areEquivalentCommunityAddresses, br as joinValues, bt as findUpdatingComment, dt as shortifyAddress, en as CommunityIpfsSchema, ft as shortifyCid, gn as CommentIpfsSchema, gt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, ht as timestamp, ir as PKCError, k as doesDomainAddressHaveCapitalLetter, kt as trackUpdatingComment, lr as setErrorMap, lt as retryKuboIpfsAdd, on as PubsubTopicSchema, or as logger_default, ot as replaceXWithY, r as ChallengeMessageSchema, s as ChallengeVerificationMessageSchema, st as resolveWhenPredicateIsTrue, t as ChallengeAnswerMessageSchema, wn as CommentUpdateSchema, wt as listUpdatingCommunities, xn as CommentUpdateForChallengeVerificationSchema, xr as parsedType, xt as findUpdatingCommunity, y as version_default, yt as findStartedCommunity, z as isAbortError } from "./schema-CijXm_fr.js";
|
|
2
|
+
import { $ as PKCClientsManager, $t as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, An as RpcCommunityPageParamSchema, At as cleanWireAuthor, B as CommentClientsManager, Bn as RpcSubscriptionIdResultSchema, Ct as verifyCommentModeration, Dn as RpcCidParamSchema, Dt as verifyCommunityEdit, En as RpcCancelExportParamSchema, F as monitorCommunitiesDirectory, Fn as RpcExportCommunityResultSchema, Ft as getCommunityAddressFromRecord, Hn as RpcUnsubscribeParamSchema, In as RpcFetchCidParamSchema, It as getCommunityNameFromWire, J as findCommentInPageInstanceRecursively, Kn as nativeFunctions$2, Ln as RpcFetchCidResultSchema, Lt as getCommunityPublicKeyFromWire, Mn as RpcExportCommunityModLogsParamSchema, Nn as RpcExportCommunityModLogsResultSchema, Nt as normalizeCreatePublicationAuthor, On as RpcCommentRepliesPageParamSchema, Ot as verifyVote, P as listCommunitiesSync, Pn as RpcExportCommunityParamSchema, Pt as buildRuntimeCommunityFields, Q as PublicationClientsManager, R as setNativeFunctions$1, Rn as RpcPublishChallengeAnswersParamSchema, Rt as normalizeCommunityInputFromCommunity, Sn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, St as verifyCommentIpfs, T as createKuboRpcClient, Tn as RpcAuthorNameParamSchema, Tt as verifyCommentUpdate, Vn as RpcSuccessResultSchema, Vt as getBufferedPKCAddressFromPublicKey, X as parseRawPages, Xt as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, Z as RepliesPages, Zt as parseCommentIpfsSchemaWithPKCErrorIfItFails, _ as decryptEd25519AesGcm, _n as parseDecryptedChallengeWithPKCErrorIfItFails, a as pkcJsChallenges, at as signChallengeAnswer, bn as parseRpcCommentEventWithPKCErrorIfItFails, bt as verifyChallengeVerification, c as RemoteCommunity, cn as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, d as decodeRpcChallengeAnswerPubsubMsg, dt as signCommentModeration, en as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, et as InflightFetchManager, f as decodeRpcChallengePubsubMsg, fn as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, g as createSigner, gn as parseDecryptedChallengeVerification, gt as signVote, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, ht as signCommunityEdit, in as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, it as cleanUpBeforePublishing, j as getDefaultDataPath, jn as RpcEditCommunityParamSchema, jt as getAuthorNameFromRuntime, kn as RpcCommunityIdentifierParamSchema, kt as buildRuntimeAuthor, ln as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, lt as signComment, m as decodeRpcChallengeVerificationPubsubMsg, mn as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nt as PKCTypedEmitter, o as TrackedInstanceRegistry, on as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, p as decodeRpcChallengeRequestPubsubMsg, pn as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, q as extractCommunityRuntimeFieldsFromParsedPages, qn as require_undici, qt as parseCidStringSchemaWithPKCErrorIfItFails, rt as require_lib$1, s as LRUCache, sn as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, st as signChallengeRequest, t as RpcLocalCommunity, tn as parseCommunityAddressWithPKCErrorIfItFails, u as KeyvBetterSqlite3, ut as signCommentEdit, vn as parseJsonWithPKCErrorIfFails, vt as verifyChallengeMessage, wn as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, wt as verifyCommentPubsubMessage, xn as parseRpcCommentUpdateEventWithPKCErrorIfItFails, xt as verifyCommentEdit, y as encryptEd25519AesGcm, yn as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, z as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, zn as RpcResolveAuthorNameResultSchema, zt as decode } from "./rpc-local-community-Xpx65cbz.js";
|
|
3
|
+
import { n as getHeliaDebugContext } from "./util-RR1J0iZB.js";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import assert from "assert";
|
|
6
6
|
import fs from "fs";
|
|
@@ -6805,7 +6805,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
6805
6805
|
this.clients.libp2pJsClients = {};
|
|
6806
6806
|
if (!this.libp2pJsClientsOptions) return;
|
|
6807
6807
|
if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
|
|
6808
|
-
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-
|
|
6808
|
+
const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-Kr0fvym5.js");
|
|
6809
6809
|
for (const clientOptions of this.libp2pJsClientsOptions) {
|
|
6810
6810
|
const heliaNode = await createLibp2pJsClientOrUseExistingOne({
|
|
6811
6811
|
...clientOptions,
|
|
@@ -7044,7 +7044,7 @@ var PKC$1 = class extends PKCTypedEmitter {
|
|
|
7044
7044
|
const log = logger_default("pkc-js:pkc:createLocalCommunity");
|
|
7045
7045
|
log.trace("Received community options to create a local community instance:", options);
|
|
7046
7046
|
if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
|
|
7047
|
-
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-
|
|
7047
|
+
const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-DyL61Q84.js");
|
|
7048
7048
|
const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
|
|
7049
7049
|
const community = new LocalCommunity(this);
|
|
7050
7050
|
if (isLocalCommunity) {
|
package/dist/bundled/chunks/{rpc-local-community-DG6G0xL6.js → rpc-local-community-Xpx65cbz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as pubsubTopicToDhtKey, $n as FailedToFetchCommentIpfsFromGatewaysError, $t as CommunityIpfsReservedFields, A as extractNetworkErrorDetails, An as ModQueuePageIpfsSchema, At as trackUpdatingCommunity, B as isIpfsCid, Bn as AuthorCommentIpfsReservedFields, Bt as CommunityEditPubsubMessagePublicationSchema, Cn as CommentUpdateReservedFields, Cr as __commonJSMin, D as deepMergeRuntimeFields, E as createAbortError, Er as __toESM, Et as refreshTrackedCommunityAliases, Gn as CommunityAddressSchema, Gt as CommentModerationSignedPropertyNames, H as isIpns, Hn as ChallengeAnswersSchema, Ht as CommentModerationChallengeRequestToEncryptSchema, I as getPostUpdateTimestampRange, In as CommentEditSignedPropertyNames, It as pTimeout, Jn as require_commonjs$4, Jt as ChallengeFileFactorySchema, Kn as CommunityAuthorChallengeReservedFieldNames, Kt as CommentModerationsTableRowSchema, L as hideClassPrivateProps, Lt as CommunityEditPublicationChallengeRequestToEncryptSchema, Mn as CommentEditChallengeRequestToEncryptSchema, Nt as untrackUpdatingCommunity, O as derivePublicationFromChallengeRequest, On as CreateCommentOptionsWithRefinementSchema, Ot as trackStartedCommunity, Pn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Pt as require_sha256$1, Q as isStringDomain, Qn as all, Qt as CommunityExportRecordsSchema, R as ipnsNameToIpnsOverPubsubTopic, Rn as CreateCommentEditOptionsWithRefinementSchema, Sn as CommentUpdateForChallengeVerificationSignedPropertyNames, St as listStartedCommunities, Tn as CommentUpdateSignedPropertyNames, Tr as __require, U as isIpnsPath, Un as CidPathSchema, Ut as CommentModerationPubsubMessagePublicationSchema, V as isIpfsPath, Vt as CreateCommunityEditPublicationOptionsWithRefinementSchema, Wn as CidStringSchema, X as isRequestPubsubPublicationOfPost, Xn as CID$1, Xt as CommunityChallengeSettingSchema, Yn as require_retry$1, Yt as ChallengeFileSchema, Z as isRequestPubsubPublicationOfReply, Zn as create, Zt as CommunityEditOptionsSchema, _ as PKCUserOptionBaseSchema, _r as record, an as ExportCommunityModLogsOptionsSchema, ar as messages, b as areEquivalentCommunityAddresses, bn as CommentUpdateChallengeReservedFieldNames, bt as findUpdatingComment, c as ChallengeVerificationMessageSignedPropertyNames, cn as CreateVoteUserOptionsWithRefinementSchema, cr as require_ms$1, dr as array, dt as shortifyAddress, en as CommunityIpfsSchema, er as FailedToFetchCommentUpdateFromGatewaysError, f as DecryptedChallengeSchema, fn as VoteSignedPropertyNames, fr as boolean, ft as shortifyCid, g as PKCParsedOptionsSchema, gn as CommentIpfsSchema, gr as object, gt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, h as NameResolverSerializedSchema, hn as CommentIpfsReservedFields, hr as number, ht as timestamp, i as ChallengeMessageSignedPropertyNames, in as CreateRpcCommunityFunctionArgumentSchema, ir as PKCError, j as fetchAndValidateIpnsRecordFromGateway, jn as PageIpfsSchema, jt as untrackStartedCommunity, k as doesDomainAddressHaveCapitalLetter, kn as GetPageParamSchema, l as DecryptedChallengeAnswerSchema, ln as VoteChallengeRequestToEncryptSchema, m as NameResolveCacheOptionsSchema, mn as CommentChallengeRequestToEncryptSchema, mr as literal, mt as throwIfAbortSignalAborted, n as ChallengeAnswerMessageSignedPropertyNames, nn as CreateNewLocalCommunityUserOptionsSchema, nr as FailedToFetchGenericIpfsFromGatewaysError, o as ChallengeRequestMessageSignedPropertyNames, or as logger_default, p as DecryptedChallengeVerificationSchema, pr as custom, qn as CreateSignerSchema, qt as CreateCommentModerationOptionsWithRefinementSchema, rn as CreateRemoteCommunityFunctionArgumentSchema, rr as FailedToFetchPageIpfsFromGatewaysError, rt as removeNullUndefinedEmptyObjectsValuesRecursively, sn as RpcRemoteCommunityUpdateEventResultSchema, sr as require_supports_color, st as resolveWhenPredicateIsTrue, tn as CommunitySignedPropertyNames, tr as FailedToFetchCommunityFromGatewaysError, un as VotePubsubMessagePublicationSchema, ur as _enum, v as PKCUserOptionsSchema, vn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, vr as string, wn as CommentUpdateSchema, wr as __exportAll, wt as listUpdatingCommunities, x as calculateIpfsCidV0, xt as findUpdatingCommunity, yn as CommentSignedPropertyNames, yt as findStartedCommunity, z as isAbortError, zn as AuthorAddressSchema, zt as CommunityEditPublicationSignedPropertyNames } from "./schema-
|
|
1
|
+
import { $ as pubsubTopicToDhtKey, $n as FailedToFetchCommentIpfsFromGatewaysError, $t as CommunityIpfsReservedFields, A as extractNetworkErrorDetails, An as ModQueuePageIpfsSchema, At as trackUpdatingCommunity, B as isIpfsCid, Bn as AuthorCommentIpfsReservedFields, Bt as CommunityEditPubsubMessagePublicationSchema, Cn as CommentUpdateReservedFields, Cr as __commonJSMin, D as deepMergeRuntimeFields, E as createAbortError, Er as __toESM, Et as refreshTrackedCommunityAliases, Gn as CommunityAddressSchema, Gt as CommentModerationSignedPropertyNames, H as isIpns, Hn as ChallengeAnswersSchema, Ht as CommentModerationChallengeRequestToEncryptSchema, I as getPostUpdateTimestampRange, In as CommentEditSignedPropertyNames, It as pTimeout, Jn as require_commonjs$4, Jt as ChallengeFileFactorySchema, Kn as CommunityAuthorChallengeReservedFieldNames, Kt as CommentModerationsTableRowSchema, L as hideClassPrivateProps, Lt as CommunityEditPublicationChallengeRequestToEncryptSchema, Mn as CommentEditChallengeRequestToEncryptSchema, Nt as untrackUpdatingCommunity, O as derivePublicationFromChallengeRequest, On as CreateCommentOptionsWithRefinementSchema, Ot as trackStartedCommunity, Pn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Pt as require_sha256$1, Q as isStringDomain, Qn as all, Qt as CommunityExportRecordsSchema, R as ipnsNameToIpnsOverPubsubTopic, Rn as CreateCommentEditOptionsWithRefinementSchema, Sn as CommentUpdateForChallengeVerificationSignedPropertyNames, St as listStartedCommunities, Tn as CommentUpdateSignedPropertyNames, Tr as __require, U as isIpnsPath, Un as CidPathSchema, Ut as CommentModerationPubsubMessagePublicationSchema, V as isIpfsPath, Vt as CreateCommunityEditPublicationOptionsWithRefinementSchema, Wn as CidStringSchema, X as isRequestPubsubPublicationOfPost, Xn as CID$1, Xt as CommunityChallengeSettingSchema, Yn as require_retry$1, Yt as ChallengeFileSchema, Z as isRequestPubsubPublicationOfReply, Zn as create, Zt as CommunityEditOptionsSchema, _ as PKCUserOptionBaseSchema, _r as record, an as ExportCommunityModLogsOptionsSchema, ar as messages, b as areEquivalentCommunityAddresses, bn as CommentUpdateChallengeReservedFieldNames, bt as findUpdatingComment, c as ChallengeVerificationMessageSignedPropertyNames, cn as CreateVoteUserOptionsWithRefinementSchema, cr as require_ms$1, dr as array, dt as shortifyAddress, en as CommunityIpfsSchema, er as FailedToFetchCommentUpdateFromGatewaysError, f as DecryptedChallengeSchema, fn as VoteSignedPropertyNames, fr as boolean, ft as shortifyCid, g as PKCParsedOptionsSchema, gn as CommentIpfsSchema, gr as object, gt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, h as NameResolverSerializedSchema, hn as CommentIpfsReservedFields, hr as number, ht as timestamp, i as ChallengeMessageSignedPropertyNames, in as CreateRpcCommunityFunctionArgumentSchema, ir as PKCError, j as fetchAndValidateIpnsRecordFromGateway, jn as PageIpfsSchema, jt as untrackStartedCommunity, k as doesDomainAddressHaveCapitalLetter, kn as GetPageParamSchema, l as DecryptedChallengeAnswerSchema, ln as VoteChallengeRequestToEncryptSchema, m as NameResolveCacheOptionsSchema, mn as CommentChallengeRequestToEncryptSchema, mr as literal, mt as throwIfAbortSignalAborted, n as ChallengeAnswerMessageSignedPropertyNames, nn as CreateNewLocalCommunityUserOptionsSchema, nr as FailedToFetchGenericIpfsFromGatewaysError, o as ChallengeRequestMessageSignedPropertyNames, or as logger_default, p as DecryptedChallengeVerificationSchema, pr as custom, qn as CreateSignerSchema, qt as CreateCommentModerationOptionsWithRefinementSchema, rn as CreateRemoteCommunityFunctionArgumentSchema, rr as FailedToFetchPageIpfsFromGatewaysError, rt as removeNullUndefinedEmptyObjectsValuesRecursively, sn as RpcRemoteCommunityUpdateEventResultSchema, sr as require_supports_color, st as resolveWhenPredicateIsTrue, tn as CommunitySignedPropertyNames, tr as FailedToFetchCommunityFromGatewaysError, un as VotePubsubMessagePublicationSchema, ur as _enum, v as PKCUserOptionsSchema, vn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, vr as string, wn as CommentUpdateSchema, wr as __exportAll, wt as listUpdatingCommunities, x as calculateIpfsCidV0, xt as findUpdatingCommunity, yn as CommentSignedPropertyNames, yt as findStartedCommunity, z as isAbortError, zn as AuthorAddressSchema, zt as CommunityEditPublicationSignedPropertyNames } from "./schema-CijXm_fr.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
import dns from "node:dns";
|
|
@@ -34191,7 +34191,7 @@ function extractNetworkErrorDetails(err, depth = 0) {
|
|
|
34191
34191
|
}
|
|
34192
34192
|
//#endregion
|
|
34193
34193
|
//#region dist/node/generated-version.js
|
|
34194
|
-
const version = "0.0.
|
|
34194
|
+
const version = "0.0.47";
|
|
34195
34195
|
//#endregion
|
|
34196
34196
|
//#region dist/node/version.js
|
|
34197
34197
|
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { et as pubsubTopicToDhtKeyCid, ir as PKCError } from "./schema-
|
|
1
|
+
import { et as pubsubTopicToDhtKeyCid, ir as PKCError } from "./schema-CijXm_fr.js";
|
|
2
2
|
//#region dist/node/helia/util.js
|
|
3
3
|
const TOPIC_SUBSCRIBER_WAIT_TIMEOUT_MS = 1e4;
|
|
4
4
|
const MESH_PEER_WAIT_TIMEOUT_MS = 3e3;
|
package/dist/bundled/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as nativeFunctions, i as getShortCid, n as challenges, o as setNativeFunctions, r as getShortAddress, t as PKC } from "./chunks/node-
|
|
1
|
+
import { a as nativeFunctions, i as getShortCid, n as challenges, o as setNativeFunctions, r as getShortAddress, t as PKC } from "./chunks/node-7bvDHqBl.js";
|
|
2
2
|
export { challenges, PKC as default, getShortAddress, getShortCid, nativeFunctions, setNativeFunctions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Er as __toESM, Jn as require_commonjs, L as hideClassPrivateProps, ir as PKCError, or as logger_default, ot as replaceXWithY, yt as findStartedCommunity } from "../../chunks/schema-
|
|
2
|
-
import { _ as parseRpcUnsubscribeParam, c as parseRpcCancelExportParam, d as parseRpcCommunityIdentifierParam, f as parseRpcCommunityPageParam, g as parseRpcPublishChallengeAnswersParam, h as parseRpcExportCommunityParam, l as parseRpcCidParam, m as parseRpcExportCommunityModLogsParam, p as parseRpcEditCommunityParam, s as parseRpcAuthorNameParam, t as PKC, u as parseRpcCommentRepliesPageParam } from "../../chunks/node-
|
|
3
|
-
import { Cn as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, G as buildPageRuntimeFields, Jt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, K as buildPagesRuntimeFields, Qt as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Sn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Un as stringify, Yt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, dn as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, nn as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, rn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, rt as require_lib, tt as pLimit, un as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-
|
|
4
|
-
import { t as LocalCommunity } from "../../chunks/local-community-
|
|
1
|
+
import { Er as __toESM, Jn as require_commonjs, L as hideClassPrivateProps, ir as PKCError, or as logger_default, ot as replaceXWithY, yt as findStartedCommunity } from "../../chunks/schema-CijXm_fr.js";
|
|
2
|
+
import { _ as parseRpcUnsubscribeParam, c as parseRpcCancelExportParam, d as parseRpcCommunityIdentifierParam, f as parseRpcCommunityPageParam, g as parseRpcPublishChallengeAnswersParam, h as parseRpcExportCommunityParam, l as parseRpcCidParam, m as parseRpcExportCommunityModLogsParam, p as parseRpcEditCommunityParam, s as parseRpcAuthorNameParam, t as PKC, u as parseRpcCommentRepliesPageParam } from "../../chunks/node-7bvDHqBl.js";
|
|
3
|
+
import { Cn as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, G as buildPageRuntimeFields, Jt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, K as buildPagesRuntimeFields, Qt as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Sn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Un as stringify, Yt as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, dn as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, hn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, nn as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, rn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, rt as require_lib, tt as pLimit, un as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-Xpx65cbz.js";
|
|
4
|
+
import { t as LocalCommunity } from "../../chunks/local-community-1YWTMINk.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.47";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pkcprotocol/pkc-js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "node config/generate-version.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"clean": "rimraf dist",
|
|
35
35
|
"prettier": "prettier {src,test,config}/**/*.{js,ts} --write --config config/prettier.config.js",
|
|
36
36
|
"test:prettier": "prettier --check {src,test,config}/**/*.{js,ts} --config config/prettier.config.js",
|
|
37
|
+
"knip": "knip",
|
|
37
38
|
"commit": "cz",
|
|
38
39
|
"release": "HUSKY=0 release-it --config config/.release-it.json",
|
|
39
40
|
"prepare": "husky"
|
|
@@ -75,8 +76,9 @@
|
|
|
75
76
|
"@libp2p/fetch": "4.1.3",
|
|
76
77
|
"@libp2p/gossipsub": "15.0.21",
|
|
77
78
|
"@libp2p/identify": "4.1.3",
|
|
78
|
-
"@libp2p/
|
|
79
|
+
"@libp2p/interface": "3.2.2",
|
|
79
80
|
"@libp2p/peer-id": "6.0.8",
|
|
81
|
+
"@multiformats/multiaddr": "13.0.1",
|
|
80
82
|
"@noble/curves": "2.2.0",
|
|
81
83
|
"@pkcprotocol/pkc-logger": "0.1.0",
|
|
82
84
|
"@pkcprotocol/proper-lock-file": "4.2.1",
|
|
@@ -93,9 +95,11 @@
|
|
|
93
95
|
"ipfs-unixfs-importer": "16.1.4",
|
|
94
96
|
"ipns": "10.1.3",
|
|
95
97
|
"it-all": "3.0.6",
|
|
98
|
+
"it-last": "3.0.11",
|
|
96
99
|
"js-sha256": "0.11.1",
|
|
97
100
|
"js-sha512": "0.9.0",
|
|
98
101
|
"kubo-rpc-client": "6.1.0",
|
|
102
|
+
"libp2p": "3.2.3",
|
|
99
103
|
"limiter-es6-compat": "2.1.2",
|
|
100
104
|
"localforage": "1.10.0",
|
|
101
105
|
"lodash.merge": "4.6.2",
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
"p-retry": "8.0.0",
|
|
108
112
|
"p-timeout": "7.0.1",
|
|
109
113
|
"probe-image-size": "7.2.3",
|
|
114
|
+
"quick-lru": "5.1.1",
|
|
110
115
|
"remeda": "1.57.0",
|
|
111
116
|
"retry": "0.13.1",
|
|
112
117
|
"rpc-websockets": "9.3.8",
|
|
@@ -116,7 +121,9 @@
|
|
|
116
121
|
"ts-custom-error": "3.3.1",
|
|
117
122
|
"typestub-ipfs-only-hash": "4.0.0",
|
|
118
123
|
"uint8arrays": "5.1.0",
|
|
124
|
+
"undici": "7.24.7",
|
|
119
125
|
"uuid": "13.0.0",
|
|
126
|
+
"ws": "8.20.0",
|
|
120
127
|
"zod": "4.3.6"
|
|
121
128
|
},
|
|
122
129
|
"devDependencies": {
|
|
@@ -133,13 +140,16 @@
|
|
|
133
140
|
"@types/tcp-port-used": "1.0.4",
|
|
134
141
|
"@types/ws": "8.18.1",
|
|
135
142
|
"@vitest/browser-playwright": "4.0.15",
|
|
143
|
+
"@vitest/runner": "4.0.15",
|
|
136
144
|
"@vitest/ui": "4.0.15",
|
|
137
145
|
"chokidar": "3.5.3",
|
|
138
146
|
"commitizen": "4.3.1",
|
|
139
147
|
"cross-env": "7.0.3",
|
|
140
148
|
"cz-conventional-changelog": "3.3.0",
|
|
149
|
+
"debug": "4.4.3",
|
|
141
150
|
"fs-extra": "11.3.4",
|
|
142
151
|
"husky": "9.1.7",
|
|
152
|
+
"knip": "6.16.1",
|
|
143
153
|
"kubo": "0.42.0",
|
|
144
154
|
"lint-staged": "16.2.7",
|
|
145
155
|
"npm-run-all": "4.1.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function measurePerformance(thresholdMs?: number): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export function measurePerformance(thresholdMs = 300) {
|
|
2
|
-
return function (target, propertyKey, descriptor) {
|
|
3
|
-
const originalMethod = descriptor.value;
|
|
4
|
-
const isAsync = originalMethod.constructor.name === "AsyncFunction";
|
|
5
|
-
descriptor.value = function (...args) {
|
|
6
|
-
const start = performance.now();
|
|
7
|
-
try {
|
|
8
|
-
const result = originalMethod.apply(this, args);
|
|
9
|
-
if (isAsync || result instanceof Promise) {
|
|
10
|
-
return result.then((resolvedResult) => {
|
|
11
|
-
const end = performance.now();
|
|
12
|
-
const executionTime = end - start;
|
|
13
|
-
if (executionTime > thresholdMs) {
|
|
14
|
-
console.warn(`⚠️ Slow execution: ${propertyKey} took ${executionTime.toFixed(2)}ms to execute`);
|
|
15
|
-
}
|
|
16
|
-
return resolvedResult;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
const end = performance.now();
|
|
21
|
-
const executionTime = end - start;
|
|
22
|
-
if (executionTime > thresholdMs) {
|
|
23
|
-
console.warn(`⚠️ Slow execution: ${propertyKey} took ${executionTime.toFixed(2)}ms to execute`);
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
throw error;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return descriptor;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=decorator-util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorator-util.js","sourceRoot":"","sources":["../../src/decorator-util.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,cAAsB,GAAG;IACxD,OAAO,UAAU,MAAW,EAAE,WAAmB,EAAE,UAA8B;QAC7E,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;QACxC,MAAM,OAAO,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,KAAK,eAAe,CAAC;QAEpE,UAAU,CAAC,KAAK,GAAG,UAAU,GAAG,IAAW;YACvC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;YAEhC,IAAI,CAAC;gBACD,MAAM,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAEhD,IAAI,OAAO,IAAI,MAAM,YAAY,OAAO,EAAE,CAAC;oBACvC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,cAAmB,EAAE,EAAE;wBACvC,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;wBAC9B,MAAM,aAAa,GAAG,GAAG,GAAG,KAAK,CAAC;wBAElC,IAAI,aAAa,GAAG,WAAW,EAAE,CAAC;4BAC9B,OAAO,CAAC,IAAI,CAAC,sBAAsB,WAAW,SAAS,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;wBACpG,CAAC;wBAED,OAAO,cAAc,CAAC;oBAC1B,CAAC,CAAC,CAAC;gBACP,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;oBAC9B,MAAM,aAAa,GAAG,GAAG,GAAG,KAAK,CAAC;oBAElC,IAAI,aAAa,GAAG,WAAW,EAAE,CAAC;wBAC9B,OAAO,CAAC,IAAI,CAAC,sBAAsB,WAAW,SAAS,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;oBACpG,CAAC;oBAED,OAAO,MAAM,CAAC;gBAClB,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,MAAM,KAAK,CAAC;YAChB,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|