@fedify/fedify 2.0.0-pr.451.1735 → 2.0.0-pr.457.1754
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 +3 -0
- package/dist/{actor-BlCt_BFA.js → actor--EIM8WJq.js} +1 -1
- package/dist/{actor-qRieKMCS.js → actor-BkClSt23.js} +185 -185
- package/dist/{actor-SSKGPs2C.cjs → actor-C1V-Vbaa.cjs} +185 -185
- package/dist/{builder-Daev8Oe3.js → builder-Drp8J0wC.js} +3 -3
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +15 -15
- package/dist/{context-myrGWbL_.d.ts → context-DG0huGW-.d.ts} +15 -45
- package/dist/{context-BvYz3eOb.d.cts → context-DJ8aSy2Q.d.cts} +15 -45
- package/dist/{docloader-CuY-IQHN.js → docloader-BhDPeZk3.js} +2 -2
- package/dist/{esm-CO0P-prF.js → esm-D2byLwNf.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +16 -16
- package/dist/federation/idempotency.test.js +16 -16
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +17 -17
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.d.cts +1 -1
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http--W_KqmV8.js → http-CQraRgim.js} +2 -2
- package/dist/{http-cj5p1nm9.js → http-ChVy_Zs1.js} +2 -2
- package/dist/{http-CZRSpr-0.cjs → http-Dc-3AhVQ.cjs} +2 -2
- package/dist/{inbox-DCOu4Fxg.js → inbox-c2HespXf.js} +1 -1
- package/dist/{key-CLBIsQ2b.js → key-DfjYEehd.js} +2 -2
- package/dist/{keycache-C_E92fAZ.js → keycache-Bqod49Je.js} +1 -1
- package/dist/{keys-CESa8pOV.js → keys-DpfNqWw3.js} +1 -1
- package/dist/{kv-cache-6gn8hq87.cjs → kv-cache--YUzf-BE.cjs} +3 -2
- package/dist/{kv-cache-D6OS46Qp.js → kv-cache-BHyEN0Z7.js} +3 -2
- package/dist/{kv-cache-z0lgwFi_.js → kv-cache-DN9pfMBe.js} +2 -1
- package/dist/{ld-uohK5TcN.js → ld-DxH5pJEy.js} +2 -2
- package/dist/{lookup-Bp3gBRGD.js → lookup-C5pO70ss.js} +185 -186
- package/dist/{lookup-CfVdYD74.cjs → lookup-CHu82YNt.cjs} +1 -2
- package/dist/{lookup-B4NiLSoR.js → lookup-UlFMEz4S.js} +1 -2
- package/dist/middleware-BPWWS7Li.js +15 -0
- package/dist/middleware-BZRfF01Z.cjs +15 -0
- package/dist/{middleware-B5t3REnT.cjs → middleware-BjvG3FSg.cjs} +7 -7
- package/dist/{middleware-yd4xq6Dt.js → middleware-CnVcyowb.js} +12 -12
- package/dist/middleware-d26uv3fL.js +26 -0
- package/dist/{middleware-BEWbWO0t.js → middleware-f2BqmeAn.js} +7 -7
- package/dist/{mod-VastcQsk.d.cts → mod-0noXw66R.d.cts} +2 -2
- package/dist/{mod-BYynOiJG.d.ts → mod-B9M-8jm2.d.ts} +2 -2
- package/dist/{mod-k0Dk3fGk.d.ts → mod-BoHnwOCs.d.ts} +1 -1
- package/dist/{mod-DbFNTF7m.d.cts → mod-DJcZDvjA.d.cts} +1 -1
- package/dist/mod.cjs +7 -7
- package/dist/mod.d.cts +3 -3
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +15 -15
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-DMwt6EnB.js → owner-BqWkxhC_.js} +2 -2
- package/dist/{proof-DVvnQ6WP.cjs → proof-DHEZDAfy.cjs} +3 -3
- package/dist/{proof-BRMzWGtg.js → proof-DKHqWkww.js} +3 -3
- package/dist/{proof-X6v_1MA6.js → proof-DjnaYscE.js} +2 -2
- package/dist/{send-Cy3TUzxE.js → send-DG2jH3Yb.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +4 -4
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.js +6 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.d.ts +15 -45
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-BJJvJvZe.js → testing-CUOkRXmb.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +3 -3
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-BPtsEU8k.cjs → vocab-DWCgeSMU.cjs} +2 -2
- package/dist/{vocab-DFaqbY9O.js → vocab-HZjpFucb.js} +2 -2
- package/dist/webfinger/handler.test.js +15 -15
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/dist/x/cfworkers.test.js +2 -2
- 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 +4 -4
- package/dist/middleware-B86mRO81.cjs +0 -15
- package/dist/middleware-BzGmhttT.js +0 -26
- package/dist/middleware-DxFOBA0V.js +0 -15
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "../lookup-
|
6
|
+
import { CryptographicKey, Multikey } from "../lookup-C5pO70ss.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 { KvKeyCache } from "../keycache-
|
12
|
-
import { test } from "../testing-
|
11
|
+
import { KvKeyCache } from "../keycache-Bqod49Je.js";
|
12
|
+
import { test } from "../testing-CUOkRXmb.js";
|
13
13
|
|
14
14
|
//#region src/federation/keycache.test.ts
|
15
15
|
test("KvKeyCache.set()", async () => {
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { test } from "../testing-
|
11
|
+
import { test } from "../testing-CUOkRXmb.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
@@ -3,36 +3,36 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-
|
6
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-C5pO70ss.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-CnVcyowb.js";
|
12
12
|
import "../client-pY7-3icS.js";
|
13
13
|
import "../types-C2XVl6gj.js";
|
14
|
-
import "../actor
|
15
|
-
import "../key-
|
16
|
-
import { signRequest, verifyRequest } from "../http
|
17
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
18
|
-
import { doesActorOwnKey } from "../owner-
|
19
|
-
import { signObject, verifyObject } from "../proof-
|
20
|
-
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor--EIM8WJq.js";
|
15
|
+
import "../key-DfjYEehd.js";
|
16
|
+
import { signRequest, verifyRequest } from "../http-CQraRgim.js";
|
17
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-DxH5pJEy.js";
|
18
|
+
import { doesActorOwnKey } from "../owner-BqWkxhC_.js";
|
19
|
+
import { signObject, verifyObject } from "../proof-DjnaYscE.js";
|
20
|
+
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-BhDPeZk3.js";
|
21
|
+
import "../kv-cache-DN9pfMBe.js";
|
22
|
+
import "../inbox-c2HespXf.js";
|
23
|
+
import "../builder-Drp8J0wC.js";
|
24
24
|
import "../collection-BzWsN9pB.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-Bqod49Je.js";
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
28
|
-
import "../send-
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
28
|
+
import "../send-DG2jH3Yb.js";
|
29
|
+
import { mockDocumentLoader, test } from "../testing-CUOkRXmb.js";
|
30
30
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
35
|
-
import { esm_default } from "../esm-
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DpfNqWw3.js";
|
35
|
+
import { esm_default } from "../esm-D2byLwNf.js";
|
36
36
|
|
37
37
|
//#region src/testing/fixtures/example.com/create.json
|
38
38
|
var __context$2 = "https://www.w3.org/ns/activitystreams";
|
package/dist/federation/mod.cjs
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
5
|
require('../transformers-CoBS-oFG.cjs');
|
6
|
-
require('../lookup-
|
7
|
-
require('../actor-
|
8
|
-
const require_middleware = require('../middleware-
|
9
|
-
require('../http-
|
10
|
-
require('../proof-
|
6
|
+
require('../lookup-CHu82YNt.cjs');
|
7
|
+
require('../actor-C1V-Vbaa.cjs');
|
8
|
+
const require_middleware = require('../middleware-BjvG3FSg.cjs');
|
9
|
+
require('../http-Dc-3AhVQ.cjs');
|
10
|
+
require('../proof-DHEZDAfy.cjs');
|
11
11
|
const require_federation = require('../federation-CRpdnOMS.cjs');
|
12
12
|
require('../types-CWgzGaqk.cjs');
|
13
|
-
require('../kv-cache-
|
14
|
-
require('../vocab-
|
13
|
+
require('../kv-cache--YUzf-BE.cjs');
|
14
|
+
require('../vocab-DWCgeSMU.cjs');
|
15
15
|
|
16
16
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
17
17
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
@@ -5,7 +5,7 @@ import "../http-M8k5mKc0.cjs";
|
|
5
5
|
import "../owner-B4HbyP8s.cjs";
|
6
6
|
import "../mod-BxRCHTz-.cjs";
|
7
7
|
import "../mod-C58MZ7Wx.cjs";
|
8
|
-
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-
|
8
|
+
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-DJ8aSy2Q.cjs";
|
9
9
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-Bxr0Q87_.cjs";
|
10
10
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-DcJPkXD5.cjs";
|
11
11
|
import "../mod-B-hUPT2N.cjs";
|
package/dist/federation/mod.d.ts
CHANGED
@@ -7,7 +7,7 @@ import "../http-BbO0ejuk.js";
|
|
7
7
|
import "../owner-kQRGVXG1.js";
|
8
8
|
import "../mod-BlVovdcy.js";
|
9
9
|
import "../mod-Ds0mpFZU.js";
|
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-
|
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-DG0huGW-.js";
|
11
11
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-BKNZ-Tb-.js";
|
12
12
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-CUKlBw08.js";
|
13
13
|
import "../mod-CVgZgliM.js";
|
package/dist/federation/mod.js
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import "../transformers-BFT6d7J5.js";
|
6
|
-
import "../lookup-
|
7
|
-
import "../actor-
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
9
|
-
import "../http-
|
10
|
-
import "../proof-
|
6
|
+
import "../lookup-UlFMEz4S.js";
|
7
|
+
import "../actor-BkClSt23.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-f2BqmeAn.js";
|
9
|
+
import "../http-ChVy_Zs1.js";
|
10
|
+
import "../proof-DKHqWkww.js";
|
11
11
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-jcR8-ZxP.js";
|
12
12
|
import "../types-BtUjyi5y.js";
|
13
|
-
import "../kv-cache-
|
14
|
-
import "../vocab-
|
13
|
+
import "../kv-cache-BHyEN0Z7.js";
|
14
|
+
import "../vocab-HZjpFucb.js";
|
15
15
|
|
16
16
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.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 { test } from "../testing-
|
10
|
+
import { test } from "../testing-CUOkRXmb.js";
|
11
11
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-DWivtrGR.js";
|
12
12
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { acceptsJsonLd } from "../negotiation-C4nFufNk.js";
|
11
|
-
import { test } from "../testing-
|
11
|
+
import { test } from "../testing-CUOkRXmb.js";
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
13
13
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-C5pO70ss.js";
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { createExponentialBackoffPolicy } from "../retry-CfF8Gn4d.js";
|
9
|
-
import { test } from "../testing-
|
9
|
+
import { test } from "../testing-CUOkRXmb.js";
|
10
10
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
11
11
|
|
12
12
|
//#region src/federation/retry.test.ts
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Router, RouterError } from "../lookup-
|
6
|
+
import { Router, RouterError } from "../lookup-C5pO70ss.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 { test } from "../testing-
|
10
|
+
import { test } from "../testing-CUOkRXmb.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
@@ -3,22 +3,22 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../lookup-
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../lookup-C5pO70ss.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 "../actor
|
11
|
-
import "../key-
|
12
|
-
import { verifyRequest } from "../http
|
13
|
-
import { doesActorOwnKey } from "../owner-
|
14
|
-
import { extractInboxes, sendActivity } from "../send-
|
15
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor--EIM8WJq.js";
|
11
|
+
import "../key-DfjYEehd.js";
|
12
|
+
import { verifyRequest } from "../http-CQraRgim.js";
|
13
|
+
import { doesActorOwnKey } from "../owner-BqWkxhC_.js";
|
14
|
+
import { extractInboxes, sendActivity } from "../send-DG2jH3Yb.js";
|
15
|
+
import { mockDocumentLoader, test } from "../testing-CUOkRXmb.js";
|
16
16
|
import "../std__assert-DWivtrGR.js";
|
17
17
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
18
18
|
import "../assert_throws-BNXdRGWP.js";
|
19
19
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
20
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
21
|
-
import { esm_default } from "../esm-
|
20
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DpfNqWw3.js";
|
21
|
+
import { esm_default } from "../esm-D2byLwNf.js";
|
22
22
|
|
23
23
|
//#region src/federation/send.test.ts
|
24
24
|
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 "./lookup-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { CryptographicKey, deno_default } from "./lookup-C5pO70ss.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DfjYEehd.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";
|
@@ -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 } from "./lookup-
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
5
|
+
import { deno_default } from "./lookup-UlFMEz4S.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-BkClSt23.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
@@ -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_lookup = require('./lookup-
|
7
|
-
const require_actor = require('./actor-
|
6
|
+
const require_lookup = require('./lookup-CHu82YNt.cjs');
|
7
|
+
const require_actor = require('./actor-C1V-Vbaa.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
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, deno_default, getTypeId } from "./lookup-
|
6
|
+
import { Activity, deno_default, getTypeId } from "./lookup-C5pO70ss.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -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 } from "./lookup-
|
7
|
-
import { isActor } from "./actor
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default } from "./lookup-C5pO70ss.js";
|
7
|
+
import { isActor } from "./actor--EIM8WJq.js";
|
8
8
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./lookup-
|
6
|
+
import { CryptographicKey, Multikey } from "./lookup-C5pO70ss.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 } from "./lookup-
|
6
|
+
import { CryptographicKey, Multikey } from "./lookup-C5pO70ss.js";
|
7
7
|
import { importSpki } from "@fedify/vocab-runtime";
|
8
8
|
|
9
9
|
//#region src/testing/keys.ts
|
@@ -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_http = require('./http-
|
6
|
+
const require_http = require('./http-Dc-3AhVQ.cjs');
|
7
7
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
8
8
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
9
9
|
const es_toolkit = require_chunk.__toESM(require("es-toolkit"));
|
@@ -104,7 +104,8 @@ function kvCache({ loader, kv, prefix, rules }) {
|
|
104
104
|
};
|
105
105
|
}
|
106
106
|
function matchRule(url, rules) {
|
107
|
-
for (const [pattern,
|
107
|
+
for (const [pattern, d] of rules) {
|
108
|
+
const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
|
108
109
|
if (typeof pattern === "string") {
|
109
110
|
if (url === pattern) return duration;
|
110
111
|
continue;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { doubleKnock, validateCryptoKey } from "./http-
|
5
|
+
import { doubleKnock, validateCryptoKey } from "./http-ChVy_Zs1.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
|
8
8
|
import { curry } from "es-toolkit";
|
@@ -103,7 +103,8 @@ function kvCache({ loader, kv, prefix, rules }) {
|
|
103
103
|
};
|
104
104
|
}
|
105
105
|
function matchRule(url, rules) {
|
106
|
-
for (const [pattern,
|
106
|
+
for (const [pattern, d] of rules) {
|
107
|
+
const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
|
107
108
|
if (typeof pattern === "string") {
|
108
109
|
if (url === pattern) return duration;
|
109
110
|
continue;
|
@@ -75,7 +75,8 @@ function kvCache({ loader, kv, prefix, rules }) {
|
|
75
75
|
};
|
76
76
|
}
|
77
77
|
function matchRule(url, rules) {
|
78
|
-
for (const [pattern,
|
78
|
+
for (const [pattern, d] of rules) {
|
79
|
+
const duration = d instanceof Temporal.Duration ? d : Temporal.Duration.from(d);
|
79
80
|
if (typeof pattern === "string") {
|
80
81
|
if (url === pattern) return duration;
|
81
82
|
continue;
|
@@ -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, getTypeId } from "./lookup-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getTypeId } from "./lookup-C5pO70ss.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DfjYEehd.js";
|
8
8
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|