@fedify/fedify 1.8.0-dev.914 → 1.8.0-dev.923
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-D7ARCMq_.js → actor-D1UxEix1.js} +179 -179
- package/dist/{actor-DxfId8ty.js → actor-D46a80bG.js} +3 -3
- package/dist/{authdocloader-CpJhFRBr.js → authdocloader-Ci9mREen.js} +3 -3
- package/dist/{authdocloader-BsMSD7rr.js → authdocloader-Dp78K2jr.js} +3 -3
- package/dist/{builder-B4OL-_3v.js → builder-DAzNxi3p.js} +3 -3
- package/dist/{client-CTEC7ZT_.js → client-D3X-G5sq.js} +1 -1
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-DAyMjlxQ.js → context-Bvz3lHyI.js} +2 -2
- package/dist/{docloader-C2fcD6HW.js → docloader-Dyxhtzc3.js} +3 -10
- package/dist/{docloader-uG1bSmTU.js → docloader-lorEk5iw.js} +3 -10
- 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 +633 -619
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-BI-X6nC8.js → http-DQ_uU1M-.js} +8 -22
- package/dist/{http-FxoGRmIR.js → http-DXVgUUnK.js} +8 -22
- package/dist/{inbox-DdI7kf97.js → inbox-BxUUuzd9.js} +2 -2
- package/dist/{key-CNe00doh.js → key-B5wjWwWe.js} +2 -2
- package/dist/{key-B8YFnSC4.js → key-BQBoG12c.js} +4 -4
- package/dist/{key-DYTMwpBh.js → key-CQBqJoVo.js} +3 -3
- package/dist/{key-C-DGQ7mt.js → key-DLV1AKQR.js} +5 -5
- package/dist/{keycache-BBHrPjap.js → keycache-B-TB9qYF.js} +1 -1
- package/dist/{keys-_jhKoT94.js → keys-CVjF1n8p.js} +1 -1
- package/dist/{ld-Bgq_lRr5.js → ld-CIsXjsgE.js} +3 -3
- package/dist/{lookup-CaHm-ZeC.js → lookup-BGSwlBs8.js} +1 -1
- package/dist/{lookup-DnXipkyR.js → lookup-Dc9JhQGJ.js} +3 -3
- package/dist/{lookup-DG0jZyXS.js → lookup-mQzAfFyO.js} +1 -1
- package/dist/{middleware-Cn6MSc_f.js → middleware-Bj7F-FBU.js} +15 -15
- package/dist/middleware-D0jawfyI.js +17 -0
- package/dist/middleware-DticzIra.js +33 -0
- package/dist/{middleware-CKzYUxOH.js → middleware-JYClfGI8.js} +10 -10
- 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-DQcsEjrE.js → owner-B3kfyNi5.js} +3 -3
- package/dist/{proof-Dy8YN_n9.js → proof-Be3dKvfi.js} +3 -3
- package/dist/{proof-LR5LYCDY.js → proof-TTTVErx5.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.js +6 -6
- package/dist/{send-CSg0l0Ds.js → send-BkUwe85v.js} +2 -2
- package/dist/sig/http.test.js +8 -36
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- 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-CnID0DVG.js → types-B_9t_Ife.js} +1 -1
- package/dist/vocab/actor.test.js +59 -52
- 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 +78 -64
- package/dist/{vocab-BG-6n0jz.js → vocab-DIt8IOrb.js} +3 -3
- package/dist/{vocab-RyKwNui6.js → vocab-c48J0wxy.js} +178 -178
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/package.json +5 -4
- package/dist/middleware-Bqb5qg_Q.js +0 -17
- package/dist/middleware-DXfuUsla.js +0 -33
package/dist/federation/mod.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import "../transformers-ghwJuzGY.js";
|
6
|
-
import "../docloader-
|
7
|
-
import "../actor-
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
9
|
-
import "../lookup-
|
10
|
-
import "../key-
|
11
|
-
import "../http-
|
12
|
-
import "../proof-
|
6
|
+
import "../docloader-lorEk5iw.js";
|
7
|
+
import "../actor-D1UxEix1.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-JYClfGI8.js";
|
9
|
+
import "../lookup-BGSwlBs8.js";
|
10
|
+
import "../key-B5wjWwWe.js";
|
11
|
+
import "../http-DXVgUUnK.js";
|
12
|
+
import "../proof-Be3dKvfi.js";
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-C44ekWNP.js";
|
14
|
-
import "../types-
|
15
|
-
import "../authdocloader-
|
16
|
-
import "../vocab-
|
14
|
+
import "../types-B_9t_Ife.js";
|
15
|
+
import "../authdocloader-Ci9mREen.js";
|
16
|
+
import "../vocab-DIt8IOrb.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -6,18 +6,18 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
7
7
|
import { assert } from "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-Dyxhtzc3.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-
|
12
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-c48J0wxy.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-mQzAfFyO.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
20
|
-
import { extractInboxes, sendActivity } from "../send-
|
16
|
+
import "../actor-D46a80bG.js";
|
17
|
+
import "../key-CQBqJoVo.js";
|
18
|
+
import { verifyRequest } from "../http-DQ_uU1M-.js";
|
19
|
+
import { doesActorOwnKey } from "../owner-B3kfyNi5.js";
|
20
|
+
import { extractInboxes, sendActivity } from "../send-BkUwe85v.js";
|
21
21
|
import { test } from "../testing-BZ0dJ4qn.js";
|
22
22
|
import "../std__assert-B3iAixc-.js";
|
23
23
|
import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
|
@@ -25,7 +25,7 @@ import "../assert_is_error-DQdKoRgb.js";
|
|
25
25
|
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
26
26
|
import "../assert_throws-DTDC_gwN.js";
|
27
27
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
28
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CVjF1n8p.js";
|
29
29
|
import { esm_default } from "../esm-d-9EVGaP.js";
|
30
30
|
|
31
31
|
//#region federation/send.test.ts
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { CryptographicKey } from "./vocab-
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { deno_default } from "./docloader-Dyxhtzc3.js";
|
7
|
+
import { CryptographicKey } from "./vocab-c48J0wxy.js";
|
8
|
+
import { fetchKey, validateCryptoKey } from "./key-CQBqJoVo.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -212,15 +212,10 @@ async function signRequestRfc9421(request, privateKey, keyId, span, currentTime)
|
|
212
212
|
keyId,
|
213
213
|
created
|
214
214
|
});
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
headers
|
220
|
-
}), components, signatureParams);
|
221
|
-
} catch (error) {
|
222
|
-
throw new TypeError(`Failed to create signature base: ${String(error)}; it is probably a bug in the implementation. Please report it at Fedify's issue tracker.`);
|
223
|
-
}
|
215
|
+
const signatureBase = createRfc9421SignatureBase(new Request(request.url, {
|
216
|
+
method: request.method,
|
217
|
+
headers
|
218
|
+
}), components, signatureParams);
|
224
219
|
const signatureBytes = await crypto.subtle.sign("RSASSA-PKCS1-v1_5", privateKey, new TextEncoder().encode(signatureBase));
|
225
220
|
const [signatureInput, signature] = formatRfc9421Signature(signatureBytes, components, signatureParams);
|
226
221
|
headers.set("Signature-Input", signatureInput);
|
@@ -600,16 +595,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
600
595
|
});
|
601
596
|
continue;
|
602
597
|
}
|
603
|
-
|
604
|
-
try {
|
605
|
-
signatureBase = createRfc9421SignatureBase(request, sigInput.components, sigInput.parameters);
|
606
|
-
} catch (error) {
|
607
|
-
logger.debug("Failed to create signature base for verification: {error}", {
|
608
|
-
error,
|
609
|
-
signatureInput: sigInput
|
610
|
-
});
|
611
|
-
continue;
|
612
|
-
}
|
598
|
+
const signatureBase = createRfc9421SignatureBase(request, sigInput.components, sigInput.parameters);
|
613
599
|
const signatureBaseBytes = new TextEncoder().encode(signatureBase);
|
614
600
|
span?.setAttribute("http_signatures.signature", encodeHex(sigBytes));
|
615
601
|
try {
|
@@ -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-lorEk5iw.js";
|
6
|
+
import { CryptographicKey } from "./actor-D1UxEix1.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-B5wjWwWe.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";
|
@@ -211,15 +211,10 @@ async function signRequestRfc9421(request, privateKey, keyId, span, currentTime)
|
|
211
211
|
keyId,
|
212
212
|
created
|
213
213
|
});
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
headers
|
219
|
-
}), components, signatureParams);
|
220
|
-
} catch (error) {
|
221
|
-
throw new TypeError(`Failed to create signature base: ${String(error)}; it is probably a bug in the implementation. Please report it at Fedify's issue tracker.`);
|
222
|
-
}
|
214
|
+
const signatureBase = createRfc9421SignatureBase(new Request(request.url, {
|
215
|
+
method: request.method,
|
216
|
+
headers
|
217
|
+
}), components, signatureParams);
|
223
218
|
const signatureBytes = await crypto.subtle.sign("RSASSA-PKCS1-v1_5", privateKey, new TextEncoder().encode(signatureBase));
|
224
219
|
const [signatureInput, signature] = formatRfc9421Signature(signatureBytes, components, signatureParams);
|
225
220
|
headers.set("Signature-Input", signatureInput);
|
@@ -599,16 +594,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
599
594
|
});
|
600
595
|
continue;
|
601
596
|
}
|
602
|
-
|
603
|
-
try {
|
604
|
-
signatureBase = createRfc9421SignatureBase(request, sigInput.components, sigInput.parameters);
|
605
|
-
} catch (error) {
|
606
|
-
logger.debug("Failed to create signature base for verification: {error}", {
|
607
|
-
error,
|
608
|
-
signatureInput: sigInput
|
609
|
-
});
|
610
|
-
continue;
|
611
|
-
}
|
597
|
+
const signatureBase = createRfc9421SignatureBase(request, sigInput.components, sigInput.parameters);
|
612
598
|
const signatureBaseBytes = new TextEncoder().encode(signatureBase);
|
613
599
|
span?.setAttribute("http_signatures.signature", encodeHex(sigBytes));
|
614
600
|
try {
|
@@ -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-Dyxhtzc3.js";
|
7
|
+
import { Activity } from "./vocab-c48J0wxy.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,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-lorEk5iw.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-D1UxEix1.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -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-lorEk5iw.js";
|
6
|
+
import "./actor-D1UxEix1.js";
|
7
|
+
import "./lookup-BGSwlBs8.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-B5wjWwWe.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -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-Dyxhtzc3.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-c48J0wxy.js";
|
8
|
+
import { isActor } from "./actor-D46a80bG.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-Dyxhtzc3.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-c48J0wxy.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-mQzAfFyO.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-D46a80bG.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CQBqJoVo.js";
|
15
15
|
|
16
16
|
export { validateCryptoKey };
|
@@ -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-c48J0wxy.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-c48J0wxy.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-Dyxhtzc3.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-c48J0wxy.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-CQBqJoVo.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-lorEk5iw.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-Dyxhtzc3.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-c48J0wxy.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-mQzAfFyO.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-Dyxhtzc3.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-Dyxhtzc3.js";
|
7
|
+
import { getNodeInfo } from "./client-D3X-G5sq.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-c48J0wxy.js";
|
11
|
+
import { lookupWebFinger } from "./lookup-mQzAfFyO.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-CQBqJoVo.js";
|
14
|
+
import { verifyRequest } from "./http-DQ_uU1M-.js";
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-Dp78K2jr.js";
|
16
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-CIsXjsgE.js";
|
17
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-B3kfyNi5.js";
|
18
|
+
import { signObject, verifyObject } from "./proof-TTTVErx5.js";
|
19
|
+
import { lookupObject, traverseCollection } from "./lookup-Dc9JhQGJ.js";
|
20
|
+
import { routeActivity } from "./inbox-BxUUuzd9.js";
|
21
|
+
import { FederationBuilderImpl } from "./builder-DAzNxi3p.js";
|
22
22
|
import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
|
23
|
-
import { KvKeyCache } from "./keycache-
|
23
|
+
import { KvKeyCache } from "./keycache-B-TB9qYF.js";
|
24
24
|
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
25
|
-
import { extractInboxes, sendActivity } from "./send-
|
25
|
+
import { extractInboxes, sendActivity } from "./send-BkUwe85v.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,17 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
6
|
+
import "./docloader-lorEk5iw.js";
|
7
|
+
import "./actor-D1UxEix1.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-JYClfGI8.js";
|
9
|
+
import "./lookup-BGSwlBs8.js";
|
10
|
+
import "./key-B5wjWwWe.js";
|
11
|
+
import "./http-DXVgUUnK.js";
|
12
|
+
import "./proof-Be3dKvfi.js";
|
13
|
+
import "./types-B_9t_Ife.js";
|
14
|
+
import "./authdocloader-Ci9mREen.js";
|
15
|
+
import "./vocab-DIt8IOrb.js";
|
16
|
+
|
17
|
+
export { FederationImpl };
|
@@ -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-Bj7F-FBU.js";
|
7
|
+
import "./docloader-Dyxhtzc3.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-DWClQt_5.js";
|
10
|
+
import "./client-D3X-G5sq.js";
|
11
|
+
import "./router-D3UybECj.js";
|
12
|
+
import "./types-C7C_l-jz.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-c48J0wxy.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-mQzAfFyO.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-D46a80bG.js";
|
19
|
+
import "./key-CQBqJoVo.js";
|
20
|
+
import "./http-DQ_uU1M-.js";
|
21
|
+
import "./authdocloader-Dp78K2jr.js";
|
22
|
+
import "./ld-CIsXjsgE.js";
|
23
|
+
import "./owner-B3kfyNi5.js";
|
24
|
+
import "./proof-TTTVErx5.js";
|
25
|
+
import "./lookup-Dc9JhQGJ.js";
|
26
|
+
import "./inbox-BxUUuzd9.js";
|
27
|
+
import "./builder-DAzNxi3p.js";
|
28
|
+
import "./collection-Dfb0TPno.js";
|
29
|
+
import "./keycache-B-TB9qYF.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-BkUwe85v.js";
|
32
|
+
|
33
|
+
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-lorEk5iw.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-D1UxEix1.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-BGSwlBs8.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-B5wjWwWe.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DXVgUUnK.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-Be3dKvfi.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-B_9t_Ife.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-Ci9mREen.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-DIt8IOrb.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-D0jawfyI.js");
|
316
316
|
const f = new FederationImpl$1(options);
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
318
318
|
f.router = this.router.clone();
|
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-lorEk5iw.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-D1UxEix1.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-JYClfGI8.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-BGSwlBs8.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-B5wjWwWe.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-DXVgUUnK.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-Be3dKvfi.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, lookupObject, traverseCollection } from "./vocab-
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-B_9t_Ife.js";
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-Ci9mREen.js";
|
17
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-DIt8IOrb.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-Dyxhtzc3.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-D3X-G5sq.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-Bj7F-FBU.js";
|
11
|
+
import "../docloader-Dyxhtzc3.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import { parseSemVer } from "../semver-DWClQt_5.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-D3X-G5sq.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-c48J0wxy.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-mQzAfFyO.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-D46a80bG.js";
|
23
|
+
import "../key-CQBqJoVo.js";
|
24
|
+
import "../http-DQ_uU1M-.js";
|
25
|
+
import "../authdocloader-Dp78K2jr.js";
|
26
|
+
import "../ld-CIsXjsgE.js";
|
27
|
+
import "../owner-B3kfyNi5.js";
|
28
|
+
import "../proof-TTTVErx5.js";
|
29
|
+
import "../lookup-Dc9JhQGJ.js";
|
30
|
+
import "../inbox-BxUUuzd9.js";
|
31
|
+
import "../builder-DAzNxi3p.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-B-TB9qYF.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-BkUwe85v.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-Bvz3lHyI.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-lorEk5iw.js";
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-B_9t_Ife.js";
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
8
8
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { getDocumentLoader } from "./docloader-Dyxhtzc3.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-c48J0wxy.js";
|
8
|
+
import { isActor } from "./actor-D46a80bG.js";
|
9
9
|
import { trace } from "@opentelemetry/api";
|
10
10
|
|
11
11
|
//#region sig/owner.ts
|
@@ -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 { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-lorEk5iw.js";
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-D1UxEix1.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-B5wjWwWe.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import jsonld from "jsonld";
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity, DataIntegrityProof, Multikey } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-Dyxhtzc3.js";
|
7
|
+
import { Activity, DataIntegrityProof, Multikey } from "./vocab-c48J0wxy.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-CQBqJoVo.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { encodeHex } from "byte-encodings/hex";
|