@fedify/fedify 1.8.1-pr.315.1090 → 1.8.1-pr.318.1225

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.
Files changed (130) hide show
  1. package/README.md +4 -1
  2. package/dist/{actor-BX-pKSuT.js → actor-C5n4A944.js} +1 -4
  3. package/dist/{actor-1rvS-py8.d.ts → actor-CWNAGvnO.d.ts} +2 -2
  4. package/dist/{actor-C02Getjh.js → actor-s5mQBwHr.js} +179 -179
  5. package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-AjlKk-Vo.js} +1 -1
  6. package/dist/{assert_throws-DTDC_gwN.js → assert_throws-CqMKbTh_.js} +1 -1
  7. package/dist/{authdocloader-BZs3nvC8.js → authdocloader-4RSyvLgz.js} +4 -5
  8. package/dist/{authdocloader-BbVFhkcz.js → authdocloader-CPaXUreA.js} +4 -4
  9. package/dist/{builder-DuW8p2S3.js → builder-CChGxW97.js} +74 -5
  10. package/dist/{client-BD0mI7gk.js → client-49mgdebk.js} +2 -2
  11. package/dist/{client-DK4qnXK0.d.ts → client-B0IOer6B.d.ts} +1 -1
  12. package/dist/compat/mod.d.ts +11 -11
  13. package/dist/compat/mod.js +1 -1
  14. package/dist/compat/transformers.test.js +20 -27
  15. package/dist/{context-BhO5LP_t.d.ts → context-BNA3vzcr.d.ts} +273 -60
  16. package/dist/{docloader-DtGccyuM.d.ts → docloader-CLolPVL_.d.ts} +2 -11
  17. package/dist/{docloader-umQd797n.js → docloader-DfooRmPz.js} +26 -13
  18. package/dist/{esm-d-9EVGaP.js → esm-3l5DpT9c.js} +1 -1
  19. package/dist/federation/builder.test.js +30 -16
  20. package/dist/federation/collection.test.js +9 -7
  21. package/dist/federation/handler.test.js +336 -35
  22. package/dist/federation/inbox.test.js +6 -10
  23. package/dist/federation/keycache.test.js +4 -7
  24. package/dist/federation/kv.test.js +8 -6
  25. package/dist/federation/middleware.test.js +58 -35
  26. package/dist/federation/mod.d.ts +11 -11
  27. package/dist/federation/mod.js +11 -11
  28. package/dist/federation/mq.test.js +10 -8
  29. package/dist/federation/retry.test.js +5 -3
  30. package/dist/federation/router.test.js +8 -7
  31. package/dist/federation/send.test.js +15 -21
  32. package/dist/{http-Cp-0z2Ja.d.ts → http-COez3YdK.d.ts} +4 -4
  33. package/dist/{http-CkS9JLmm.js → http-CsGPBDOo.js} +5 -4
  34. package/dist/{http-D59x3pzl.js → http-DyZD6UXI.js} +4 -4
  35. package/dist/{inbox-BjyNe-HL.js → inbox-DVl0Nqfm.js} +1 -3
  36. package/dist/{key-Btkh3AwY.js → key-CNNi5ktf.js} +3 -3
  37. package/dist/{key-jxin-rRq.js → key-CvnCx-As.js} +3 -4
  38. package/dist/{key-Cf8lNopw.js → key-MvqIkRnS.js} +4 -4
  39. package/dist/key-X4-XaJF1.js +10 -0
  40. package/dist/{keycache-BC5bL06g.js → keycache-BZR7b67J.js} +1 -1
  41. package/dist/{keys-Dfntfi5m.js → keys-CFFCiRYU.js} +1 -1
  42. package/dist/{kv-DDdb1hMa.d.ts → kv-BqOK6zss.d.ts} +1 -1
  43. package/dist/{ld-DwoZFwEd.js → ld-BDA3JCwf.js} +2 -4
  44. package/dist/{lookup-CAXRxPZ3.js → lookup-DcB1UuZA.js} +116 -10
  45. package/dist/{lookup-gQIU9tXW.js → lookup-mq8Ba5Kb.js} +2 -3
  46. package/dist/{lookup-m3U6KA0u.d.ts → lookup-tSXYzgYs.d.ts} +1 -7
  47. package/dist/{middleware-BOHju0mN.js → middleware-BKoKlIe8.js} +617 -12
  48. package/dist/middleware-CJiChbvg.js +26 -0
  49. package/dist/middleware-D6H2vPkH.js +17 -0
  50. package/dist/{middleware-cN6r9o1m.js → middleware-XOfMDFVl.js} +556 -25
  51. package/dist/{mod-yPzXIjJX.d.ts → mod-Bf-mThHd.d.ts} +4 -4
  52. package/dist/{mod-BqCBztub.d.ts → mod-C2jQirfr.d.ts} +2 -7
  53. package/dist/{mod-nlVEnYuj.d.ts → mod-CxD6XXBN.d.ts} +5 -5
  54. package/dist/{mod-c1I-Ydch.d.ts → mod-UTC30uNC.d.ts} +2 -2
  55. package/dist/mod.d.ts +14 -14
  56. package/dist/mod.js +11 -11
  57. package/dist/nodeinfo/client.test.js +11 -11
  58. package/dist/nodeinfo/handler.test.js +25 -34
  59. package/dist/nodeinfo/mod.d.ts +3 -3
  60. package/dist/nodeinfo/mod.js +2 -2
  61. package/dist/nodeinfo/semver.test.js +9 -7
  62. package/dist/nodeinfo/types.test.js +10 -8
  63. package/dist/{owner-BK4eWKBp.d.ts → owner-BlxMNrL4.d.ts} +3 -3
  64. package/dist/{owner-BrSLT3By.js → owner-D_-GBbn-.js} +2 -3
  65. package/dist/{proof-u4rhYX_R.js → proof-BnFHVB6H.js} +3 -5
  66. package/dist/{proof-BDYegzwN.js → proof-C94_doNG.js} +4 -4
  67. package/dist/runtime/authdocloader.test.js +14 -20
  68. package/dist/runtime/docloader.test.js +9 -10
  69. package/dist/runtime/key.test.js +10 -15
  70. package/dist/runtime/langstr.test.js +8 -7
  71. package/dist/runtime/mod.d.ts +5 -5
  72. package/dist/runtime/mod.js +6 -6
  73. package/dist/runtime/multibase/multibase.test.js +8 -7
  74. package/dist/runtime/url.test.js +5 -4
  75. package/dist/{send-DRDKgORs.js → send-DcuZAIY1.js} +2 -2
  76. package/dist/sig/http.test.js +36 -19
  77. package/dist/sig/key.test.js +11 -17
  78. package/dist/sig/ld.test.js +10 -16
  79. package/dist/sig/mod.d.ts +7 -7
  80. package/dist/sig/mod.js +6 -6
  81. package/dist/sig/owner.test.js +12 -19
  82. package/dist/sig/proof.test.js +12 -18
  83. package/dist/testing/docloader.test.js +8 -7
  84. package/dist/testing/mod.d.ts +8599 -1
  85. package/dist/testing/mod.js +4 -2
  86. package/dist/testing-C4oxyGxC.js +302 -0
  87. package/dist/{transformers-ghwJuzGY.js → transformers-DJRB0yFF.js} +3 -3
  88. package/dist/{vocab-C4cyrUaT.js → type-CFzYOYUt.js} +5255 -183
  89. package/dist/{types-D1lhruqy.js → types-Cr8o5d6d.js} +1 -1
  90. package/dist/{types-C7C_l-jz.js → types-n7HI7VFr.js} +1 -1
  91. package/dist/vocab/actor.test.js +10 -16
  92. package/dist/vocab/lookup.test.js +11 -86
  93. package/dist/vocab/mod.d.ts +5 -5
  94. package/dist/vocab/mod.js +4 -4
  95. package/dist/vocab/type.test.js +3 -7
  96. package/dist/vocab/vocab.test.js +9 -13
  97. package/dist/{vocab-BaWeqg9y.js → vocab-BwGxoM8R.js} +6 -7
  98. package/dist/{vocab-B52eQhpN.d.ts → vocab-Cyrb7_co.d.ts} +1 -1
  99. package/dist/webfinger/handler.test.js +25 -34
  100. package/dist/webfinger/lookup.test.js +9 -64
  101. package/dist/webfinger/mod.d.ts +3 -3
  102. package/dist/webfinger/mod.js +2 -2
  103. package/dist/x/cfworkers.d.ts +1 -1
  104. package/dist/x/cfworkers.test.js +8 -6
  105. package/dist/x/hono.d.ts +14 -14
  106. package/dist/x/hono.js +2 -2
  107. package/dist/x/sveltekit.d.ts +11 -11
  108. package/dist/x/sveltekit.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/chunk-HsBuZ-b2.js +0 -41
  111. package/dist/context-V7yd31ov.js +0 -108
  112. package/dist/docloader-Bh-sDknx.js +0 -68
  113. package/dist/docloader-D5BOqs-9.js +0 -4514
  114. package/dist/key-DqZKjPjH.js +0 -16
  115. package/dist/langstr-DbWheeIS.js +0 -33
  116. package/dist/lookup-DvfZUKur.js +0 -133
  117. package/dist/middleware-31SyXabg.js +0 -33
  118. package/dist/middleware-CGl-YyTa.js +0 -17
  119. package/dist/multibase-DeCHcK8L.js +0 -316
  120. package/dist/router-D3UybECj.js +0 -118
  121. package/dist/testing-BZ0dJ4qn.js +0 -143
  122. package/dist/type-D2s5lmbZ.js +0 -14
  123. package/dist/url-kTAI6_KP.js +0 -68
  124. /package/dist/{assert_is_error-DQdKoRgb.js → assert_is_error-CeVBLPsZ.js} +0 -0
  125. /package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-D2R2nl5h.js} +0 -0
  126. /package/dist/{collection-Dfb0TPno.js → collection-D5V3UzU3.js} +0 -0
  127. /package/dist/{denokv-QWKsIqML.js → denokv-DK9P5Jq7.js} +0 -0
  128. /package/dist/{retry-BiIhZWgD.js → retry-BnpVRGFC.js} +0 -0
  129. /package/dist/{semver-DWClQt_5.js → semver-DCqorrj5.js} +0 -0
  130. /package/dist/{std__assert-B3iAixc-.js → std__assert-BQdmxyzF.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-DtGccyuM.js";
4
- import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-B52eQhpN.js";
5
- import { KeyCache } from "./http-Cp-0z2Ja.js";
3
+ import { DocumentLoader } from "./docloader-CLolPVL_.js";
4
+ import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Cyrb7_co.js";
5
+ import { KeyCache } from "./http-COez3YdK.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
8
  //#region sig/ld.d.ts
@@ -251,7 +251,7 @@ interface VerifyObjectOptions extends VerifyProofOptions {}
251
251
  * Verifies the given object. It will verify all the proofs in the object,
252
252
  * and succeed only if all the proofs are valid and all attributions and
253
253
  * actors are authenticated by the proofs.
254
- * @typeParam T The type of the object to verify.
254
+ * @template T The type of the object to verify.
255
255
  * @param cls The class of the object to verify. It must be a subclass of
256
256
  * the {@link Object}.
257
257
  * @param jsonLd The JSON-LD object to verify. It's assumed that the object
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, GetUserAgentOptions } from "./docloader-DtGccyuM.js";
4
- import { Collection, Link, Object as Object$1 } from "./vocab-B52eQhpN.js";
3
+ import { DocumentLoader, GetUserAgentOptions } from "./docloader-CLolPVL_.js";
4
+ import { Collection, Link, Object as Object$1 } from "./vocab-Cyrb7_co.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region vocab/lookup.d.ts
@@ -34,11 +34,6 @@ interface LookupObjectOptions {
34
34
  * @since 1.3.0
35
35
  */
36
36
  tracerProvider?: TracerProvider;
37
- /**
38
- * AbortSignal for cancelling the request.
39
- * @since 1.8.0
40
- */
41
- signal?: AbortSignal;
42
37
  }
