@fedify/fedify 1.8.1-pr.315.1091 → 1.8.1-pr.324.1113
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-1rvS-py8.d.ts → actor-B4TBtqRP.d.ts} +2 -2
- package/dist/{actor-DLZ25ttS.js → actor-DL1IrPB3.js} +179 -179
- package/dist/{actor-C_d9cZrz.js → actor-arJdM9bO.js} +3 -3
- package/dist/{authdocloader-DUnUXs5R.js → authdocloader-CE_D2aXN.js} +4 -4
- package/dist/{authdocloader-CLixqGPW.js → authdocloader-CgG28PSY.js} +4 -4
- package/dist/{builder-Js_TKEl1.js → builder-0qB6eT1X.js} +3 -3
- package/dist/{client-Cu9HMcIJ.js → client-5Sh9joK3.js} +1 -1
- package/dist/{client-DK4qnXK0.d.ts → client-BQ4AQGKo.d.ts} +1 -1
- package/dist/compat/mod.d.ts +10 -10
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-BhO5LP_t.d.ts → context-B6mUZhs_.d.ts} +8 -8
- package/dist/{context-CXi1nrZE.js → context-D-NETIrC.js} +3 -3
- package/dist/{docloader-Bh-sDknx.js → docloader-09nVWLAZ.js} +1 -1
- package/dist/{docloader-CJ7eOrpZ.js → docloader-B_Zmhgvw.js} +25 -13
- package/dist/{docloader-DtGccyuM.d.ts → docloader-BeCtcTOJ.d.ts} +1 -10
- package/dist/{docloader-BindvZ7y.js → docloader-DDYMj2ho.js} +25 -13
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +20 -20
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +19 -19
- package/dist/federation/mod.d.ts +9 -9
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-BigTqmE7.js → http-Cyf5_0ya.js} +5 -4
- package/dist/{http-Cp-0z2Ja.d.ts → http-D1uoUH4N.d.ts} +2 -2
- package/dist/{http-DIyD7he1.js → http-DIWe3PP6.js} +5 -4
- package/dist/{inbox-BB6ajp8P.js → inbox-ByhUFI57.js} +2 -2
- package/dist/{key-BfI9Ju0m.js → key-AtlyUu4N.js} +2 -2
- package/dist/{key-D9LuuzMv.js → key-BcviTSDX.js} +3 -3
- package/dist/{key-DlkWX5Fp.js → key-Bv0-fxko.js} +4 -4
- package/dist/{key-DG7lKWv0.js → key-ahbfiJhX.js} +5 -5
- package/dist/{keycache-C4C7f09E.js → keycache-D_zHDlbd.js} +1 -1
- package/dist/{keys-BjET3ZIs.js → keys-CP2nqf8X.js} +1 -1
- package/dist/{ld-CYqXYuyr.js → ld-BDGpkUWf.js} +3 -3
- package/dist/{lookup-BYiP0j0F.js → lookup-CXbU83Vz.js} +6 -7
- package/dist/{lookup-_XgQq_BY.js → lookup-CYcIpe2L.js} +2 -3
- package/dist/{lookup-m3U6KA0u.d.ts → lookup-J_m4YZg0.d.ts} +1 -7
- package/dist/{lookup-CEbB0_t_.js → lookup-MQONKyLe.js} +2 -3
- package/dist/middleware-BQiXo1J9.js +33 -0
- package/dist/{middleware-e74I4DJ9.js → middleware-CGG9DMuz.js} +10 -10
- package/dist/middleware-gnjjYxdZ.js +17 -0
- package/dist/{middleware-VSdfWI3m.js → middleware-yfNpq7EN.js} +15 -15
- package/dist/{mod-c1I-Ydch.d.ts → mod-0L5jhGYM.d.ts} +2 -2
- package/dist/{mod-yPzXIjJX.d.ts → mod-BCl7t-Ka.d.ts} +3 -3
- package/dist/{mod-BqCBztub.d.ts → mod-BFwgZ7_K.d.ts} +2 -7
- package/dist/{mod-nlVEnYuj.d.ts → mod-D9qE4iHP.d.ts} +2 -2
- package/dist/mod.d.ts +12 -12
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +19 -19
- package/dist/nodeinfo/mod.d.ts +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-D7RvVquY.js → owner-C7jE2sUO.js} +3 -3
- package/dist/{owner-BK4eWKBp.d.ts → owner-CEv_PfyK.d.ts} +3 -3
- package/dist/{proof-D4z1cLgw.js → proof-Clga1EAE.js} +3 -3
- package/dist/{proof-ChRSmA_D.js → proof-q3sMR7cD.js} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +2 -2
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/mod.d.ts +4 -4
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-DmlRAY0X.js → send-DKpdTV_h.js} +2 -2
- package/dist/sig/http.test.js +31 -8
- package/dist/sig/key.test.js +7 -7
- package/dist/sig/ld.test.js +8 -8
- package/dist/sig/mod.d.ts +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +9 -9
- package/dist/sig/proof.test.js +8 -8
- package/dist/testing/docloader.test.js +1 -1
- package/dist/{types-DuZ6KMHu.js → types-BtbFUCUw.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +7 -99
- package/dist/vocab/mod.d.ts +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-B52eQhpN.d.ts → vocab-By6mpzr-.d.ts} +1 -1
- package/dist/{vocab-CI5oydJj.js → vocab-CI6KcqP7.js} +6 -7
- package/dist/{vocab-dw0HG0EQ.js → vocab-CvoqRrzR.js} +178 -178
- package/dist/webfinger/handler.test.js +19 -19
- package/dist/webfinger/lookup.test.js +2 -56
- package/dist/webfinger/mod.d.ts +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/hono.d.ts +9 -9
- package/dist/x/sveltekit.d.ts +9 -9
- package/package.json +1 -1
- package/dist/middleware-Dd2mc8-e.js +0 -33
- package/dist/middleware-DjA978L0.js +0 -17
|
@@ -6,28 +6,25 @@
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
7
|
import "../assert-DwEa6glZ.js";
|
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../docloader-
|
|
9
|
+
import "../docloader-B_Zmhgvw.js";
|
|
10
10
|
import "../url-kTAI6_KP.js";
|
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
|
12
|
-
import { Collection, Note, Object as Object$1, Person } from "../vocab-
|
|
12
|
+
import { Collection, Note, Object as Object$1, Person } from "../vocab-CvoqRrzR.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
14
|
+
import "../lookup-MQONKyLe.js";
|
|
15
15
|
import "../type-D2s5lmbZ.js";
|
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-CXbU83Vz.js";
|
|
17
17
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
18
18
|
import "../std__assert-B3iAixc-.js";
|
|
19
19
|
import "../assert_rejects-DceVjUlD.js";
|
|
20
20
|
import "../assert_is_error-DQdKoRgb.js";
|
|
21
21
|
import "../assert_not_equals-7pyUM3Ib.js";
|
|
22
22
|
import "../assert_throws-DTDC_gwN.js";
|
|
23
|
-
import { mockDocumentLoader } from "../docloader-
|
|
23
|
+
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
24
24
|
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
25
25
|
|
|
26
26
|
//#region vocab/lookup.test.ts
|
|
27
|
-
test("lookupObject()", {
|
|
28
|
-
sanitizeResources: false,
|
|
29
|
-
sanitizeOps: false
|
|
30
|
-
}, async (t) => {
|
|
27
|
+
test("lookupObject()", async (t) => {
|
|
31
28
|
esm_default.spyGlobal();
|
|
32
29
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
33
30
|
subject: "acct:johndoe@example.com",
|
|
@@ -90,98 +87,9 @@ test("lookupObject()", {
|
|
|
90
87
|
assertEquals(await lookupObject("janedoe@example.com", options), null);
|
|
91
88
|
assertEquals(await lookupObject("https://example.com/404", options), null);
|
|
92
89
|
});
|
|
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
|
-
esm_default.removeRoutes();
|
|
156
|
-
esm_default.get("https://example.com/slow-object", () => new Promise((resolve) => {
|
|
157
|
-
setTimeout(() => {
|
|
158
|
-
resolve({
|
|
159
|
-
status: 200,
|
|
160
|
-
headers: { "Content-Type": "application/activity+json" },
|
|
161
|
-
body: {
|
|
162
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
163
|
-
type: "Note",
|
|
164
|
-
content: "Slow response"
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}, 1e3);
|
|
168
|
-
}));
|
|
169
|
-
await t.step("direct object fetch cancellation", async () => {
|
|
170
|
-
const controller = new AbortController();
|
|
171
|
-
const promise = lookupObject("https://example.com/slow-object", {
|
|
172
|
-
contextLoader: mockDocumentLoader,
|
|
173
|
-
signal: controller.signal
|
|
174
|
-
});
|
|
175
|
-
controller.abort();
|
|
176
|
-
assertEquals(await promise, null);
|
|
177
|
-
});
|
|
178
90
|
esm_default.hardReset();
|
|
179
|
-
esm_default.removeRoutes();
|
|
180
91
|
});
|
|
181
|
-
test("traverseCollection()", {
|
|
182
|
-
sanitizeResources: false,
|
|
183
|
-
sanitizeOps: false
|
|
184
|
-
}, async () => {
|
|
92
|
+
test("traverseCollection()", async () => {
|
|
185
93
|
const options = {
|
|
186
94
|
documentLoader: mockDocumentLoader,
|
|
187
95
|
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
3
|
import "../kv-DDdb1hMa.js";
|
|
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-
|
|
4
|
+
import "../docloader-BeCtcTOJ.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-By6mpzr-.js";
|
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-B4TBtqRP.js";
|
|
7
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-BFwgZ7_K.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-DDYMj2ho.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-DL1IrPB3.js";
|
|
7
|
+
import "../lookup-CYcIpe2L.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-CI6KcqP7.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
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
|
-
import "../docloader-
|
|
7
|
+
import "../docloader-B_Zmhgvw.js";
|
|
8
8
|
import "../url-kTAI6_KP.js";
|
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
|
10
|
-
import { Person } from "../vocab-
|
|
10
|
+
import { Person } from "../vocab-CvoqRrzR.js";
|
|
11
11
|
import "../langstr-DbWheeIS.js";
|
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
7
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../docloader-
|
|
9
|
+
import "../docloader-B_Zmhgvw.js";
|
|
10
10
|
import "../url-kTAI6_KP.js";
|
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
|
12
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-
|
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-CvoqRrzR.js";
|
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
|
14
14
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
15
15
|
import "../std__assert-B3iAixc-.js";
|
|
@@ -17,8 +17,8 @@ import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
|
17
17
|
import "../assert_is_error-DQdKoRgb.js";
|
|
18
18
|
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
|
19
19
|
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
20
|
-
import { mockDocumentLoader } from "../docloader-
|
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
|
20
|
+
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CP2nqf8X.js";
|
|
22
22
|
import { pascalCase } from "es-toolkit";
|
|
23
23
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
24
24
|
import { Validator } from "@cfworker/json-schema";
|
|
@@ -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-BeCtcTOJ.js";
|
|
4
4
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
5
5
|
import { LanguageTag } from "@phensley/language-tag";
|
|
6
6
|
|
|
@@ -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-DDYMj2ho.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-DL1IrPB3.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-CYcIpe2L.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) {
|