@fedify/fedify 1.8.1-pr.315.1089 → 1.8.1-pr.315.1091
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-6ZGdUyTU.js → actor-C_d9cZrz.js} +3 -3
- package/dist/{actor-wseKMw85.js → actor-DLZ25ttS.js} +179 -179
- package/dist/{authdocloader-BTCPL7WR.js → authdocloader-CLixqGPW.js} +4 -4
- package/dist/{authdocloader-EijwIgU-.js → authdocloader-DUnUXs5R.js} +4 -4
- package/dist/{builder-CzxIh2TM.js → builder-Js_TKEl1.js} +3 -3
- package/dist/{client-BZRXX1tQ.js → client-Cu9HMcIJ.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-CBKX7mkt.d.ts → context-BhO5LP_t.d.ts} +8 -8
- package/dist/{context-DRua680B.js → context-CXi1nrZE.js} +3 -3
- package/dist/{docloader-09nVWLAZ.js → docloader-Bh-sDknx.js} +1 -1
- package/dist/{docloader-Ci2ZqlAC.js → docloader-BindvZ7y.js} +13 -25
- package/dist/{docloader-pPwozoYc.js → docloader-CJ7eOrpZ.js} +13 -25
- package/dist/{docloader-BeCtcTOJ.d.ts → docloader-DtGccyuM.d.ts} +10 -1
- 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-CTYSNs13.js → http-BigTqmE7.js} +3 -3
- package/dist/{http-D1uoUH4N.d.ts → http-Cp-0z2Ja.d.ts} +2 -2
- package/dist/{http-BjEe2e-1.js → http-DIyD7he1.js} +3 -3
- package/dist/{inbox-BEJ1jCuJ.js → inbox-BB6ajp8P.js} +2 -2
- package/dist/{key-C0LADV6I.js → key-BfI9Ju0m.js} +2 -2
- package/dist/{key-BV6GQBrd.js → key-D9LuuzMv.js} +3 -3
- package/dist/{key-CZcP6KS0.js → key-DG7lKWv0.js} +5 -5
- package/dist/{key-Bx1xBj1K.js → key-DlkWX5Fp.js} +4 -4
- package/dist/{keycache-C6JVPcU_.js → keycache-C4C7f09E.js} +1 -1
- package/dist/{keys-DRsPG_Da.js → keys-BjET3ZIs.js} +1 -1
- package/dist/{ld-CdLqdZ_9.js → ld-CYqXYuyr.js} +3 -3
- package/dist/{lookup-y8VJVm2c.js → lookup-BYiP0j0F.js} +5 -5
- package/dist/{lookup-BoY0Ke_l.js → lookup-CEbB0_t_.js} +1 -1
- package/dist/{lookup-CR8wX97f.js → lookup-_XgQq_BY.js} +1 -1
- package/dist/{lookup-C4hWkBxk.d.ts → lookup-m3U6KA0u.d.ts} +1 -1
- package/dist/middleware-Dd2mc8-e.js +33 -0
- package/dist/middleware-DjA978L0.js +17 -0
- package/dist/{middleware-DCOs6R7U.js → middleware-VSdfWI3m.js} +15 -15
- package/dist/{middleware-QeZ8G8s9.js → middleware-e74I4DJ9.js} +10 -10
- package/dist/{mod-cB3yFF_7.d.ts → mod-BqCBztub.d.ts} +2 -2
- package/dist/{mod-0L5jhGYM.d.ts → mod-c1I-Ydch.d.ts} +2 -2
- package/dist/{mod-C6GBqqWQ.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-C0gFlCL_.js → owner-D7RvVquY.js} +3 -3
- package/dist/{proof-DAAMAukc.js → proof-ChRSmA_D.js} +3 -3
- package/dist/{proof-Dz8KixnY.js → proof-D4z1cLgw.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-DsNrziEt.js → send-DmlRAY0X.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-D-EdCGcO.js → types-DuZ6KMHu.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +29 -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-DaAuYKqm.js → vocab-CI5oydJj.js} +5 -5
- package/dist/{vocab-CJA9Q_w4.js → vocab-dw0HG0EQ.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-BLu0AXhf.js +0 -17
- package/dist/middleware-DB11lEoH.js +0 -33
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-CJ7eOrpZ.js";
|
|
8
8
|
import "../url-kTAI6_KP.js";
|
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
|
10
|
-
import { Person } from "../vocab-
|
|
10
|
+
import { Person } from "../vocab-dw0HG0EQ.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-CJ7eOrpZ.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-dw0HG0EQ.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-BjET3ZIs.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-BindvZ7y.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-DLZ25ttS.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-_XgQq_BY.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) {
|