43
38
  /**
44
39
  * Looks up an ActivityStreams object by its URI (including `acct:` URIs)
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-B52eQhpN.js";
4
- import { ActivityTransformer, Context } from "./context-BhO5LP_t.js";
3
+ import { Activity } from "./vocab-Cyrb7_co.js";
4
+ import { ActivityTransformer, Context } from "./context-BNA3vzcr.js";
5
5
 
6
6
  //#region compat/transformers.d.ts
7
7
 
@@ -17,7 +17,7 @@ import { ActivityTransformer, Context } from "./context-BhO5LP_t.js";
17
17
  * https://example.com/#Follow/12345678-1234-5678-1234-567812345678
18
18
  * ```
19
19
  *
20
- * @typeParam TContextData The type of the context data.
20
+ * @template TContextData The type of the context data.
21
21
  * @param activity The activity to assign an ID to.
22
22
  * @param context The context of the activity.
23
23
  * @return The activity with an ID assigned.
@@ -63,7 +63,7 @@ declare function autoIdAssigner<TContextData>(activity: Activity, context: Conte
63
63
  *
64
64
  * As some ActivityPub implementations like Threads fail to deal with inlined
65
65
  * actor objects, this transformer can be used to work around this issue.
66
- * @typeParam TContextData The type of the context data.
66
+ * @template TContextData The type of the context data.
67
67
  * @param activity The activity to dehydrate the actor property of.
68
68
  * @param context The context of the activity.
69
69
  * @returns The dehydrated activity.
@@ -73,7 +73,7 @@ declare function actorDehydrator<TContextData>(activity: Activity, _context: Con
73
73
  /**
74
74
  * Gets the default activity transformers that are applied to all outgoing
75
75
  * activities.
76
- * @typeParam TContextData The type of the context data.
76
+ * @template TContextData The type of the context data.
77
77
  * @returns The default activity transformers.
78
78
  * @since 1.4.0
79
79
  */
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-DtGccyuM.js";
4
- import { HttpMessageSignaturesSpecDeterminer } from "./http-Cp-0z2Ja.js";
3
+ import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-CLolPVL_.js";
4
+ import { HttpMessageSignaturesSpecDeterminer } from "./http-COez3YdK.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region runtime/authdocloader.d.ts
package/dist/mod.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-DDdb1hMa.js";
4
- import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DtGccyuM.js";
5
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-DK4qnXK0.js";
6
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-B52eQhpN.js";
7
- import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-1rvS-py8.js";
8
- import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-Cp-0z2Ja.js";
9
- import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BK4eWKBp.js";
10
- import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BqCBztub.js";
11
- import { ResourceDescriptor, lookupWebFinger } from "./lookup-m3U6KA0u.js";
12
- import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BhO5LP_t.js";
3
+ import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-BqOK6zss.js";
4
+ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CLolPVL_.js";
5
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-B0IOer6B.js";
6
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-Cyrb7_co.js";
7
+ import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-CWNAGvnO.js";
8
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-COez3YdK.js";
9
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BlxMNrL4.js";
10
+ import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-C2jQirfr.js";
11
+ import { ResourceDescriptor, lookupWebFinger } from "./lookup-tSXYzgYs.js";
12
+ import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-BNA3vzcr.js";
13
13
  import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
