@fedify/fedify 1.9.0-dev.1668 → 1.9.0-dev.1704
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actor-ChSW_rBk.js → actor-B0LpLKRw.js} +7263 -2440
- package/dist/{actor-Ch5yFYFG.d.ts → actor-C1Euqngb.d.ts} +1 -1
- package/dist/{actor-BHAPrCDB.js → actor-CQzdjHs3.js} +1 -1
- package/dist/{actor-fGD4yb1K.cjs → actor-DU96UQUE.cjs} +7263 -2440
- package/dist/{actor-CHOM_AN3.d.cts → actor-Ydzhc8dj.d.cts} +1 -1
- package/dist/{authdocloader-eSrbn3wM.cjs → authdocloader-BkOerKL-.cjs} +3 -3
- package/dist/{authdocloader-CgrKtaQg.js → authdocloader-CzmsYrAn.js} +3 -3
- package/dist/{authdocloader-ChsJ9FJN.js → authdocloader-DI67R2Ku.js} +3 -3
- package/dist/{builder-DI4-Kpdg.js → builder-D2Oyy8AY.js} +14 -8
- package/dist/{client-B8gJ1cw8.js → client-BWusKCWF.js} +1 -1
- package/dist/compat/mod.d.cts +7 -7
- package/dist/compat/mod.d.ts +7 -7
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-DFruNLny.d.ts → context-C51zGhGC.d.ts} +185 -92
- package/dist/{context-KXVF2AhH.d.cts → context-Qnv814-p.d.cts} +185 -92
- package/dist/{docloader-CSB8cAnw.cjs → docloader-NcFUThCx.cjs} +1 -1
- package/dist/{docloader-Bqh-eFNP.js → docloader-isD0ntZv.js} +1 -1
- package/dist/{esm-DTi75ew2.js → esm-BBVcrjH8.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.d.ts +3 -0
- package/dist/federation/idempotency.test.js +202 -0
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +7 -7
- package/dist/federation/mod.d.ts +7 -7
- 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/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-B_zBcsai.d.cts → http-B1_DzfAU.d.cts} +1 -1
- package/dist/{http-BpAVdmaR.js → http-BiKoa3o_.js} +2 -2
- package/dist/{http-BDErrXSN.cjs → http-LVXxICJn.cjs} +3 -3
- package/dist/{http-DBHpjcjo.js → http-MyYS6o7t.js} +3 -3
- package/dist/{http-D8Q4xH0d.d.ts → http-wsGR6KkT.d.ts} +1 -1
- package/dist/{inbox-BA9sYsBf.js → inbox-CzGsgKH-.js} +29 -7
- package/dist/key-BEz2ThE9.cjs +10 -0
- package/dist/{key-DSOJOcRH.js → key-C0SCHEcf.js} +3 -3
- package/dist/{key-B27QtSbc.js → key-C5cRHj8g.js} +2 -2
- package/dist/{key-sCE-TgxY.js → key-CRhmBE03.js} +2 -2
- package/dist/{key-CYpTUnwf.cjs → key-Ci8OyUTB.cjs} +2 -2
- package/dist/{key-2rIHnPaA.js → key-DWPlWnFQ.js} +4 -4
- package/dist/{keycache-CiW2SvJu.js → keycache-rO8ea311.js} +1 -1
- package/dist/{keys-5cHW76LQ.js → keys-CWdCy_3n.js} +1 -1
- package/dist/{ld-upnKn3yw.js → ld-BWADNtQr.js} +2 -2
- package/dist/{lookup-B61sZAOY.js → lookup-BBTRFcU5.js} +1 -1
- package/dist/{lookup-BrrOs_g1.cjs → lookup-CILOZed9.cjs} +1 -1
- package/dist/{lookup-CZBG-vCx.js → lookup-RINL4MOa.js} +21 -12
- package/dist/{middleware-CyUVZG3t.js → middleware-Bcv0xCjs.js} +43 -40
- package/dist/middleware-Be9qUuwL.cjs +17 -0
- package/dist/{middleware-CfP7UhQy.js → middleware-BfhSHVoJ.js} +78 -47
- package/dist/middleware-CWlljVpG.js +26 -0
- package/dist/{middleware-P3jCWk4K.cjs → middleware-DDyUhxsm.cjs} +78 -47
- package/dist/middleware-Dm7sDAVJ.js +17 -0
- package/dist/{mod-NKH_G-IY.d.cts → mod-BUbqxBev.d.cts} +19 -1
- package/dist/{mod-Cy6pkZSn.d.ts → mod-CDObsV1d.d.ts} +19 -1
- package/dist/{mod-BAuhKa9d.d.ts → mod-CIbqfZW0.d.ts} +1 -1
- package/dist/{mod-YfAcrVbP.d.cts → mod-COTXAYRl.d.cts} +2 -2
- package/dist/{mod-B7Pc0I7F.d.ts → mod-DgcYoyZK.d.ts} +2 -2
- package/dist/{mod-C3CGxYoF.d.cts → mod-Dt-G9ZOS.d.cts} +1 -1
- package/dist/{mod-COw_caPC.d.cts → mod-fjqfsrty.d.cts} +2 -2
- package/dist/{mod-CiXjux2r.d.ts → mod-o-hx_hU8.d.ts} +2 -2
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +10 -10
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-C9Ry0TOI.d.cts → owner-6KSEp9eV.d.cts} +2 -2
- package/dist/{owner-D38zBIMc.d.ts → owner-BbeUDvOu.d.ts} +2 -2
- package/dist/{owner-zvsMGYzc.js → owner-QEQV9vx-.js} +2 -2
- package/dist/{proof-Bt6yHsMN.js → proof-B_9fbF3f.js} +3 -3
- package/dist/{proof-BgKYSJ00.js → proof-g2_9VhUQ.js} +2 -2
- package/dist/{proof-CC_7UV_j.cjs → proof-v3B5cJ3c.cjs} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.d.cts +3 -3
- package/dist/runtime/mod.d.ts +3 -3
- 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-DlqdAGHP.js → send-cTLNXtTp.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.d.cts +5 -5
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +391 -86
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-CAAJTPCt.js → testing-CNtyBr2m.js} +2 -2
- package/dist/{type-BRNRL3aj.js → type-C5udJemk.js} +6943 -2120
- package/dist/{types-Dz0NMslg.cjs → types-C9w81XqW.cjs} +1 -1
- package/dist/{types-C8yjtF5A.js → types-DHq9gRM4.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +255 -5
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.d.cts +3 -3
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +397 -8
- package/dist/{vocab-BDMmyzZA.cjs → vocab-BoyCE2Rn.cjs} +23 -14
- package/dist/{vocab-BEEm2I6u.d.ts → vocab-CDHNj5zp.d.ts} +290 -0
- package/dist/{vocab-BzGg7ltX.d.cts → vocab-Cfs0937i.d.cts} +290 -0
- package/dist/{vocab-WpDLcZH7.js → vocab-DxoBe7PI.js} +23 -14
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.cts +6 -6
- package/dist/x/hono.d.ts +6 -6
- package/dist/x/sveltekit.d.cts +6 -6
- package/dist/x/sveltekit.d.ts +6 -6
- package/package.json +1 -1
- package/dist/key-Ck4-GNm0.cjs +0 -10
- package/dist/middleware-D8O6iKhr.js +0 -26
- package/dist/middleware-DI4sIaI4.js +0 -17
- package/dist/middleware-lw0MLhVG.cjs +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
|
|
2
|
-
import { Application, Group, Organization, Person, Service } from "./vocab-
|
|
2
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-Cfs0937i.cjs";
|
|
3
3
|
import { TracerProvider } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/vocab/actor.d.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
7
|
-
const require_key = require('./key-
|
|
8
|
-
const require_http = require('./http-
|
|
6
|
+
const require_docloader = require('./docloader-NcFUThCx.cjs');
|
|
7
|
+
const require_key = require('./key-Ci8OyUTB.cjs');
|
|
8
|
+
const require_http = require('./http-LVXxICJn.cjs');
|
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
10
10
|
|
|
11
11
|
//#region src/runtime/authdocloader.ts
|
|
@@ -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-C5udJemk.js";
|
|
7
|
+
import { validateCryptoKey } from "./key-C5cRHj8g.js";
|
|
8
|
+
import { doubleKnock } from "./http-BiKoa3o_.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
|
|
11
11
|
//#region src/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-isD0ntZv.js";
|
|
6
|
+
import { validateCryptoKey } from "./key-CRhmBE03.js";
|
|
7
|
+
import { doubleKnock } from "./http-MyYS6o7t.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
|
10
10
|
//#region src/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-C5udJemk.js";
|
|
7
|
+
import { Router, RouterError } from "./lookup-RINL4MOa.js";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-CzGsgKH-.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
11
|
|
|
@@ -28,6 +28,7 @@ var FederationBuilderImpl = class {
|
|
|
28
28
|
inboxListeners;
|
|
29
29
|
inboxErrorHandler;
|
|
30
30
|
sharedInboxKeyDispatcher;
|
|
31
|
+
idempotencyStrategy;
|
|
31
32
|
collectionTypeIds;
|
|
32
33
|
collectionCallbacks;
|
|
33
34
|
/**
|
|
@@ -42,7 +43,7 @@ var FederationBuilderImpl = class {
|
|
|
42
43
|
this.collectionTypeIds = {};
|
|
43
44
|
}
|
|
44
45
|
async build(options) {
|
|
45
|
-
const { FederationImpl } = await import("./middleware-
|
|
46
|
+
const { FederationImpl } = await import("./middleware-CWlljVpG.js");
|
|
46
47
|
const f = new FederationImpl(options);
|
|
47
48
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
48
49
|
f.router = this.router.clone();
|
|
@@ -64,6 +65,7 @@ var FederationBuilderImpl = class {
|
|
|
64
65
|
f.inboxListeners = this.inboxListeners?.clone();
|
|
65
66
|
f.inboxErrorHandler = this.inboxErrorHandler;
|
|
66
67
|
f.sharedInboxKeyDispatcher = this.sharedInboxKeyDispatcher;
|
|
68
|
+
f.idempotencyStrategy = this.idempotencyStrategy;
|
|
67
69
|
return f;
|
|
68
70
|
}
|
|
69
71
|
_getTracer() {
|
|
@@ -486,15 +488,19 @@ var FederationBuilderImpl = class {
|
|
|
486
488
|
setSharedKeyDispatcher: (dispatcher) => {
|
|
487
489
|
this.sharedInboxKeyDispatcher = dispatcher;
|
|
488
490
|
return setters;
|
|
491
|
+
},
|
|
492
|
+
withIdempotency: (strategy) => {
|
|
493
|
+
this.idempotencyStrategy = strategy;
|
|
494
|
+
return setters;
|
|
489
495
|
}
|
|
490
496
|
};
|
|
491
497
|
return setters;
|
|
492
498
|
}
|
|
493
|
-
setCollectionDispatcher(name,
|
|
494
|
-
return this.#setCustomCollectionDispatcher(name, "collection",
|
|
499
|
+
setCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
500
|
+
return this.#setCustomCollectionDispatcher(name, "collection", itemType, path, dispatcher);
|
|
495
501
|
}
|
|
496
|
-
setOrderedCollectionDispatcher(name,
|
|
497
|
-
return this.#setCustomCollectionDispatcher(name, "orderedCollection",
|
|
502
|
+
setOrderedCollectionDispatcher(name, itemType, path, dispatcher) {
|
|
503
|
+
return this.#setCustomCollectionDispatcher(name, "orderedCollection", itemType, path, dispatcher);
|
|
498
504
|
}
|
|
499
505
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
|
500
506
|
const strName = String(name);
|
|
@@ -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-C5udJemk.js";
|
|
7
7
|
import { parseSemVer } from "./semver-dArNLkR9.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
package/dist/compat/mod.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../kv-63Cil1MD.cjs";
|
|
2
2
|
import "../docloader-D-MrRyHl.cjs";
|
|
3
3
|
import "../client-DjT_tegg.cjs";
|
|
4
|
-
import "../vocab-
|
|
5
|
-
import "../actor-
|
|
6
|
-
import "../http-
|
|
7
|
-
import "../owner-
|
|
8
|
-
import "../mod-
|
|
4
|
+
import "../vocab-Cfs0937i.cjs";
|
|
5
|
+
import "../actor-Ydzhc8dj.cjs";
|
|
6
|
+
import "../http-B1_DzfAU.cjs";
|
|
7
|
+
import "../owner-6KSEp9eV.cjs";
|
|
8
|
+
import "../mod-BUbqxBev.cjs";
|
|
9
9
|
import "../mod-jQ4OODsl.cjs";
|
|
10
|
-
import { ActivityTransformer } from "../context-
|
|
10
|
+
import { ActivityTransformer } from "../context-Qnv814-p.cjs";
|
|
11
11
|
import "../mq-B7R1Q-M5.cjs";
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-COTXAYRl.cjs";
|
|
13
13
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "../kv-C7sopW2E.js";
|
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
|
5
5
|
import "../client-DF8anIB5.js";
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
6
|
+
import "../vocab-CDHNj5zp.js";
|
|
7
|
+
import "../actor-C1Euqngb.js";
|
|
8
|
+
import "../http-wsGR6KkT.js";
|
|
9
|
+
import "../owner-BbeUDvOu.js";
|
|
10
|
+
import "../mod-CDObsV1d.js";
|
|
11
11
|
import "../mod-DBzN0aCM.js";
|
|
12
|
-
import { ActivityTransformer } from "../context-
|
|
12
|
+
import { ActivityTransformer } from "../context-C51zGhGC.js";
|
|
13
13
|
import "../mq-CRGm1e_F.js";
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-o-hx_hU8.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-C5udJemk.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-Bcv0xCjs.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-BWusKCWF.js";
|
|
14
|
+
import "../lookup-RINL4MOa.js";
|
|
15
15
|
import "../types-BIgY6c-l.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-CQzdjHs3.js";
|
|
17
|
+
import "../key-C5cRHj8g.js";
|
|
18
|
+
import "../http-BiKoa3o_.js";
|
|
19
|
+
import "../authdocloader-CzmsYrAn.js";
|
|
20
|
+
import "../ld-BWADNtQr.js";
|
|
21
|
+
import "../owner-QEQV9vx-.js";
|
|
22
|
+
import "../proof-g2_9VhUQ.js";
|
|
23
|
+
import "../inbox-CzGsgKH-.js";
|
|
24
|
+
import "../builder-D2Oyy8AY.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-rO8ea311.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-cTLNXtTp.js";
|
|
29
|
+
import { test } from "../testing-CNtyBr2m.js";
|
|
30
30
|
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|