@fedify/fedify 1.8.1-pr.332.1182 → 1.8.1-pr.332.1206
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-DGhGviFF.js → actor-BG6nQiGo.js} +1 -1
- package/dist/{actor-CEOpqw2j.js → actor-DiY4TXaT.js} +179 -179
- package/dist/{authdocloader-F5CEYzSX.js → authdocloader-CVsVMvOK.js} +3 -3
- package/dist/{authdocloader-5puN-Y5K.js → authdocloader-DVXQiSXr.js} +3 -3
- package/dist/{builder-UdluIvUy.js → builder-BBIXluVw.js} +38 -7
- package/dist/{client-DIWtwDpq.js → client-cpcGgCz4.js} +1 -1
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-72aRESIE.d.ts → context-Csbv_Ssv.d.ts} +1 -1
- package/dist/{docloader-BZVERUXw.js → docloader-DmrXAf56.js} +1 -1
- package/dist/{esm-CAt2YHNr.js → esm-P-Jx8p-N.js} +1 -1
- package/dist/federation/builder.test.js +25 -6
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +48 -18
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-D1uoUH4N.d.ts → http-BL6S1G0j.d.ts} +1 -1
- package/dist/{http-L8nGt-kU.js → http-V1txgyQm.js} +2 -2
- package/dist/{http-DwWuBdiS.js → http-cF_guZC4.js} +3 -3
- package/dist/{inbox-Bww5_4f3.js → inbox-DZjkOcY_.js} +1 -1
- package/dist/{key-DmlNusxB.js → key-BgP87NyA.js} +2 -2
- package/dist/{key-AxtPEhyf.js → key-DZYB-qzc.js} +4 -4
- package/dist/{key-D7eESjT8.js → key-DZzrjZ_W.js} +2 -2
- package/dist/{key-Dvvr8w0R.js → key-ccT9Df-j.js} +3 -3
- package/dist/{keycache-CCfh6JzL.js → keycache-BpGJH5wN.js} +1 -1
- package/dist/{keys-Cojpplg7.js → keys-BwxRZrc5.js} +1 -1
- package/dist/{ld-BM_q92Md.js → ld-BUMRH4qT.js} +2 -2
- package/dist/{lookup-BqO_EQ7t.js → lookup-BHvHuca3.js} +1 -1
- package/dist/{lookup-N-vUaeU-.js → lookup-mqYx33fa.js} +1 -1
- package/dist/{middleware-D6oTvqvo.js → middleware-CIEFJR-0.js} +47 -23
- package/dist/middleware-CRmdJleG.js +26 -0
- package/dist/middleware-CgE_fA7L.js +17 -0
- package/dist/{middleware-Dt7enCqI.js → middleware-ysGs35SI.js} +16 -23
- package/dist/{mod-0L5jhGYM.d.ts → mod-D8-liXFY.d.ts} +1 -1
- package/dist/{mod-OU0GgfW6.d.ts → mod-Dc_fDCtK.d.ts} +1 -1
- package/dist/{mod-BCl7t-Ka.d.ts → mod-j0OCtlRW.d.ts} +1 -1
- package/dist/mod.d.ts +5 -5
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-BHm6Slll.js → owner-CJiB3h-w.js} +2 -2
- package/dist/{proof-Ret5s-pN.js → proof-CBnoAbsR.js} +3 -3
- package/dist/{proof-qZ9pvD4f.js → proof-CO7PKkkS.js} +2 -2
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/mod.d.ts +2 -2
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-lJvGpeln.js → send-jERwLMa1.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.d.ts +2 -2
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-dvdFh8m2.js → testing-DT73_kZh.js} +2 -2
- package/dist/{type-C81IXTZo.js → type-CSD3N947.js} +178 -178
- package/dist/{types-CCgeAzKU.js → types-BdxXmVoY.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-DWd0TzMK.js → vocab-DNOZ_bTQ.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +2 -2
- package/dist/x/sveltekit.d.ts +2 -2
- package/package.json +1 -1
- package/dist/middleware-CivPioYC.js +0 -26
- package/dist/middleware-v2B43-x2.js +0 -17
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-
|
|
7
|
-
import { validateCryptoKey } from "./key-
|
|
8
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-CSD3N947.js";
|
|
7
|
+
import { validateCryptoKey } from "./key-DZzrjZ_W.js";
|
|
8
|
+
import { doubleKnock } from "./http-V1txgyQm.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
|
|
11
11
|
//#region runtime/authdocloader.ts
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-DmrXAf56.js";
|
|
6
|
+
import { validateCryptoKey } from "./key-BgP87NyA.js";
|
|
7
|
+
import { doubleKnock } from "./http-cF_guZC4.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
|
10
10
|
//#region runtime/authdocloader.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getTypeId } from "./type-
|
|
7
|
-
import { Router, RouterError } from "./lookup-
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
6
|
+
import { deno_default, getTypeId } from "./type-CSD3N947.js";
|
|
7
|
+
import { Router, RouterError } from "./lookup-BHvHuca3.js";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-DZjkOcY_.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
11
|
|
|
@@ -29,6 +29,10 @@ var FederationBuilderImpl = class {
|
|
|
29
29
|
sharedInboxKeyDispatcher;
|
|
30
30
|
collectionTypeIds;
|
|
31
31
|
collectionCallbacks;
|
|
32
|
+
/**
|
|
33
|
+
* Symbol registry for unique identification of unnamed symbols.
|
|
34
|
+
*/
|
|
35
|
+
#symbolRegistry = /* @__PURE__ */ new Map();
|
|
32
36
|
constructor() {
|
|
33
37
|
this.router = new Router();
|
|
34
38
|
this.objectCallbacks = {};
|
|
@@ -37,7 +41,7 @@ var FederationBuilderImpl = class {
|
|
|
37
41
|
this.collectionTypeIds = {};
|
|
38
42
|
}
|
|
39
43
|
async build(options) {
|
|
40
|
-
const { FederationImpl } = await import("./middleware-
|
|
44
|
+
const { FederationImpl } = await import("./middleware-CRmdJleG.js");
|
|
41
45
|
const f = new FederationImpl(options);
|
|
42
46
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
43
47
|
f.router = this.router.clone();
|
|
@@ -488,9 +492,10 @@ var FederationBuilderImpl = class {
|
|
|
488
492
|
return this.#setCustomCollectionDispatcher(name, "orderedCollection", ...args);
|
|
489
493
|
}
|
|
490
494
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
if (this.
|
|
495
|
+
const strName = String(name);
|
|
496
|
+
const routeName = `${collectionType}:${this.#uniqueCollectionId(name)}`;
|
|
497
|
+
if (this.router.has(routeName)) throw new RouterError(`Collection dispatcher for ${strName} already set.`);
|
|
498
|
+
if (this.collectionCallbacks[name] != null) throw new RouterError(`Collection dispatcher for ${strName} already set.`);
|
|
494
499
|
const variables = this.router.add(path, routeName);
|
|
495
500
|
if (variables.size < 1) throw new RouterError("Path for collection dispatcher must have at least one variable.");
|
|
496
501
|
const callbacks = { dispatcher };
|
|
@@ -516,6 +521,32 @@ var FederationBuilderImpl = class {
|
|
|
516
521
|
};
|
|
517
522
|
return setters;
|
|
518
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* Get the URL path for a custom collection.
|
|
526
|
+
* If the collection is not registered, returns null.
|
|
527
|
+
* @typeParam TParam The parameter names of the requested URL.
|
|
528
|
+
* @param {string | symbol} name The name of the custom collection.
|
|
529
|
+
* @param {TParam} values The values to fill in the URL parameters.
|
|
530
|
+
* @returns {string | null} The URL path for the custom collection, or null if not registered.
|
|
531
|
+
*/
|
|
532
|
+
getCollectionPath(name, values) {
|
|
533
|
+
if (!(name in this.collectionCallbacks)) return null;
|
|
534
|
+
const routeName = this.#uniqueCollectionId(name);
|
|
535
|
+
const path = this.router.build(`collection:${routeName}`, values) ?? this.router.build(`orderedCollection:${routeName}`, values);
|
|
536
|
+
return path;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Converts a name (string or symbol) to a unique string identifier.
|
|
540
|
+
* For symbols, generates and caches a UUID if not already present.
|
|
541
|
+
* For strings, returns the string as-is.
|
|
542
|
+
* @param name The name to convert to a unique identifier
|
|
543
|
+
* @returns A unique string identifier
|
|
544
|
+
*/
|
|
545
|
+
#uniqueCollectionId(name) {
|
|
546
|
+
if (typeof name === "string") return name;
|
|
547
|
+
if (!this.#symbolRegistry.has(name)) this.#symbolRegistry.set(name, crypto.randomUUID());
|
|
548
|
+
return this.#symbolRegistry.get(name);
|
|
549
|
+
}
|
|
519
550
|
};
|
|
520
551
|
/**
|
|
521
552
|
* Creates a new {@link FederationBuilder} instance.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { getUserAgent } from "./type-
|
|
6
|
+
import { getUserAgent } from "./type-CSD3N947.js";
|
|
7
7
|
import { parseSemVer } from "./semver-DCqorrj5.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import "../docloader-BeCtcTOJ.js";
|
|
|
5
5
|
import "../client-BQ4AQGKo.js";
|
|
6
6
|
import "../vocab-By6mpzr-.js";
|
|
7
7
|
import "../actor-B4TBtqRP.js";
|
|
8
|
-
import "../http-
|
|
8
|
+
import "../http-BL6S1G0j.js";
|
|
9
9
|
import "../owner-CEv_PfyK.js";
|
|
10
10
|
import "../mod-BFwgZ7_K.js";
|
|
11
11
|
import "../lookup-J_m4YZg0.js";
|
|
12
|
-
import { ActivityTransformer } from "../context-
|
|
12
|
+
import { ActivityTransformer } from "../context-Csbv_Ssv.js";
|
|
13
13
|
import "../mq-DYKDDJmp.js";
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-Dc_fDCtK.js";
|
|
15
15
|
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 "../type-
|
|
6
|
+
import { Follow, Person } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-ysGs35SI.js";
|
|
12
12
|
import "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-cpcGgCz4.js";
|
|
14
|
+
import "../lookup-BHvHuca3.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BG6nQiGo.js";
|
|
17
|
+
import "../key-DZzrjZ_W.js";
|
|
18
|
+
import "../http-V1txgyQm.js";
|
|
19
|
+
import "../authdocloader-CVsVMvOK.js";
|
|
20
|
+
import "../ld-BUMRH4qT.js";
|
|
21
|
+
import "../owner-CJiB3h-w.js";
|
|
22
|
+
import "../proof-CO7PKkkS.js";
|
|
23
|
+
import "../inbox-DZjkOcY_.js";
|
|
24
|
+
import "../builder-BBIXluVw.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-BpGJH5wN.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-jERwLMa1.js";
|
|
29
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
30
30
|
|
|
31
31
|
//#region compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
@@ -5,7 +5,7 @@ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFacto
|
|
|
5
5
|
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-BQ4AQGKo.js";
|
|
6
6
|
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-By6mpzr-.js";
|
|
7
7
|
import { Actor, Recipient } from "./actor-B4TBtqRP.js";
|
|
8
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
|
8
|
+
import { HttpMessageSignaturesSpec } from "./http-BL6S1G0j.js";
|
|
9
9
|
import { GetKeyOwnerOptions } from "./owner-CEv_PfyK.js";
|
|
10
10
|
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-BFwgZ7_K.js";
|
|
11
11
|
import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-J_m4YZg0.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __commonJS, __toESM } from "./type-
|
|
6
|
+
import { __commonJS, __toESM } from "./type-CSD3N947.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,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Note, Person } from "../type-
|
|
6
|
+
import { Activity, Note, Person } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
11
|
import { parseSemVer } from "../semver-DCqorrj5.js";
|
|
12
|
-
import "../lookup-
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
15
|
-
import { test } from "../testing-
|
|
12
|
+
import "../lookup-BHvHuca3.js";
|
|
13
|
+
import "../inbox-DZjkOcY_.js";
|
|
14
|
+
import { createFederationBuilder } from "../builder-BBIXluVw.js";
|
|
15
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
16
16
|
import { assertExists } from "../std__assert-BQdmxyzF.js";
|
|
17
17
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
18
18
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
19
19
|
import "../assert_not_equals-D2R2nl5h.js";
|
|
20
|
-
import "../assert_throws-CqMKbTh_.js";
|
|
20
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
21
21
|
|
|
22
22
|
//#region federation/builder.test.ts
|
|
23
23
|
test("FederationBuilder", async (t) => {
|
|
@@ -150,6 +150,25 @@ test("FederationBuilder", async (t) => {
|
|
|
150
150
|
assertEquals(personRoute?.name, `object:${Person.typeId.href}`);
|
|
151
151
|
assertEquals(personRoute?.values.id, "abc");
|
|
152
152
|
});
|
|
153
|
+
await t.step("should handle symbol names uniquely in custom collection dispatchers", () => {
|
|
154
|
+
const builder = createFederationBuilder();
|
|
155
|
+
const unnamedSymbol1 = Symbol();
|
|
156
|
+
const unnamedSymbol2 = Symbol();
|
|
157
|
+
const namedSymbol1 = Symbol.for("");
|
|
158
|
+
const namedSymbol2 = Symbol.for("");
|
|
159
|
+
const strId = String(unnamedSymbol1);
|
|
160
|
+
const dispatcher = (_ctx, _params) => ({ items: [] });
|
|
161
|
+
builder.setCollectionDispatcher(unnamedSymbol1, Note, "/unnamed-symbol1/{id}", dispatcher);
|
|
162
|
+
assertThrows(() => {
|
|
163
|
+
builder.setCollectionDispatcher(unnamedSymbol1, Note, "/unnamed-symbol1-duplicate/{id}", dispatcher);
|
|
164
|
+
}, Error, "Collection dispatcher for Symbol() already set.");
|
|
165
|
+
builder.setCollectionDispatcher(unnamedSymbol2, Note, "/unnamed-symbol2/{id}", dispatcher);
|
|
166
|
+
builder.setCollectionDispatcher(namedSymbol1, Note, "/named-symbol/{id}", dispatcher);
|
|
167
|
+
assertThrows(() => {
|
|
168
|
+
builder.setCollectionDispatcher(namedSymbol2, Note, "/named-symbol/{id}", dispatcher);
|
|
169
|
+
});
|
|
170
|
+
builder.setCollectionDispatcher(strId, Note, "/string-id/{id}", dispatcher);
|
|
171
|
+
});
|
|
153
172
|
});
|
|
154
173
|
|
|
155
174
|
//#endregion
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import "../lookup-
|
|
10
|
+
import "../lookup-BHvHuca3.js";
|
|
11
11
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-D5V3UzU3.js";
|
|
12
|
-
import { test } from "../testing-
|
|
12
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
13
13
|
import "../std__assert-BQdmxyzF.js";
|
|
14
14
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
15
15
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
|
6
|
+
import { Create, Note, Person } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-ysGs35SI.js";
|
|
12
12
|
import "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-cpcGgCz4.js";
|
|
14
|
+
import "../lookup-BHvHuca3.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest } from "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BG6nQiGo.js";
|
|
17
|
+
import "../key-DZzrjZ_W.js";
|
|
18
|
+
import { signRequest } from "../http-V1txgyQm.js";
|
|
19
|
+
import "../authdocloader-CVsVMvOK.js";
|
|
20
|
+
import "../ld-BUMRH4qT.js";
|
|
21
|
+
import "../owner-CJiB3h-w.js";
|
|
22
|
+
import "../proof-CO7PKkkS.js";
|
|
23
|
+
import "../inbox-DZjkOcY_.js";
|
|
24
|
+
import "../builder-BBIXluVw.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-BpGJH5wN.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-jERwLMa1.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-DT73_kZh.js";
|
|
30
30
|
import "../std__assert-BQdmxyzF.js";
|
|
31
31
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
32
32
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
33
|
import "../assert_not_equals-D2R2nl5h.js";
|
|
34
34
|
import "../assert_throws-CqMKbTh_.js";
|
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
35
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BwxRZrc5.js";
|
|
36
36
|
|
|
37
37
|
//#region federation/handler.test.ts
|
|
38
38
|
test("acceptsJsonLd()", () => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../type-
|
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
-
import "../lookup-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
10
|
-
import { test } from "../testing-
|
|
8
|
+
import "../lookup-BHvHuca3.js";
|
|
9
|
+
import { InboxListenerSet } from "../inbox-DZjkOcY_.js";
|
|
10
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
11
11
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
12
12
|
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
13
13
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { KvKeyCache } from "../keycache-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-BHvHuca3.js";
|
|
12
|
+
import { KvKeyCache } from "../keycache-BpGJH5wN.js";
|
|
13
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
14
14
|
|
|
15
15
|
//#region federation/keycache.test.ts
|
|
16
16
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-BHvHuca3.js";
|
|
12
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
13
13
|
import "../std__assert-BQdmxyzF.js";
|
|
14
14
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
15
15
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-ysGs35SI.js";
|
|
12
12
|
import "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
|
13
|
+
import "../client-cpcGgCz4.js";
|
|
14
|
+
import { RouterError, lookupObject } from "../lookup-BHvHuca3.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BG6nQiGo.js";
|
|
17
|
+
import "../key-DZzrjZ_W.js";
|
|
18
|
+
import { signRequest, verifyRequest } from "../http-V1txgyQm.js";
|
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-CVsVMvOK.js";
|
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BUMRH4qT.js";
|
|
21
|
+
import { doesActorOwnKey } from "../owner-CJiB3h-w.js";
|
|
22
|
+
import { signObject, verifyObject } from "../proof-CO7PKkkS.js";
|
|
23
|
+
import "../inbox-DZjkOcY_.js";
|
|
24
|
+
import "../builder-BBIXluVw.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-BpGJH5wN.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-jERwLMa1.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-DT73_kZh.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-BQdmxyzF.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
32
32
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
34
34
|
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
36
|
-
import { esm_default } from "../esm-
|
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BwxRZrc5.js";
|
|
36
|
+
import { esm_default } from "../esm-P-Jx8p-N.js";
|
|
37
37
|
|
|
38
38
|
//#region testing/fixtures/example.com/person.json
|
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
|
@@ -1627,6 +1627,36 @@ test({
|
|
|
1627
1627
|
]);
|
|
1628
1628
|
}
|
|
1629
1629
|
});
|
|
1630
|
+
test("ContextImpl.getCollectionUri()", () => {
|
|
1631
|
+
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
1632
|
+
const base = "https://example.com";
|
|
1633
|
+
const ctx = new ContextImpl({
|
|
1634
|
+
url: new URL(base),
|
|
1635
|
+
federation,
|
|
1636
|
+
data: void 0,
|
|
1637
|
+
documentLoader: mockDocumentLoader,
|
|
1638
|
+
contextLoader: fetchDocumentLoader
|
|
1639
|
+
});
|
|
1640
|
+
const values = { id: "123" };
|
|
1641
|
+
const dispatcher = (_ctx, _values) => ({ items: [] });
|
|
1642
|
+
let url;
|
|
1643
|
+
const strName = "registered";
|
|
1644
|
+
federation.setCollectionDispatcher(strName, Object$1, "/string-route/{id}", dispatcher);
|
|
1645
|
+
url = ctx.getCollectionUri(strName, values);
|
|
1646
|
+
assertEquals(url.href, `${base}/string-route/123`);
|
|
1647
|
+
const unnamedSymName = Symbol(strName);
|
|
1648
|
+
federation.setCollectionDispatcher(unnamedSymName, Object$1, "/symbol-route/{id}", dispatcher);
|
|
1649
|
+
url = ctx.getCollectionUri(unnamedSymName, values);
|
|
1650
|
+
assertEquals(url.href, `${base}/symbol-route/123`);
|
|
1651
|
+
const namedSymName = Symbol.for(strName);
|
|
1652
|
+
federation.setCollectionDispatcher(namedSymName, Object$1, "/named-symbol-route/{id}", dispatcher);
|
|
1653
|
+
url = ctx.getCollectionUri(namedSymName, values);
|
|
1654
|
+
assertEquals(url.href, `${base}/named-symbol-route/123`);
|
|
1655
|
+
const notReg = "not-registered";
|
|
1656
|
+
assertThrows(() => ctx.getCollectionUri(notReg, values));
|
|
1657
|
+
assertThrows(() => ctx.getCollectionUri(Symbol(notReg), values));
|
|
1658
|
+
assertThrows(() => ctx.getCollectionUri(Symbol.for(notReg), values));
|
|
1659
|
+
});
|
|
1630
1660
|
test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
1631
1661
|
esm_default.spyGlobal();
|
|
1632
1662
|
let verified = null;
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import "../docloader-BeCtcTOJ.js";
|
|
|
5
5
|
import "../client-BQ4AQGKo.js";
|
|
6
6
|
import "../vocab-By6mpzr-.js";
|
|
7
7
|
import "../actor-B4TBtqRP.js";
|
|
8
|
-
import "../http-
|
|
8
|
+
import "../http-BL6S1G0j.js";
|
|
9
9
|
import "../owner-CEv_PfyK.js";
|
|
10
10
|
import "../mod-BFwgZ7_K.js";
|
|
11
11
|
import "../lookup-J_m4YZg0.js";
|
|
12
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
12
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Csbv_Ssv.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, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -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-
|
|
6
|
+
import "../docloader-DmrXAf56.js";
|
|
7
|
+
import "../actor-DiY4TXaT.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CIEFJR-0.js";
|
|
9
|
+
import "../lookup-mqYx33fa.js";
|
|
10
|
+
import "../key-BgP87NyA.js";
|
|
11
|
+
import "../http-cF_guZC4.js";
|
|
12
|
+
import "../proof-CBnoAbsR.js";
|
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-C44ekWNP.js";
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
14
|
+
import "../types-BdxXmVoY.js";
|
|
15
|
+
import "../authdocloader-DVXQiSXr.js";
|
|
16
|
+
import "../vocab-DNOZ_bTQ.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import "../lookup-BHvHuca3.js";
|
|
11
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-BQdmxyzF.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
14
14
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
-
import "../lookup-
|
|
8
|
+
import "../lookup-BHvHuca3.js";
|
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-BnpVRGFC.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
12
12
|
|
|
13
13
|
//#region federation/retry.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import { Router, RouterError } from "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { Router, RouterError } from "../lookup-BHvHuca3.js";
|
|
11
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
12
12
|
import "../std__assert-BQdmxyzF.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
14
14
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-BHvHuca3.js";
|
|
11
|
+
import "../actor-BG6nQiGo.js";
|
|
12
|
+
import "../key-DZzrjZ_W.js";
|
|
13
|
+
import { verifyRequest } from "../http-V1txgyQm.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-CJiB3h-w.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-jERwLMa1.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-DT73_kZh.js";
|
|
17
17
|
import "../std__assert-BQdmxyzF.js";
|
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
19
19
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
21
21
|
import "../assert_throws-CqMKbTh_.js";
|
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
23
|
-
import { esm_default } from "../esm-
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BwxRZrc5.js";
|
|
23
|
+
import { esm_default } from "../esm-P-Jx8p-N.js";
|
|
24
24
|
|
|
25
25
|
//#region federation/send.test.ts
|
|
26
26
|
test("extractInboxes()", () => {
|