14
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-nlVEnYuj.js";
14
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CxD6XXBN.js";
15
15
  import "./mod-g0xFzAP9.js";
16
16
  import "./mod-1pDWKvUL.js";
17
- import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-c1I-Ydch.js";
18
- import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-yPzXIjJX.js";
17
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-UTC30uNC.js";
18
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-Bf-mThHd.js";
19
19
  import "./mod-GIh5OYxW.js";
20
- export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
20
+ export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
package/dist/mod.js CHANGED
@@ -2,19 +2,19 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
5
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-DJRB0yFF.js";
6
6
  import "./compat-Bb5myD13.js";
7
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-umQd797n.js";
8
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-C02Getjh.js";
9
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-BOHju0mN.js";
10
- import { lookupWebFinger } from "./lookup-gQIU9tXW.js";
11
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-Btkh3AwY.js";
12
- import { signRequest, verifyRequest } from "./http-CkS9JLmm.js";
13
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-BDYegzwN.js";
7
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DfooRmPz.js";
8
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-s5mQBwHr.js";
9
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-BKoKlIe8.js";
10
+ import { lookupWebFinger } from "./lookup-mq8Ba5Kb.js";
11
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-CNNi5ktf.js";
12
+ import { signRequest, verifyRequest } from "./http-CsGPBDOo.js";
13
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-C94_doNG.js";
14
14
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
15
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-D1lhruqy.js";
16
- import { getAuthenticatedDocumentLoader } from "./authdocloader-BbVFhkcz.js";
17
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-BaWeqg9y.js";
15
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-Cr8o5d6d.js";
16
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-CPaXUreA.js";
17
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-BwGxoM8R.js";
18
18
  import "./nodeinfo-CyEbLjHs.js";
