@fedify/fedify 1.8.0-pr.299.1007 → 1.8.0-pr.300.1010
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-CyN-vMEz.js → actor-CCqoG6Kg.js} +179 -179
- package/dist/{actor-B8aniAg7.js → actor-DVErbLrM.js} +3 -3
- package/dist/{authdocloader-CCFNDgQC.js → authdocloader-DPZH9Zxv.js} +3 -3
- package/dist/{authdocloader-BAh-s1OX.js → authdocloader-WYCAL-3S.js} +3 -3
- package/dist/{builder-CyhGxhyN.js → builder-BEYXb-rJ.js} +3 -3
- package/dist/{client-Dlp5vXyk.js → client-CP4GNyj2.js} +1 -1
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-DTOCk8LL.js → context-1H5Ljjei.js} +2 -2
- package/dist/{context-CrSyJrIa.d.ts → context-B6mUZhs_.d.ts} +1 -1
- package/dist/{docloader-CZtt5bKC.js → docloader-C4AU11wI.js} +1 -1
- package/dist/{docloader-BaHyTL_k.js → docloader-D7T9Rjc3.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +19 -19
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-BZYcajQd.js → http-CHM0y3Xk.js} +44 -29
- package/dist/{http-C0iTDVRU.js → http-Ca-7bMO9.js} +44 -29
- package/dist/{http-CP2ZUALI.d.ts → http-D1uoUH4N.d.ts} +5 -0
- package/dist/{inbox-C8SK35L6.js → inbox-BWf2svgk.js} +2 -2
- package/dist/{key-7zrZqy-q.js → key-3zyh2OZR.js} +4 -4
- package/dist/{key-CGXZmEaV.js → key-CIYJH1t3.js} +5 -5
- package/dist/{key-BbVPNqxi.js → key-D2PRsZ3N.js} +2 -2
- package/dist/{key-CnaXDbNU.js → key-DX8vK9hC.js} +3 -3
- package/dist/{keycache-D9xRlkpl.js → keycache-BkCbVqQw.js} +1 -1
- package/dist/{keys-D3uTr1UC.js → keys-C_pG5ijW.js} +1 -1
- package/dist/{ld-CgZuygXg.js → ld-Nubf9uTh.js} +3 -3
- package/dist/{lookup-pql0S7o4.js → lookup-Cz7Wo58w.js} +1 -1
- package/dist/{lookup-uTX8Y6_c.js → lookup-EF88t1Wo.js} +3 -3
- package/dist/{lookup-BEu4BWoB.js → lookup-dYdQ35AZ.js} +1 -1
- package/dist/{middleware-Cx7PzWQ-.js → middleware-B2bxnfXH.js} +15 -15
- package/dist/middleware-BVy2C_8C.js +33 -0
- package/dist/middleware-BpTfzpyc.js +17 -0
- package/dist/{middleware-m-T0T-A7.js → middleware-i3EBSaDG.js} +10 -10
- package/dist/{mod-CytXBx8A.d.ts → mod-0L5jhGYM.d.ts} +1 -1
- package/dist/{mod-D2uPZuP-.d.ts → mod-BCl7t-Ka.d.ts} +1 -1
- package/dist/{mod-DpE8T10I.d.ts → mod-D9qE4iHP.d.ts} +1 -1
- package/dist/mod.d.ts +5 -5
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +18 -18
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-D0pCp853.js → owner-CkxG1zOL.js} +3 -3
- package/dist/{proof-Qigm6KKz.js → proof-CSnIckAt.js} +3 -3
- package/dist/{proof-KxV6FTop.js → proof-DXRhLSY5.js} +3 -3
- package/dist/runtime/authdocloader.test.js +8 -8
- package/dist/runtime/docloader.test.js +1 -1
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/mod.d.ts +2 -2
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-eoQysTgr.js → send-6GSSkKGA.js} +2 -2
- package/dist/sig/http.test.js +32 -7
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.d.ts +2 -2
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +8 -8
- package/dist/sig/proof.test.js +7 -7
- package/dist/{types-DLvHb1O3.js → types-DRywLxYe.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-Bbt7Qver.js → vocab-Cwr8wyIv.js} +178 -178
- package/dist/{vocab-By1FqQDs.js → vocab-EhOgT0NZ.js} +3 -3
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/hono.d.ts +2 -2
- package/dist/x/sveltekit.d.ts +2 -2
- package/package.json +1 -1
- package/dist/middleware-CwsVWFXH.js +0 -17
- package/dist/middleware-DOyG_Fxq.js +0 -33
@@ -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 } from "./docloader-
|
6
|
-
import { CryptographicKey } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default } from "./docloader-D7T9Rjc3.js";
|
6
|
+
import { CryptographicKey } from "./actor-CCqoG6Kg.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-D2PRsZ3N.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -30,8 +30,8 @@ async function signRequest(request, privateKey, keyId, options = {}) {
|
|
30
30
|
try {
|
31
31
|
const spec = options.spec ?? "draft-cavage-http-signatures-12";
|
32
32
|
let signed;
|
33
|
-
if (spec === "rfc9421") signed = await signRequestRfc9421(request, privateKey, keyId, span, options.currentTime);
|
34
|
-
else signed = await signRequestDraft(request, privateKey, keyId, span, options.currentTime);
|
33
|
+
if (spec === "rfc9421") signed = await signRequestRfc9421(request, privateKey, keyId, span, options.currentTime, options.body);
|
34
|
+
else signed = await signRequestDraft(request, privateKey, keyId, span, options.currentTime, options.body);
|
35
35
|
if (span.isRecording()) {
|
36
36
|
span.setAttribute(ATTR_HTTP_REQUEST_METHOD, signed.method);
|
37
37
|
span.setAttribute(ATTR_URL_FULL, signed.url);
|
@@ -50,10 +50,10 @@ async function signRequest(request, privateKey, keyId, options = {}) {
|
|
50
50
|
}
|
51
51
|
});
|
52
52
|
}
|
53
|
-
async function signRequestDraft(request, privateKey, keyId, span, currentTime) {
|
53
|
+
async function signRequestDraft(request, privateKey, keyId, span, currentTime, bodyBuffer) {
|
54
54
|
if (privateKey.algorithm.name !== "RSASSA-PKCS1-v1_5") throw new TypeError("Unsupported algorithm: " + privateKey.algorithm.name);
|
55
55
|
const url = new URL(request.url);
|
56
|
-
const body = request.method !== "GET" && request.method !== "HEAD" ? await request.clone().arrayBuffer() : null;
|
56
|
+
const body = bodyBuffer !== void 0 ? bodyBuffer : request.method !== "GET" && request.method !== "HEAD" ? await request.clone().arrayBuffer() : null;
|
57
57
|
const headers = new Headers(request.headers);
|
58
58
|
if (!headers.has("Host")) headers.set("Host", url.host);
|
59
59
|
if (!headers.has("Digest") && body != null) {
|
@@ -184,10 +184,10 @@ function parseRfc9421Signature(signature) {
|
|
184
184
|
for (const [key, value] of Object.entries(dict)) if (value.value instanceof Uint8Array) result[key] = value.value;
|
185
185
|
return result;
|
186
186
|
}
|
187
|
-
async function signRequestRfc9421(request, privateKey, keyId, span, currentTime) {
|
187
|
+
async function signRequestRfc9421(request, privateKey, keyId, span, currentTime, bodyBuffer) {
|
188
188
|
if (privateKey.algorithm.name !== "RSASSA-PKCS1-v1_5") throw new TypeError("Unsupported algorithm: " + privateKey.algorithm.name);
|
189
189
|
const url = new URL(request.url);
|
190
|
-
const body = request.method !== "GET" && request.method !== "HEAD" ? await request.clone().arrayBuffer() : null;
|
190
|
+
const body = bodyBuffer !== void 0 ? bodyBuffer : request.method !== "GET" && request.method !== "HEAD" ? await request.clone().arrayBuffer() : null;
|
191
191
|
const headers = new Headers(request.headers);
|
192
192
|
if (!headers.has("Host")) headers.set("Host", url.host);
|
193
193
|
if (!headers.has("Content-Digest") && body != null) {
|
@@ -644,6 +644,29 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
644
644
|
return validKey;
|
645
645
|
}
|
646
646
|
/**
|
647
|
+
* Helper function to create a new Request for redirect handling.
|
648
|
+
* @param request The original request.
|
649
|
+
* @param location The redirect location.
|
650
|
+
* @param body The request body as ArrayBuffer or null.
|
651
|
+
* @returns A new Request object for the redirect.
|
652
|
+
*/
|
653
|
+
function createRedirectRequest(request, location, body) {
|
654
|
+
return new Request(location, {
|
655
|
+
method: request.method,
|
656
|
+
headers: request.headers,
|
657
|
+
body,
|
658
|
+
redirect: "manual",
|
659
|
+
signal: request.signal,
|
660
|
+
mode: request.mode,
|
661
|
+
credentials: request.credentials,
|
662
|
+
referrer: request.referrer,
|
663
|
+
referrerPolicy: request.referrerPolicy,
|
664
|
+
integrity: request.integrity,
|
665
|
+
keepalive: request.keepalive,
|
666
|
+
cache: request.cache
|
667
|
+
});
|
668
|
+
}
|
669
|
+
/**
|
647
670
|
* Performs a double-knock request to the given URL. For the details of
|
648
671
|
* double-knocking, see
|
649
672
|
* <https://swicg.github.io/activitypub-http-signature/#how-to-upgrade-supported-versions>.
|
@@ -657,28 +680,20 @@ async function doubleKnock(request, identity, options = {}) {
|
|
657
680
|
const { specDeterminer, log, tracerProvider } = options;
|
658
681
|
const origin = new URL(request.url).origin;
|
659
682
|
const firstTrySpec = specDeterminer == null ? "rfc9421" : await specDeterminer.determineSpec(origin);
|
683
|
+
const body = options.body !== void 0 ? options.body : request.method !== "GET" && request.method !== "HEAD" ? await request.clone().arrayBuffer() : null;
|
660
684
|
let signedRequest = await signRequest(request, identity.privateKey, identity.keyId, {
|
661
685
|
spec: firstTrySpec,
|
662
|
-
tracerProvider
|
686
|
+
tracerProvider,
|
687
|
+
body
|
663
688
|
});
|
664
689
|
log?.(signedRequest);
|
665
690
|
let response = await fetch(signedRequest, { redirect: "manual" });
|
666
691
|
if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
|
667
692
|
const location = response.headers.get("Location");
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
body,
|
673
|
-
redirect: "manual",
|
674
|
-
signal: request.signal,
|
675
|
-
mode: request.mode,
|
676
|
-
credentials: request.credentials,
|
677
|
-
referrer: request.referrer,
|
678
|
-
referrerPolicy: request.referrerPolicy,
|
679
|
-
integrity: request.integrity,
|
680
|
-
keepalive: request.keepalive
|
681
|
-
}), identity, options);
|
693
|
+
return doubleKnock(createRedirectRequest(request, location, body), identity, {
|
694
|
+
...options,
|
695
|
+
body
|
696
|
+
});
|
682
697
|
} else if (response.status === 400 || response.status === 401 || response.status > 401) {
|
683
698
|
const spec = firstTrySpec === "draft-cavage-http-signatures-12" ? "rfc9421" : "draft-cavage-http-signatures-12";
|
684
699
|
getLogger([
|
@@ -693,17 +708,17 @@ async function doubleKnock(request, identity, options = {}) {
|
|
693
708
|
});
|
694
709
|
signedRequest = await signRequest(request, identity.privateKey, identity.keyId, {
|
695
710
|
spec,
|
696
|
-
tracerProvider
|
711
|
+
tracerProvider,
|
712
|
+
body
|
697
713
|
});
|
698
714
|
log?.(signedRequest);
|
699
715
|
response = await fetch(signedRequest, { redirect: "manual" });
|
700
716
|
if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
|
701
717
|
const location = response.headers.get("Location");
|
702
|
-
|
703
|
-
|
704
|
-
...request,
|
718
|
+
return doubleKnock(createRedirectRequest(request, location, body), identity, {
|
719
|
+
...options,
|
705
720
|
body
|
706
|
-
})
|
721
|
+
});
|
707
722
|
} else if (response.status !== 400 && response.status !== 401) await specDeterminer?.rememberSpec(origin, spec);
|
708
723
|
} else await specDeterminer?.rememberSpec(origin, firstTrySpec);
|
709
724
|
return response;
|
@@ -148,6 +148,11 @@ interface SignRequestOptions {
|
|
148
148
|
* @since 1.6.0
|
149
149
|
*/
|
150
150
|
currentTime?: Temporal.Instant;
|
151
|
+
/**
|
152
|
+
* The request body as ArrayBuffer. If provided, avoids cloning the request body.
|
153
|
+
* @since 1.8.0
|
154
|
+
*/
|
155
|
+
body?: ArrayBuffer | null;
|
151
156
|
/**
|
152
157
|
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
153
158
|
* is used.
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-C4AU11wI.js";
|
7
|
+
import { Activity } from "./vocab-Cwr8wyIv.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
@@ -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 "./actor-
|
7
|
-
import "./lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
5
|
+
import "./docloader-D7T9Rjc3.js";
|
6
|
+
import "./actor-CCqoG6Kg.js";
|
7
|
+
import "./lookup-Cz7Wo58w.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-D2PRsZ3N.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-C4AU11wI.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-Cwr8wyIv.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-dYdQ35AZ.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-DVErbLrM.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DX8vK9hC.js";
|
15
15
|
|
16
16
|
export { validateCryptoKey };
|
@@ -2,8 +2,8 @@
|
|
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 { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-D7T9Rjc3.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-CCqoG6Kg.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-C4AU11wI.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-Cwr8wyIv.js";
|
8
|
+
import { isActor } from "./actor-DVErbLrM.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey } from "./vocab-Cwr8wyIv.js";
|
7
7
|
|
8
8
|
//#region federation/keycache.ts
|
9
9
|
var KvKeyCache = class {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./vocab-Cwr8wyIv.js";
|
7
7
|
|
8
8
|
//#region testing/keys.ts
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-C4AU11wI.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-Cwr8wyIv.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-DX8vK9hC.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-D7T9Rjc3.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Object as Object$1 } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-C4AU11wI.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-Cwr8wyIv.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-dYdQ35AZ.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { delay } from "es-toolkit";
|
11
11
|
import { getLogger } from "@logtape/logtape";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getUserAgent } from "./docloader-
|
6
|
+
import { deno_default, getUserAgent } from "./docloader-C4AU11wI.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -3,26 +3,26 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { getNodeInfo } from "./client-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-C4AU11wI.js";
|
7
|
+
import { getNodeInfo } from "./client-CP4GNyj2.js";
|
8
8
|
import { RouterError } from "./router-D3UybECj.js";
|
9
9
|
import { nodeInfoToJson } from "./types-C7C_l-jz.js";
|
10
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-
|
11
|
-
import { lookupWebFinger } from "./lookup-
|
10
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-Cwr8wyIv.js";
|
11
|
+
import { lookupWebFinger } from "./lookup-dYdQ35AZ.js";
|
12
12
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
13
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
14
|
-
import { verifyRequest } from "./http-
|
15
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
16
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
17
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
18
|
-
import { signObject, verifyObject } from "./proof-
|
19
|
-
import { lookupObject, traverseCollection } from "./lookup-
|
20
|
-
import { routeActivity } from "./inbox-
|
21
|
-
import { FederationBuilderImpl } from "./builder-
|
13
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-DX8vK9hC.js";
|
14
|
+
import { verifyRequest } from "./http-CHM0y3Xk.js";
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-DPZH9Zxv.js";
|
16
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-Nubf9uTh.js";
|
17
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-CkxG1zOL.js";
|
18
|
+
import { signObject, verifyObject } from "./proof-CSnIckAt.js";
|
19
|
+
import { lookupObject, traverseCollection } from "./lookup-EF88t1Wo.js";
|
20
|
+
import { routeActivity } from "./inbox-BWf2svgk.js";
|
21
|
+
import { FederationBuilderImpl } from "./builder-BEYXb-rJ.js";
|
22
22
|
import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
|
23
|
-
import { KvKeyCache } from "./keycache-
|
23
|
+
import { KvKeyCache } from "./keycache-BkCbVqQw.js";
|
24
24
|
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
25
|
-
import { extractInboxes, sendActivity } from "./send-
|
25
|
+
import { extractInboxes, sendActivity } from "./send-6GSSkKGA.js";
|
26
26
|
import { getLogger, withContext } from "@logtape/logtape";
|
27
27
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
28
28
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B2bxnfXH.js";
|
7
|
+
import "./docloader-C4AU11wI.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-DWClQt_5.js";
|
10
|
+
import "./client-CP4GNyj2.js";
|
11
|
+
import "./router-D3UybECj.js";
|
12
|
+
import "./types-C7C_l-jz.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-Cwr8wyIv.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-dYdQ35AZ.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-DVErbLrM.js";
|
19
|
+
import "./key-DX8vK9hC.js";
|
20
|
+
import "./http-CHM0y3Xk.js";
|
21
|
+
import "./authdocloader-DPZH9Zxv.js";
|
22
|
+
import "./ld-Nubf9uTh.js";
|
23
|
+
import "./owner-CkxG1zOL.js";
|
24
|
+
import "./proof-CSnIckAt.js";
|
25
|
+
import "./lookup-EF88t1Wo.js";
|
26
|
+
import "./inbox-BWf2svgk.js";
|
27
|
+
import "./builder-BEYXb-rJ.js";
|
28
|
+
import "./collection-Dfb0TPno.js";
|
29
|
+
import "./keycache-BkCbVqQw.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-6GSSkKGA.js";
|
32
|
+
|
33
|
+
export { FederationImpl };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
6
|
+
import "./docloader-D7T9Rjc3.js";
|
7
|
+
import "./actor-CCqoG6Kg.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-i3EBSaDG.js";
|
9
|
+
import "./lookup-Cz7Wo58w.js";
|
10
|
+
import "./key-D2PRsZ3N.js";
|
11
|
+
import "./http-Ca-7bMO9.js";
|
12
|
+
import "./proof-DXRhLSY5.js";
|
13
|
+
import "./types-DRywLxYe.js";
|
14
|
+
import "./authdocloader-WYCAL-3S.js";
|
15
|
+
import "./vocab-EhOgT0NZ.js";
|
16
|
+
|
17
|
+
export { FederationImpl };
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-D7T9Rjc3.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-CCqoG6Kg.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-Cz7Wo58w.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-D2PRsZ3N.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-Ca-7bMO9.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DXRhLSY5.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-DRywLxYe.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-WYCAL-3S.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-EhOgT0NZ.js";
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
|
|
312
312
|
this.objectTypeIds = {};
|
313
313
|
}
|
314
314
|
async build(options) {
|
315
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
315
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-BpTfzpyc.js");
|
316
316
|
const f = new FederationImpl$1(options);
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
318
318
|
f.router = this.router.clone();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-BeCtcTOJ.js";
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-D1uoUH4N.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region runtime/authdocloader.d.ts
|
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader } from "./docloader-BeCtcTOJ.js";
|
4
4
|
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-By6mpzr-.js";
|
5
|
-
import { KeyCache } from "./http-
|
5
|
+
import { KeyCache } from "./http-D1uoUH4N.js";
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
7
7
|
|
8
8
|
//#region sig/ld.d.ts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { Activity } from "./vocab-By6mpzr-.js";
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
4
|
+
import { ActivityTransformer, Context } from "./context-B6mUZhs_.js";
|
5
5
|
|
6
6
|
//#region compat/transformers.d.ts
|
7
7
|
|
package/dist/mod.d.ts
CHANGED
@@ -5,16 +5,16 @@ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFacto
|
|
5
5
|
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-BQ4AQGKo.js";
|
6
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, LanguageString, 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";
|
7
7
|
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-B4TBtqRP.js";
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-D1uoUH4N.js";
|
9
9
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-CEv_PfyK.js";
|
10
10
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BFwgZ7_K.js";
|
11
11
|
import { ResourceDescriptor, lookupWebFinger } from "./lookup-J_m4YZg0.js";
|
12
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
12
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-B6mUZhs_.js";
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-D9qE4iHP.js";
|
15
15
|
import "./mod-g0xFzAP9.js";
|
16
16
|
import "./mod-1pDWKvUL.js";
|
17
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-
|
18
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-
|
17
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-0L5jhGYM.js";
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-BCl7t-Ka.js";
|
19
19
|
import "./mod-GIh5OYxW.js";
|
20
20
|
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
6
6
|
import "./compat-Bb5myD13.js";
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
8
|
-
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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-D7T9Rjc3.js";
|
8
|
+
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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-CCqoG6Kg.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-i3EBSaDG.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-Cz7Wo58w.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-D2PRsZ3N.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-Ca-7bMO9.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DXRhLSY5.js";
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
17
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DRywLxYe.js";
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-WYCAL-3S.js";
|
17
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-EhOgT0NZ.js";
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
20
20
|
import "./sig-BXJO--F9.js";
|
@@ -6,10 +6,10 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-C4AU11wI.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../semver-DWClQt_5.js";
|
12
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
12
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-CP4GNyj2.js";
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
14
14
|
import "../std__assert-B3iAixc-.js";
|
15
15
|
import "../assert_rejects-DceVjUlD.js";
|
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
9
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
10
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-B2bxnfXH.js";
|
11
|
+
import "../docloader-C4AU11wI.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import { parseSemVer } from "../semver-DWClQt_5.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-CP4GNyj2.js";
|
15
15
|
import "../router-D3UybECj.js";
|
16
16
|
import "../types-C7C_l-jz.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import "../vocab-
|
18
|
+
import "../vocab-Cwr8wyIv.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-dYdQ35AZ.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-DVErbLrM.js";
|
23
|
+
import "../key-DX8vK9hC.js";
|
24
|
+
import "../http-CHM0y3Xk.js";
|
25
|
+
import "../authdocloader-DPZH9Zxv.js";
|
26
|
+
import "../ld-Nubf9uTh.js";
|
27
|
+
import "../owner-CkxG1zOL.js";
|
28
|
+
import "../proof-CSnIckAt.js";
|
29
|
+
import "../lookup-EF88t1Wo.js";
|
30
|
+
import "../inbox-BWf2svgk.js";
|
31
|
+
import "../builder-BEYXb-rJ.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-BkCbVqQw.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-6GSSkKGA.js";
|
36
36
|
import { test } from "../testing-BZ0dJ4qn.js";
|
37
37
|
import "../std__assert-B3iAixc-.js";
|
38
38
|
import "../assert_rejects-DceVjUlD.js";
|
@@ -40,7 +40,7 @@ import "../assert_is_error-DQdKoRgb.js";
|
|
40
40
|
import "../assert_not_equals-7pyUM3Ib.js";
|
41
41
|
import "../assert_throws-DTDC_gwN.js";
|
42
42
|
import "../docloader-09nVWLAZ.js";
|
43
|
-
import { createRequestContext } from "../context-
|
43
|
+
import { createRequestContext } from "../context-1H5Ljjei.js";
|
44
44
|
|
45
45
|
//#region nodeinfo/handler.test.ts
|
46
46
|
test("handleNodeInfo()", async () => {
|
package/dist/nodeinfo/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 { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-
|
5
|
+
import "../docloader-D7T9Rjc3.js";
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-DRywLxYe.js";
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
8
8
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|