@fedify/fedify 1.9.0-dev.1605 → 1.9.0-dev.1668
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-Bp5E1_uo.js → actor-BHAPrCDB.js} +1 -1
- package/dist/actor-CHOM_AN3.d.cts +128 -0
- package/dist/{actor-Bi2qvBSd.js → actor-ChSW_rBk.js} +200 -200
- package/dist/actor-fGD4yb1K.cjs +37783 -0
- package/dist/{authdocloader-BE3rMpjB.js → authdocloader-CgrKtaQg.js} +3 -3
- package/dist/{authdocloader-CtNUOc_o.js → authdocloader-ChsJ9FJN.js} +6 -6
- package/dist/authdocloader-eSrbn3wM.cjs +58 -0
- package/dist/{builder-i_bWHUua.js → builder-DI4-Kpdg.js} +4 -4
- package/dist/chunk-DqRYRqnO.cjs +34 -0
- package/dist/{client-DzL0DiuM.js → client-B8gJ1cw8.js} +1 -1
- package/dist/client-DjT_tegg.d.cts +294 -0
- package/dist/compat/mod.cjs +10 -0
- package/dist/compat/mod.d.cts +13 -0
- package/dist/compat/mod.js +5 -5
- package/dist/compat/transformers.test.js +16 -16
- package/dist/compat-DmDDELst.cjs +4 -0
- package/dist/compat-nxUqe4Z-.js +4 -0
- package/dist/context-KXVF2AhH.d.cts +2261 -0
- package/dist/{docloader-OJ23BINE.js → docloader-Bqh-eFNP.js} +188 -8
- package/dist/docloader-CSB8cAnw.cjs +4862 -0
- package/dist/docloader-D-MrRyHl.d.cts +219 -0
- package/dist/{esm-CyuitQYP.js → esm-DTi75ew2.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +4 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +29 -0
- package/dist/federation/mod.d.cts +13 -0
- package/dist/federation/mod.js +15 -15
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
- package/dist/federation-H2_En3j5.cjs +244 -0
- package/dist/http-BDErrXSN.cjs +826 -0
- package/dist/http-B_zBcsai.d.cts +253 -0
- package/dist/{http-BptJ8gzr.js → http-BpAVdmaR.js} +2 -2
- package/dist/{http-CGKESoOD.js → http-DBHpjcjo.js} +6 -6
- package/dist/{inbox-D5YFCsS2.js → inbox-BA9sYsBf.js} +1 -1
- package/dist/key-2rIHnPaA.js +10 -0
- package/dist/{key-C_beSXh2.js → key-B27QtSbc.js} +2 -2
- package/dist/key-CYpTUnwf.cjs +290 -0
- package/dist/key-Ck4-GNm0.cjs +10 -0
- package/dist/{key-D7obyu6i.js → key-DSOJOcRH.js} +3 -3
- package/dist/{key-UR9dBv1x.js → key-sCE-TgxY.js} +5 -5
- package/dist/{keycache-Ocm3x-aO.js → keycache-CiW2SvJu.js} +1 -1
- package/dist/{keys-C0sHgFeh.js → keys-5cHW76LQ.js} +1 -1
- package/dist/kv-63Cil1MD.d.cts +81 -0
- package/dist/{ld-BP8uv8u-.js → ld-upnKn3yw.js} +2 -2
- package/dist/{lookup-DmESd_mM.js → lookup-B61sZAOY.js} +4 -4
- package/dist/lookup-BrrOs_g1.cjs +137 -0
- package/dist/{lookup-BrGv9cks.js → lookup-CZBG-vCx.js} +1 -1
- package/dist/{middleware-Sfxf2Vmo.js → middleware-CfP7UhQy.js} +28 -28
- package/dist/{middleware-CZ-uRVbW.js → middleware-CyUVZG3t.js} +27 -27
- package/dist/middleware-D8O6iKhr.js +26 -0
- package/dist/middleware-DI4sIaI4.js +17 -0
- package/dist/middleware-P3jCWk4K.cjs +4240 -0
- package/dist/middleware-lw0MLhVG.cjs +17 -0
- package/dist/mod-C2tOeRkN.d.cts +1 -0
- package/dist/mod-C3CGxYoF.d.cts +102 -0
- package/dist/mod-COw_caPC.d.cts +266 -0
- package/dist/mod-FZd39qVq.d.cts +1 -0
- package/dist/mod-NKH_G-IY.d.cts +289 -0
- package/dist/mod-YfAcrVbP.d.cts +80 -0
- package/dist/mod-jQ4OODsl.d.cts +113 -0
- package/dist/mod.cjs +152 -0
- package/dist/mod.d.cts +17 -0
- package/dist/mod.js +20 -20
- package/dist/mq-B7R1Q-M5.d.cts +140 -0
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +13 -0
- package/dist/nodeinfo/mod.d.cts +5 -0
- package/dist/nodeinfo/mod.js +6 -6
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
- package/dist/nodeinfo-DfycQ8Wf.js +4 -0
- package/dist/owner-C9Ry0TOI.d.cts +67 -0
- package/dist/{owner-C3KvPNTd.js → owner-zvsMGYzc.js} +2 -2
- package/dist/{proof-DmROl-2J.js → proof-BgKYSJ00.js} +2 -2
- package/dist/{proof-vAK-PfOK.js → proof-Bt6yHsMN.js} +6 -6
- package/dist/proof-CC_7UV_j.cjs +673 -0
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.d.ts +3 -0
- package/dist/runtime/link.test.js +61 -0
- package/dist/runtime/mod.cjs +25 -0
- package/dist/runtime/mod.d.cts +6 -0
- package/dist/runtime/mod.js +10 -10
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/runtime-C58AJWSv.cjs +4 -0
- package/dist/runtime-DPYEDf-o.js +4 -0
- package/dist/{send-D7brJLC6.js → send-DlqdAGHP.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +30 -0
- package/dist/sig/mod.d.cts +8 -0
- package/dist/sig/mod.js +10 -10
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/sig-ByHXzqUi.cjs +4 -0
- package/dist/sig-Cj3tk-ig.js +4 -0
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-B3ZGdVhe.js → testing-CAAJTPCt.js} +2 -2
- package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
- package/dist/transformers-CoBS-oFG.cjs +116 -0
- package/dist/{type-CrcgcFC3.js → type-BRNRL3aj.js} +381 -201
- package/dist/{types-DiyuYWAI.js → types-C8yjtF5A.js} +4 -4
- package/dist/types-Dz0NMslg.cjs +488 -0
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.cjs +87 -0
- package/dist/vocab/mod.d.cts +6 -0
- package/dist/vocab/mod.js +7 -7
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +40 -5
- package/dist/vocab-BDMmyzZA.cjs +282 -0
- package/dist/vocab-BzGg7ltX.d.cts +14629 -0
- package/dist/{vocab-Dk0L2c9M.js → vocab-WpDLcZH7.js} +6 -6
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +9 -0
- package/dist/webfinger/mod.d.cts +4 -0
- package/dist/webfinger/mod.js +6 -6
- package/dist/webfinger-BjOEdFPs.cjs +4 -0
- package/dist/webfinger-De_bU0iE.js +4 -0
- package/dist/x/cfworkers.cjs +100 -0
- package/dist/x/cfworkers.d.cts +59 -0
- package/dist/x/cfworkers.js +3 -3
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.cjs +61 -0
- package/dist/x/hono.d.cts +54 -0
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.cjs +69 -0
- package/dist/x/sveltekit.d.cts +46 -0
- package/dist/x/sveltekit.js +3 -3
- package/package.json +68 -13
- package/dist/compat-Bb5myD13.js +0 -4
- package/dist/key-D7gEThPA.js +0 -10
- package/dist/middleware-CtLDRgUg.js +0 -26
- package/dist/middleware-ww6ZuicB.js +0 -17
- package/dist/nodeinfo-CyEbLjHs.js +0 -4
- package/dist/runtime-BSkOVUWM.js +0 -4
- package/dist/sig-BXJO--F9.js +0 -4
- package/dist/webfinger-C3GIyXIg.js +0 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../kv-63Cil1MD.cjs";
|
|
2
|
+
import "../docloader-D-MrRyHl.cjs";
|
|
3
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-DjT_tegg.cjs";
|
|
4
|
+
import "../mod-FZd39qVq.cjs";
|
|
5
|
+
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
package/dist/nodeinfo/mod.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "../docloader-
|
|
6
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-
|
|
7
|
-
import "../nodeinfo-
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "../docloader-Bqh-eFNP.js";
|
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-C8yjtF5A.js";
|
|
7
|
+
import "../nodeinfo-DfycQ8Wf.js";
|
|
8
8
|
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-BRNRL3aj.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { formatSemVer, parseSemVer } from "../semver-dArNLkR9.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-CZBG-vCx.js";
|
|
12
|
+
import { test } from "../testing-CAAJTPCt.js";
|
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-BRNRL3aj.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import "../semver-dArNLkR9.js";
|
|
11
|
-
import "../lookup-
|
|
11
|
+
import "../lookup-CZBG-vCx.js";
|
|
12
12
|
import { nodeInfoToJson } from "../types-BIgY6c-l.js";
|
|
13
|
-
import { test } from "../testing-
|
|
13
|
+
import { test } from "../testing-CAAJTPCt.js";
|
|
14
14
|
import "../std__assert-X-_kMxKM.js";
|
|
15
15
|
import "../assert_rejects-DiIiJbZn.js";
|
|
16
16
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DocumentLoader } from "./docloader-D-MrRyHl.cjs";
|
|
2
|
+
import { Activity, CryptographicKey } from "./vocab-BzGg7ltX.cjs";
|
|
3
|
+
import { Actor } from "./actor-CHOM_AN3.cjs";
|
|
4
|
+
import { TracerProvider } from "@opentelemetry/api";
|
|
5
|
+
|
|
6
|
+
//#region src/sig/owner.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Options for {@link doesActorOwnKey}.
|
|
9
|
+
* @since 0.8.0
|
|
10
|
+
*/
|
|
11
|
+
interface DoesActorOwnKeyOptions {
|
|
12
|
+
/**
|
|
13
|
+
* The document loader to use for fetching the actor.
|
|
14
|
+
*/
|
|
15
|
+
documentLoader?: DocumentLoader;
|
|
16
|
+
/**
|
|
17
|
+
* The context loader to use for JSON-LD context retrieval.
|
|
18
|
+
*/
|
|
19
|
+
contextLoader?: DocumentLoader;
|
|
20
|
+
/**
|
|
21
|
+
* The OpenTelemetry tracer provider to use for tracing. If omitted,
|
|
22
|
+
* the global tracer provider is used.
|
|
23
|
+
* @since 1.3.0
|
|
24
|
+
*/
|
|
25
|
+
tracerProvider?: TracerProvider;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the actor of the given activity owns the specified key.
|
|
29
|
+
* @param activity The activity to check.
|
|
30
|
+
* @param key The public key to check.
|
|
31
|
+
* @param options Options for checking the key ownership.
|
|
32
|
+
* @returns Whether the actor is the owner of the key.
|
|
33
|
+
*/
|
|
34
|
+
declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: DoesActorOwnKeyOptions): Promise<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* Options for {@link getKeyOwner}.
|
|
37
|
+
* @since 0.8.0
|
|
38
|
+
*/
|
|
39
|
+
interface GetKeyOwnerOptions {
|
|
40
|
+
/**
|
|
41
|
+
* The document loader to use for fetching the key and its owner.
|
|
42
|
+
*/
|
|
43
|
+
documentLoader?: DocumentLoader;
|
|
44
|
+
/**
|
|
45
|
+
* The context loader to use for JSON-LD context retrieval.
|
|
46
|
+
*/
|
|
47
|
+
contextLoader?: DocumentLoader;
|
|
48
|
+
/**
|
|
49
|
+
* The OpenTelemetry tracer provider to use for tracing. If omitted,
|
|
50
|
+
* the global tracer provider is used.
|
|
51
|
+
* @since 1.3.0
|
|
52
|
+
*/
|
|
53
|
+
tracerProvider?: TracerProvider;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Gets the actor that owns the specified key. Returns `null` if the key has no
|
|
57
|
+
* known owner.
|
|
58
|
+
*
|
|
59
|
+
* @param keyId The ID of the key to check, or the key itself.
|
|
60
|
+
* @param options Options for getting the key owner.
|
|
61
|
+
* @returns The actor that owns the key, or `null` if the key has no known
|
|
62
|
+
* owner.
|
|
63
|
+
* @since 0.7.0
|
|
64
|
+
*/
|
|
65
|
+
declare function getKeyOwner(keyId: URL | CryptographicKey, options: GetKeyOwnerOptions): Promise<Actor | null>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-BRNRL3aj.js";
|
|
7
|
+
import { isActor } from "./actor-BHAPrCDB.js";
|
|
8
8
|
import { trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
10
10
|
//#region src/sig/owner.ts
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-BRNRL3aj.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-B27QtSbc.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
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-
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-Bqh-eFNP.js";
|
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-ChSW_rBk.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-sCE-TgxY.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import jsonld from "jsonld";
|