@fedify/fedify 1.9.0-pr.443.1682 → 1.9.0-pr.455.1742
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-sT_gcgkl.d.ts → actor-C1Euqngb.d.ts} +1 -1
- package/dist/{actor-DNoKtm0e.js → actor-CL8lYYUx.js} +1 -1
- package/dist/{actor-BfM4acO7.js → actor-CYnaKz6k.js} +6169 -2946
- package/dist/{actor-C84MVjvg.cjs → actor-D_0j9hMV.cjs} +6169 -2946
- package/dist/{actor-D8GmZX63.d.cts → actor-Ydzhc8dj.d.cts} +1 -1
- package/dist/{authdocloader-BZ3wxRbU.cjs → authdocloader-AGT1bvSf.cjs} +3 -3
- package/dist/{authdocloader-BMUj-LDP.js → authdocloader-BlVoSqyh.js} +3 -3
- package/dist/{authdocloader-CSF0HpUd.js → authdocloader-CRuH00Tu.js} +3 -3
- package/dist/{builder-DbzYJjYW.js → builder-CqMKWEN0.js} +14 -8
- package/dist/{client-BXo-ifnJ.js → client-BM12q1DJ.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-Cp-kboln.d.ts → context-CXUibY4L.d.ts} +179 -116
- package/dist/{context-BkqGJwLI.d.cts → context-CwUAkopp.d.cts} +179 -116
- package/dist/{docloader-vwID5KeD.js → docloader-BggS4E4F.js} +1 -1
- package/dist/{docloader-C8VNT_Xq.cjs → docloader-CLtA3Ji8.cjs} +1 -1
- package/dist/{esm-BrKG8Ydq.js → esm-B3jpomik.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-D21OQwhJ.cjs → http-2m_h3SPQ.cjs} +3 -3
- package/dist/{http-B9UPBFJz.d.cts → http-B1_DzfAU.d.cts} +1 -1
- package/dist/{http-1S7OolRE.js → http-D53H7oqD.js} +3 -3
- package/dist/{http-PJ3EklL0.js → http-DNkYeLxx.js} +2 -2
- package/dist/{http-BGqh2jzk.d.ts → http-wsGR6KkT.d.ts} +1 -1
- package/dist/{inbox-4wLOWRkP.js → inbox-FbqGLKha.js} +29 -7
- package/dist/{key-CH7qaiOX.js → key-B42BY6RL.js} +2 -2
- package/dist/{key-7YeppNTi.js → key-BVNVEpXg.js} +2 -2
- package/dist/key-CYO3d3Bc.cjs +10 -0
- package/dist/{key-Bt6aeupK.cjs → key-CZzEU9nv.cjs} +2 -2
- package/dist/{key-DTUnLJZM.js → key-Dj6-orIK.js} +3 -3
- package/dist/{key-DbudJOUz.js → key-NaBDH7FK.js} +4 -4
- package/dist/{keycache-OXZYOWra.js → keycache-BLtGOP6f.js} +1 -1
- package/dist/{keys-DMbcSHvH.js → keys-BO3n2h_L.js} +1 -1
- package/dist/{ld-BLx5h_2L.js → ld-CMWQXDty.js} +2 -2
- package/dist/{lookup-B8X3pPjF.js → lookup-B5jlZrQb.js} +21 -12
- package/dist/{lookup-BQHLqqvB.cjs → lookup-BsOmKssB.cjs} +1 -1
- package/dist/{lookup-tJvVI01W.js → lookup-C-jJgyrW.js} +1 -1
- package/dist/middleware-BV1L9XDk.cjs +17 -0
- package/dist/{middleware-DpNXnRa6.js → middleware-CNAH05Vn.js} +78 -47
- package/dist/middleware-Cr46LoSG.js +26 -0
- package/dist/middleware-DAFFQX5e.js +17 -0
- package/dist/{middleware-BN1ZyxrJ.cjs → middleware-DOd67qPG.cjs} +78 -47
- package/dist/{middleware-CPgUeSYU.js → middleware-lg47b3mK.js} +43 -40
- package/dist/{mod-DxjZ8kbs.d.cts → mod-BUbqxBev.d.cts} +19 -1
- package/dist/{mod-OfRtcQo1.d.ts → mod-BcObK1Lz.d.ts} +2 -2
- package/dist/{mod-CnEwcmyF.d.ts → mod-CDObsV1d.d.ts} +19 -1
- package/dist/{mod-TsyIDkKn.d.ts → mod-CIbqfZW0.d.ts} +1 -1
- package/dist/{mod-Cuem8g-I.d.ts → mod-DgcYoyZK.d.ts} +2 -2
- package/dist/{mod-bscaBAIo.d.cts → mod-Dt-G9ZOS.d.cts} +1 -1
- package/dist/{mod-BihGJmMM.d.cts → mod-fjqfsrty.d.cts} +2 -2
- package/dist/{mod-Ds5wiXHw.d.cts → mod-mXx9V0q5.d.cts} +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-BYxDl2qi.d.cts → owner-6KSEp9eV.d.cts} +2 -2
- package/dist/{owner-DOUl7e-t.d.ts → owner-BbeUDvOu.d.ts} +2 -2
- package/dist/{owner-DeXz0uXj.js → owner-Ch2ApIpq.js} +2 -2
- package/dist/{proof-1YMXAyHu.cjs → proof-BtqGVz24.cjs} +3 -3
- package/dist/{proof-C5AaUlDb.js → proof-Cge6SysA.js} +3 -3
- package/dist/{proof-DEbHE-Rp.js → proof-DaD7vIAi.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/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-ZLr2Fq_j.js → send-DE79ptpc.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 +341 -379
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-CyBcyXDK.js → testing-Bh2wmeXp.js} +2 -2
- package/dist/{type-C9v8GMO6.js → type-Du-WE8NC.js} +6297 -3074
- package/dist/{types-B2Gwh9uw.cjs → types-B1n1v8Fa.cjs} +1 -1
- package/dist/{types-KhFFD-xZ.js → types-ChEbJU3f.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 +395 -24
- package/dist/{vocab-BW6SWH9P.d.ts → vocab-CDHNj5zp.d.ts} +158 -497
- package/dist/{vocab-qpRpljdS.d.cts → vocab-Cfs0937i.d.cts} +158 -497
- package/dist/{vocab-95nbu41B.cjs → vocab-DY3aCxLN.cjs} +23 -14
- package/dist/{vocab-DUIA4PK3.js → vocab-Q8XBm9oV.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-C-eEPc5P.cjs +0 -10
- package/dist/middleware-BKKzirBh.cjs +0 -17
- package/dist/middleware-D9dqPUdF.js +0 -17
- package/dist/middleware-ofHkiPKA.js +0 -26
@@ -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-CLtA3Ji8.cjs');
|
7
|
+
const require_key = require('./key-CZzEU9nv.cjs');
|
8
|
+
const require_http = require('./http-2m_h3SPQ.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-Du-WE8NC.js";
|
7
|
+
import { validateCryptoKey } from "./key-B42BY6RL.js";
|
8
|
+
import { doubleKnock } from "./http-DNkYeLxx.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-BggS4E4F.js";
|
6
|
+
import { validateCryptoKey } from "./key-BVNVEpXg.js";
|
7
|
+
import { doubleKnock } from "./http-D53H7oqD.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-Du-WE8NC.js";
|
7
|
+
import { Router, RouterError } from "./lookup-B5jlZrQb.js";
|
8
|
+
import { InboxListenerSet } from "./inbox-FbqGLKha.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-Cr46LoSG.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-Du-WE8NC.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-CwUAkopp.cjs";
|
11
11
|
import "../mq-B7R1Q-M5.cjs";
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-mXx9V0q5.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-CXUibY4L.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-BcObK1Lz.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-Du-WE8NC.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-lg47b3mK.js";
|
12
12
|
import "../semver-dArNLkR9.js";
|
13
|
-
import "../client-
|
14
|
-
import "../lookup-
|
13
|
+
import "../client-BM12q1DJ.js";
|
14
|
+
import "../lookup-B5jlZrQb.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-CL8lYYUx.js";
|
17
|
+
import "../key-B42BY6RL.js";
|
18
|
+
import "../http-DNkYeLxx.js";
|
19
|
+
import "../authdocloader-BlVoSqyh.js";
|
20
|
+
import "../ld-CMWQXDty.js";
|
21
|
+
import "../owner-Ch2ApIpq.js";
|
22
|
+
import "../proof-DaD7vIAi.js";
|
23
|
+
import "../inbox-FbqGLKha.js";
|
24
|
+
import "../builder-CqMKWEN0.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-BLtGOP6f.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { test } from "../testing-
|
28
|
+
import "../send-DE79ptpc.js";
|
29
|
+
import { test } from "../testing-Bh2wmeXp.js";
|
30
30
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|