19
19
  import "./runtime-BSkOVUWM.js";
20
20
  import "./sig-BXJO--F9.js";
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import "../docloader-D5BOqs-9.js";
10
- import "../url-kTAI6_KP.js";
11
- import "../semver-DWClQt_5.js";
12
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-BD0mI7gk.js";
13
- import { test } from "../testing-BZ0dJ4qn.js";
14
- import "../std__assert-B3iAixc-.js";
15
- import "../assert_rejects-DceVjUlD.js";
16
- import "../assert_is_error-DQdKoRgb.js";
17
- import "../assert_not_equals-7pyUM3Ib.js";
18
- import "../assert_throws-DTDC_gwN.js";
19
- import { esm_default } from "../esm-d-9EVGaP.js";
10
+ import "../semver-DCqorrj5.js";
11
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-49mgdebk.js";
12
+ import "../lookup-DcB1UuZA.js";
13
+ import { test } from "../testing-C4oxyGxC.js";
14
+ import "../std__assert-BQdmxyzF.js";
15
+ import "../assert_rejects-AjlKk-Vo.js";
16
+ import "../assert_is_error-CeVBLPsZ.js";
17
+ import "../assert_not_equals-D2R2nl5h.js";
18
+ import "../assert_throws-CqMKbTh_.js";
19
+ import { esm_default } from "../esm-3l5DpT9c.js";
20
20
 
