@fedify/fedify 1.8.1-pr.315.1091 → 1.8.1-pr.315.1276
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 +16 -10
- package/dist/{actor-C_d9cZrz.js → actor-BT8uiycu.js} +2 -5
- package/dist/{actor-DLZ25ttS.js → actor-Bu8-7-Cs.js} +189 -189
- package/dist/{actor-1rvS-py8.d.ts → actor-CYyhXZHp.d.ts} +3 -3
- package/dist/{assert-DwEa6glZ.js → assert-MZs1qjMx.js} +2 -2
- package/dist/{assert_equals-C5gKCm6A.js → assert_equals-DSbWqCm3.js} +9 -9
- package/dist/{assert_instance_of-C9QtN-X9.js → assert_instance_of-DHz7EHNU.js} +2 -2
- package/dist/{assert_is_error-DQdKoRgb.js → assert_is_error-BPGph1Jx.js} +2 -2
- package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-f3m3epl3.js} +2 -2
- package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-DiIiJbZn.js} +4 -4
- package/dist/{assert_throws-DTDC_gwN.js → assert_throws-BOO88avQ.js} +3 -3
- package/dist/{authdocloader-CLixqGPW.js → authdocloader-D2Tt9QZj.js} +4 -4
- package/dist/{authdocloader-DUnUXs5R.js → authdocloader-fommx_n6.js} +4 -5
- package/dist/{builder-Js_TKEl1.js → builder-D249tBK0.js} +75 -6
- package/dist/{client-DK4qnXK0.d.ts → client-B_KFjN3D.d.ts} +4 -4
- package/dist/{client-Cu9HMcIJ.js → client-Dpba7hUz.js} +3 -3
- package/dist/{collection-Dfb0TPno.js → collection-CSzG2j1P.js} +1 -1
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +25 -32
- package/dist/{context-BhO5LP_t.d.ts → context-BRl3Ndz3.d.ts} +286 -73
- package/dist/{denokv-QWKsIqML.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-BindvZ7y.js → docloader-DCpruMxX.js} +41 -40
- package/dist/{docloader-DtGccyuM.d.ts → docloader-DJT1UZH4.d.ts} +5 -2
- package/dist/{esm-d-9EVGaP.js → esm-YeNP04Tn.js} +15 -15
- package/dist/federation/builder.test.js +35 -21
- package/dist/federation/collection.test.js +13 -11
- package/dist/federation/handler.test.js +341 -40
- package/dist/federation/inbox.test.js +8 -12
- package/dist/federation/keycache.test.js +9 -12
- package/dist/federation/kv.test.js +13 -11
- package/dist/federation/middleware.test.js +65 -42
- package/dist/federation/mod.d.ts +12 -12
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +15 -13
- package/dist/federation/retry.test.js +7 -5
- package/dist/federation/router.test.js +12 -11
- package/dist/federation/send.test.js +19 -25
- package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
- package/dist/{http-BigTqmE7.js → http-BvH4x0q2.js} +5 -5
- package/dist/{http-DIyD7he1.js → http-CDgoTsYR.js} +6 -5
- package/dist/{http-Cp-0z2Ja.d.ts → http-CMfQwn0N.d.ts} +6 -6
- package/dist/{inbox-BB6ajp8P.js → inbox-BuzhIjV2.js} +2 -4
- package/dist/{key-DlkWX5Fp.js → key-BqhwvHsn.js} +4 -4
- package/dist/{key-BfI9Ju0m.js → key-CP-a-VpF.js} +4 -4
- package/dist/{key-D9LuuzMv.js → key-CSyaic55.js} +4 -5
- package/dist/key-OtzSuFsF.js +10 -0
- package/dist/{keycache-C4C7f09E.js → keycache-D0U9cLZU.js} +2 -2
- package/dist/{keys-BjET3ZIs.js → keys-ByM1H_cn.js} +2 -2
- package/dist/{kv-DDdb1hMa.d.ts → kv-C7sopW2E.d.ts} +2 -2
- package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
- package/dist/{ld-CYqXYuyr.js → ld-CONO7ifU.js} +3 -5
- package/dist/{lookup-BYiP0j0F.js → lookup-B369Grts.js} +115 -8
- package/dist/{lookup-_XgQq_BY.js → lookup-CT3O5GHb.js} +2 -2
- package/dist/{lookup-m3U6KA0u.d.ts → lookup-DXPWo3Hz.d.ts} +3 -3
- package/dist/{middleware-e74I4DJ9.js → middleware-BY9LAF0G.js} +629 -24
- package/dist/{middleware-VSdfWI3m.js → middleware-C5U4iOFL.js} +563 -32
- package/dist/middleware-CcMetCU1.js +26 -0
- package/dist/middleware-CoO-tfFn.js +17 -0
- package/dist/{mod-c1I-Ydch.d.ts → mod-Cozftwmt.d.ts} +4 -4
- package/dist/{mod-yPzXIjJX.d.ts → mod-DHoWcUrW.d.ts} +6 -6
- package/dist/{mod-nlVEnYuj.d.ts → mod-DyY7EVjn.d.ts} +6 -6
- package/dist/{mod-BqCBztub.d.ts → mod-DyvbAsBu.d.ts} +6 -6
- package/dist/mod.d.ts +15 -15
- package/dist/mod.js +12 -12
- package/dist/{mq-DYKDDJmp.d.ts → mq-CRGm1e_F.d.ts} +1 -1
- package/dist/nodeinfo/client.test.js +15 -15
- package/dist/nodeinfo/handler.test.js +30 -39
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +13 -11
- package/dist/nodeinfo/types.test.js +14 -12
- package/dist/{owner-BK4eWKBp.d.ts → owner-CfnEgfAc.d.ts} +4 -4
- package/dist/{owner-D7RvVquY.js → owner-xdWeY64a.js} +3 -4
- package/dist/{proof-D4z1cLgw.js → proof-CtHhgl3O.js} +4 -6
- package/dist/{proof-ChRSmA_D.js → proof-DmzU2OzJ.js} +7 -7
- package/dist/{retry-BiIhZWgD.js → retry-D4GJ670a.js} +1 -1
- package/dist/runtime/authdocloader.test.js +18 -24
- package/dist/runtime/docloader.test.js +14 -15
- package/dist/runtime/key.test.js +14 -19
- package/dist/runtime/langstr.test.js +12 -11
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +12 -11
- package/dist/runtime/url.test.js +8 -7
- package/dist/{semver-DWClQt_5.js → semver-dArNLkR9.js} +1 -1
- package/dist/{send-DmlRAY0X.js → send-BBRNGJ6-.js} +3 -3
- package/dist/sig/http.test.js +40 -23
- package/dist/sig/key.test.js +15 -21
- package/dist/sig/ld.test.js +13 -19
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -23
- package/dist/sig/proof.test.js +16 -22
- package/dist/{std__assert-B3iAixc-.js → std__assert-X-_kMxKM.js} +6 -6
- package/dist/testing/docloader.test.js +12 -11
- package/dist/testing/mod.d.ts +8622 -2
- package/dist/testing/mod.js +4 -2
- package/dist/testing-CvN-i8Op.js +302 -0
- package/dist/{transformers-ghwJuzGY.js → transformers-Dna8Fg7k.js} +4 -4
- package/dist/{vocab-dw0HG0EQ.js → type-BR81xHKM.js} +5246 -185
- package/dist/{types-C7C_l-jz.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-DuZ6KMHu.js → types-oT7nGOql.js} +4 -4
- package/dist/vocab/actor.test.js +143 -149
- package/dist/vocab/lookup.test.js +13 -20
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +5 -9
- package/dist/vocab/vocab.test.js +54 -58
- package/dist/{vocab-CI5oydJj.js → vocab-CKqGKlad.js} +6 -6
- package/dist/{vocab-B52eQhpN.d.ts → vocab-KgaI50mH.d.ts} +3 -3
- package/dist/webfinger/handler.test.js +30 -39
- package/dist/webfinger/lookup.test.js +13 -14
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +3 -3
- package/dist/x/cfworkers.js +1 -1
- package/dist/x/cfworkers.test.js +13 -11
- package/dist/x/hono.d.ts +16 -16
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.d.ts +13 -13
- package/dist/x/sveltekit.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-HsBuZ-b2.js +0 -41
- package/dist/context-CXi1nrZE.js +0 -108
- package/dist/docloader-Bh-sDknx.js +0 -68
- package/dist/docloader-CJ7eOrpZ.js +0 -4514
- package/dist/key-DG7lKWv0.js +0 -16
- package/dist/langstr-DbWheeIS.js +0 -33
- package/dist/lookup-CEbB0_t_.js +0 -133
- package/dist/middleware-Dd2mc8-e.js +0 -33
- package/dist/middleware-DjA978L0.js +0 -17
- package/dist/multibase-DeCHcK8L.js +0 -316
- package/dist/router-D3UybECj.js +0 -118
- package/dist/testing-BZ0dJ4qn.js +0 -143
- package/dist/type-D2s5lmbZ.js +0 -14
- package/dist/url-kTAI6_KP.js +0 -68
- /package/dist/{vocab → src/vocab}/accept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/activity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/add.yaml +0 -0
- /package/dist/{vocab → src/vocab}/announce.yaml +0 -0
- /package/dist/{vocab → src/vocab}/application.yaml +0 -0
- /package/dist/{vocab → src/vocab}/arrive.yaml +0 -0
- /package/dist/{vocab → src/vocab}/article.yaml +0 -0
- /package/dist/{vocab → src/vocab}/audio.yaml +0 -0
- /package/dist/{vocab → src/vocab}/block.yaml +0 -0
- /package/dist/{vocab → src/vocab}/chatmessage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/create.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dataintegrityproof.yaml +0 -0
- /package/dist/{vocab → src/vocab}/delete.yaml +0 -0
- /package/dist/{vocab → src/vocab}/didservice.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dislike.yaml +0 -0
- /package/dist/{vocab → src/vocab}/document.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emoji.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emojireact.yaml +0 -0
- /package/dist/{vocab → src/vocab}/endpoints.yaml +0 -0
- /package/dist/{vocab → src/vocab}/event.yaml +0 -0
- /package/dist/{vocab → src/vocab}/export.yaml +0 -0
- /package/dist/{vocab → src/vocab}/flag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/follow.yaml +0 -0
- /package/dist/{vocab → src/vocab}/group.yaml +0 -0
- /package/dist/{vocab → src/vocab}/hashtag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/ignore.yaml +0 -0
- /package/dist/{vocab → src/vocab}/image.yaml +0 -0
- /package/dist/{vocab → src/vocab}/intransitiveactivity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/invite.yaml +0 -0
- /package/dist/{vocab → src/vocab}/join.yaml +0 -0
- /package/dist/{vocab → src/vocab}/key.yaml +0 -0
- /package/dist/{vocab → src/vocab}/leave.yaml +0 -0
- /package/dist/{vocab → src/vocab}/like.yaml +0 -0
- /package/dist/{vocab → src/vocab}/link.yaml +0 -0
- /package/dist/{vocab → src/vocab}/listen.yaml +0 -0
- /package/dist/{vocab → src/vocab}/mention.yaml +0 -0
- /package/dist/{vocab → src/vocab}/move.yaml +0 -0
- /package/dist/{vocab → src/vocab}/multikey.yaml +0 -0
- /package/dist/{vocab → src/vocab}/note.yaml +0 -0
- /package/dist/{vocab → src/vocab}/object.yaml +0 -0
- /package/dist/{vocab → src/vocab}/offer.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/organization.yaml +0 -0
- /package/dist/{vocab → src/vocab}/page.yaml +0 -0
- /package/dist/{vocab → src/vocab}/person.yaml +0 -0
- /package/dist/{vocab → src/vocab}/place.yaml +0 -0
- /package/dist/{vocab → src/vocab}/profile.yaml +0 -0
- /package/dist/{vocab → src/vocab}/propertyvalue.yaml +0 -0
- /package/dist/{vocab → src/vocab}/question.yaml +0 -0
- /package/dist/{vocab → src/vocab}/read.yaml +0 -0
- /package/dist/{vocab → src/vocab}/reject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/relationship.yaml +0 -0
- /package/dist/{vocab → src/vocab}/remove.yaml +0 -0
- /package/dist/{vocab → src/vocab}/service.yaml +0 -0
- /package/dist/{vocab → src/vocab}/source.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativeaccept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativereject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tombstone.yaml +0 -0
- /package/dist/{vocab → src/vocab}/travel.yaml +0 -0
- /package/dist/{vocab → src/vocab}/undo.yaml +0 -0
- /package/dist/{vocab → src/vocab}/update.yaml +0 -0
- /package/dist/{vocab → src/vocab}/video.yaml +0 -0
- /package/dist/{vocab → src/vocab}/view.yaml +0 -0
package/dist/federation/mod.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../client-
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { 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-
|
|
13
|
-
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-
|
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-C7sopW2E.js";
|
|
4
|
+
import "../docloader-DJT1UZH4.js";
|
|
5
|
+
import "../client-B_KFjN3D.js";
|
|
6
|
+
import "../vocab-KgaI50mH.js";
|
|
7
|
+
import "../actor-CYyhXZHp.js";
|
|
8
|
+
import "../http-CMfQwn0N.js";
|
|
9
|
+
import "../owner-CfnEgfAc.js";
|
|
10
|
+
import "../mod-DyvbAsBu.js";
|
|
11
|
+
import "../lookup-DXPWo3Hz.js";
|
|
12
|
+
import { 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-BRl3Ndz3.js";
|
|
13
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-CRGm1e_F.js";
|
|
14
14
|
import "../mod-g0xFzAP9.js";
|
|
15
|
-
export { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
15
|
+
export { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../transformers-
|
|
6
|
-
import "../docloader-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../key-
|
|
11
|
-
import "../http-
|
|
12
|
-
import "../proof-
|
|
13
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
5
|
+
import "../transformers-Dna8Fg7k.js";
|
|
6
|
+
import "../docloader-DCpruMxX.js";
|
|
7
|
+
import "../actor-Bu8-7-Cs.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BY9LAF0G.js";
|
|
9
|
+
import "../lookup-CT3O5GHb.js";
|
|
10
|
+
import "../key-CP-a-VpF.js";
|
|
11
|
+
import "../http-CDgoTsYR.js";
|
|
12
|
+
import "../proof-DmzU2OzJ.js";
|
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-CMX7WzeL.js";
|
|
14
|
+
import "../types-oT7nGOql.js";
|
|
15
|
+
import "../authdocloader-D2Tt9QZj.js";
|
|
16
|
+
import "../vocab-CKqGKlad.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,18 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
6
|
+
import "../type-BR81xHKM.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-B369Grts.js";
|
|
11
|
+
import { test } from "../testing-CvN-i8Op.js";
|
|
12
|
+
import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
|
|
13
|
+
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
15
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
16
|
+
import "../assert_throws-BOO88avQ.js";
|
|
15
17
|
import { delay } from "es-toolkit";
|
|
16
18
|
|
|
17
|
-
//#region federation/mq.ts
|
|
19
|
+
//#region src/federation/mq.ts
|
|
18
20
|
/**
|
|
19
21
|
* A message queue that processes messages in the same process.
|
|
20
22
|
* Do not use this in production as it does neither persist messages nor
|
|
@@ -167,7 +169,7 @@ var ParallelMessageQueue = class ParallelMessageQueue {
|
|
|
167
169
|
};
|
|
168
170
|
|
|
169
171
|
//#endregion
|
|
170
|
-
//#region federation/mq.test.ts
|
|
172
|
+
//#region src/federation/mq.test.ts
|
|
171
173
|
test("InProcessMessageQueue", async (t) => {
|
|
172
174
|
const mq = new InProcessMessageQueue();
|
|
173
175
|
await t.step("nativeRetrial property", () => {
|
|
@@ -225,7 +227,7 @@ test("InProcessMessageQueue", async (t) => {
|
|
|
225
227
|
});
|
|
226
228
|
test("MessageQueue.nativeRetrial", async (t) => {
|
|
227
229
|
if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") await t.step("DenoKvMessageQueue", async () => {
|
|
228
|
-
const { DenoKvMessageQueue } = await import("../denokv-
|
|
230
|
+
const { DenoKvMessageQueue } = await import("../denokv-2x6-IpXO.js");
|
|
229
231
|
const mq = new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
|
|
230
232
|
assert(mq.nativeRetrial);
|
|
231
233
|
if (Symbol.dispose in mq) {
|
|
@@ -264,7 +266,7 @@ test("MessageQueue.nativeRetrial", async (t) => {
|
|
|
264
266
|
});
|
|
265
267
|
const queues = { InProcessMessageQueue: () => Promise.resolve(new InProcessMessageQueue()) };
|
|
266
268
|
if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") {
|
|
267
|
-
const { DenoKvMessageQueue } = await import("../denokv-
|
|
269
|
+
const { DenoKvMessageQueue } = await import("../denokv-2x6-IpXO.js");
|
|
268
270
|
queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
|
|
269
271
|
}
|
|
270
272
|
for (const mqName in queues) test({
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
6
|
+
import "../type-BR81xHKM.js";
|
|
7
|
+
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../lookup-B369Grts.js";
|
|
9
|
+
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
|
10
|
+
import { test } from "../testing-CvN-i8Op.js";
|
|
11
|
+
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
10
12
|
|
|
11
|
-
//#region federation/retry.test.ts
|
|
13
|
+
//#region src/federation/retry.test.ts
|
|
12
14
|
test("createExponentialBackoffPolicy()", () => {
|
|
13
15
|
const policy = createExponentialBackoffPolicy({ maxAttempts: 4 });
|
|
14
16
|
const noMatter = Temporal.Duration.from({ seconds: 0 });
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import
|
|
6
|
+
import "../type-BR81xHKM.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { Router, RouterError } from "../lookup-B369Grts.js";
|
|
11
|
+
import { test } from "../testing-CvN-i8Op.js";
|
|
12
|
+
import "../std__assert-X-_kMxKM.js";
|
|
13
|
+
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
15
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
16
17
|
|
|
17
|
-
//#region federation/router.test.ts
|
|
18
|
+
//#region src/federation/router.test.ts
|
|
18
19
|
function setUp(options = {}) {
|
|
19
20
|
const router = new Router(options);
|
|
20
21
|
router.add("/users/{name}", "user");
|
|
@@ -3,32 +3,26 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import "../
|
|
23
|
-
import {
|
|
24
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
25
|
-
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
|
26
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
27
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BjET3ZIs.js";
|
|
29
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-BR81xHKM.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-B369Grts.js";
|
|
11
|
+
import "../actor-BT8uiycu.js";
|
|
12
|
+
import "../key-CSyaic55.js";
|
|
13
|
+
import { verifyRequest } from "../http-BvH4x0q2.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-xdWeY64a.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-BBRNGJ6-.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-CvN-i8Op.js";
|
|
17
|
+
import "../std__assert-X-_kMxKM.js";
|
|
18
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
19
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
20
|
+
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
21
|
+
import "../assert_throws-BOO88avQ.js";
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-ByM1H_cn.js";
|
|
23
|
+
import { esm_default } from "../esm-YeNP04Tn.js";
|
|
30
24
|
|
|
31
|
-
//#region federation/send.test.ts
|
|
25
|
+
//#region src/federation/send.test.ts
|
|
32
26
|
test("extractInboxes()", () => {
|
|
33
27
|
const recipients = [
|
|
34
28
|
new Person({
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { isEqual } from "es-toolkit";
|
|
6
6
|
|
|
7
|
-
//#region federation/kv.ts
|
|
7
|
+
//#region src/federation/kv.ts
|
|
8
8
|
/**
|
|
9
9
|
* A key–value store that stores values in memory.
|
|
10
10
|
* Do not use this in production as it does not persist values.
|
|
@@ -70,7 +70,7 @@ var MemoryKvStore = class {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region federation/mq.ts
|
|
73
|
+
//#region src/federation/mq.ts
|
|
74
74
|
/**
|
|
75
75
|
* A message queue that processes messages in the same process.
|
|
76
76
|
* Do not use this in production as it does neither persist messages nor
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-D9LuuzMv.js";
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-BR81xHKM.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CSyaic55.js";
|
|
9
8
|
import { getLogger } from "@logtape/logtape";
|
|
10
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -13,7 +12,7 @@ import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
|
13
12
|
import { encodeHex } from "byte-encodings/hex";
|
|
14
13
|
import { Item, decodeDict, encodeItem } from "structured-field-values";
|
|
15
14
|
|
|
16
|
-
//#region sig/http.ts
|
|
15
|
+
//#region src/sig/http.ts
|
|
17
16
|
/**
|
|
18
17
|
* Signs a request using the given private key.
|
|
19
18
|
* @param request The request to sign.
|
|
@@ -652,7 +651,8 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
|
652
651
|
* @returns A new Request object for the redirect.
|
|
653
652
|
*/
|
|
654
653
|
function createRedirectRequest(request, location, body) {
|
|
655
|
-
|
|
654
|
+
const url = new URL(location, request.url);
|
|
655
|
+
return new Request(url, {
|
|
656
656
|
method: request.method,
|
|
657
657
|
headers: request.headers,
|
|
658
658
|
body,
|
|
@@ -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 } from "./docloader-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-DCpruMxX.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-Bu8-7-Cs.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CP-a-VpF.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -12,7 +12,7 @@ import { encodeHex } from "byte-encodings/hex";
|
|
|
12
12
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
13
13
|
import { Item, decodeDict, encodeItem } from "structured-field-values";
|
|
14
14
|
|
|
15
|
-
//#region sig/http.ts
|
|
15
|
+
//#region src/sig/http.ts
|
|
16
16
|
/**
|
|
17
17
|
* Signs a request using the given private key.
|
|
18
18
|
* @param request The request to sign.
|
|
@@ -651,7 +651,8 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
|
651
651
|
* @returns A new Request object for the redirect.
|
|
652
652
|
*/
|
|
653
653
|
function createRedirectRequest(request, location, body) {
|
|
654
|
-
|
|
654
|
+
const url = new URL(location, request.url);
|
|
655
|
+
return new Request(url, {
|
|
655
656
|
method: request.method,
|
|
656
657
|
headers: request.headers,
|
|
657
658
|
body,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
4
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
|
3
|
+
import { DocumentLoader } from "./docloader-DJT1UZH4.js";
|
|
4
|
+
import { CryptographicKey, Multikey } from "./vocab-KgaI50mH.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
|
-
//#region sig/key.d.ts
|
|
7
|
+
//#region src/sig/key.d.ts
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Generates a key pair which is appropriate for Fedify.
|
|
@@ -75,7 +75,7 @@ interface FetchKeyResult<T extends CryptographicKey | Multikey> {
|
|
|
75
75
|
* Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
|
|
76
76
|
* If the given URL contains an {@link Actor} object, it tries to find
|
|
77
77
|
* the corresponding key in the `publicKey` or `assertionMethod` property.
|
|
78
|
-
* @
|
|
78
|
+
* @template T The type of the key to fetch. Either {@link CryptographicKey}
|
|
79
79
|
* or {@link Multikey}.
|
|
80
80
|
* @param keyId The URL of the key.
|
|
81
81
|
* @param cls The class of the key to fetch. Either {@link CryptographicKey}
|
|
@@ -116,7 +116,7 @@ interface KeyCache {
|
|
|
116
116
|
set(keyId: URL, key: CryptographicKey | Multikey | null): Promise<void>;
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
|
-
//#region sig/http.d.ts
|
|
119
|
+
//#region src/sig/http.d.ts
|
|
120
120
|
/**
|
|
121
121
|
* The standard to use for signing and verifying HTTP signatures.
|
|
122
122
|
* @since 1.6.0
|
|
@@ -150,7 +150,7 @@ interface SignRequestOptions {
|
|
|
150
150
|
currentTime?: Temporal.Instant;
|
|
151
151
|
/**
|
|
152
152
|
* The request body as ArrayBuffer. If provided, avoids cloning the request body.
|
|
153
|
-
* @since 1.
|
|
153
|
+
* @since 1.7.7
|
|
154
154
|
*/
|
|
155
155
|
body?: ArrayBuffer | null;
|
|
156
156
|
/**
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./
|
|
7
|
-
import { Activity } from "./vocab-dw0HG0EQ.js";
|
|
8
|
-
import { getTypeId } from "./type-D2s5lmbZ.js";
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-BR81xHKM.js";
|
|
9
7
|
import { getLogger } from "@logtape/logtape";
|
|
10
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
11
9
|
|
|
12
|
-
//#region federation/inbox.ts
|
|
10
|
+
//#region src/federation/inbox.ts
|
|
13
11
|
var InboxListenerSet = class InboxListenerSet {
|
|
14
12
|
#listeners;
|
|
15
13
|
constructor() {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "./docloader-
|
|
6
|
-
import "./actor-
|
|
7
|
-
import "./lookup-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
5
|
+
import "./docloader-DCpruMxX.js";
|
|
6
|
+
import "./actor-Bu8-7-Cs.js";
|
|
7
|
+
import "./lookup-CT3O5GHb.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CP-a-VpF.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-DCpruMxX.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-Bu8-7-Cs.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
10
|
-
//#region sig/key.ts
|
|
10
|
+
//#region src/sig/key.ts
|
|
11
11
|
/**
|
|
12
12
|
* Checks if the given key is valid and supported. No-op if the key is valid,
|
|
13
13
|
* otherwise throws an error.
|
|
@@ -91,7 +91,7 @@ async function importJwk(jwk, type) {
|
|
|
91
91
|
* Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
|
|
92
92
|
* If the given URL contains an {@link Actor} object, it tries to find
|
|
93
93
|
* the corresponding key in the `publicKey` or `assertionMethod` property.
|
|
94
|
-
* @
|
|
94
|
+
* @template T The type of the key to fetch. Either {@link CryptographicKey}
|
|
95
95
|
* or {@link Multikey}.
|
|
96
96
|
* @param keyId The URL of the key.
|
|
97
97
|
* @param cls The class of the key to fetch. Either {@link CryptographicKey}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { isActor } from "./actor-C_d9cZrz.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-BR81xHKM.js";
|
|
7
|
+
import { isActor } from "./actor-BT8uiycu.js";
|
|
9
8
|
import { getLogger } from "@logtape/logtape";
|
|
10
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
10
|
|
|
12
|
-
//#region sig/key.ts
|
|
11
|
+
//#region src/sig/key.ts
|
|
13
12
|
/**
|
|
14
13
|
* Checks if the given key is valid and supported. No-op if the key is valid,
|
|
15
14
|
* otherwise throws an error.
|
|
@@ -93,7 +92,7 @@ async function importJwk(jwk, type) {
|
|
|
93
92
|
* Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
|
|
94
93
|
* If the given URL contains an {@link Actor} object, it tries to find
|
|
95
94
|
* the corresponding key in the `publicKey` or `assertionMethod` property.
|
|
96
|
-
* @
|
|
95
|
+
* @template T The type of the key to fetch. Either {@link CryptographicKey}
|
|
97
96
|
* or {@link Multikey}.
|
|
98
97
|
* @param keyId The URL of the key.
|
|
99
98
|
* @param cls The class of the key to fetch. Either {@link CryptographicKey}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./type-BR81xHKM.js";
|
|
7
|
+
import "./actor-BT8uiycu.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CSyaic55.js";
|
|
9
|
+
|
|
10
|
+
export { validateCryptoKey };
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "./
|
|
6
|
+
import { CryptographicKey, Multikey } from "./type-BR81xHKM.js";
|
|
7
7
|
|
|
8
|
-
//#region federation/keycache.ts
|
|
8
|
+
//#region src/federation/keycache.ts
|
|
9
9
|
var KvKeyCache = class {
|
|
10
10
|
kv;
|
|
11
11
|
prefix;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-BR81xHKM.js";
|
|
7
7
|
|
|
8
|
-
//#region testing/keys.ts
|
|
8
|
+
//#region src/testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
|
10
10
|
id: new URL("https://example.com/key"),
|
|
11
11
|
owner: new URL("https://example.com/person"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
|
|
4
|
-
//#region federation/kv.d.ts
|
|
4
|
+
//#region src/federation/kv.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* A key for a key–value store. An array of one or more strings.
|
|
7
7
|
*
|
|
@@ -29,7 +29,7 @@ interface KvStore {
|
|
|
29
29
|
* Gets the value for the given key.
|
|
30
30
|
* @param key The key to get the value for.
|
|
31
31
|
* @returns The value for the key, or `undefined` if the key does not exist.
|
|
32
|
-
* @
|
|
32
|
+
* @template T The type of the value to get.
|
|
33
33
|
*/
|
|
34
34
|
get<T = unknown>(key: KvKey): Promise<T | undefined>;
|
|
35
35
|
/**
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { getTypeId } from "./type-D2s5lmbZ.js";
|
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-D9LuuzMv.js";
|
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-BR81xHKM.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CSyaic55.js";
|
|
10
8
|
import { getLogger } from "@logtape/logtape";
|
|
11
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
12
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
13
11
|
import { encodeHex } from "byte-encodings/hex";
|
|
14
12
|
import jsonld from "jsonld";
|
|
15
13
|
|
|
16
|
-
//#region sig/ld.ts
|
|
14
|
+
//#region src/sig/ld.ts
|
|
17
15
|
const logger = getLogger([
|
|
18
16
|
"fedify",
|
|
19
17
|
"sig",
|