@fedify/fedify 1.7.0-pr.251.886 → 1.7.1
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-tT_B0pDn.d.ts → actor-CPpvuBKU.d.ts} +2 -2
- package/dist/{actor-5-FAuRf4.js → actor-DJ6mmedC.js} +3 -3
- package/dist/{actor-vbzjuRVs.js → actor-FH-WAej8.js} +199 -184
- package/dist/{authdocloader-D-1CDzwt.js → authdocloader-B2T4fRiV.js} +3 -3
- package/dist/{authdocloader-BCjWsAbK.js → authdocloader-Cva-rcRS.js} +3 -3
- package/dist/{builder-CWndROqP.js → builder-Bxqu7L34.js} +3 -3
- package/dist/{client-DQa0LNir.js → client-BBJ_ctrO.js} +2 -2
- package/dist/{client-Cd552pKL.d.ts → client-DvtwXO7t.d.ts} +1 -1
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/transformers.test.js +21 -21
- package/dist/{context-BtMgfseO.js → context-B739pNLj.js} +2 -2
- package/dist/{context-DdICJaUT.d.ts → context-DPggmpB4.d.ts} +28 -9
- package/dist/{docloader-CdsC_SRJ.js → docloader-BgWr0qQ3.js} +1 -1
- package/dist/{docloader-BJ8NylDw.js → docloader-DxTy1bGA.js} +1 -1
- package/dist/{docloader-DlUDOVSe.d.ts → docloader-Q42SMRIB.d.ts} +2 -2
- package/dist/{esm-Btx3E8og.js → esm-CASHO3OR.js} +18 -12
- package/dist/federation/builder.test.js +29 -7
- package/dist/federation/collection.test.js +1 -1
- package/dist/federation/handler.test.js +27 -24
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +5 -5
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +61 -24
- package/dist/federation/mod.d.ts +10 -10
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +1 -1
- package/dist/federation/retry.test.js +1 -1
- package/dist/federation/router.test.js +1 -1
- package/dist/federation/send.test.js +11 -11
- package/dist/{federation-lZOZyLAo.js → federation-BRIQn-GV.js} +1 -1
- package/dist/{http-BkUCISGt.d.ts → http-B8EiSgi2.d.ts} +2 -2
- package/dist/{http-D31adQ9m.js → http-BPd76BIt.js} +4 -4
- package/dist/{http-hoUn8iUC.js → http-Chg5U8Wx.js} +4 -4
- package/dist/{inbox-Bms4Rzz4.js → inbox-D2RQ1NyQ.js} +2 -2
- package/dist/{key-Dhc8vzUw.js → key-B9mtw0-b.js} +2 -2
- package/dist/{key-rYOCY-hi.js → key-D-h4mrRd.js} +3 -3
- package/dist/{key-Dl5NFtcR.js → key-DNgCtcP7.js} +4 -4
- package/dist/{key-BizNDJoH.js → key-Dv7epGVT.js} +5 -5
- package/dist/{keycache-8o75IpyO.js → keycache-Cq2U1tmp.js} +1 -1
- package/dist/{keys-BKAHqM62.js → keys-CfOe8IKQ.js} +1 -1
- package/dist/{kv-DohFOP2C.js → kv-BMY6Qf_A.js} +1 -1
- package/dist/{kv-p8sC8PTT.d.ts → kv-DRaeSXco.d.ts} +4 -4
- package/dist/{ld-A7VhPKHt.js → ld-Cs2oMjm8.js} +3 -3
- package/dist/{lookup-vJccIKCS.d.ts → lookup-Bf-K85bV.d.ts} +1 -1
- package/dist/{lookup-CPeufLlL.js → lookup-CMhbSsjq.js} +1 -1
- package/dist/{lookup-ITcjtTkl.js → lookup-CRsouEvW.js} +3 -3
- package/dist/{lookup-Daj8VQd5.js → lookup-DzYh3ckU.js} +1 -1
- package/dist/middleware-B2N0auVt.js +17 -0
- package/dist/middleware-Bivw_mmU.js +33 -0
- package/dist/{middleware-CO_CI9yz.js → middleware-ClTqAmPH.js} +16 -14
- package/dist/{middleware-DT7wvoCV.js → middleware-JPXtuFkW.js} +22 -20
- package/dist/{mod-BTHfUeLo.d.ts → mod-C2drFqH8.d.ts} +2 -2
- package/dist/{mod-DSPyncxx.d.ts → mod-CDzlVCUF.d.ts} +2 -2
- package/dist/{mod-5orySGMZ.d.ts → mod-CbjCOiVh.d.ts} +2 -2
- package/dist/{mod-BUTm-sog.d.ts → mod-sEI6_uZ2.d.ts} +3 -3
- package/dist/mod.d.ts +13 -13
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +22 -22
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +2 -2
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-Df3xRLIJ.js → owner-B2YEI2nJ.js} +3 -3
- package/dist/{owner-CbRc94FP.d.ts → owner-D0cOz8R5.d.ts} +3 -3
- package/dist/{proof-Mnk9Grq5.js → proof-CYQxh247.js} +3 -3
- package/dist/{proof-X7M5KbVO.js → proof-eAH6MFFz.js} +3 -3
- package/dist/runtime/authdocloader.test.js +10 -10
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +6 -6
- package/dist/runtime/langstr.test.js +1 -1
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +1 -1
- package/dist/runtime/url.test.js +1 -1
- package/dist/{semver-CbbIgUsa.js → semver-DWClQt_5.js} +2 -2
- package/dist/{send-0SSru5CD.js → send-DM_9LVgC.js} +2 -2
- package/dist/sig/http.test.js +15 -15
- package/dist/sig/key.test.js +7 -7
- package/dist/sig/ld.test.js +8 -8
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +9 -9
- package/dist/sig/proof.test.js +9 -9
- package/dist/testing/docloader.test.js +1 -1
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-jcGLO9Lp.js → testing-BZ0dJ4qn.js} +1 -1
- package/dist/{types-CqoqWDkp.js → types-C7C_l-jz.js} +1 -1
- package/dist/{types-C7WKHGmD.js → types-DhrpS_c_.js} +3 -3
- package/dist/vocab/actor.test.js +7 -7
- package/dist/vocab/announce.yaml +3 -1
- package/dist/vocab/create.yaml +3 -1
- package/dist/vocab/delete.yaml +3 -1
- package/dist/vocab/lookup.test.js +6 -6
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +3 -1
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/update.yaml +3 -1
- package/dist/vocab/vocab.test.js +73 -36
- package/dist/{vocab-D6Yp14Di.js → vocab-BrWaMp7c.js} +199 -184
- package/dist/{vocab-DSFLLLe6.d.ts → vocab-CzEfWQk2.d.ts} +1 -1
- package/dist/{vocab-g1ubBONs.js → vocab-k4NwiO6p.js} +3 -3
- package/dist/webfinger/handler.test.js +22 -22
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +1 -1
- package/dist/x/hono.d.ts +10 -10
- package/dist/x/sveltekit.d.ts +10 -10
- package/package.json +2 -2
- package/dist/middleware-B0SwYDk5.js +0 -17
- package/dist/middleware-DDwAHKV5.js +0 -33
@@ -6,42 +6,42 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { MemoryKvStore } from "../kv-
|
10
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, createFederation } from "../middleware-
|
11
|
-
import { FetchError, fetchDocumentLoader } from "../docloader-
|
9
|
+
import { MemoryKvStore } from "../kv-BMY6Qf_A.js";
|
10
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-JPXtuFkW.js";
|
11
|
+
import { FetchError, fetchDocumentLoader } from "../docloader-DxTy1bGA.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
|
-
import "../semver-
|
14
|
-
import "../client-
|
13
|
+
import "../semver-DWClQt_5.js";
|
14
|
+
import "../client-BBJ_ctrO.js";
|
15
15
|
import { RouterError } from "../router-D_aVZZUc.js";
|
16
|
-
import "../types-
|
16
|
+
import "../types-C7C_l-jz.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-
|
18
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-BrWaMp7c.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-CMhbSsjq.js";
|
21
21
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import { signRequest, verifyRequest } from "../http-
|
25
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
26
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
27
|
-
import { doesActorOwnKey } from "../owner-
|
28
|
-
import { signObject, verifyObject } from "../proof-
|
29
|
-
import { lookupObject } from "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-DJ6mmedC.js";
|
23
|
+
import "../key-D-h4mrRd.js";
|
24
|
+
import { signRequest, verifyRequest } from "../http-Chg5U8Wx.js";
|
25
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-B2T4fRiV.js";
|
26
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-Cs2oMjm8.js";
|
27
|
+
import { doesActorOwnKey } from "../owner-B2YEI2nJ.js";
|
28
|
+
import { signObject, verifyObject } from "../proof-eAH6MFFz.js";
|
29
|
+
import { lookupObject } from "../lookup-CRsouEvW.js";
|
30
|
+
import "../inbox-D2RQ1NyQ.js";
|
31
|
+
import "../builder-Bxqu7L34.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-Cq2U1tmp.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
36
|
-
import { test } from "../testing-
|
35
|
+
import "../send-DM_9LVgC.js";
|
36
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
37
37
|
import { assertStrictEquals } from "../std__assert-CHXwj7zk.js";
|
38
38
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
39
39
|
import "../assert_is_error-jyzqjHud.js";
|
40
40
|
import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
|
41
41
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
43
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
44
|
-
import { esm_default } from "../esm-
|
43
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CfOe8IKQ.js";
|
44
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
45
45
|
|
46
46
|
//#region testing/fixtures/example.com/person.json
|
47
47
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
@@ -933,7 +933,7 @@ test("Federation.setInboxListeners()", async (t) => {
|
|
933
933
|
privateKey: rsaPrivateKey2,
|
934
934
|
publicKey: rsaPublicKey2.publicKey
|
935
935
|
}]);
|
936
|
-
const error = new Error("test");
|
936
|
+
const error = /* @__PURE__ */ new Error("test");
|
937
937
|
const errors = [];
|
938
938
|
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
939
939
|
throw error;
|
@@ -1742,5 +1742,42 @@ test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
1742
1742
|
});
|
1743
1743
|
esm_default.hardReset();
|
1744
1744
|
});
|
1745
|
+
test("KvSpecDeterminer", async (t) => {
|
1746
|
+
await t.step("should use default spec when not found in KV", async () => {
|
1747
|
+
const kv = new MemoryKvStore();
|
1748
|
+
const prefix = ["test", "spec"];
|
1749
|
+
const determiner = new KvSpecDeterminer(kv, prefix);
|
1750
|
+
const spec = await determiner.determineSpec("example.com");
|
1751
|
+
assertEquals(spec, "rfc9421");
|
1752
|
+
});
|
1753
|
+
await t.step("should use custom default spec", async () => {
|
1754
|
+
const kv = new MemoryKvStore();
|
1755
|
+
const prefix = ["test", "spec"];
|
1756
|
+
const determiner = new KvSpecDeterminer(kv, prefix, "draft-cavage-http-signatures-12");
|
1757
|
+
const spec = await determiner.determineSpec("example.com");
|
1758
|
+
assertEquals(spec, "draft-cavage-http-signatures-12");
|
1759
|
+
});
|
1760
|
+
await t.step("should remember and retrieve spec from KV", async () => {
|
1761
|
+
const kv = new MemoryKvStore();
|
1762
|
+
const prefix = ["test", "spec"];
|
1763
|
+
const determiner = new KvSpecDeterminer(kv, prefix);
|
1764
|
+
await determiner.rememberSpec("example.com", "draft-cavage-http-signatures-12");
|
1765
|
+
const spec = await determiner.determineSpec("example.com");
|
1766
|
+
assertEquals(spec, "draft-cavage-http-signatures-12");
|
1767
|
+
const defaultSpec = await determiner.determineSpec("other.com");
|
1768
|
+
assertEquals(defaultSpec, "rfc9421");
|
1769
|
+
});
|
1770
|
+
await t.step("should override remembered spec", async () => {
|
1771
|
+
const kv = new MemoryKvStore();
|
1772
|
+
const prefix = ["test", "spec"];
|
1773
|
+
const determiner = new KvSpecDeterminer(kv, prefix);
|
1774
|
+
await determiner.rememberSpec("example.com", "draft-cavage-http-signatures-12");
|
1775
|
+
let spec = await determiner.determineSpec("example.com");
|
1776
|
+
assertEquals(spec, "draft-cavage-http-signatures-12");
|
1777
|
+
await determiner.rememberSpec("example.com", "rfc9421");
|
1778
|
+
spec = await determiner.determineSpec("example.com");
|
1779
|
+
assertEquals(spec, "rfc9421");
|
1780
|
+
});
|
1781
|
+
});
|
1745
1782
|
|
1746
1783
|
//#endregion
|
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-
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-DRaeSXco.js";
|
4
|
+
import "../docloader-Q42SMRIB.js";
|
5
|
+
import "../client-DvtwXO7t.js";
|
6
|
+
import "../vocab-CzEfWQk2.js";
|
7
|
+
import "../actor-CPpvuBKU.js";
|
8
|
+
import "../http-B8EiSgi2.js";
|
9
|
+
import "../owner-D0cOz8R5.js";
|
10
|
+
import "../mod-CDzlVCUF.js";
|
11
|
+
import "../lookup-Bf-K85bV.js";
|
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-DPggmpB4.js";
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-DYKDDJmp.js";
|
14
14
|
import "../mod-g0xFzAP9.js";
|
15
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 };
|
package/dist/federation/mod.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import "../transformers-ghwJuzGY.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-
|
13
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-
|
14
|
-
import "../types-
|
15
|
-
import "../authdocloader-
|
16
|
-
import "../vocab-
|
6
|
+
import "../docloader-BgWr0qQ3.js";
|
7
|
+
import "../actor-FH-WAej8.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-ClTqAmPH.js";
|
9
|
+
import "../lookup-DzYh3ckU.js";
|
10
|
+
import "../key-B9mtw0-b.js";
|
11
|
+
import "../http-BPd76BIt.js";
|
12
|
+
import "../proof-CYQxh247.js";
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-BRIQn-GV.js";
|
14
|
+
import "../types-DhrpS_c_.js";
|
15
|
+
import "../authdocloader-Cva-rcRS.js";
|
16
|
+
import "../vocab-k4NwiO6p.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { test } from "../testing-
|
9
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
10
10
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-CHXwj7zk.js";
|
11
11
|
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
12
12
|
import "../assert_is_error-jyzqjHud.js";
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
import { AssertionError, assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { createExponentialBackoffPolicy } from "../retry-BiIhZWgD.js";
|
8
|
-
import { test } from "../testing-
|
8
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
9
9
|
import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
|
10
10
|
|
11
11
|
//#region federation/retry.test.ts
|
@@ -7,7 +7,7 @@ import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { Router, RouterError } from "../router-D_aVZZUc.js";
|
10
|
-
import { test } from "../testing-
|
10
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
11
11
|
import "../std__assert-CHXwj7zk.js";
|
12
12
|
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../assert_is_error-jyzqjHud.js";
|
@@ -6,27 +6,27 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DxTy1bGA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-
|
12
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-BrWaMp7c.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-CMhbSsjq.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
20
|
-
import { extractInboxes, sendActivity } from "../send-
|
21
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-DJ6mmedC.js";
|
17
|
+
import "../key-D-h4mrRd.js";
|
18
|
+
import { verifyRequest } from "../http-Chg5U8Wx.js";
|
19
|
+
import { doesActorOwnKey } from "../owner-B2YEI2nJ.js";
|
20
|
+
import { extractInboxes, sendActivity } from "../send-DM_9LVgC.js";
|
21
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
22
22
|
import "../std__assert-CHXwj7zk.js";
|
23
23
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
24
24
|
import "../assert_is_error-jyzqjHud.js";
|
25
25
|
import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
|
26
26
|
import "../assert_throws-gBPv3v2V.js";
|
27
27
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
29
|
-
import { esm_default } from "../esm-
|
28
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CfOe8IKQ.js";
|
29
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
30
30
|
|
31
31
|
//#region federation/send.test.ts
|
32
32
|
test("extractInboxes()", () => {
|
@@ -1,7 +1,7 @@
|
|
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-Q42SMRIB.js";
|
4
|
+
import { CryptographicKey, Multikey } from "./vocab-CzEfWQk2.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region sig/key.d.ts
|
@@ -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-BgWr0qQ3.js";
|
6
|
+
import { CryptographicKey } from "./actor-FH-WAej8.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-B9mtw0-b.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";
|
@@ -665,7 +665,7 @@ async function doubleKnock(request, identity, options = {}) {
|
|
665
665
|
integrity: request.integrity,
|
666
666
|
keepalive: request.keepalive
|
667
667
|
}), identity, options);
|
668
|
-
} else if (response.status === 400 || response.status === 401) {
|
668
|
+
} else if (response.status === 400 || response.status === 401 || response.status > 401) {
|
669
669
|
const spec = firstTrySpec === "draft-cavage-http-signatures-12" ? "rfc9421" : "draft-cavage-http-signatures-12";
|
670
670
|
getLogger([
|
671
671
|
"fedify",
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { CryptographicKey } from "./vocab-
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { deno_default } from "./docloader-DxTy1bGA.js";
|
7
|
+
import { CryptographicKey } from "./vocab-BrWaMp7c.js";
|
8
|
+
import { fetchKey, validateCryptoKey } from "./key-D-h4mrRd.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -666,7 +666,7 @@ async function doubleKnock(request, identity, options = {}) {
|
|
666
666
|
integrity: request.integrity,
|
667
667
|
keepalive: request.keepalive
|
668
668
|
}), identity, options);
|
669
|
-
} else if (response.status === 400 || response.status === 401) {
|
669
|
+
} else if (response.status === 400 || response.status === 401 || response.status > 401) {
|
670
670
|
const spec = firstTrySpec === "draft-cavage-http-signatures-12" ? "rfc9421" : "draft-cavage-http-signatures-12";
|
671
671
|
getLogger([
|
672
672
|
"fedify",
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-DxTy1bGA.js";
|
7
|
+
import { Activity } from "./vocab-BrWaMp7c.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
@@ -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-BgWr0qQ3.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-FH-WAej8.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-DxTy1bGA.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-BrWaMp7c.js";
|
8
|
+
import { isActor } from "./actor-DJ6mmedC.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -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-BgWr0qQ3.js";
|
6
|
+
import "./actor-FH-WAej8.js";
|
7
|
+
import "./lookup-DzYh3ckU.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-B9mtw0-b.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-DxTy1bGA.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-BrWaMp7c.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-CMhbSsjq.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-DJ6mmedC.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-D-h4mrRd.js";
|
15
15
|
|
16
16
|
export { validateCryptoKey };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey } from "./vocab-BrWaMp7c.js";
|
7
7
|
|
8
8
|
//#region 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 "./vocab-
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./vocab-BrWaMp7c.js";
|
7
7
|
|
8
8
|
//#region testing/keys.ts
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
|
4
4
|
//#region federation/kv.d.ts
|
5
5
|
/**
|
6
|
-
* A key for a key
|
6
|
+
* A key for a key–value store. An array of one or more strings.
|
7
7
|
*
|
8
8
|
* @since 0.5.0
|
9
9
|
*/
|
10
10
|
type KvKey = readonly [string] | readonly [string, ...string[]];
|
11
11
|
/**
|
12
|
-
* Additional options for setting a value in a key
|
12
|
+
* Additional options for setting a value in a key–value store.
|
13
13
|
*
|
14
14
|
* @since 0.5.0
|
15
15
|
*/
|
@@ -20,7 +20,7 @@ interface KvStoreSetOptions {
|
|
20
20
|
ttl?: Temporal.Duration;
|
21
21
|
}
|
22
22
|
/**
|
23
|
-
* An abstract interface for a key
|
23
|
+
* An abstract interface for a key–value store.
|
24
24
|
*
|
25
25
|
* @since 0.5.0
|
26
26
|
*/
|
@@ -46,7 +46,7 @@ interface KvStore {
|
|
46
46
|
delete(key: KvKey): Promise<void>;
|
47
47
|
}
|
48
48
|
/**
|
49
|
-
* A key
|
49
|
+
* A key–value store that stores values in memory.
|
50
50
|
* Do not use this in production as it does not persist values.
|
51
51
|
*
|
52
52
|
* @since 0.5.0
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-DxTy1bGA.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-BrWaMp7c.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-D-h4mrRd.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { GetUserAgentOptions } from "./docloader-
|
3
|
+
import { GetUserAgentOptions } from "./docloader-Q42SMRIB.js";
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
5
5
|
|
6
6
|
//#region webfinger/jrd.d.ts
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getUserAgent } from "./docloader-
|
6
|
+
import { deno_default, getUserAgent } from "./docloader-DxTy1bGA.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Object as Object$1 } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-DxTy1bGA.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-BrWaMp7c.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-CMhbSsjq.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -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-BgWr0qQ3.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
6
|
+
import "./docloader-BgWr0qQ3.js";
|
7
|
+
import "./actor-FH-WAej8.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-ClTqAmPH.js";
|
9
|
+
import "./lookup-DzYh3ckU.js";
|
10
|
+
import "./key-B9mtw0-b.js";
|
11
|
+
import "./http-BPd76BIt.js";
|
12
|
+
import "./proof-CYQxh247.js";
|
13
|
+
import "./types-DhrpS_c_.js";
|
14
|
+
import "./authdocloader-Cva-rcRS.js";
|
15
|
+
import "./vocab-k4NwiO6p.js";
|
16
|
+
|
17
|
+
export { FederationImpl };
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-JPXtuFkW.js";
|
7
|
+
import "./docloader-DxTy1bGA.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-DWClQt_5.js";
|
10
|
+
import "./client-BBJ_ctrO.js";
|
11
|
+
import "./router-D_aVZZUc.js";
|
12
|
+
import "./types-C7C_l-jz.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-BrWaMp7c.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-CMhbSsjq.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-DJ6mmedC.js";
|
19
|
+
import "./key-D-h4mrRd.js";
|
20
|
+
import "./http-Chg5U8Wx.js";
|
21
|
+
import "./authdocloader-B2T4fRiV.js";
|
22
|
+
import "./ld-Cs2oMjm8.js";
|
23
|
+
import "./owner-B2YEI2nJ.js";
|
24
|
+
import "./proof-eAH6MFFz.js";
|
25
|
+
import "./lookup-CRsouEvW.js";
|
26
|
+
import "./inbox-D2RQ1NyQ.js";
|
27
|
+
import "./builder-Bxqu7L34.js";
|
28
|
+
import "./collection-Dfb0TPno.js";
|
29
|
+
import "./keycache-Cq2U1tmp.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-DM_9LVgC.js";
|
32
|
+
|
33
|
+
export { FederationImpl };
|