21
21
  //#region nodeinfo/client.test.ts
22
22
  test("getNodeInfo()", async (t) => {
@@ -3,44 +3,35 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
10
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
10
- import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-cN6r9o1m.js";
11
- import "../docloader-D5BOqs-9.js";
12
- import "../url-kTAI6_KP.js";
13
- import { parseSemVer } from "../semver-DWClQt_5.js";
14
- import "../client-BD0mI7gk.js";
15
- import "../router-D3UybECj.js";
16
- import "../types-C7C_l-jz.js";
17
- import "../multibase-DeCHcK8L.js";
18
- import "../vocab-C4cyrUaT.js";
19
- import "../langstr-DbWheeIS.js";
20
- import "../lookup-DvfZUKur.js";
21
- import "../type-D2s5lmbZ.js";
22
- import "../actor-BX-pKSuT.js";
23
- import "../key-jxin-rRq.js";
24
- import "../http-D59x3pzl.js";
25
- import "../authdocloader-BZs3nvC8.js";
26
- import "../ld-DwoZFwEd.js";
27
- import "../owner-BrSLT3By.js";
28
- import "../proof-u4rhYX_R.js";
29
- import "../lookup-CAXRxPZ3.js";
30
- import "../inbox-BjyNe-HL.js";
31
- import "../builder-DuW8p2S3.js";
32
- import "../collection-Dfb0TPno.js";
33
- import "../keycache-BC5bL06g.js";
34
- import "../retry-BiIhZWgD.js";
35
- import "../send-DRDKgORs.js";
36
- import { test } from "../testing-BZ0dJ4qn.js";
37
- import "../std__assert-B3iAixc-.js";
38
- import "../assert_rejects-DceVjUlD.js";
39
- import "../assert_is_error-DQdKoRgb.js";
40
- import "../assert_not_equals-7pyUM3Ib.js";
41
- import "../assert_throws-DTDC_gwN.js";
42
- import "../docloader-Bh-sDknx.js";
43
- import { createRequestContext } from "../context-V7yd31ov.js";
11
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-XOfMDFVl.js";
12
+ import { parseSemVer } from "../semver-DCqorrj5.js";
13
+ import "../client-49mgdebk.js";
14
+ import "../lookup-DcB1UuZA.js";
15
+ import "../types-n7HI7VFr.js";
16
+ import "../actor-C5n4A944.js";
17
+ import "../key-CvnCx-As.js";
18
+ import "../http-DyZD6UXI.js";
19
+ import "../authdocloader-4RSyvLgz.js";
20
+ import "../ld-BDA3JCwf.js";
21
+ import "../owner-D_-GBbn-.js";
22
+ import "../proof-BnFHVB6H.js";
23
+ import "../inbox-DVl0Nqfm.js";
24
+ import "../builder-CChGxW97.js";
25
+ import "../collection-D5V3UzU3.js";
26
+ import "../keycache-BZR7b67J.js";
27
+ import "../retry-BnpVRGFC.js";
28
+ import "../send-DcuZAIY1.js";
29
+ import { createRequestContext, test } from "../testing-C4oxyGxC.js";
30
+ import "../std__assert-BQdmxyzF.js";
31
+ import "../assert_rejects-AjlKk-Vo.js";
32
+ import "../assert_is_error-CeVBLPsZ.js";
33
+ import "../assert_not_equals-D2R2nl5h.js";
34
+ import "../assert_throws-CqMKbTh_.js";
44
35
 
45
36
  //#region nodeinfo/handler.test.ts
46
37
  test("handleNodeInfo()", async () => {
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "../kv-DDdb1hMa.js";
4
- import "../docloader-DtGccyuM.js";
5
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-DK4qnXK0.js";
3
+ import "../kv-BqOK6zss.js";
4
+ import "../docloader-CLolPVL_.js";
5
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-B0IOer6B.js";
6
6
  import "../mod-1pDWKvUL.js";
7
7
  export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-umQd797n.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-D1lhruqy.js";
5
+ import "../docloader-DfooRmPz.js";
6
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-Cr8o5d6d.js";
7
7
  import "../nodeinfo-CyEbLjHs.js";
8
8
 
9
9
  export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -3,16 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import { formatSemVer, parseSemVer } from "../semver-DWClQt_5.js";
10
- import { test } from "../testing-BZ0dJ4qn.js";
11
- import "../std__assert-B3iAixc-.js";
12
- import "../assert_rejects-DceVjUlD.js";
13
- import "../assert_is_error-DQdKoRgb.js";
14
- import "../assert_not_equals-7pyUM3Ib.js";
15
- import { assertThrows } from "../assert_throws-DTDC_gwN.js";
10
+ import { formatSemVer, parseSemVer } from "../semver-DCqorrj5.js";
11
+ import "../lookup-DcB1UuZA.js";
12
+ import { test } from "../testing-C4oxyGxC.js";
13
+ import "../std__assert-BQdmxyzF.js";
14
+ import "../assert_rejects-AjlKk-Vo.js";
15
+ import "../assert_is_error-CeVBLPsZ.js";
16
+ import "../assert_not_equals-D2R2nl5h.js";
17
+ import { assertThrows } from "../assert_throws-CqMKbTh_.js";
16
18
 
17
19
  //#region nodeinfo/semver.test.ts
18
20
  test("parseSemVer() handles major", async (t) => {
@@ -3,17 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import "../semver-DWClQt_5.js";
10
- import { nodeInfoToJson } from "../types-C7C_l-jz.js";
11
- import { test } from "../testing-BZ0dJ4qn.js";
12
- import "../std__assert-B3iAixc-.js";
13
- import "../assert_rejects-DceVjUlD.js";
14
- import "../assert_is_error-DQdKoRgb.js";
15
- import "../assert_not_equals-7pyUM3Ib.js";
16
- import { assertThrows } from "../assert_throws-DTDC_gwN.js";
10
+ import "../semver-DCqorrj5.js";
11
+ import "../lookup-DcB1UuZA.js";
12
+ import { nodeInfoToJson } from "../types-n7HI7VFr.js";
13
+ import { test } from "../testing-C4oxyGxC.js";
14
+ import "../std__assert-BQdmxyzF.js";
15
+ import "../assert_rejects-AjlKk-Vo.js";
16
+ import "../assert_is_error-CeVBLPsZ.js";
17
+ import "../assert_not_equals-D2R2nl5h.js";
18
+ import { assertThrows } from "../assert_throws-CqMKbTh_.js";
17
19
 
18
20
  //#region nodeinfo/types.test.ts
19
21
  test("nodeInfoToJson()", () => {
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-DtGccyuM.js";
4
- import { Activity, CryptographicKey } from "./vocab-B52eQhpN.js";
5
- import { Actor } from "./actor-1rvS-py8.js";
3
+ import { DocumentLoader } from "./docloader-CLolPVL_.js";
4
+ import { Activity, CryptographicKey } from "./vocab-Cyrb7_co.js";
5
+ import { Actor } from "./actor-CWNAGvnO.js";
6
6
  import { TracerProvider } from "@opentelemetry/api";
7
7
 
8
8
  //#region sig/owner.d.ts
@@ -3,9 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { getDocumentLoader } from "./docloader-D5BOqs-9.js";
7
- import { CryptographicKey, Object as Object$1 } from "./vocab-C4cyrUaT.js";
8
- import { isActor } from "./actor-BX-pKSuT.js";
6
+ import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-CFzYOYUt.js";
7
+ import { isActor } from "./actor-C5n4A944.js";
9
8
  import { trace } from "@opentelemetry/api";
10
9
 
11
10
  //#region sig/owner.ts
@@ -3,10 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-D5BOqs-9.js";
7
- import { Activity, DataIntegrityProof, Multikey } from "./vocab-C4cyrUaT.js";
8
- import { getTypeId } from "./type-D2s5lmbZ.js";
9
- import { fetchKey, validateCryptoKey } from "./key-jxin-rRq.js";
6
+ import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-CFzYOYUt.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CvnCx-As.js";
10
8
  import { getLogger } from "@logtape/logtape";
11
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
12
10
  import { encodeHex } from "byte-encodings/hex";
@@ -224,7 +222,7 @@ async function verifyProofInternal(jsonLd, proof, options) {
224
222
  * Verifies the given object. It will verify all the proofs in the object,
225
223
  * and succeed only if all the proofs are valid and all attributions and
226
224
  * actors are authenticated by the proofs.
227
- * @typeParam T The type of the object to verify.
225
+ * @template T The type of the object to verify.
228
226
  * @param cls The class of the object to verify. It must be a subclass of
229
227
  * the {@link Object}.
230
228
  * @param jsonLd The JSON-LD object to verify. It's assumed that the object
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-umQd797n.js";
6
- import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-C02Getjh.js";
7
- import { fetchKey, validateCryptoKey } from "./key-Btkh3AwY.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-DfooRmPz.js";
6
+ import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-s5mQBwHr.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CNNi5ktf.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import jsonld from "jsonld";
@@ -556,7 +556,7 @@ async function verifyProofInternal(jsonLd, proof, options) {
556
556
  * Verifies the given object. It will verify all the proofs in the object,
557
557
  * and succeed only if all the proofs are valid and all attributions and
558
558
  * actors are authenticated by the proofs.
559
- * @typeParam T The type of the object to verify.
559
+ * @template T The type of the object to verify.
560
560
  * @param cls The class of the object to verify. It must be a subclass of
561
561
  * the {@link Object}.
562
562
  * @param jsonLd The JSON-LD object to verify. It's assumed that the object
@@ -3,29 +3,23 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import { UrlError } from "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import "../docloader-D5BOqs-9.js";
10
- import { UrlError } from "../url-kTAI6_KP.js";
11
- import "../multibase-DeCHcK8L.js";
12
- import "../vocab-C4cyrUaT.js";
13
- import "../langstr-DbWheeIS.js";
14
- import "../lookup-DvfZUKur.js";
15
- import "../type-D2s5lmbZ.js";
16
- import "../actor-BX-pKSuT.js";
17
- import "../key-jxin-rRq.js";
18
- import { verifyRequest } from "../http-D59x3pzl.js";
19
- import { getAuthenticatedDocumentLoader } from "../authdocloader-BZs3nvC8.js";
20
- import { test } from "../testing-BZ0dJ4qn.js";
21
- import "../std__assert-B3iAixc-.js";
22
- import { assertRejects } from "../assert_rejects-DceVjUlD.js";
23
- import "../assert_is_error-DQdKoRgb.js";
24
- import "../assert_not_equals-7pyUM3Ib.js";
25
- import "../assert_throws-DTDC_gwN.js";
26
- import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
27
- import { rsaPrivateKey2 } from "../keys-Dfntfi5m.js";
28
- import { esm_default } from "../esm-d-9EVGaP.js";
10
+ import "../lookup-DcB1UuZA.js";
11
+ import "../actor-C5n4A944.js";
12
+ import "../key-CvnCx-As.js";
13
+ import { verifyRequest } from "../http-DyZD6UXI.js";
14
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-4RSyvLgz.js";
15
+ import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
16
+ import "../std__assert-BQdmxyzF.js";
17
+ import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
18
+ import "../assert_is_error-CeVBLPsZ.js";
19
+ import "../assert_not_equals-D2R2nl5h.js";
20
+ import "../assert_throws-CqMKbTh_.js";
21
+ import { rsaPrivateKey2 } from "../keys-CFFCiRYU.js";
22
+ import { esm_default } from "../esm-3l5DpT9c.js";
29
23
 
30
24
  //#region runtime/authdocloader.test.ts
31
25
  test("getAuthenticatedDocumentLoader()", async (t) => {
@@ -3,20 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import { FetchError, UrlError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
10
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
10
- import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-D5BOqs-9.js";
11
- import { UrlError } from "../url-kTAI6_KP.js";
12
- import { test } from "../testing-BZ0dJ4qn.js";
13
- import "../std__assert-B3iAixc-.js";
14
- import { assertRejects } from "../assert_rejects-DceVjUlD.js";
15
- import "../assert_is_error-DQdKoRgb.js";
16
- import "../assert_not_equals-7pyUM3Ib.js";
17
- import { assertThrows } from "../assert_throws-DTDC_gwN.js";
18
- import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
19
- import { esm_default } from "../esm-d-9EVGaP.js";
11
+ import "../lookup-DcB1UuZA.js";
12
+ import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
13
+ import "../std__assert-BQdmxyzF.js";
14
+ import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
15
+ import "../assert_is_error-CeVBLPsZ.js";
16
+ import "../assert_not_equals-D2R2nl5h.js";
17
+ import { assertThrows } from "../assert_throws-CqMKbTh_.js";
18
+ import { esm_default } from "../esm-3l5DpT9c.js";
20
19
  import process from "node:process";
21
20
 
22
21
  //#region runtime/docloader.test.ts
@@ -3,24 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import "../docloader-D5BOqs-9.js";
10
- import "../url-kTAI6_KP.js";
11
- import "../multibase-DeCHcK8L.js";
12
- import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-C4cyrUaT.js";
13
- import "../langstr-DbWheeIS.js";
14
- import "../lookup-DvfZUKur.js";
15
- import "../type-D2s5lmbZ.js";
16
- import "../actor-BX-pKSuT.js";
17
- import { exportJwk, importJwk } from "../key-jxin-rRq.js";
18
- import { test } from "../testing-BZ0dJ4qn.js";
19
- import "../std__assert-B3iAixc-.js";
20
- import "../assert_rejects-DceVjUlD.js";
21
- import "../assert_is_error-DQdKoRgb.js";
22
- import "../assert_not_equals-7pyUM3Ib.js";
23
- import "../assert_throws-DTDC_gwN.js";
10
+ import "../lookup-DcB1UuZA.js";
11
+ import "../actor-C5n4A944.js";
12
+ import { exportJwk, importJwk } from "../key-CvnCx-As.js";
13
+ import { test } from "../testing-C4oxyGxC.js";
14
+ import "../std__assert-BQdmxyzF.js";
15
+ import "../assert_rejects-AjlKk-Vo.js";
16
+ import "../assert_is_error-CeVBLPsZ.js";
17
+ import "../assert_not_equals-D2R2nl5h.js";
18
+ import "../assert_throws-CqMKbTh_.js";
24
19
 
25
20
  //#region runtime/key.test.ts
26
21
  const rsaSpki = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsm\nnt/J1mQfZasfJtN33dcZ3d1lJroxmgmMu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR\n5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7WQnKQgQMI+ezn24GHsZ/v1JIo77lerX5\nk4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1s\nZnh1WbHbevlGd72HSXll5rocPIHn8gq6xpBgpHwRphlRsgn4KHaJ6brXDIJjrnQh\nIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hwbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2\nuwIDAQAB\n-----END PUBLIC KEY-----\n";
@@ -3,16 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
+ import { LanguageString } from "../type-CFzYOYUt.js";
6
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
8
  import "../assert-DwEa6glZ.js";
8
9
  import "../assert_instance_of-C9QtN-X9.js";
9
- import { LanguageString } from "../langstr-DbWheeIS.js";
10
- import { test } from "../testing-BZ0dJ4qn.js";
11
- import "../std__assert-B3iAixc-.js";
12
- import "../assert_rejects-DceVjUlD.js";
13
- import "../assert_is_error-DQdKoRgb.js";
14
- import "../assert_not_equals-7pyUM3Ib.js";
15
- import "../assert_throws-DTDC_gwN.js";
10
+ import "../lookup-DcB1UuZA.js";
11
+ import { test } from "../testing-C4oxyGxC.js";
12
+ import "../std__assert-BQdmxyzF.js";
13
+ import "../assert_rejects-AjlKk-Vo.js";
14
+ import "../assert_is_error-CeVBLPsZ.js";
15
+ import "../assert_not_equals-D2R2nl5h.js";
16
+ import "../assert_throws-CqMKbTh_.js";
16
17
  import { parseLanguageTag } from "@phensley/language-tag";
17
18
  import util from "node:util";
18
19
 
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "../kv-DDdb1hMa.js";
4
- import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-DtGccyuM.js";
5
- import { LanguageString } from "../vocab-B52eQhpN.js";
6
- import "../http-Cp-0z2Ja.js";
7
- import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-c1I-Ydch.js";
3
+ import "../kv-BqOK6zss.js";
4
+ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-CLolPVL_.js";
5
+ import { LanguageString } from "../vocab-Cyrb7_co.js";
6
+ import "../http-COez3YdK.js";
7
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-UTC30uNC.js";
8
8
  export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, LanguageString, RemoteDocument, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };