@pkcprotocol/pkc-js 0.0.88 → 0.0.89
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 +1 -1
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/helia/helia-for-pkc.d.ts +2 -0
- package/dist/browser/helia/helia-for-pkc.js +158 -55
- package/dist/browser/helia/helia-for-pkc.js.map +1 -1
- package/dist/browser/helia/libp2pjsClient.d.ts +1 -1
- package/dist/browser/helia/lru-blockstore.d.ts +9 -8
- package/dist/browser/helia/lru-blockstore.js.map +1 -1
- package/dist/browser/helia/types.d.ts +10 -10
- package/dist/browser/rpc/src/schema.d.ts +148 -22
- package/dist/browser/runtime/node/community/local-community/cleanup.js +31 -1
- package/dist/browser/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/browser/schema.d.ts +8 -6
- package/dist/browser/schema.js +8 -1
- package/dist/browser/schema.js.map +1 -1
- package/dist/browser/test/test-util.js +3 -1
- package/dist/browser/test/test-util.js.map +1 -1
- package/dist/bundled/bundle-manifest.json +165 -146
- package/dist/bundled/chunks/{helia-for-pkc-CgG0H5g2.js → helia-for-pkc-BKXOmklx.js} +70 -39
- package/dist/bundled/chunks/{local-community-rFE0QOdJ.js → local-community-C7tTEYDD.js} +1 -1
- package/dist/bundled/chunks/{local-community-6_MVz1cc.js → local-community-D5fzgPCr.js} +32 -3
- package/dist/bundled/chunks/{node-BjSTVzbx.js → node-C9RpmtmM.js} +5 -5
- package/dist/bundled/chunks/{rpc-local-community-Bu6Wp-tO.js → rpc-local-community-Dq00OHRf.js} +432 -6
- package/dist/bundled/chunks/{schema-By3Sh-uW.js → schema-bDrzx9EZ.js} +3 -3
- package/dist/bundled/chunks/{src-WLgFbUwZ.js → src-629pKfxo.js} +2731 -415
- package/dist/bundled/chunks/{src-B2CwDTfy.js → src-Dz9wtvrK.js} +18 -18
- package/dist/bundled/chunks/{util-BxLdjyTF.js → util-DuJcVQ7Y.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/dist/node/helia/helia-for-pkc.d.ts +2 -0
- package/dist/node/helia/helia-for-pkc.js +158 -55
- package/dist/node/helia/helia-for-pkc.js.map +1 -1
- package/dist/node/helia/libp2pjsClient.d.ts +1 -1
- package/dist/node/helia/lru-blockstore.d.ts +9 -8
- package/dist/node/helia/lru-blockstore.js.map +1 -1
- package/dist/node/helia/types.d.ts +10 -10
- package/dist/node/rpc/src/schema.d.ts +148 -22
- package/dist/node/runtime/node/community/local-community/cleanup.js +31 -1
- package/dist/node/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/node/schema.d.ts +8 -6
- package/dist/node/schema.js +8 -1
- package/dist/node/schema.js.map +1 -1
- package/dist/node/test/test-util.js +3 -1
- package/dist/node/test/test-util.js.map +1 -1
- package/package.json +17 -16
package/dist/bundled/chunks/{rpc-local-community-Bu6Wp-tO.js → rpc-local-community-Dq00OHRf.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
|
|
2
|
-
import { $ as pubsubTopicToDhtKey, $n as n$10, $t as ChallengeFileSchema, A as extractNetworkErrorDetails, An as CommentUpdateSignedPropertyNames, Ar as literal, At as refreshTrackedCommunityAliases, B as isIpfsCid, Bt as pTimeout, Cn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Cr as require_supports_color, Ct as findStartedCommunity, D as deepMergeRuntimeFields, Dn as CommentUpdateForChallengeVerificationSignedPropertyNames, Dr as array, E as createAbortError, Er as _enum, Et as listStartedCommunities, Fn as ModQueuePageIpfsSchema, Ft as untrackStartedCommunity, Gn as AuthorCommentIpfsReservedFields, Gt as CreateCommunityEditPublicationOptionsWithRefinementSchema, H as isIpns, I as getPostUpdateTimestampRange, In as PageIpfsSchema, It as untrackUpdatingComment, Jn as CidPathSchema, Kt as CommentModerationChallengeRequestToEncryptSchema, L as hideClassPrivateProps, Ln as CommentEditChallengeRequestToEncryptSchema, Lt as untrackUpdatingCommunity, Mr as object, Mt as trackStartedCommunity, Nn as CreateCommentOptionsWithRefinementSchema, Nr as record, O as derivePublicationFromChallengeRequest, On as CommentUpdateReservedFields, Or as boolean, Ot as listUpdatingCommunities, Pn as GetPageParamSchema, Pr as string, Pt as trackUpdatingCommunity, Q as isStringDomain, Qn as CreateSignerSchema, Qt as ChallengeFileFactorySchema, R as ipnsNameToIpnsOverPubsubTopic, Rt as require_sha256$1, Sr as logger_default, Tn as CommentUpdateChallengeReservedFieldNames, Tt as findUpdatingCommunity, U as isIpnsPath, Un as CreateCommentEditOptionsWithRefinementSchema, Ut as CommunityEditPublicationSignedPropertyNames, V as isIpfsPath, Vn as CommentEditSignedPropertyNames, Vt as CommunityEditPublicationChallengeRequestToEncryptSchema, Wn as AuthorAddressSchema, Wt as CommunityEditPubsubMessagePublicationSchema, X as isRequestPubsubPublicationOfPost, Xn as CommunityAddressSchema, Xt as CommentModerationsTableRowSchema, Yn as CidStringSchema, Yt as CommentModerationSignedPropertyNames, Z as isRequestPubsubPublicationOfReply, Zn as CommunityAuthorChallengeReservedFieldNames, Zt as CreateCommentModerationOptionsWithRefinementSchema, _ as PKCUserOptionBaseSchema, _n as VoteSignedPropertyNames, _r as FailedToFetchCommunityFromGatewaysError, an as CommunityIpfsSchema, ar as e$5, b as areEquivalentCommunityAddresses, bn as CommentIpfsReservedFields, br as PKCError, bt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, c as ChallengeVerificationMessageSignedPropertyNames, cn as CreateRemoteCommunityFunctionArgumentSchema, cr as t$12, dr as t$10, f as DecryptedChallengeSchema, fn as RpcRemoteCommunityUpdateEventResultSchema, fr as t$9, g as PKCParsedOptionsSchema, gr as FailedToFetchCommentUpdateFromGatewaysError, gt as sleepUntilTimeoutOrAbort, h as NameResolverSerializedSchema, hn as VotePubsubMessagePublicationSchema, hr as FailedToFetchCommentIpfsFromGatewaysError, ht as shortifyCid, i as ChallengeMessageSignedPropertyNames, in as CommunityIpfsReservedFields, ir as e$6, j as fetchAndValidateIpnsRecordFromGateway, jr as number, k as doesDomainAddressHaveCapitalLetter, kn as CommentUpdateSchema, kr as custom, l as DecryptedChallengeAnswerSchema, ln as CreateRpcCommunityFunctionArgumentSchema, lr as n$8, m as NameResolveCacheOptionsSchema, mn as VoteChallengeRequestToEncryptSchema, mr as require_retry$1, mt as shortifyAddress, n as ChallengeAnswerMessageSignedPropertyNames, nn as CommunityEditOptionsSchema, o as ChallengeRequestMessageSignedPropertyNames, on as CommunitySignedPropertyNames, or as t$11, ot as removeNullUndefinedEmptyObjectsValuesRecursively, p as DecryptedChallengeVerificationSchema, pn as CreateVoteUserOptionsWithRefinementSchema, pr as e$4, qn as ChallengeAnswersSchema, qt as CommentModerationPubsubMessagePublicationSchema, rn as CommunityExportRecordsSchema, rr as t$13, sn as CreateNewLocalCommunityUserOptionsSchema, sr as r$8, tn as CommunityChallengeSettingSchema, tr as n$9, tt as raceAgainstAbort, un as ExportCommunityModLogsOptionsSchema, ur as r$7, ut as resolveWhenPredicateIsTrue, v as PKCUserOptionsSchema, vr as FailedToFetchGenericIpfsFromGatewaysError, vt as throwIfAbortSignalAborted, wn as CommentSignedPropertyNames, wr as require_ms$1, wt as findUpdatingComment, x as calculateIpfsCidV0, xn as CommentIpfsSchema, xr as messages, yn as CommentChallengeRequestToEncryptSchema, yr as FailedToFetchPageIpfsFromGatewaysError, yt as timestamp, z as isAbortError, zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema } from "./schema-
|
|
2
|
+
import { $ as pubsubTopicToDhtKey, $n as n$10, $t as ChallengeFileSchema, A as extractNetworkErrorDetails, An as CommentUpdateSignedPropertyNames, Ar as literal, At as refreshTrackedCommunityAliases, B as isIpfsCid, Bt as pTimeout, Cn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Cr as require_supports_color, Ct as findStartedCommunity, D as deepMergeRuntimeFields, Dn as CommentUpdateForChallengeVerificationSignedPropertyNames, Dr as array, E as createAbortError, Er as _enum, Et as listStartedCommunities, Fn as ModQueuePageIpfsSchema, Ft as untrackStartedCommunity, Gn as AuthorCommentIpfsReservedFields, Gt as CreateCommunityEditPublicationOptionsWithRefinementSchema, H as isIpns, I as getPostUpdateTimestampRange, In as PageIpfsSchema, It as untrackUpdatingComment, Jn as CidPathSchema, Kt as CommentModerationChallengeRequestToEncryptSchema, L as hideClassPrivateProps, Ln as CommentEditChallengeRequestToEncryptSchema, Lt as untrackUpdatingCommunity, Mr as object, Mt as trackStartedCommunity, Nn as CreateCommentOptionsWithRefinementSchema, Nr as record, O as derivePublicationFromChallengeRequest, On as CommentUpdateReservedFields, Or as boolean, Ot as listUpdatingCommunities, Pn as GetPageParamSchema, Pr as string, Pt as trackUpdatingCommunity, Q as isStringDomain, Qn as CreateSignerSchema, Qt as ChallengeFileFactorySchema, R as ipnsNameToIpnsOverPubsubTopic, Rt as require_sha256$1, Sr as logger_default, Tn as CommentUpdateChallengeReservedFieldNames, Tt as findUpdatingCommunity, U as isIpnsPath, Un as CreateCommentEditOptionsWithRefinementSchema, Ut as CommunityEditPublicationSignedPropertyNames, V as isIpfsPath, Vn as CommentEditSignedPropertyNames, Vt as CommunityEditPublicationChallengeRequestToEncryptSchema, Wn as AuthorAddressSchema, Wt as CommunityEditPubsubMessagePublicationSchema, X as isRequestPubsubPublicationOfPost, Xn as CommunityAddressSchema, Xt as CommentModerationsTableRowSchema, Yn as CidStringSchema, Yt as CommentModerationSignedPropertyNames, Z as isRequestPubsubPublicationOfReply, Zn as CommunityAuthorChallengeReservedFieldNames, Zt as CreateCommentModerationOptionsWithRefinementSchema, _ as PKCUserOptionBaseSchema, _n as VoteSignedPropertyNames, _r as FailedToFetchCommunityFromGatewaysError, an as CommunityIpfsSchema, ar as e$5, b as areEquivalentCommunityAddresses, bn as CommentIpfsReservedFields, br as PKCError, bt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, c as ChallengeVerificationMessageSignedPropertyNames, cn as CreateRemoteCommunityFunctionArgumentSchema, cr as t$12, dr as t$10, f as DecryptedChallengeSchema, fn as RpcRemoteCommunityUpdateEventResultSchema, fr as t$9, g as PKCParsedOptionsSchema, gr as FailedToFetchCommentUpdateFromGatewaysError, gt as sleepUntilTimeoutOrAbort, h as NameResolverSerializedSchema, hn as VotePubsubMessagePublicationSchema, hr as FailedToFetchCommentIpfsFromGatewaysError, ht as shortifyCid, i as ChallengeMessageSignedPropertyNames, in as CommunityIpfsReservedFields, ir as e$6, j as fetchAndValidateIpnsRecordFromGateway, jr as number, k as doesDomainAddressHaveCapitalLetter, kn as CommentUpdateSchema, kr as custom, l as DecryptedChallengeAnswerSchema, ln as CreateRpcCommunityFunctionArgumentSchema, lr as n$8, m as NameResolveCacheOptionsSchema, mn as VoteChallengeRequestToEncryptSchema, mr as require_retry$1, mt as shortifyAddress, n as ChallengeAnswerMessageSignedPropertyNames, nn as CommunityEditOptionsSchema, o as ChallengeRequestMessageSignedPropertyNames, on as CommunitySignedPropertyNames, or as t$11, ot as removeNullUndefinedEmptyObjectsValuesRecursively, p as DecryptedChallengeVerificationSchema, pn as CreateVoteUserOptionsWithRefinementSchema, pr as e$4, qn as ChallengeAnswersSchema, qt as CommentModerationPubsubMessagePublicationSchema, rn as CommunityExportRecordsSchema, rr as t$13, sn as CreateNewLocalCommunityUserOptionsSchema, sr as r$8, tn as CommunityChallengeSettingSchema, tr as n$9, tt as raceAgainstAbort, un as ExportCommunityModLogsOptionsSchema, ur as r$7, ut as resolveWhenPredicateIsTrue, v as PKCUserOptionsSchema, vr as FailedToFetchGenericIpfsFromGatewaysError, vt as throwIfAbortSignalAborted, wn as CommentSignedPropertyNames, wr as require_ms$1, wt as findUpdatingComment, x as calculateIpfsCidV0, xn as CommentIpfsSchema, xr as messages, yn as CommentChallengeRequestToEncryptSchema, yr as FailedToFetchPageIpfsFromGatewaysError, yt as timestamp, z as isAbortError, zn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema } from "./schema-bDrzx9EZ.js";
|
|
3
3
|
import { t as all } from "./src-CYIMjhjK.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -60334,7 +60334,7 @@ var require_sbcs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60334
60334
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
60335
60335
|
};
|
|
60336
60336
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60337
|
-
exports.KOI8_R = exports.windows_1256 = exports.windows_1251 = exports.ISO_8859_9 = exports.ISO_8859_8 = exports.ISO_8859_7 = exports.ISO_8859_6 = exports.ISO_8859_5 = exports.ISO_8859_2 = exports.ISO_8859_1 = void 0;
|
|
60337
|
+
exports.KOI8_R = exports.windows_874 = exports.windows_1258 = exports.windows_1257 = exports.windows_1256 = exports.windows_1251 = exports.ISO_8859_9 = exports.ISO_8859_8 = exports.ISO_8859_7 = exports.ISO_8859_6 = exports.ISO_8859_5 = exports.ISO_8859_2 = exports.ISO_8859_1 = void 0;
|
|
60338
60338
|
const match_1 = __importDefault(require_match());
|
|
60339
60339
|
const N_GRAM_MASK = 16777215;
|
|
60340
60340
|
var NGramParser = class {
|
|
@@ -64318,6 +64318,425 @@ var require_sbcs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
64318
64318
|
}
|
|
64319
64319
|
};
|
|
64320
64320
|
exports.windows_1256 = windows_1256;
|
|
64321
|
+
var windows_1257 = class extends sbcs {
|
|
64322
|
+
match(det) {
|
|
64323
|
+
return det.inputBytes.some((byte) => byte >= 128) ? super.match(det) : null;
|
|
64324
|
+
}
|
|
64325
|
+
byteMap() {
|
|
64326
|
+
const byteMap = new Array(256).fill(32);
|
|
64327
|
+
byteMap[39] = 0;
|
|
64328
|
+
for (let i = 65; i <= 90; i++) byteMap[i] = i + 32;
|
|
64329
|
+
for (let i = 97; i <= 122; i++) byteMap[i] = i;
|
|
64330
|
+
byteMap[142] = 142;
|
|
64331
|
+
byteMap[168] = byteMap[184] = 184;
|
|
64332
|
+
byteMap[170] = byteMap[186] = 186;
|
|
64333
|
+
byteMap[175] = byteMap[191] = 191;
|
|
64334
|
+
byteMap[181] = 181;
|
|
64335
|
+
for (let i = 192; i <= 214; i++) byteMap[i] = i + 32;
|
|
64336
|
+
for (let i = 216; i <= 222; i++) byteMap[i] = i + 32;
|
|
64337
|
+
byteMap[223] = 223;
|
|
64338
|
+
for (let i = 224; i <= 246; i++) byteMap[i] = i;
|
|
64339
|
+
for (let i = 248; i <= 254; i++) byteMap[i] = i;
|
|
64340
|
+
return byteMap;
|
|
64341
|
+
}
|
|
64342
|
+
ngrams() {
|
|
64343
|
+
return [
|
|
64344
|
+
new NGramsPlusLang("et", [
|
|
64345
|
+
2122090,
|
|
64346
|
+
2122098,
|
|
64347
|
+
2123109,
|
|
64348
|
+
2124135,
|
|
64349
|
+
2124385,
|
|
64350
|
+
2124641,
|
|
64351
|
+
2124645,
|
|
64352
|
+
2124649,
|
|
64353
|
+
2124655,
|
|
64354
|
+
2124661,
|
|
64355
|
+
2124897,
|
|
64356
|
+
2125417,
|
|
64357
|
+
2125678,
|
|
64358
|
+
2126441,
|
|
64359
|
+
2126693,
|
|
64360
|
+
2126949,
|
|
64361
|
+
6365281,
|
|
64362
|
+
6365290,
|
|
64363
|
+
6365291,
|
|
64364
|
+
6365292,
|
|
64365
|
+
6382112,
|
|
64366
|
+
6382624,
|
|
64367
|
+
6384499,
|
|
64368
|
+
6386549,
|
|
64369
|
+
6386785,
|
|
64370
|
+
6387297,
|
|
64371
|
+
6561908,
|
|
64372
|
+
6578464,
|
|
64373
|
+
6583667,
|
|
64374
|
+
6627435,
|
|
64375
|
+
6627443,
|
|
64376
|
+
6645100,
|
|
64377
|
+
6645107,
|
|
64378
|
+
6646816,
|
|
64379
|
+
6646885,
|
|
64380
|
+
6646900,
|
|
64381
|
+
6648608,
|
|
64382
|
+
6648692,
|
|
64383
|
+
6889579,
|
|
64384
|
+
6906912,
|
|
64385
|
+
6910570,
|
|
64386
|
+
6910752,
|
|
64387
|
+
6971680,
|
|
64388
|
+
7037299,
|
|
64389
|
+
7038309,
|
|
64390
|
+
7039346,
|
|
64391
|
+
7040879,
|
|
64392
|
+
7041893,
|
|
64393
|
+
7041908,
|
|
64394
|
+
7104875,
|
|
64395
|
+
7107616,
|
|
64396
|
+
7544929,
|
|
64397
|
+
7544939,
|
|
64398
|
+
7562528,
|
|
64399
|
+
7562604,
|
|
64400
|
+
7566437,
|
|
64401
|
+
7566441,
|
|
64402
|
+
7566708,
|
|
64403
|
+
7627115,
|
|
64404
|
+
7627124,
|
|
64405
|
+
7629088,
|
|
64406
|
+
7697184,
|
|
64407
|
+
7697253,
|
|
64408
|
+
7697505
|
|
64409
|
+
]),
|
|
64410
|
+
new NGramsPlusLang("lv", [
|
|
64411
|
+
2122098,
|
|
64412
|
+
2122601,
|
|
64413
|
+
2122849,
|
|
64414
|
+
2124146,
|
|
64415
|
+
2124154,
|
|
64416
|
+
2124897,
|
|
64417
|
+
2125282,
|
|
64418
|
+
2125921,
|
|
64419
|
+
2125938,
|
|
64420
|
+
2126433,
|
|
64421
|
+
2126689,
|
|
64422
|
+
2126699,
|
|
64423
|
+
2126949,
|
|
64424
|
+
2127214,
|
|
64425
|
+
2127457,
|
|
64426
|
+
6365289,
|
|
64427
|
+
6365301,
|
|
64428
|
+
6365302,
|
|
64429
|
+
6382185,
|
|
64430
|
+
6383904,
|
|
64431
|
+
6384499,
|
|
64432
|
+
6384751,
|
|
64433
|
+
6385778,
|
|
64434
|
+
6386293,
|
|
64435
|
+
6386464,
|
|
64436
|
+
6386806,
|
|
64437
|
+
6449509,
|
|
64438
|
+
6452512,
|
|
64439
|
+
6515052,
|
|
64440
|
+
6515060,
|
|
64441
|
+
6578464,
|
|
64442
|
+
6578546,
|
|
64443
|
+
6583584,
|
|
64444
|
+
6584864,
|
|
64445
|
+
6644850,
|
|
64446
|
+
6646123,
|
|
64447
|
+
6646643,
|
|
64448
|
+
6647393,
|
|
64449
|
+
6648608,
|
|
64450
|
+
6680693,
|
|
64451
|
+
6889577,
|
|
64452
|
+
6907236,
|
|
64453
|
+
6907376,
|
|
64454
|
+
6908642,
|
|
64455
|
+
6909046,
|
|
64456
|
+
7041908,
|
|
64457
|
+
7102836,
|
|
64458
|
+
7106404,
|
|
64459
|
+
7233824,
|
|
64460
|
+
7300193,
|
|
64461
|
+
7496043,
|
|
64462
|
+
7501166,
|
|
64463
|
+
7544947,
|
|
64464
|
+
7544949,
|
|
64465
|
+
7544950,
|
|
64466
|
+
7566453,
|
|
64467
|
+
7566574,
|
|
64468
|
+
7632160,
|
|
64469
|
+
7632489,
|
|
64470
|
+
7676022,
|
|
64471
|
+
7695904,
|
|
64472
|
+
7697184,
|
|
64473
|
+
7758188,
|
|
64474
|
+
14840608
|
|
64475
|
+
]),
|
|
64476
|
+
new NGramsPlusLang("lt", [
|
|
64477
|
+
2122089,
|
|
64478
|
+
2122341,
|
|
64479
|
+
2124146,
|
|
64480
|
+
2124641,
|
|
64481
|
+
2124905,
|
|
64482
|
+
2125167,
|
|
64483
|
+
2126433,
|
|
64484
|
+
2126689,
|
|
64485
|
+
2126699,
|
|
64486
|
+
2126709,
|
|
64487
|
+
2126945,
|
|
64488
|
+
2126949,
|
|
64489
|
+
2126965,
|
|
64490
|
+
2127457,
|
|
64491
|
+
2127465,
|
|
64492
|
+
6365300,
|
|
64493
|
+
6365424,
|
|
64494
|
+
6383904,
|
|
64495
|
+
6383988,
|
|
64496
|
+
6384112,
|
|
64497
|
+
6384738,
|
|
64498
|
+
6384993,
|
|
64499
|
+
6385268,
|
|
64500
|
+
6386274,
|
|
64501
|
+
6386292,
|
|
64502
|
+
6386976,
|
|
64503
|
+
6387050,
|
|
64504
|
+
6418553,
|
|
64505
|
+
6447392,
|
|
64506
|
+
6448489,
|
|
64507
|
+
6448494,
|
|
64508
|
+
6647401,
|
|
64509
|
+
6648949,
|
|
64510
|
+
6889569,
|
|
64511
|
+
6889577,
|
|
64512
|
+
6889579,
|
|
64513
|
+
6889581,
|
|
64514
|
+
6906217,
|
|
64515
|
+
6907246,
|
|
64516
|
+
6907252,
|
|
64517
|
+
6909543,
|
|
64518
|
+
6910496,
|
|
64519
|
+
6910752,
|
|
64520
|
+
6942827,
|
|
64521
|
+
6971757,
|
|
64522
|
+
6972704,
|
|
64523
|
+
7037289,
|
|
64524
|
+
7037292,
|
|
64525
|
+
7103073,
|
|
64526
|
+
7104869,
|
|
64527
|
+
7170419,
|
|
64528
|
+
7171947,
|
|
64529
|
+
7269152,
|
|
64530
|
+
7301733,
|
|
64531
|
+
7302009,
|
|
64532
|
+
7303968,
|
|
64533
|
+
7496176,
|
|
64534
|
+
7544937,
|
|
64535
|
+
7544939,
|
|
64536
|
+
7544950,
|
|
64537
|
+
7564129,
|
|
64538
|
+
7629088,
|
|
64539
|
+
7632246,
|
|
64540
|
+
7957356
|
|
64541
|
+
])
|
|
64542
|
+
];
|
|
64543
|
+
}
|
|
64544
|
+
name() {
|
|
64545
|
+
return "windows-1257";
|
|
64546
|
+
}
|
|
64547
|
+
};
|
|
64548
|
+
exports.windows_1257 = windows_1257;
|
|
64549
|
+
var windows_1258 = class extends sbcs {
|
|
64550
|
+
match(det) {
|
|
64551
|
+
return det.inputBytes.some((byte) => byte >= 128) ? super.match(det) : null;
|
|
64552
|
+
}
|
|
64553
|
+
byteMap() {
|
|
64554
|
+
const byteMap = new Array(256).fill(32);
|
|
64555
|
+
byteMap[39] = 0;
|
|
64556
|
+
for (let i = 65; i <= 90; i++) byteMap[i] = i + 32;
|
|
64557
|
+
for (let i = 97; i <= 122; i++) byteMap[i] = i;
|
|
64558
|
+
byteMap[131] = 131;
|
|
64559
|
+
byteMap[136] = 136;
|
|
64560
|
+
byteMap[140] = byteMap[156] = 156;
|
|
64561
|
+
byteMap[159] = 255;
|
|
64562
|
+
byteMap[170] = 170;
|
|
64563
|
+
byteMap[181] = 181;
|
|
64564
|
+
byteMap[186] = 186;
|
|
64565
|
+
for (let i = 192; i <= 203; i++) byteMap[i] = i + 32;
|
|
64566
|
+
byteMap[204] = 204;
|
|
64567
|
+
for (let i = 205; i <= 209; i++) byteMap[i] = i + 32;
|
|
64568
|
+
byteMap[210] = 210;
|
|
64569
|
+
for (let i = 211; i <= 214; i++) byteMap[i] = i + 32;
|
|
64570
|
+
for (let i = 216; i <= 221; i++) byteMap[i] = i + 32;
|
|
64571
|
+
byteMap[222] = 222;
|
|
64572
|
+
byteMap[223] = 223;
|
|
64573
|
+
for (let i = 224; i <= 246; i++) byteMap[i] = i;
|
|
64574
|
+
for (let i = 248; i <= 253; i++) byteMap[i] = i;
|
|
64575
|
+
byteMap[255] = 255;
|
|
64576
|
+
return byteMap;
|
|
64577
|
+
}
|
|
64578
|
+
ngrams() {
|
|
64579
|
+
return [
|
|
64580
|
+
2122600,
|
|
64581
|
+
2122721,
|
|
64582
|
+
2123625,
|
|
64583
|
+
2123887,
|
|
64584
|
+
2125415,
|
|
64585
|
+
2125928,
|
|
64586
|
+
2126952,
|
|
64587
|
+
2126953,
|
|
64588
|
+
2126962,
|
|
64589
|
+
2127465,
|
|
64590
|
+
2127584,
|
|
64591
|
+
6419060,
|
|
64592
|
+
6496355,
|
|
64593
|
+
6496374,
|
|
64594
|
+
6514720,
|
|
64595
|
+
6514925,
|
|
64596
|
+
6545763,
|
|
64597
|
+
6758504,
|
|
64598
|
+
6758510,
|
|
64599
|
+
6758516,
|
|
64600
|
+
6758518,
|
|
64601
|
+
6812782,
|
|
64602
|
+
6815198,
|
|
64603
|
+
6815221,
|
|
64604
|
+
6824052,
|
|
64605
|
+
6844402,
|
|
64606
|
+
6876526,
|
|
64607
|
+
6889582,
|
|
64608
|
+
6889588,
|
|
64609
|
+
6941394,
|
|
64610
|
+
6941420,
|
|
64611
|
+
6941426,
|
|
64612
|
+
7217251,
|
|
64613
|
+
7217262,
|
|
64614
|
+
7217268,
|
|
64615
|
+
7235360,
|
|
64616
|
+
7235572,
|
|
64617
|
+
7235581,
|
|
64618
|
+
7235616,
|
|
64619
|
+
7302759,
|
|
64620
|
+
7336547,
|
|
64621
|
+
7610483,
|
|
64622
|
+
7629053,
|
|
64623
|
+
7629290,
|
|
64624
|
+
7631471,
|
|
64625
|
+
7676020,
|
|
64626
|
+
7760362,
|
|
64627
|
+
7790624,
|
|
64628
|
+
13396256,
|
|
64629
|
+
13397607,
|
|
64630
|
+
14557288,
|
|
64631
|
+
14771048,
|
|
64632
|
+
15395950,
|
|
64633
|
+
15397492,
|
|
64634
|
+
15494759,
|
|
64635
|
+
15496224,
|
|
64636
|
+
15560296,
|
|
64637
|
+
15885088,
|
|
64638
|
+
15886624,
|
|
64639
|
+
15887904,
|
|
64640
|
+
15889440,
|
|
64641
|
+
16018976,
|
|
64642
|
+
16108649,
|
|
64643
|
+
16643532
|
|
64644
|
+
];
|
|
64645
|
+
}
|
|
64646
|
+
name() {
|
|
64647
|
+
return "windows-1258";
|
|
64648
|
+
}
|
|
64649
|
+
language() {
|
|
64650
|
+
return "vi";
|
|
64651
|
+
}
|
|
64652
|
+
};
|
|
64653
|
+
exports.windows_1258 = windows_1258;
|
|
64654
|
+
var windows_874 = class extends sbcs {
|
|
64655
|
+
byteMap() {
|
|
64656
|
+
const byteMap = new Array(256).fill(32);
|
|
64657
|
+
byteMap[39] = 0;
|
|
64658
|
+
for (let i = 65; i <= 90; i++) byteMap[i] = i + 32;
|
|
64659
|
+
for (let i = 97; i <= 122; i++) byteMap[i] = i;
|
|
64660
|
+
for (let i = 161; i <= 218; i++) byteMap[i] = i;
|
|
64661
|
+
for (let i = 223; i <= 251; i++) byteMap[i] = i;
|
|
64662
|
+
return byteMap;
|
|
64663
|
+
}
|
|
64664
|
+
ngrams() {
|
|
64665
|
+
return [
|
|
64666
|
+
2138578,
|
|
64667
|
+
2138856,
|
|
64668
|
+
2146514,
|
|
64669
|
+
2148291,
|
|
64670
|
+
2154949,
|
|
64671
|
+
10604985,
|
|
64672
|
+
10605251,
|
|
64673
|
+
10669479,
|
|
64674
|
+
10671554,
|
|
64675
|
+
10799058,
|
|
64676
|
+
11064263,
|
|
64677
|
+
11195847,
|
|
64678
|
+
11200960,
|
|
64679
|
+
11200995,
|
|
64680
|
+
11910083,
|
|
64681
|
+
12042976,
|
|
64682
|
+
12042979,
|
|
64683
|
+
12047848,
|
|
64684
|
+
12132544,
|
|
64685
|
+
12165586,
|
|
64686
|
+
12173522,
|
|
64687
|
+
12305360,
|
|
64688
|
+
12314553,
|
|
64689
|
+
12636873,
|
|
64690
|
+
12828960,
|
|
64691
|
+
12829619,
|
|
64692
|
+
12829633,
|
|
64693
|
+
12832936,
|
|
64694
|
+
12832994,
|
|
64695
|
+
12837026,
|
|
64696
|
+
13091779,
|
|
64697
|
+
13095353,
|
|
64698
|
+
13095617,
|
|
64699
|
+
13096117,
|
|
64700
|
+
13226679,
|
|
64701
|
+
13226724,
|
|
64702
|
+
13293544,
|
|
64703
|
+
13477063,
|
|
64704
|
+
13674707,
|
|
64705
|
+
13689538,
|
|
64706
|
+
13744416,
|
|
64707
|
+
13805473,
|
|
64708
|
+
13812171,
|
|
64709
|
+
13812452,
|
|
64710
|
+
13812512,
|
|
64711
|
+
13812704,
|
|
64712
|
+
13814226,
|
|
64713
|
+
13821111,
|
|
64714
|
+
13879249,
|
|
64715
|
+
13940155,
|
|
64716
|
+
14009017,
|
|
64717
|
+
14010324,
|
|
64718
|
+
14149837,
|
|
64719
|
+
14721749,
|
|
64720
|
+
14728167,
|
|
64721
|
+
14796240,
|
|
64722
|
+
14860964,
|
|
64723
|
+
14920425,
|
|
64724
|
+
14924193,
|
|
64725
|
+
14989250,
|
|
64726
|
+
15258279,
|
|
64727
|
+
15262634,
|
|
64728
|
+
15319250,
|
|
64729
|
+
15328185
|
|
64730
|
+
];
|
|
64731
|
+
}
|
|
64732
|
+
name() {
|
|
64733
|
+
return "windows-874";
|
|
64734
|
+
}
|
|
64735
|
+
language() {
|
|
64736
|
+
return "th";
|
|
64737
|
+
}
|
|
64738
|
+
};
|
|
64739
|
+
exports.windows_874 = windows_874;
|
|
64321
64740
|
var KOI8_R = class extends sbcs {
|
|
64322
64741
|
byteMap() {
|
|
64323
64742
|
return [
|
|
@@ -64957,6 +65376,9 @@ var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
64957
65376
|
new sbcs.ISO_8859_9(),
|
|
64958
65377
|
new sbcs.windows_1251(),
|
|
64959
65378
|
new sbcs.windows_1256(),
|
|
65379
|
+
new sbcs.windows_1257(),
|
|
65380
|
+
new sbcs.windows_1258(),
|
|
65381
|
+
new sbcs.windows_874(),
|
|
64960
65382
|
new sbcs.KOI8_R(),
|
|
64961
65383
|
new ascii_1.default()
|
|
64962
65384
|
];
|
|
@@ -66910,7 +67332,7 @@ var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
66910
67332
|
}
|
|
66911
67333
|
Utf32Encoder.prototype.write = function(str) {
|
|
66912
67334
|
var src = Buffer.from(str, "ucs2");
|
|
66913
|
-
var dst = Buffer.alloc(src.length * 2);
|
|
67335
|
+
var dst = Buffer.alloc(src.length * 2 + 4);
|
|
66914
67336
|
var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
|
|
66915
67337
|
var offset = 0;
|
|
66916
67338
|
for (var i = 0; i < src.length; i += 2) {
|
|
@@ -66962,8 +67384,8 @@ var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
66962
67384
|
if (overflow.length > 0) {
|
|
66963
67385
|
for (; i < src.length && overflow.length < 4; i++) overflow.push(src[i]);
|
|
66964
67386
|
if (overflow.length === 4) {
|
|
66965
|
-
if (isLE) codepoint = overflow[
|
|
66966
|
-
else codepoint = overflow[
|
|
67387
|
+
if (isLE) codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
|
|
67388
|
+
else codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
|
|
66967
67389
|
overflow.length = 0;
|
|
66968
67390
|
offset = _writeCodepoint(dst, offset, codepoint, badChar);
|
|
66969
67391
|
}
|
|
@@ -66990,7 +67412,9 @@ var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
66990
67412
|
return offset;
|
|
66991
67413
|
}
|
|
66992
67414
|
Utf32Decoder.prototype.end = function() {
|
|
67415
|
+
if (this.overflow.length === 0) return;
|
|
66993
67416
|
this.overflow.length = 0;
|
|
67417
|
+
return String.fromCharCode(this.badChar);
|
|
66994
67418
|
};
|
|
66995
67419
|
exports.utf32 = Utf32AutoCodec;
|
|
66996
67420
|
exports.ucs4 = "utf32";
|
|
@@ -67528,6 +67952,8 @@ var require_sbcs_data$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
67528
67952
|
elot928: "iso88597",
|
|
67529
67953
|
hebrew: "iso88598",
|
|
67530
67954
|
hebrew8: "iso88598",
|
|
67955
|
+
iso88598i: "iso88598",
|
|
67956
|
+
iso88598e: "iso88598",
|
|
67531
67957
|
turkish: "iso88599",
|
|
67532
67958
|
turkish8: "iso88599",
|
|
67533
67959
|
thai: "iso885911",
|
|
@@ -102224,7 +102650,7 @@ async function moveCommunityDbToDeletedDirectory(communityAddress, pkc) {
|
|
|
102224
102650
|
}
|
|
102225
102651
|
async function createKuboRpcClient(kuboRpcClientOptions) {
|
|
102226
102652
|
logger_default("pkc-js:pkc:createKuboRpcClient").trace("Creating a new kubo client on node with options", kuboRpcClientOptions);
|
|
102227
|
-
const { create: CreateKuboRpcClient } = await import("./src-
|
|
102653
|
+
const { create: CreateKuboRpcClient } = await import("./src-629pKfxo.js");
|
|
102228
102654
|
const Agent$2 = typeof kuboRpcClientOptions.url === "string" && kuboRpcClientOptions.url.startsWith("https") || kuboRpcClientOptions?.protocol === "https" || kuboRpcClientOptions.url instanceof URL && kuboRpcClientOptions?.url?.protocol === "https:" || kuboRpcClientOptions.url?.toString()?.includes("https") ? Agent : Agent$1;
|
|
102229
102655
|
const onehourMs = 1e3 * 60 * 60;
|
|
102230
102656
|
return CreateKuboRpcClient({
|
|
@@ -16167,7 +16167,7 @@ async function fetchAndValidateIpnsRecordFromGateway(gatewayUrl, ipnsName, opts)
|
|
|
16167
16167
|
const textEncoder = new TextEncoder();
|
|
16168
16168
|
async function calculateStringSizeSameAsIpfsAddCidV0(content) {
|
|
16169
16169
|
const { MemoryBlockstore } = await import("blockstore-core");
|
|
16170
|
-
const { importFile } = await import("./src-
|
|
16170
|
+
const { importFile } = await import("./src-Dz9wtvrK.js");
|
|
16171
16171
|
const blockstore = new MemoryBlockstore();
|
|
16172
16172
|
const entry = await importFile({
|
|
16173
16173
|
path: "content.json",
|
|
@@ -16205,7 +16205,7 @@ function extractNetworkErrorDetails(err, depth = 0) {
|
|
|
16205
16205
|
}
|
|
16206
16206
|
//#endregion
|
|
16207
16207
|
//#region dist/node/generated-version.js
|
|
16208
|
-
const version = "0.0.
|
|
16208
|
+
const version = "0.0.89";
|
|
16209
16209
|
//#endregion
|
|
16210
16210
|
//#region dist/node/version.js
|
|
16211
16211
|
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
@@ -16246,7 +16246,7 @@ const PKCUserOptionBaseSchema = object({
|
|
|
16246
16246
|
libp2pJsClientsOptions: object({
|
|
16247
16247
|
key: string().min(1),
|
|
16248
16248
|
libp2pOptions: custom().default({}),
|
|
16249
|
-
heliaOptions: custom().default({}),
|
|
16249
|
+
heliaOptions: custom().refine((options) => !("http" in options), { message: "heliaOptions.http is not supported: the libp2p-js client is composed without Helia's HTTP components" }).default({}),
|
|
16250
16250
|
blockstoreOptions: object({
|
|
16251
16251
|
maxBytes: number().positive().optional(),
|
|
16252
16252
|
lowWaterRatio: number().gt(0).lte(1).optional()
|