@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,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Router, RouterError, deno_default, getTypeId } from "./lookup-
|
7
|
-
import { InboxListenerSet } from "./inbox-
|
6
|
+
import { Router, RouterError, deno_default, getTypeId } from "./lookup-C5pO70ss.js";
|
7
|
+
import { InboxListenerSet } from "./inbox-c2HespXf.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
|
@@ -42,7 +42,7 @@ var FederationBuilderImpl = class {
|
|
42
42
|
this.collectionTypeIds = {};
|
43
43
|
}
|
44
44
|
async build(options) {
|
45
|
-
const { FederationImpl } = await import("./middleware-
|
45
|
+
const { FederationImpl } = await import("./middleware-d26uv3fL.js");
|
46
46
|
const f = new FederationImpl(options);
|
47
47
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
48
48
|
f.router = this.router.clone();
|
package/dist/compat/mod.d.cts
CHANGED
@@ -5,8 +5,8 @@ import "../http-M8k5mKc0.cjs";
|
|
5
5
|
import "../owner-B4HbyP8s.cjs";
|
6
6
|
import "../mod-BxRCHTz-.cjs";
|
7
7
|
import "../mod-C58MZ7Wx.cjs";
|
8
|
-
import { ActivityTransformer } from "../context-
|
8
|
+
import { ActivityTransformer } from "../context-DJ8aSy2Q.cjs";
|
9
9
|
import "../kv-Bxr0Q87_.cjs";
|
10
10
|
import "../mq-DcJPkXD5.cjs";
|
11
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
11
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DJcZDvjA.cjs";
|
12
12
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
@@ -7,8 +7,8 @@ import "../http-BbO0ejuk.js";
|
|
7
7
|
import "../owner-kQRGVXG1.js";
|
8
8
|
import "../mod-BlVovdcy.js";
|
9
9
|
import "../mod-Ds0mpFZU.js";
|
10
|
-
import { ActivityTransformer } from "../context-
|
10
|
+
import { ActivityTransformer } from "../context-DG0huGW-.js";
|
11
11
|
import "../kv-BKNZ-Tb-.js";
|
12
12
|
import "../mq-CUKlBw08.js";
|
13
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
13
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-BoHnwOCs.js";
|
14
14
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Follow, Person } from "../lookup-
|
6
|
+
import { Follow, Person } 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 { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } 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 "../http
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor--EIM8WJq.js";
|
15
|
+
import "../key-DfjYEehd.js";
|
16
|
+
import "../http-CQraRgim.js";
|
17
|
+
import "../ld-DxH5pJEy.js";
|
18
|
+
import "../owner-BqWkxhC_.js";
|
19
|
+
import "../proof-DjnaYscE.js";
|
20
|
+
import "../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 { test } from "../testing-
|
28
|
+
import "../send-DG2jH3Yb.js";
|
29
|
+
import { test } from "../testing-CUOkRXmb.js";
|
30
30
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
@@ -718,9 +718,7 @@ interface Federatable<TContextData> {
|
|
718
718
|
* must have one or more variables.
|
719
719
|
* @param dispatcher An object dispatcher callback to register.
|
720
720
|
*/
|
721
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
722
|
-
typeId: URL;
|
723
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
721
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
724
722
|
/**
|
725
723
|
* Registers an object dispatcher.
|
726
724
|
*
|
@@ -734,9 +732,7 @@ interface Federatable<TContextData> {
|
|
734
732
|
* must have one or more variables.
|
735
733
|
* @param dispatcher An object dispatcher callback to register.
|
736
734
|
*/
|
737
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
738
|
-
typeId: URL;
|
739
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
735
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
740
736
|
/**
|
741
737
|
* Registers an object dispatcher.
|
742
738
|
*
|
@@ -750,9 +746,7 @@ interface Federatable<TContextData> {
|
|
750
746
|
* must have one or more variables.
|
751
747
|
* @param dispatcher An object dispatcher callback to register.
|
752
748
|
*/
|
753
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
754
|
-
typeId: URL;
|
755
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
749
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
756
750
|
/**
|
757
751
|
* Registers an object dispatcher.
|
758
752
|
*
|
@@ -766,9 +760,7 @@ interface Federatable<TContextData> {
|
|
766
760
|
* must have one or more variables.
|
767
761
|
* @param dispatcher An object dispatcher callback to register.
|
768
762
|
*/
|
769
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
770
|
-
typeId: URL;
|
771
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
763
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
772
764
|
/**
|
773
765
|
* Registers an object dispatcher.
|
774
766
|
*
|
@@ -782,9 +774,7 @@ interface Federatable<TContextData> {
|
|
782
774
|
* must have one or more variables.
|
783
775
|
* @param dispatcher An object dispatcher callback to register.
|
784
776
|
*/
|
785
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
786
|
-
typeId: URL;
|
787
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
777
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
788
778
|
/**
|
789
779
|
* Registers an object dispatcher.
|
790
780
|
*
|
@@ -798,9 +788,7 @@ interface Federatable<TContextData> {
|
|
798
788
|
* must have one or more variables.
|
799
789
|
* @param dispatcher An object dispatcher callback to register.
|
800
790
|
*/
|
801
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
802
|
-
typeId: URL;
|
803
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
791
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
804
792
|
/**
|
805
793
|
* Registers an inbox dispatcher.
|
806
794
|
*
|
@@ -941,9 +929,7 @@ interface Federatable<TContextData> {
|
|
941
929
|
* The path must have one or more variables.
|
942
930
|
* @param dispatcher A collection dispatcher callback to register.
|
943
931
|
*/
|
944
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
945
|
-
typeId: URL;
|
946
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
932
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
947
933
|
/**
|
948
934
|
* Registers a collection of objects dispatcher.
|
949
935
|
*
|
@@ -958,9 +944,7 @@ interface Federatable<TContextData> {
|
|
958
944
|
* The path must have one or more variables.
|
959
945
|
* @param dispatcher A collection dispatcher callback to register.
|
960
946
|
*/
|
961
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
962
|
-
typeId: URL;
|
963
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
947
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
964
948
|
/**
|
965
949
|
* Registers a collection of objects dispatcher.
|
966
950
|
*
|
@@ -975,9 +959,7 @@ interface Federatable<TContextData> {
|
|
975
959
|
* The path must have one or more variables.
|
976
960
|
* @param dispatcher A collection dispatcher callback to register.
|
977
961
|
*/
|
978
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
979
|
-
typeId: URL;
|
980
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
962
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
981
963
|
/**
|
982
964
|
* Registers an ordered collection of objects dispatcher.
|
983
965
|
*
|
@@ -992,9 +974,7 @@ interface Federatable<TContextData> {
|
|
992
974
|
* The path must have one or more variables.
|
993
975
|
* @param dispatcher A collection dispatcher callback to register.
|
994
976
|
*/
|
995
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
996
|
-
typeId: URL;
|
997
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
977
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
998
978
|
/**
|
999
979
|
* Registers an ordered collection of objects dispatcher.
|
1000
980
|
*
|
@@ -1009,9 +989,7 @@ interface Federatable<TContextData> {
|
|
1009
989
|
* The path must have one or more variables.
|
1010
990
|
* @param dispatcher A collection dispatcher callback to register.
|
1011
991
|
*/
|
1012
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
1013
|
-
typeId: URL;
|
1014
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
992
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1015
993
|
/**
|
1016
994
|
* Registers an ordered collection of objects dispatcher.
|
1017
995
|
*
|
@@ -1026,9 +1004,7 @@ interface Federatable<TContextData> {
|
|
1026
1004
|
* The path must have one or more variables.
|
1027
1005
|
* @param dispatcher A collection dispatcher callback to register.
|
1028
1006
|
*/
|
1029
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
1030
|
-
typeId: URL;
|
1031
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1007
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1032
1008
|
}
|
1033
1009
|
/**
|
1034
1010
|
* An object that registers federation-related business logic and dispatches
|
@@ -1659,9 +1635,7 @@ interface Context<TContextData> {
|
|
1659
1635
|
* @throws {TypeError} If values are invalid.
|
1660
1636
|
* @since 0.7.0
|
1661
1637
|
*/
|
1662
|
-
getObjectUri<TObject extends Object$1>(cls:
|
1663
|
-
typeId: URL;
|
1664
|
-
}, values: Record<string, string>): URL;
|
1638
|
+
getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
|
1665
1639
|
/**
|
1666
1640
|
* Builds the URI of an actor's outbox with the given identifier.
|
1667
1641
|
* @param identifier The actor's identifier.
|
@@ -1975,9 +1949,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
|
|
1975
1949
|
* @throws {TypeError} If values are invalid.
|
1976
1950
|
* @since 0.7.0
|
1977
1951
|
*/
|
1978
|
-
getObject<TObject extends Object$1>(cls:
|
1979
|
-
typeId: URL;
|
1980
|
-
}, values: Record<string, string>): Promise<TObject | null>;
|
1952
|
+
getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
|
1981
1953
|
/**
|
1982
1954
|
* Gets the public key of the sender, if any exists and it is verified.
|
1983
1955
|
* Otherwise, `null` is returned.
|
@@ -2121,9 +2093,7 @@ type ParseUriResult =
|
|
2121
2093
|
* The case of an object URI.
|
2122
2094
|
*/ | {
|
2123
2095
|
readonly type: "object";
|
2124
|
-
readonly class:
|
2125
|
-
typeId: URL;
|
2126
|
-
};
|
2096
|
+
readonly class: ConstructorWithTypeId<Object$1>;
|
2127
2097
|
readonly typeId: URL;
|
2128
2098
|
readonly values: Record<string, string>;
|
2129
2099
|
}
|
@@ -716,9 +716,7 @@ interface Federatable<TContextData> {
|
|
716
716
|
* must have one or more variables.
|
717
717
|
* @param dispatcher An object dispatcher callback to register.
|
718
718
|
*/
|
719
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
720
|
-
typeId: URL;
|
721
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
719
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
722
720
|
/**
|
723
721
|
* Registers an object dispatcher.
|
724
722
|
*
|
@@ -732,9 +730,7 @@ interface Federatable<TContextData> {
|
|
732
730
|
* must have one or more variables.
|
733
731
|
* @param dispatcher An object dispatcher callback to register.
|
734
732
|
*/
|
735
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
736
|
-
typeId: URL;
|
737
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
733
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
738
734
|
/**
|
739
735
|
* Registers an object dispatcher.
|
740
736
|
*
|
@@ -748,9 +744,7 @@ interface Federatable<TContextData> {
|
|
748
744
|
* must have one or more variables.
|
749
745
|
* @param dispatcher An object dispatcher callback to register.
|
750
746
|
*/
|
751
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
752
|
-
typeId: URL;
|
753
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
747
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
754
748
|
/**
|
755
749
|
* Registers an object dispatcher.
|
756
750
|
*
|
@@ -764,9 +758,7 @@ interface Federatable<TContextData> {
|
|
764
758
|
* must have one or more variables.
|
765
759
|
* @param dispatcher An object dispatcher callback to register.
|
766
760
|
*/
|
767
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
768
|
-
typeId: URL;
|
769
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
761
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
770
762
|
/**
|
771
763
|
* Registers an object dispatcher.
|
772
764
|
*
|
@@ -780,9 +772,7 @@ interface Federatable<TContextData> {
|
|
780
772
|
* must have one or more variables.
|
781
773
|
* @param dispatcher An object dispatcher callback to register.
|
782
774
|
*/
|
783
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
784
|
-
typeId: URL;
|
785
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
775
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
786
776
|
/**
|
787
777
|
* Registers an object dispatcher.
|
788
778
|
*
|
@@ -796,9 +786,7 @@ interface Federatable<TContextData> {
|
|
796
786
|
* must have one or more variables.
|
797
787
|
* @param dispatcher An object dispatcher callback to register.
|
798
788
|
*/
|
799
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
800
|
-
typeId: URL;
|
801
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
789
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
802
790
|
/**
|
803
791
|
* Registers an inbox dispatcher.
|
804
792
|
*
|
@@ -939,9 +927,7 @@ interface Federatable<TContextData> {
|
|
939
927
|
* The path must have one or more variables.
|
940
928
|
* @param dispatcher A collection dispatcher callback to register.
|
941
929
|
*/
|
942
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
943
|
-
typeId: URL;
|
944
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
930
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
945
931
|
/**
|
946
932
|
* Registers a collection of objects dispatcher.
|
947
933
|
*
|
@@ -956,9 +942,7 @@ interface Federatable<TContextData> {
|
|
956
942
|
* The path must have one or more variables.
|
957
943
|
* @param dispatcher A collection dispatcher callback to register.
|
958
944
|
*/
|
959
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
960
|
-
typeId: URL;
|
961
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
945
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
962
946
|
/**
|
963
947
|
* Registers a collection of objects dispatcher.
|
964
948
|
*
|
@@ -973,9 +957,7 @@ interface Federatable<TContextData> {
|
|
973
957
|
* The path must have one or more variables.
|
974
958
|
* @param dispatcher A collection dispatcher callback to register.
|
975
959
|
*/
|
976
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
977
|
-
typeId: URL;
|
978
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
960
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
979
961
|
/**
|
980
962
|
* Registers an ordered collection of objects dispatcher.
|
981
963
|
*
|
@@ -990,9 +972,7 @@ interface Federatable<TContextData> {
|
|
990
972
|
* The path must have one or more variables.
|
991
973
|
* @param dispatcher A collection dispatcher callback to register.
|
992
974
|
*/
|
993
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
994
|
-
typeId: URL;
|
995
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
975
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
996
976
|
/**
|
997
977
|
* Registers an ordered collection of objects dispatcher.
|
998
978
|
*
|
@@ -1007,9 +987,7 @@ interface Federatable<TContextData> {
|
|
1007
987
|
* The path must have one or more variables.
|
1008
988
|
* @param dispatcher A collection dispatcher callback to register.
|
1009
989
|
*/
|
1010
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
1011
|
-
typeId: URL;
|
1012
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
990
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1013
991
|
/**
|
1014
992
|
* Registers an ordered collection of objects dispatcher.
|
1015
993
|
*
|
@@ -1024,9 +1002,7 @@ interface Federatable<TContextData> {
|
|
1024
1002
|
* The path must have one or more variables.
|
1025
1003
|
* @param dispatcher A collection dispatcher callback to register.
|
1026
1004
|
*/
|
1027
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
1028
|
-
typeId: URL;
|
1029
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1005
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
1030
1006
|
}
|
1031
1007
|
/**
|
1032
1008
|
* An object that registers federation-related business logic and dispatches
|
@@ -1657,9 +1633,7 @@ interface Context<TContextData> {
|
|
1657
1633
|
* @throws {TypeError} If values are invalid.
|
1658
1634
|
* @since 0.7.0
|
1659
1635
|
*/
|
1660
|
-
getObjectUri<TObject extends Object$1>(cls:
|
1661
|
-
typeId: URL;
|
1662
|
-
}, values: Record<string, string>): URL;
|
1636
|
+
getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
|
1663
1637
|
/**
|
1664
1638
|
* Builds the URI of an actor's outbox with the given identifier.
|
1665
1639
|
* @param identifier The actor's identifier.
|
@@ -1973,9 +1947,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
|
|
1973
1947
|
* @throws {TypeError} If values are invalid.
|
1974
1948
|
* @since 0.7.0
|
1975
1949
|
*/
|
1976
|
-
getObject<TObject extends Object$1>(cls:
|
1977
|
-
typeId: URL;
|
1978
|
-
}, values: Record<string, string>): Promise<TObject | null>;
|
1950
|
+
getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
|
1979
1951
|
/**
|
1980
1952
|
* Gets the public key of the sender, if any exists and it is verified.
|
1981
1953
|
* Otherwise, `null` is returned.
|
@@ -2119,9 +2091,7 @@ type ParseUriResult =
|
|
2119
2091
|
* The case of an object URI.
|
2120
2092
|
*/ | {
|
2121
2093
|
readonly type: "object";
|
2122
|
-
readonly class:
|
2123
|
-
typeId: URL;
|
2124
|
-
};
|
2094
|
+
readonly class: ConstructorWithTypeId<Object$1>;
|
2125
2095
|
readonly typeId: URL;
|
2126
2096
|
readonly values: Record<string, string>;
|
2127
2097
|
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
7
|
-
import { doubleKnock } from "./http
|
6
|
+
import { validateCryptoKey } from "./key-DfjYEehd.js";
|
7
|
+
import { doubleKnock } from "./http-CQraRgim.js";
|
8
8
|
import { curry } from "es-toolkit";
|
9
9
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { __commonJS, __toESM } from "./lookup-
|
6
|
+
import { __commonJS, __toESM } from "./lookup-C5pO70ss.js";
|
7
7
|
|
8
8
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
9
9
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Note, Person } from "../lookup-
|
6
|
+
import { Activity, Note, Person } from "../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 "../inbox-
|
12
|
-
import { createFederationBuilder } from "../builder-
|
13
|
-
import { test } from "../testing-
|
11
|
+
import "../inbox-c2HespXf.js";
|
12
|
+
import { createFederationBuilder } from "../builder-Drp8J0wC.js";
|
13
|
+
import { test } from "../testing-CUOkRXmb.js";
|
14
14
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
15
15
|
import "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import { assertThrows } from "../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 { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-BzWsN9pB.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,35 +3,35 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, Note, Person } from "../lookup-
|
6
|
+
import { Create, Note, Person } 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
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } 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 } from "../http
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import { InboxListenerSet } from "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor--EIM8WJq.js";
|
15
|
+
import "../key-DfjYEehd.js";
|
16
|
+
import { signRequest } from "../http-CQraRgim.js";
|
17
|
+
import "../ld-DxH5pJEy.js";
|
18
|
+
import "../owner-BqWkxhC_.js";
|
19
|
+
import "../proof-DjnaYscE.js";
|
20
|
+
import "../docloader-BhDPeZk3.js";
|
21
|
+
import "../kv-cache-DN9pfMBe.js";
|
22
|
+
import { InboxListenerSet } from "../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 { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
28
|
+
import "../send-DG2jH3Yb.js";
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-CUOkRXmb.js";
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
34
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
34
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DpfNqWw3.js";
|
35
35
|
|
36
36
|
//#region src/federation/handler.test.ts
|
37
37
|
test("handleActor()", async () => {
|
@@ -3,35 +3,35 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, Follow, Person } from "../lookup-
|
6
|
+
import { Create, Follow, Person } from "../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 { createFederation } from "../middleware-
|
11
|
+
import { 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 "../http
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import { signObject } from "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor--EIM8WJq.js";
|
15
|
+
import "../key-DfjYEehd.js";
|
16
|
+
import "../http-CQraRgim.js";
|
17
|
+
import "../ld-DxH5pJEy.js";
|
18
|
+
import "../owner-BqWkxhC_.js";
|
19
|
+
import { signObject } from "../proof-DjnaYscE.js";
|
20
|
+
import "../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 "../std__assert-DWivtrGR.js";
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-DpfNqWw3.js";
|
35
35
|
|
36
36
|
//#region src/federation/idempotency.test.ts
|
37
37
|
const kv = new MemoryKvStore();
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../lookup-
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../lookup-C5pO70ss.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import { InboxListenerSet } from "../inbox-
|
9
|
-
import { test } from "../testing-
|
8
|
+
import { InboxListenerSet } from "../inbox-c2HespXf.js";
|
9
|
+
import { test } from "../testing-CUOkRXmb.js";
|
10
10
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
11
11
|
|
12
12
|
//#region src/federation/inbox.test.ts
|