@fedify/fedify 1.8.1-pr.315.1090 → 1.8.1-pr.318.1225
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 +4 -1
- package/dist/{actor-BX-pKSuT.js → actor-C5n4A944.js} +1 -4
- package/dist/{actor-1rvS-py8.d.ts → actor-CWNAGvnO.d.ts} +2 -2
- package/dist/{actor-C02Getjh.js → actor-s5mQBwHr.js} +179 -179
- package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-AjlKk-Vo.js} +1 -1
- package/dist/{assert_throws-DTDC_gwN.js → assert_throws-CqMKbTh_.js} +1 -1
- package/dist/{authdocloader-BZs3nvC8.js → authdocloader-4RSyvLgz.js} +4 -5
- package/dist/{authdocloader-BbVFhkcz.js → authdocloader-CPaXUreA.js} +4 -4
- package/dist/{builder-DuW8p2S3.js → builder-CChGxW97.js} +74 -5
- package/dist/{client-BD0mI7gk.js → client-49mgdebk.js} +2 -2
- package/dist/{client-DK4qnXK0.d.ts → client-B0IOer6B.d.ts} +1 -1
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +20 -27
- package/dist/{context-BhO5LP_t.d.ts → context-BNA3vzcr.d.ts} +273 -60
- package/dist/{docloader-DtGccyuM.d.ts → docloader-CLolPVL_.d.ts} +2 -11
- package/dist/{docloader-umQd797n.js → docloader-DfooRmPz.js} +26 -13
- package/dist/{esm-d-9EVGaP.js → esm-3l5DpT9c.js} +1 -1
- package/dist/federation/builder.test.js +30 -16
- package/dist/federation/collection.test.js +9 -7
- package/dist/federation/handler.test.js +336 -35
- package/dist/federation/inbox.test.js +6 -10
- package/dist/federation/keycache.test.js +4 -7
- package/dist/federation/kv.test.js +8 -6
- package/dist/federation/middleware.test.js +58 -35
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +10 -8
- package/dist/federation/retry.test.js +5 -3
- package/dist/federation/router.test.js +8 -7
- package/dist/federation/send.test.js +15 -21
- package/dist/{http-Cp-0z2Ja.d.ts → http-COez3YdK.d.ts} +4 -4
- package/dist/{http-CkS9JLmm.js → http-CsGPBDOo.js} +5 -4
- package/dist/{http-D59x3pzl.js → http-DyZD6UXI.js} +4 -4
- package/dist/{inbox-BjyNe-HL.js → inbox-DVl0Nqfm.js} +1 -3
- package/dist/{key-Btkh3AwY.js → key-CNNi5ktf.js} +3 -3
- package/dist/{key-jxin-rRq.js → key-CvnCx-As.js} +3 -4
- package/dist/{key-Cf8lNopw.js → key-MvqIkRnS.js} +4 -4
- package/dist/key-X4-XaJF1.js +10 -0
- package/dist/{keycache-BC5bL06g.js → keycache-BZR7b67J.js} +1 -1
- package/dist/{keys-Dfntfi5m.js → keys-CFFCiRYU.js} +1 -1
- package/dist/{kv-DDdb1hMa.d.ts → kv-BqOK6zss.d.ts} +1 -1
- package/dist/{ld-DwoZFwEd.js → ld-BDA3JCwf.js} +2 -4
- package/dist/{lookup-CAXRxPZ3.js → lookup-DcB1UuZA.js} +116 -10
- package/dist/{lookup-gQIU9tXW.js → lookup-mq8Ba5Kb.js} +2 -3
- package/dist/{lookup-m3U6KA0u.d.ts → lookup-tSXYzgYs.d.ts} +1 -7
- package/dist/{middleware-BOHju0mN.js → middleware-BKoKlIe8.js} +617 -12
- package/dist/middleware-CJiChbvg.js +26 -0
- package/dist/middleware-D6H2vPkH.js +17 -0
- package/dist/{middleware-cN6r9o1m.js → middleware-XOfMDFVl.js} +556 -25
- package/dist/{mod-yPzXIjJX.d.ts → mod-Bf-mThHd.d.ts} +4 -4
- package/dist/{mod-BqCBztub.d.ts → mod-C2jQirfr.d.ts} +2 -7
- package/dist/{mod-nlVEnYuj.d.ts → mod-CxD6XXBN.d.ts} +5 -5
- package/dist/{mod-c1I-Ydch.d.ts → mod-UTC30uNC.d.ts} +2 -2
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +11 -11
- package/dist/nodeinfo/handler.test.js +25 -34
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +9 -7
- package/dist/nodeinfo/types.test.js +10 -8
- package/dist/{owner-BK4eWKBp.d.ts → owner-BlxMNrL4.d.ts} +3 -3
- package/dist/{owner-BrSLT3By.js → owner-D_-GBbn-.js} +2 -3
- package/dist/{proof-u4rhYX_R.js → proof-BnFHVB6H.js} +3 -5
- package/dist/{proof-BDYegzwN.js → proof-C94_doNG.js} +4 -4
- package/dist/runtime/authdocloader.test.js +14 -20
- package/dist/runtime/docloader.test.js +9 -10
- package/dist/runtime/key.test.js +10 -15
- package/dist/runtime/langstr.test.js +8 -7
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -7
- package/dist/runtime/url.test.js +5 -4
- package/dist/{send-DRDKgORs.js → send-DcuZAIY1.js} +2 -2
- package/dist/sig/http.test.js +36 -19
- package/dist/sig/key.test.js +11 -17
- package/dist/sig/ld.test.js +10 -16
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +12 -19
- package/dist/sig/proof.test.js +12 -18
- package/dist/testing/docloader.test.js +8 -7
- package/dist/testing/mod.d.ts +8599 -1
- package/dist/testing/mod.js +4 -2
- package/dist/testing-C4oxyGxC.js +302 -0
- package/dist/{transformers-ghwJuzGY.js → transformers-DJRB0yFF.js} +3 -3
- package/dist/{vocab-C4cyrUaT.js → type-CFzYOYUt.js} +5255 -183
- package/dist/{types-D1lhruqy.js → types-Cr8o5d6d.js} +1 -1
- package/dist/{types-C7C_l-jz.js → types-n7HI7VFr.js} +1 -1
- package/dist/vocab/actor.test.js +10 -16
- package/dist/vocab/lookup.test.js +11 -86
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -7
- package/dist/vocab/vocab.test.js +9 -13
- package/dist/{vocab-BaWeqg9y.js → vocab-BwGxoM8R.js} +6 -7
- package/dist/{vocab-B52eQhpN.d.ts → vocab-Cyrb7_co.d.ts} +1 -1
- package/dist/webfinger/handler.test.js +25 -34
- package/dist/webfinger/lookup.test.js +9 -64
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +8 -6
- package/dist/x/hono.d.ts +14 -14
- package/dist/x/hono.js +2 -2
- package/dist/x/sveltekit.d.ts +11 -11
- package/dist/x/sveltekit.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-HsBuZ-b2.js +0 -41
- package/dist/context-V7yd31ov.js +0 -108
- package/dist/docloader-Bh-sDknx.js +0 -68
- package/dist/docloader-D5BOqs-9.js +0 -4514
- package/dist/key-DqZKjPjH.js +0 -16
- package/dist/langstr-DbWheeIS.js +0 -33
- package/dist/lookup-DvfZUKur.js +0 -133
- package/dist/middleware-31SyXabg.js +0 -33
- package/dist/middleware-CGl-YyTa.js +0 -17
- package/dist/multibase-DeCHcK8L.js +0 -316
- package/dist/router-D3UybECj.js +0 -118
- package/dist/testing-BZ0dJ4qn.js +0 -143
- package/dist/type-D2s5lmbZ.js +0 -14
- package/dist/url-kTAI6_KP.js +0 -68
- /package/dist/{assert_is_error-DQdKoRgb.js → assert_is_error-CeVBLPsZ.js} +0 -0
- /package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-D2R2nl5h.js} +0 -0
- /package/dist/{collection-Dfb0TPno.js → collection-D5V3UzU3.js} +0 -0
- /package/dist/{denokv-QWKsIqML.js → denokv-DK9P5Jq7.js} +0 -0
- /package/dist/{retry-BiIhZWgD.js → retry-BnpVRGFC.js} +0 -0
- /package/dist/{semver-DWClQt_5.js → semver-DCqorrj5.js} +0 -0
- /package/dist/{std__assert-B3iAixc-.js → std__assert-BQdmxyzF.js} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { getUserAgent } from "./docloader-
|
|
5
|
+
import { getUserAgent } from "./docloader-DfooRmPz.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
|
|
8
8
|
//#region nodeinfo/semver.ts
|
package/dist/vocab/actor.test.js
CHANGED
|
@@ -3,25 +3,19 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __export } from "../
|
|
6
|
+
import { Application, Group, Organization, Person, Service, __export } from "../type-CFzYOYUt.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 "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import {
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { assertStrictEquals } from "../std__assert-B3iAixc-.js";
|
|
20
|
-
import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
21
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
22
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
23
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
24
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C5n4A944.js";
|
|
12
|
+
import { test } from "../testing-C4oxyGxC.js";
|
|
13
|
+
import { assertStrictEquals } from "../std__assert-BQdmxyzF.js";
|
|
14
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
15
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
16
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
17
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
18
|
+
import { esm_default } from "../esm-3l5DpT9c.js";
|
|
25
19
|
|
|
26
20
|
//#region ../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
|
27
21
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
|
@@ -3,31 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Collection, Note, Object as Object$1, Person } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import {
|
|
17
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
18
|
-
import "../std__assert-B3iAixc-.js";
|
|
19
|
-
import "../assert_rejects-DceVjUlD.js";
|
|
20
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
21
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
22
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
23
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
24
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import { lookupObject, traverseCollection } from "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
12
|
+
import "../std__assert-BQdmxyzF.js";
|
|
13
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
17
|
+
import { esm_default } from "../esm-3l5DpT9c.js";
|
|
25
18
|
|
|
26
19
|
//#region vocab/lookup.test.ts
|
|
27
|
-
test("lookupObject()", {
|
|
28
|
-
sanitizeResources: false,
|
|
29
|
-
sanitizeOps: false
|
|
30
|
-
}, async (t) => {
|
|
20
|
+
test("lookupObject()", async (t) => {
|
|
31
21
|
esm_default.spyGlobal();
|
|
32
22
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
33
23
|
subject: "acct:johndoe@example.com",
|
|
@@ -90,74 +80,9 @@ test("lookupObject()", {
|
|
|
90
80
|
assertEquals(await lookupObject("janedoe@example.com", options), null);
|
|
91
81
|
assertEquals(await lookupObject("https://example.com/404", options), null);
|
|
92
82
|
});
|
|
93
|
-
esm_default.removeRoutes();
|
|
94
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
95
|
-
setTimeout(() => {
|
|
96
|
-
resolve({
|
|
97
|
-
subject: "acct:johndoe@example.com",
|
|
98
|
-
links: [{
|
|
99
|
-
rel: "self",
|
|
100
|
-
href: "https://example.com/person",
|
|
101
|
-
type: "application/activity+json"
|
|
102
|
-
}]
|
|
103
|
-
});
|
|
104
|
-
}, 1e3);
|
|
105
|
-
}));
|
|
106
|
-
await t.step("request cancellation", async () => {
|
|
107
|
-
const controller = new AbortController();
|
|
108
|
-
const promise = lookupObject("johndoe@example.com", {
|
|
109
|
-
...options,
|
|
110
|
-
signal: controller.signal
|
|
111
|
-
});
|
|
112
|
-
controller.abort();
|
|
113
|
-
assertEquals(await promise, null);
|
|
114
|
-
});
|
|
115
|
-
esm_default.removeRoutes();
|
|
116
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
117
|
-
subject: "acct:johndoe@example.com",
|
|
118
|
-
links: [{
|
|
119
|
-
rel: "self",
|
|
120
|
-
href: "https://example.com/person",
|
|
121
|
-
type: "application/activity+json"
|
|
122
|
-
}]
|
|
123
|
-
});
|
|
124
|
-
await t.step("successful request with signal", async () => {
|
|
125
|
-
const controller = new AbortController();
|
|
126
|
-
const person = await lookupObject("johndoe@example.com", {
|
|
127
|
-
...options,
|
|
128
|
-
signal: controller.signal
|
|
129
|
-
});
|
|
130
|
-
assertInstanceOf(person, Person);
|
|
131
|
-
assertEquals(person.id, new URL("https://example.com/person"));
|
|
132
|
-
});
|
|
133
|
-
esm_default.removeRoutes();
|
|
134
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
135
|
-
setTimeout(() => {
|
|
136
|
-
resolve({
|
|
137
|
-
subject: "acct:johndoe@example.com",
|
|
138
|
-
links: [{
|
|
139
|
-
rel: "self",
|
|
140
|
-
href: "https://example.com/person",
|
|
141
|
-
type: "application/activity+json"
|
|
142
|
-
}]
|
|
143
|
-
});
|
|
144
|
-
}, 500);
|
|
145
|
-
}));
|
|
146
|
-
await t.step("cancellation with immediate abort", async () => {
|
|
147
|
-
const controller = new AbortController();
|
|
148
|
-
controller.abort();
|
|
149
|
-
const result = await lookupObject("johndoe@example.com", {
|
|
150
|
-
...options,
|
|
151
|
-
signal: controller.signal
|
|
152
|
-
});
|
|
153
|
-
assertEquals(result, null);
|
|
154
|
-
});
|
|
155
83
|
esm_default.hardReset();
|
|
156
84
|
});
|
|
157
|
-
test("traverseCollection()", {
|
|
158
|
-
sanitizeResources: false,
|
|
159
|
-
sanitizeOps: false
|
|
160
|
-
}, async () => {
|
|
85
|
+
test("traverseCollection()", async () => {
|
|
161
86
|
const options = {
|
|
162
87
|
documentLoader: mockDocumentLoader,
|
|
163
88
|
contextLoader: mockDocumentLoader
|
package/dist/vocab/mod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "../vocab-
|
|
6
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
|
7
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-
|
|
3
|
+
import "../kv-BqOK6zss.js";
|
|
4
|
+
import "../docloader-CLolPVL_.js";
|
|
5
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "../vocab-Cyrb7_co.js";
|
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-CWNAGvnO.js";
|
|
7
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-C2jQirfr.js";
|
|
8
8
|
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/mod.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../docloader-
|
|
6
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-
|
|
7
|
-
import "../lookup-
|
|
8
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-
|
|
5
|
+
import "../docloader-DfooRmPz.js";
|
|
6
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-s5mQBwHr.js";
|
|
7
|
+
import "../lookup-mq8Ba5Kb.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-BwGxoM8R.js";
|
|
9
9
|
|
|
10
10
|
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Person, getTypeId } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../multibase-DeCHcK8L.js";
|
|
10
|
-
import { Person } from "../vocab-C4cyrUaT.js";
|
|
11
|
-
import "../langstr-DbWheeIS.js";
|
|
12
|
-
import { getTypeId } from "../type-D2s5lmbZ.js";
|
|
13
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
8
|
+
import "../lookup-DcB1UuZA.js";
|
|
9
|
+
import { test } from "../testing-C4oxyGxC.js";
|
|
14
10
|
|
|
15
11
|
//#region vocab/type.test.ts
|
|
16
12
|
test("getTypeId()", () => {
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -3,22 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import "../
|
|
16
|
-
import {
|
|
17
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
18
|
-
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
|
19
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
20
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-Dfntfi5m.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
12
|
+
import "../std__assert-BQdmxyzF.js";
|
|
13
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
17
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CFFCiRYU.js";
|
|
22
18
|
import { pascalCase } from "es-toolkit";
|
|
23
19
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
24
20
|
import { Validator } from "@cfworker/json-schema";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-DfooRmPz.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-s5mQBwHr.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-mq8Ba5Kb.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { delay } from "es-toolkit";
|
|
@@ -154,7 +154,7 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
|
154
154
|
if (typeof identifier === "string") identifier = toAcctUrl(identifier) ?? new URL(identifier);
|
|
155
155
|
let document = null;
|
|
156
156
|
if (identifier.protocol === "http:" || identifier.protocol === "https:") try {
|
|
157
|
-
const remoteDoc = await documentLoader(identifier.href
|
|
157
|
+
const remoteDoc = await documentLoader(identifier.href);
|
|
158
158
|
document = remoteDoc.document;
|
|
159
159
|
} catch (error) {
|
|
160
160
|
logger.debug("Failed to fetch remote document:\n{error}", { error });
|
|
@@ -163,14 +163,13 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
|
163
163
|
const jrd = await lookupWebFinger(identifier, {
|
|
164
164
|
userAgent: options.userAgent,
|
|
165
165
|
tracerProvider: options.tracerProvider,
|
|
166
|
-
allowPrivateAddress: "allowPrivateAddress" in options && options.allowPrivateAddress === true
|
|
167
|
-
signal: options.signal
|
|
166
|
+
allowPrivateAddress: "allowPrivateAddress" in options && options.allowPrivateAddress === true
|
|
168
167
|
});
|
|
169
168
|
if (jrd?.links == null) return null;
|
|
170
169
|
for (const l of jrd.links) {
|
|
171
170
|
if (l.type !== "application/activity+json" && !l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self") continue;
|
|
172
171
|
try {
|
|
173
|
-
const remoteDoc = await documentLoader(l.href
|
|
172
|
+
const remoteDoc = await documentLoader(l.href);
|
|
174
173
|
document = remoteDoc.document;
|
|
175
174
|
break;
|
|
176
175
|
} catch (error) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
3
|
+
import { DocumentLoader } from "./docloader-CLolPVL_.js";
|
|
4
4
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
5
5
|
import { LanguageTag } from "@phensley/language-tag";
|
|
6
6
|
|
|
@@ -3,44 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Image, Link, Person } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
10
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import "../
|
|
20
|
-
import "../
|
|
21
|
-
import "../
|
|
22
|
-
import "../
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
27
|
-
import "../
|
|
28
|
-
import "../
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../
|
|
32
|
-
import "../
|
|
33
|
-
import "../
|
|
34
|
-
import "../retry-BiIhZWgD.js";
|
|
35
|
-
import "../send-DRDKgORs.js";
|
|
36
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
37
|
-
import "../std__assert-B3iAixc-.js";
|
|
38
|
-
import "../assert_rejects-DceVjUlD.js";
|
|
39
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
40
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
41
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
42
|
-
import "../docloader-Bh-sDknx.js";
|
|
43
|
-
import { createRequestContext } from "../context-V7yd31ov.js";
|
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-XOfMDFVl.js";
|
|
12
|
+
import "../semver-DCqorrj5.js";
|
|
13
|
+
import "../client-49mgdebk.js";
|
|
14
|
+
import "../lookup-DcB1UuZA.js";
|
|
15
|
+
import "../types-n7HI7VFr.js";
|
|
16
|
+
import "../actor-C5n4A944.js";
|
|
17
|
+
import "../key-CvnCx-As.js";
|
|
18
|
+
import "../http-DyZD6UXI.js";
|
|
19
|
+
import "../authdocloader-4RSyvLgz.js";
|
|
20
|
+
import "../ld-BDA3JCwf.js";
|
|
21
|
+
import "../owner-D_-GBbn-.js";
|
|
22
|
+
import "../proof-BnFHVB6H.js";
|
|
23
|
+
import "../inbox-DVl0Nqfm.js";
|
|
24
|
+
import "../builder-CChGxW97.js";
|
|
25
|
+
import "../collection-D5V3UzU3.js";
|
|
26
|
+
import "../keycache-BZR7b67J.js";
|
|
27
|
+
import "../retry-BnpVRGFC.js";
|
|
28
|
+
import "../send-DcuZAIY1.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-C4oxyGxC.js";
|
|
30
|
+
import "../std__assert-BQdmxyzF.js";
|
|
31
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
32
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
34
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
44
35
|
|
|
45
36
|
//#region webfinger/handler.test.ts
|
|
46
37
|
test("handleWebFinger()", async (t) => {
|
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { lookupWebFinger } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
18
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { test } from "../testing-C4oxyGxC.js";
|
|
12
|
+
import "../std__assert-BQdmxyzF.js";
|
|
13
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
17
|
+
import { esm_default } from "../esm-3l5DpT9c.js";
|
|
19
18
|
import { withTimeout } from "es-toolkit";
|
|
20
19
|
|
|
21
20
|
//#region webfinger/lookup.test.ts
|
|
@@ -135,60 +134,6 @@ test({
|
|
|
135
134
|
redirectCount = 0;
|
|
136
135
|
assertEquals(await lookupWebFinger("acct:johndoe@example.com"), expected);
|
|
137
136
|
});
|
|
138
|
-
esm_default.removeRoutes();
|
|
139
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger?", () => new Promise((resolve) => {
|
|
140
|
-
const timeoutId = setTimeout(() => {
|
|
141
|
-
resolve({ body: expected });
|
|
142
|
-
}, 1e3);
|
|
143
|
-
return () => clearTimeout(timeoutId);
|
|
144
|
-
}));
|
|
145
|
-
await t.step("request cancellation", async () => {
|
|
146
|
-
const controller = new AbortController();
|
|
147
|
-
const promise = lookupWebFinger("acct:johndoe@example.com", { signal: controller.signal });
|
|
148
|
-
controller.abort();
|
|
149
|
-
assertEquals(await promise, null);
|
|
150
|
-
});
|
|
151
|
-
esm_default.removeRoutes();
|
|
152
|
-
let redirectCount2 = 0;
|
|
153
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", () => {
|
|
154
|
-
redirectCount2++;
|
|
155
|
-
if (redirectCount2 === 1) return {
|
|
156
|
-
status: 302,
|
|
157
|
-
headers: { Location: "/.well-known/webfinger2" }
|
|
158
|
-
};
|
|
159
|
-
return new Promise((resolve) => {
|
|
160
|
-
const timeoutId = setTimeout(() => {
|
|
161
|
-
resolve({ body: expected });
|
|
162
|
-
}, 1e3);
|
|
163
|
-
return () => clearTimeout(timeoutId);
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
await t.step("cancellation during redirection", async () => {
|
|
167
|
-
const controller = new AbortController();
|
|
168
|
-
const promise = lookupWebFinger("acct:johndoe@example.com", { signal: controller.signal });
|
|
169
|
-
setTimeout(() => controller.abort(), 100);
|
|
170
|
-
assertEquals(await promise, null);
|
|
171
|
-
});
|
|
172
|
-
esm_default.removeRoutes();
|
|
173
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger?", () => new Promise((resolve) => {
|
|
174
|
-
const timeoutId = setTimeout(() => {
|
|
175
|
-
resolve({ body: expected });
|
|
176
|
-
}, 500);
|
|
177
|
-
return () => clearTimeout(timeoutId);
|
|
178
|
-
}));
|
|
179
|
-
await t.step("cancellation with immediate abort", async () => {
|
|
180
|
-
const controller = new AbortController();
|
|
181
|
-
controller.abort();
|
|
182
|
-
const result = await lookupWebFinger("acct:johndoe@example.com", { signal: controller.signal });
|
|
183
|
-
assertEquals(result, null);
|
|
184
|
-
});
|
|
185
|
-
esm_default.removeRoutes();
|
|
186
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger?", { body: expected });
|
|
187
|
-
await t.step("successful request with signal", async () => {
|
|
188
|
-
const controller = new AbortController();
|
|
189
|
-
const result = await lookupWebFinger("acct:johndoe@example.com", { signal: controller.signal });
|
|
190
|
-
assertEquals(result, expected);
|
|
191
|
-
});
|
|
192
137
|
esm_default.hardReset();
|
|
193
138
|
}
|
|
194
139
|
});
|
package/dist/webfinger/mod.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-
|
|
3
|
+
import "../kv-BqOK6zss.js";
|
|
4
|
+
import "../docloader-CLolPVL_.js";
|
|
5
|
+
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-tSXYzgYs.js";
|
|
6
6
|
import "../mod-GIh5OYxW.js";
|
|
7
7
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../docloader-
|
|
6
|
-
import { lookupWebFinger } from "../lookup-
|
|
5
|
+
import "../docloader-DfooRmPz.js";
|
|
6
|
+
import { lookupWebFinger } from "../lookup-mq8Ba5Kb.js";
|
|
7
7
|
import "../webfinger-C3GIyXIg.js";
|
|
8
8
|
|
|
9
9
|
export { lookupWebFinger };
|
package/dist/x/cfworkers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions } from "../kv-
|
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions } from "../kv-BqOK6zss.js";
|
|
4
4
|
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "../mq-DYKDDJmp.js";
|
|
5
5
|
import { KVNamespace, Queue } from "@cloudflare/workers-types/experimental";
|
|
6
6
|
|
package/dist/x/cfworkers.test.js
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { test } from "../testing-C4oxyGxC.js";
|
|
12
|
+
import "../std__assert-BQdmxyzF.js";
|
|
13
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
15
17
|
import { delay } from "es-toolkit";
|
|
16
18
|
|
|
17
19
|
//#region x/cfworkers.ts
|
package/dist/x/hono.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../client-
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { Federation } from "../context-
|
|
3
|
+
import "../kv-BqOK6zss.js";
|
|
4
|
+
import "../docloader-CLolPVL_.js";
|
|
5
|
+
import "../client-B0IOer6B.js";
|
|
6
|
+
import "../vocab-Cyrb7_co.js";
|
|
7
|
+
import "../actor-CWNAGvnO.js";
|
|
8
|
+
import "../http-COez3YdK.js";
|
|
9
|
+
import "../owner-BlxMNrL4.js";
|
|
10
|
+
import "../mod-C2jQirfr.js";
|
|
11
|
+
import "../lookup-tSXYzgYs.js";
|
|
12
|
+
import { Federation } from "../context-BNA3vzcr.js";
|
|
13
13
|
import "../mq-DYKDDJmp.js";
|
|
14
14
|
|
|
15
15
|
//#region x/hono.d.ts
|
|
@@ -25,9 +25,9 @@ type HonoMiddleware<THonoContext extends HonoContext> = (ctx: THonoContext, next
|
|
|
25
25
|
* A factory function to create a context data for the {@link Federation}
|
|
26
26
|
* object.
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
28
|
+
* @template TContextData A type of the context data for the {@link Federation}
|
|
29
29
|
* object.
|
|
30
|
-
* @
|
|
30
|
+
* @template THonoContext A type of the Hono context.
|
|
31
31
|
* @param context A Hono context object.
|
|
32
32
|
* @returns A context data for the {@link Federation} object.
|
|
33
33
|
*/
|
|
@@ -35,9 +35,9 @@ type ContextDataFactory<TContextData, THonoContext> = (context: THonoContext) =>
|
|
|
35
35
|
/**
|
|
36
36
|
* Create a Hono middleware to integrate with the {@link Federation} object.
|
|
37
37
|
*
|
|
38
|
-
* @
|
|
38
|
+
* @template TContextData A type of the context data for the {@link Federation}
|
|
39
39
|
* object.
|
|
40
|
-
* @
|
|
40
|
+
* @template THonoContext A type of the Hono context.
|
|
41
41
|
* @param federation A {@link Federation} object to integrate with Hono.
|
|
42
42
|
* @param contextDataFactory A function to create a context data for the
|
|
43
43
|
* {@link Federation} object.
|
package/dist/x/hono.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a Hono middleware to integrate with the {@link Federation} object.
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @template TContextData A type of the context data for the {@link Federation}
|
|
10
10
|
* object.
|
|
11
|
-
* @
|
|
11
|
+
* @template THonoContext A type of the Hono context.
|
|
12
12
|
* @param federation A {@link Federation} object to integrate with Hono.
|
|
13
13
|
* @param contextDataFactory A function to create a context data for the
|
|
14
14
|
* {@link Federation} object.
|
package/dist/x/sveltekit.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../client-
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { Federation } from "../context-
|
|
3
|
+
import "../kv-BqOK6zss.js";
|
|
4
|
+
import "../docloader-CLolPVL_.js";
|
|
5
|
+
import "../client-B0IOer6B.js";
|
|
6
|
+
import "../vocab-Cyrb7_co.js";
|
|
7
|
+
import "../actor-CWNAGvnO.js";
|
|
8
|
+
import "../http-COez3YdK.js";
|
|
9
|
+
import "../owner-BlxMNrL4.js";
|
|
10
|
+
import "../mod-C2jQirfr.js";
|
|
11
|
+
import "../lookup-tSXYzgYs.js";
|
|
12
|
+
import { Federation } from "../context-BNA3vzcr.js";
|
|
13
13
|
import "../mq-DYKDDJmp.js";
|
|
14
14
|
|
|
15
15
|
//#region x/sveltekit.d.ts
|
|
@@ -31,7 +31,7 @@ type HookParams = {
|
|
|
31
31
|
* export const handle = fedifyHook(federation, () => undefined);
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
|
-
* @
|
|
34
|
+
* @template TContextData A type of the context data for the {@link Federation}
|
|
35
35
|
* object.
|
|
36
36
|
* @param federation A {@link Federation} object to integrate with SvelteKit.
|
|
37
37
|
* @param createContextData A function to create a context data for the
|