@fedify/fedify 1.8.1-pr.315.1087 → 1.8.1-pr.315.1090
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-B4TBtqRP.d.ts → actor-1rvS-py8.d.ts} +2 -2
- package/dist/{actor-COZxxnW-.js → actor-BX-pKSuT.js} +3 -3
- package/dist/{actor-BGN9d-ER.js → actor-C02Getjh.js} +179 -179
- package/dist/{authdocloader-CkDSocuG.js → authdocloader-BZs3nvC8.js} +4 -4
- package/dist/{authdocloader-DuNq0lPa.js → authdocloader-BbVFhkcz.js} +4 -4
- package/dist/{builder-sY-OaLuR.js → builder-DuW8p2S3.js} +3 -3
- package/dist/{client-CwyOrZdQ.js → client-BD0mI7gk.js} +1 -1
- package/dist/{client-BQ4AQGKo.d.ts → client-DK4qnXK0.d.ts} +1 -1
- package/dist/compat/mod.d.ts +10 -10
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-0cwxy1ae.d.ts → context-BhO5LP_t.d.ts} +8 -8
- package/dist/{context-CjO1Eu60.js → context-V7yd31ov.js} +3 -3
- package/dist/{docloader-09nVWLAZ.js → docloader-Bh-sDknx.js} +1 -1
- package/dist/{docloader-Bqnt2g2O.js → docloader-D5BOqs-9.js} +13 -25
- package/dist/{docloader-BeCtcTOJ.d.ts → docloader-DtGccyuM.d.ts} +10 -1
- package/dist/{docloader-DuYPQRhi.js → docloader-umQd797n.js} +13 -25
- 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-CXo5GngC.js → http-CkS9JLmm.js} +3 -3
- package/dist/{http-D1uoUH4N.d.ts → http-Cp-0z2Ja.d.ts} +2 -2
- package/dist/{http-i7pAcF2p.js → http-D59x3pzl.js} +3 -3
- package/dist/{inbox-B4J2j76m.js → inbox-BjyNe-HL.js} +2 -2
- package/dist/{key-DUjSfms_.js → key-Btkh3AwY.js} +2 -2
- package/dist/{key-CgZWNnJ5.js → key-Cf8lNopw.js} +4 -4
- package/dist/{key-BS66bul8.js → key-DqZKjPjH.js} +5 -5
- package/dist/{key-CvYsX4sx.js → key-jxin-rRq.js} +3 -3
- package/dist/{keycache-Dg-EY2GA.js → keycache-BC5bL06g.js} +1 -1
- package/dist/{keys-Dx4HPNvb.js → keys-Dfntfi5m.js} +1 -1
- package/dist/{ld-DgAsa2eP.js → ld-DwoZFwEd.js} +3 -3
- package/dist/{lookup-D0JZLVlO.js → lookup-CAXRxPZ3.js} +5 -5
- package/dist/{lookup-CZsY2pg0.js → lookup-DvfZUKur.js} +1 -1
- package/dist/{lookup-CT58kmo9.js → lookup-gQIU9tXW.js} +1 -1
- package/dist/{lookup-DyzAlXvF.d.ts → lookup-m3U6KA0u.d.ts} +3 -1
- package/dist/middleware-31SyXabg.js +33 -0
- package/dist/{middleware-BZUbnj6j.js → middleware-BOHju0mN.js} +10 -10
- package/dist/middleware-CGl-YyTa.js +17 -0
- package/dist/{middleware-DRtyH_uK.js → middleware-cN6r9o1m.js} +15 -15
- package/dist/{mod-tMrYXlJo.d.ts → mod-BqCBztub.d.ts} +3 -2
- package/dist/{mod-0L5jhGYM.d.ts → mod-c1I-Ydch.d.ts} +2 -2
- package/dist/{mod-ZGWTvT4a.d.ts → mod-nlVEnYuj.d.ts} +2 -2
- package/dist/{mod-BCl7t-Ka.d.ts → mod-yPzXIjJX.d.ts} +3 -3
- 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-CEv_PfyK.d.ts → owner-BK4eWKBp.d.ts} +3 -3
- package/dist/{owner-BB_XHgLB.js → owner-BrSLT3By.js} +3 -3
- package/dist/{proof-BvTaFMjj.js → proof-BDYegzwN.js} +3 -3
- package/dist/{proof-slgx40CA.js → proof-u4rhYX_R.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-V9BHYB-B.js → send-DRDKgORs.js} +2 -2
- package/dist/sig/http.test.js +8 -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-MbRKEexC.js → types-D1lhruqy.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +5 -5
- 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-By6mpzr-.d.ts → vocab-B52eQhpN.d.ts} +1 -1
- package/dist/{vocab-HikH0hh9.js → vocab-BaWeqg9y.js} +5 -5
- package/dist/{vocab-DB_2icZ5.js → vocab-C4cyrUaT.js} +178 -178
- package/dist/webfinger/handler.test.js +19 -19
- package/dist/webfinger/lookup.test.js +2 -2
- 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-BeikD3Yz.js +0 -17
- package/dist/middleware-CxsH4gAU.js +0 -33
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-D5BOqs-9.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-C4cyrUaT.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-Bh-sDknx.js";
|
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-Dfntfi5m.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-DtGccyuM.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-umQd797n.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-C02Getjh.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-gQIU9tXW.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, { signal: options.signal });
|
|
158
158
|
document = remoteDoc.document;
|
|
159
159
|
} catch (error) {
|
|
160
160
|
logger.debug("Failed to fetch remote document:\n{error}", { error });
|
|
@@ -170,7 +170,7 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
|
170
170
|
for (const l of jrd.links) {
|
|
171
171
|
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
172
|
try {
|
|
173
|
-
const remoteDoc = await documentLoader(l.href);
|
|
173
|
+
const remoteDoc = await documentLoader(l.href, { signal: options.signal });
|
|
174
174
|
document = remoteDoc.document;
|
|
175
175
|
break;
|
|
176
176
|
} catch (error) {
|