@fedify/fedify 1.9.0-dev.1689 → 1.9.0-dev.1704
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actor-Dpkqj5Dv.js → actor-B0LpLKRw.js} +187 -187
- package/dist/{actor-DzdLVqkJ.js → actor-CQzdjHs3.js} +1 -1
- package/dist/{actor-CK94m0Yv.cjs → actor-DU96UQUE.cjs} +187 -187
- package/dist/{authdocloader-4iBGWlQw.cjs → authdocloader-BkOerKL-.cjs} +3 -3
- package/dist/{authdocloader-DdSBpn11.js → authdocloader-CzmsYrAn.js} +3 -3
- package/dist/{authdocloader-BVvTFQbi.js → authdocloader-DI67R2Ku.js} +3 -3
- package/dist/{builder-BR--hcb8.js → builder-D2Oyy8AY.js} +8 -8
- package/dist/{client-BoUqciR8.js → client-BWusKCWF.js} +1 -1
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-CZorAkt8.d.ts → context-C51zGhGC.d.ts} +120 -87
- package/dist/{context-DCh96LcF.d.cts → context-Qnv814-p.d.cts} +120 -87
- package/dist/{docloader-Bui9z8Lb.cjs → docloader-NcFUThCx.cjs} +1 -1
- package/dist/{docloader-DyvW1gbN.js → docloader-isD0ntZv.js} +1 -1
- package/dist/{esm-DMb2eQXG.js → esm-BBVcrjH8.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-C7nvEG1N.js → http-BiKoa3o_.js} +2 -2
- package/dist/{http-BAaVL480.cjs → http-LVXxICJn.cjs} +3 -3
- package/dist/{http-xsj5Fzwl.js → http-MyYS6o7t.js} +3 -3
- package/dist/{inbox-DZNE3Jtq.js → inbox-CzGsgKH-.js} +1 -1
- package/dist/key-BEz2ThE9.cjs +10 -0
- package/dist/{key-DgZIZVqA.js → key-C0SCHEcf.js} +3 -3
- package/dist/{key-C25gGlmV.js → key-C5cRHj8g.js} +2 -2
- package/dist/{key-CbnQpdZy.js → key-CRhmBE03.js} +2 -2
- package/dist/{key-DqqCoLbc.cjs → key-Ci8OyUTB.cjs} +2 -2
- package/dist/{key-DOPWTj2e.js → key-DWPlWnFQ.js} +4 -4
- package/dist/{keycache-CoMI1L_W.js → keycache-rO8ea311.js} +1 -1
- package/dist/{keys-CMahfArj.js → keys-CWdCy_3n.js} +1 -1
- package/dist/{ld-WZpO-MzE.js → ld-BWADNtQr.js} +2 -2
- package/dist/{lookup-WoJkw8wY.js → lookup-BBTRFcU5.js} +1 -1
- package/dist/{lookup-D_w567L8.cjs → lookup-CILOZed9.cjs} +1 -1
- package/dist/{lookup-y6-PEpxS.js → lookup-RINL4MOa.js} +1 -1
- package/dist/{middleware-CjgR6ayA.js → middleware-Bcv0xCjs.js} +35 -36
- package/dist/middleware-Be9qUuwL.cjs +17 -0
- package/dist/{middleware-Cj9WC_iX.js → middleware-BfhSHVoJ.js} +36 -37
- package/dist/middleware-CWlljVpG.js +26 -0
- package/dist/{middleware-CWlrInU2.cjs → middleware-DDyUhxsm.cjs} +36 -37
- package/dist/middleware-Dm7sDAVJ.js +17 -0
- package/dist/{mod-BojaEE1l.d.cts → mod-COTXAYRl.d.cts} +1 -1
- package/dist/{mod-tWXEItkO.d.ts → mod-o-hx_hU8.d.ts} +1 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +3 -3
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-CPBOVM7l.js → owner-QEQV9vx-.js} +2 -2
- package/dist/{proof-CpmDDzvf.js → proof-B_9fbF3f.js} +3 -3
- package/dist/{proof-h0JvKPRP.js → proof-g2_9VhUQ.js} +2 -2
- package/dist/{proof-BLoRsaYR.cjs → proof-v3B5cJ3c.cjs} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-CD-m2vwX.js → send-cTLNXtTp.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +119 -86
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DvTABhvG.js → testing-CNtyBr2m.js} +2 -2
- package/dist/{type-BCazg_Pu.js → type-C5udJemk.js} +186 -186
- package/dist/{types-F8JMlP-f.cjs → types-C9w81XqW.cjs} +1 -1
- package/dist/{types-BsM0mf3R.js → types-DHq9gRM4.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-C-qxDq1m.cjs → vocab-BoyCE2Rn.cjs} +3 -3
- package/dist/{vocab-DdTdRfBW.js → vocab-DxoBe7PI.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.cts +1 -1
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.d.cts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/key-CHU24Npw.cjs +0 -10
- package/dist/middleware-BYEKw_OJ.js +0 -17
- package/dist/middleware-DbxA0Z6o.js +0 -26
- package/dist/middleware-hTlyJu9R.cjs +0 -17
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-C5udJemk.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-Bcv0xCjs.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
|
13
|
+
import "../client-BWusKCWF.js";
|
|
14
|
+
import { RouterError, lookupObject } from "../lookup-RINL4MOa.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-CQzdjHs3.js";
|
|
17
|
+
import "../key-C5cRHj8g.js";
|
|
18
|
+
import { signRequest, verifyRequest } from "../http-BiKoa3o_.js";
|
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-CzmsYrAn.js";
|
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BWADNtQr.js";
|
|
21
|
+
import { doesActorOwnKey } from "../owner-QEQV9vx-.js";
|
|
22
|
+
import { signObject, verifyObject } from "../proof-g2_9VhUQ.js";
|
|
23
|
+
import "../inbox-CzGsgKH-.js";
|
|
24
|
+
import "../builder-D2Oyy8AY.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-rO8ea311.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-cTLNXtTp.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-CNtyBr2m.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
34
34
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
36
|
-
import { esm_default } from "../esm-
|
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CWdCy_3n.js";
|
|
36
|
+
import { esm_default } from "../esm-BBVcrjH8.js";
|
|
37
37
|
|
|
38
38
|
//#region src/testing/fixtures/example.com/person.json
|
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('../docloader-
|
|
7
|
-
require('../actor-
|
|
8
|
-
const require_middleware = require('../middleware-
|
|
9
|
-
require('../lookup-
|
|
10
|
-
require('../key-
|
|
11
|
-
require('../http-
|
|
12
|
-
require('../proof-
|
|
6
|
+
require('../docloader-NcFUThCx.cjs');
|
|
7
|
+
require('../actor-DU96UQUE.cjs');
|
|
8
|
+
const require_middleware = require('../middleware-DDyUhxsm.cjs');
|
|
9
|
+
require('../lookup-CILOZed9.cjs');
|
|
10
|
+
require('../key-Ci8OyUTB.cjs');
|
|
11
|
+
require('../http-LVXxICJn.cjs');
|
|
12
|
+
require('../proof-v3B5cJ3c.cjs');
|
|
13
13
|
const require_federation = require('../federation-H2_En3j5.cjs');
|
|
14
|
-
require('../types-
|
|
15
|
-
require('../authdocloader-
|
|
16
|
-
require('../vocab-
|
|
14
|
+
require('../types-C9w81XqW.cjs');
|
|
15
|
+
require('../authdocloader-BkOerKL-.cjs');
|
|
16
|
+
require('../vocab-BoyCE2Rn.cjs');
|
|
17
17
|
|
|
18
18
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
19
19
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -7,7 +7,7 @@ import "../http-B1_DzfAU.cjs";
|
|
|
7
7
|
import "../owner-6KSEp9eV.cjs";
|
|
8
8
|
import "../mod-BUbqxBev.cjs";
|
|
9
9
|
import "../mod-jQ4OODsl.cjs";
|
|
10
|
-
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, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems,
|
|
10
|
+
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, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Qnv814-p.cjs";
|
|
11
11
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-B7R1Q-M5.cjs";
|
|
12
12
|
import "../mod-C2tOeRkN.cjs";
|
|
13
|
-
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, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue,
|
|
13
|
+
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, IdempotencyKeyCallback, IdempotencyStrategy, 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, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import "../http-wsGR6KkT.js";
|
|
|
9
9
|
import "../owner-BbeUDvOu.js";
|
|
10
10
|
import "../mod-CDObsV1d.js";
|
|
11
11
|
import "../mod-DBzN0aCM.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, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems,
|
|
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, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-C51zGhGC.js";
|
|
13
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, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue,
|
|
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, IdempotencyKeyCallback, IdempotencyStrategy, 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, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-BFT6d7J5.js";
|
|
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-
|
|
6
|
+
import "../docloader-isD0ntZv.js";
|
|
7
|
+
import "../actor-B0LpLKRw.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BfhSHVoJ.js";
|
|
9
|
+
import "../lookup-BBTRFcU5.js";
|
|
10
|
+
import "../key-CRhmBE03.js";
|
|
11
|
+
import "../http-MyYS6o7t.js";
|
|
12
|
+
import "../proof-B_9fbF3f.js";
|
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-D1U8YY9t.js";
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
14
|
+
import "../types-DHq9gRM4.js";
|
|
15
|
+
import "../authdocloader-DI67R2Ku.js";
|
|
16
|
+
import "../vocab-DxoBe7PI.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-C5udJemk.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import "../lookup-RINL4MOa.js";
|
|
11
|
+
import { test } from "../testing-CNtyBr2m.js";
|
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-C5udJemk.js";
|
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../lookup-
|
|
8
|
+
import "../lookup-RINL4MOa.js";
|
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-CNtyBr2m.js";
|
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
12
12
|
|
|
13
13
|
//#region src/federation/retry.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-C5udJemk.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { Router, RouterError } from "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { Router, RouterError } from "../lookup-RINL4MOa.js";
|
|
11
|
+
import { test } from "../testing-CNtyBr2m.js";
|
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-C5udJemk.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-RINL4MOa.js";
|
|
11
|
+
import "../actor-CQzdjHs3.js";
|
|
12
|
+
import "../key-C5cRHj8g.js";
|
|
13
|
+
import { verifyRequest } from "../http-BiKoa3o_.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-QEQV9vx-.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-cTLNXtTp.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-CNtyBr2m.js";
|
|
17
17
|
import "../std__assert-X-_kMxKM.js";
|
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
19
19
|
import "../assert_is_error-BPGph1Jx.js";
|
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
21
21
|
import "../assert_throws-BOO88avQ.js";
|
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
23
|
-
import { esm_default } from "../esm-
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CWdCy_3n.js";
|
|
23
|
+
import { esm_default } from "../esm-BBVcrjH8.js";
|
|
24
24
|
|
|
25
25
|
//#region src/federation/send.test.ts
|
|
26
26
|
test("extractInboxes()", () => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, deno_default } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-C5udJemk.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-C5cRHj8g.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
7
|
-
const require_actor = require('./actor-
|
|
8
|
-
const require_key = require('./key-
|
|
6
|
+
const require_docloader = require('./docloader-NcFUThCx.cjs');
|
|
7
|
+
const require_actor = require('./actor-DU96UQUE.cjs');
|
|
8
|
+
const require_key = require('./key-Ci8OyUTB.cjs');
|
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
10
10
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
11
11
|
const byte_encodings_base64 = require_chunk.__toESM(require("byte-encodings/base64"));
|
|
@@ -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-isD0ntZv.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-B0LpLKRw.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CRhmBE03.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";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, deno_default, getTypeId } from "./type-
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-C5udJemk.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./docloader-NcFUThCx.cjs');
|
|
6
|
+
require('./actor-DU96UQUE.cjs');
|
|
7
|
+
require('./lookup-CILOZed9.cjs');
|
|
8
|
+
const require_key = require('./key-Ci8OyUTB.cjs');
|
|
9
|
+
|
|
10
|
+
exports.validateCryptoKey = require_key.validateCryptoKey;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "./type-
|
|
7
|
-
import "./actor-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
6
|
+
import "./type-C5udJemk.js";
|
|
7
|
+
import "./actor-CQzdjHs3.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-C5cRHj8g.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-C5udJemk.js";
|
|
7
|
+
import { isActor } from "./actor-CQzdjHs3.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@
|
|
|
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-isD0ntZv.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-B0LpLKRw.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
7
|
-
const require_actor = require('./actor-
|
|
6
|
+
const require_docloader = require('./docloader-NcFUThCx.cjs');
|
|
7
|
+
const require_actor = require('./actor-DU96UQUE.cjs');
|
|
8
8
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
9
9
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
10
10
|
|
|
@@ -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-isD0ntZv.js";
|
|
6
|
+
import "./actor-B0LpLKRw.js";
|
|
7
|
+
import "./lookup-BBTRFcU5.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CRhmBE03.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "./type-
|
|
6
|
+
import { CryptographicKey, Multikey } from "./type-C5udJemk.js";
|
|
7
7
|
|
|
8
8
|
//#region src/federation/keycache.ts
|
|
9
9
|
var KvKeyCache = class {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./type-
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-C5udJemk.js";
|
|
7
7
|
|
|
8
8
|
//#region src/testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-C5udJemk.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-C5cRHj8g.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";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-isD0ntZv.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
6
|
+
const require_docloader = require('./docloader-NcFUThCx.cjs');
|
|
7
7
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
8
8
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-
|
|
6
|
+
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-C5udJemk.js";
|
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
8
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-C5udJemk.js";
|
|
7
|
+
import { getNodeInfo } from "./client-BWusKCWF.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-RINL4MOa.js";
|
|
9
9
|
import { nodeInfoToJson } from "./types-BIgY6c-l.js";
|
|
10
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
11
|
-
import { verifyRequest } from "./http-
|
|
12
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
13
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
14
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
15
|
-
import { signObject, verifyObject } from "./proof-
|
|
16
|
-
import { routeActivity } from "./inbox-
|
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-C5cRHj8g.js";
|
|
11
|
+
import { verifyRequest } from "./http-BiKoa3o_.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CzmsYrAn.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BWADNtQr.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-QEQV9vx-.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-g2_9VhUQ.js";
|
|
16
|
+
import { routeActivity } from "./inbox-CzGsgKH-.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-D2Oyy8AY.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-rO8ea311.js";
|
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-cTLNXtTp.js";
|
|
22
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
23
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
24
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -905,7 +905,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
905
905
|
/**
|
|
906
906
|
* Handles a custom collection request.
|
|
907
907
|
* @template TItem The type of items in the collection.
|
|
908
|
-
* @template
|
|
908
|
+
* @template TParam The parameter names of the requested URL.
|
|
909
909
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
910
910
|
* @template TContextData The context data to pass to the `TContext`.
|
|
911
911
|
* @param request The HTTP request.
|
|
@@ -924,7 +924,7 @@ async function _handleCustomCollection(request, { name, values, context: context
|
|
|
924
924
|
/**
|
|
925
925
|
* Handles an ordered collection request.
|
|
926
926
|
* @template TItem The type of items in the collection.
|
|
927
|
-
* @template
|
|
927
|
+
* @template TParam The parameter names of the requested URL.
|
|
928
928
|
* @template TContext The type of the context, extending {@link RequestContext}.
|
|
929
929
|
* @template TContextData The context data to pass to the `TContext`.
|
|
930
930
|
* @param request The HTTP request.
|
|
@@ -945,7 +945,7 @@ async function _handleOrderedCollection(request, { name, values, context: contex
|
|
|
945
945
|
* The main flow is on `getCollection`, `dispatch`.
|
|
946
946
|
*
|
|
947
947
|
* @template TItem The type of items in the collection.
|
|
948
|
-
* @template
|
|
948
|
+
* @template TParam The parameter names of the requested URL.
|
|
949
949
|
* @template TContext The type of the context. {@link Context} or {@link RequestContext}.
|
|
950
950
|
* @template TContextData The context data to pass to the `TContext`.
|
|
951
951
|
* @template TCollection The type of the collection, extending {@link Collection}.
|
|
@@ -979,14 +979,14 @@ var CustomCollectionHandler = class {
|
|
|
979
979
|
#collection = null;
|
|
980
980
|
/**
|
|
981
981
|
* Creates a new CustomCollection instance.
|
|
982
|
-
* @param
|
|
983
|
-
* @param
|
|
984
|
-
* @param
|
|
985
|
-
* @param
|
|
986
|
-
* @param
|
|
987
|
-
* @param
|
|
988
|
-
* @param
|
|
989
|
-
* @param
|
|
982
|
+
* @param name The name of the collection.
|
|
983
|
+
* @param values The parameter values for the collection.
|
|
984
|
+
* @param context The request context.
|
|
985
|
+
* @param callbacks The collection callbacks.
|
|
986
|
+
* @param tracerProvider The tracer provider for telemetry.
|
|
987
|
+
* @param Collection The Collection constructor.
|
|
988
|
+
* @param CollectionPage The CollectionPage constructor.
|
|
989
|
+
* @param filterPredicate Optional filter predicate for items.
|
|
990
990
|
*/
|
|
991
991
|
constructor(name, values, context$1, callbacks, tracerProvider = trace.getTracerProvider(), Collection$1, CollectionPage$1, filterPredicate) {
|
|
992
992
|
this.name = name;
|
|
@@ -1111,7 +1111,7 @@ var CustomCollectionHandler = class {
|
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Creates a function to wrap the dispatcher so tracing can be applied.
|
|
1113
1113
|
* @param params Parameters including cursor and total items.
|
|
1114
|
-
* @returns
|
|
1114
|
+
* @returns A function that handles the span operation.
|
|
1115
1115
|
*/
|
|
1116
1116
|
spanPages = ({ totalItems = null, cursor = null }) => async (span) => {
|
|
1117
1117
|
try {
|
|
@@ -1132,23 +1132,23 @@ var CustomCollectionHandler = class {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Dispatches the collection request to get items.
|
|
1135
|
-
* @param
|
|
1136
|
-
* @returns
|
|
1135
|
+
* @param cursor The cursor for pagination, or null for the first page.
|
|
1136
|
+
* @returns A promise that resolves to the page items.
|
|
1137
1137
|
*/
|
|
1138
1138
|
async dispatch(cursor = null) {
|
|
1139
1139
|
return await this.#dispatcher(this.context, this.values, cursor) ?? new ItemsNotFoundError().throw();
|
|
1140
1140
|
}
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Filters the items in the collection.
|
|
1143
|
-
* @param
|
|
1144
|
-
* @returns
|
|
1143
|
+
* @param items The items to filter.
|
|
1144
|
+
* @returns The filtered items.
|
|
1145
1145
|
*/
|
|
1146
1146
|
filterItems(items) {
|
|
1147
1147
|
return filterCollectionItems(items, this.name, this.filterPredicate);
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Appends a cursor to the URL if it exists.
|
|
1151
|
-
* @param
|
|
1151
|
+
* @param cursor The cursor to append, or null/undefined.
|
|
1152
1152
|
* @returns The URL with cursor appended, or null if cursor is null/undefined.
|
|
1153
1153
|
*/
|
|
1154
1154
|
appendToUrl(cursor) {
|
|
@@ -1156,8 +1156,7 @@ var CustomCollectionHandler = class {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Gets the stored collection or collection page.
|
|
1159
|
-
* @returns
|
|
1160
|
-
the collection or collection page.
|
|
1159
|
+
* @returns A promise that resolves to the collection or collection page.
|
|
1161
1160
|
*/
|
|
1162
1161
|
get collection() {
|
|
1163
1162
|
if (this.#collection === null) this.#collection = this.getCollection();
|
|
@@ -1165,8 +1164,8 @@ var CustomCollectionHandler = class {
|
|
|
1165
1164
|
}
|
|
1166
1165
|
/**
|
|
1167
1166
|
* Gets the total number of items in the collection.
|
|
1168
|
-
* @returns
|
|
1169
|
-
|
|
1167
|
+
* @returns A promise that resolves to the total items count,
|
|
1168
|
+
* or null if not available.
|
|
1170
1169
|
*/
|
|
1171
1170
|
get totalItems() {
|
|
1172
1171
|
if (this.#totalItems === void 0) this.totalItems = this.callbacks.counter?.(this.context, this.values);
|
|
@@ -1182,8 +1181,8 @@ var CustomCollectionHandler = class {
|
|
|
1182
1181
|
}
|
|
1183
1182
|
/**
|
|
1184
1183
|
* Gets the first cursor for pagination.
|
|
1185
|
-
* @returns
|
|
1186
|
-
or null if not available.
|
|
1184
|
+
* @returns A promise that resolves to the first cursor,
|
|
1185
|
+
* or null if not available.
|
|
1187
1186
|
*/
|
|
1188
1187
|
get firstCursor() {
|
|
1189
1188
|
const cursor = this.callbacks.firstCursor?.(this.context, this.values);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./transformers-CoBS-oFG.cjs');
|
|
6
|
+
require('./docloader-NcFUThCx.cjs');
|
|
7
|
+
require('./actor-DU96UQUE.cjs');
|
|
8
|
+
const require_middleware = require('./middleware-DDyUhxsm.cjs');
|
|
9
|
+
require('./lookup-CILOZed9.cjs');
|
|
10
|
+
require('./key-Ci8OyUTB.cjs');
|
|
11
|
+
require('./http-LVXxICJn.cjs');
|
|
12
|
+
require('./proof-v3B5cJ3c.cjs');
|
|
13
|
+
require('./types-C9w81XqW.cjs');
|
|
14
|
+
require('./authdocloader-BkOerKL-.cjs');
|
|
15
|
+
require('./vocab-BoyCE2Rn.cjs');
|
|
16
|
+
|
|
17
|
+
exports.FederationImpl = require_middleware.FederationImpl;
|