@fedify/fedify 1.9.2-dev.1890 → 1.10.0-dev.11
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/README.md +3 -0
- package/dist/{actor-LJkP7iVc.js → actor-BrjBSlv8.js} +187 -187
- package/dist/{actor-C2kxp5Fl.cjs → actor-CdCyXIiy.cjs} +187 -187
- package/dist/{actor-DyfGDQJB.js → actor-CzhWrNYT.js} +1 -1
- package/dist/{authdocloader-DaFhFZWS.cjs → authdocloader-BJPbXGjs.cjs} +3 -3
- package/dist/{authdocloader-8jtTmnjn.js → authdocloader-DWc5tH1y.js} +3 -3
- package/dist/{authdocloader-Djn6Z8TB.js → authdocloader-Y9lwp2q3.js} +3 -3
- package/dist/{builder-DG1srBKu.js → builder-D9HmXe-c.js} +4 -4
- package/dist/{client-Dq-zkC8Y.js → client-DPYh54yM.js} +1 -1
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{docloader-Uh0ciwr4.cjs → docloader-Cgy1RCqb.cjs} +67 -29
- package/dist/{docloader-B_A2nB2W.js → docloader-Crf5jJS0.js} +67 -29
- package/dist/{esm-D-py171v.js → esm-D6gwWBFZ.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 +104 -17
- package/dist/federation/idempotency.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 +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +5 -5
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +53 -10
- package/dist/{http-jrUnvC1R.js → http-BqvHtYhP.js} +2 -2
- package/dist/{http-CJ7SfCok.js → http-CSJ1EReB.js} +3 -3
- package/dist/{http-DNoRdF3N.cjs → http-DBJHuWVd.cjs} +3 -3
- package/dist/{inbox-C3N4s1QJ.js → inbox-BuzNfn3x.js} +1 -1
- package/dist/{key-CAH7GCWj.js → key-1YPBM8c7.js} +2 -2
- package/dist/{key-CtByaj7Q.js → key-B5Hkq3o6.js} +4 -4
- package/dist/key-BgW3veKX.cjs +10 -0
- package/dist/{key-CkxzRYsV.cjs → key-CHl3R_Y6.cjs} +2 -2
- package/dist/{key-D-Vs5Xls.js → key-CJW3qlT7.js} +3 -3
- package/dist/{key-Ci7FKLpn.js → key-DZXdhUze.js} +2 -2
- package/dist/{keycache-CEs327f0.js → keycache-CGSAu6vs.js} +1 -1
- package/dist/{keys-BgYAMY7I.js → keys-CfLhGOby.js} +1 -1
- package/dist/{ld-CF-_Iv3N.js → ld-CmJQd-xc.js} +2 -2
- package/dist/{lookup-DqmSkJVj.js → lookup--mgANXmv.js} +1 -1
- package/dist/{lookup-BqEeMRXW.cjs → lookup-BQeZoGI4.cjs} +1 -1
- package/dist/{lookup-BA3bNgf4.js → lookup-pw97bxAu.js} +6 -1
- package/dist/{middleware-BhU7xqzl.cjs → middleware-Bh5EE6vq.cjs} +24 -12
- package/dist/middleware-DATy40bZ.cjs +17 -0
- package/dist/{middleware-DFDGXfT5.js → middleware-DfeWQSw-.js} +24 -12
- package/dist/middleware-V-6KSCRG.js +17 -0
- package/dist/{middleware-8Utrfm2B.js → middleware-_hA7WuDf.js} +20 -13
- package/dist/middleware-qKLKzVpT.js +26 -0
- package/dist/mod.cjs +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/otel-Chy5T2Xh.js +64 -0
- package/dist/{owner-D2N6v5Gm.js → owner-B7WLWS8V.js} +44 -8
- package/dist/{proof-XCcYDcHk.js → proof-BSHkn7FC.js} +45 -9
- package/dist/{proof-GwNAN3ln.js → proof-BSpRVVLc.js} +2 -2
- package/dist/{proof-CbitzfgJ.cjs → proof-Dkb2_kGH.cjs} +44 -8
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +82 -5
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-D_f3mgyD.js → send-CKzTk_tF.js} +9 -4
- 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 +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +31 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-hVeFvsZ9.js → testing-DiHxoGZd.js} +2 -2
- package/dist/{type-CfrcT6D9.js → type-Bjc-_Rom.js} +253 -216
- package/dist/{types-apcavnI7.js → types-B5V7vlb3.js} +1 -1
- package/dist/{types-DvsdrWOg.cjs → types-DWiBkfCv.cjs} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +27 -5
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-0FCIW9qL.cjs → vocab-BdU947qD.cjs} +8 -3
- package/dist/{vocab-DGzlpjfi.js → vocab-ChCCqvR3.js} +8 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/package.json +5 -3
- package/dist/key-CEK-2eTr.cjs +0 -10
- package/dist/middleware-BQ3VcPQj.js +0 -17
- package/dist/middleware-BxBgtIG4.js +0 -26
- package/dist/middleware-UJYNu-kk.cjs +0 -17
- /package/dist/{denokv-Bv33Xxea.js → denokv-D0nfNQ1x.js} +0 -0
package/dist/sig/owner.test.js
CHANGED
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create } from "../type-
|
|
6
|
+
import { Create, CryptographicKey } from "../type-Bjc-_Rom.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { lookupObject } from "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import { lookupObject } from "../lookup-pw97bxAu.js";
|
|
11
|
+
import "../actor-CzhWrNYT.js";
|
|
12
|
+
import "../key-DZXdhUze.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-B7WLWS8V.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DiHxoGZd.js";
|
|
15
15
|
import "../std__assert-X-_kMxKM.js";
|
|
16
16
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
17
17
|
import "../assert_is_error-BPGph1Jx.js";
|
|
18
18
|
import "../assert_not_equals-f3m3epl3.js";
|
|
19
19
|
import "../assert_throws-BOO88avQ.js";
|
|
20
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
|
20
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-CfLhGOby.js";
|
|
21
|
+
import { createTestTracerProvider } from "../otel-Chy5T2Xh.js";
|
|
21
22
|
|
|
22
23
|
//#region src/sig/owner.test.ts
|
|
23
24
|
test("doesActorOwnKey()", async () => {
|
|
@@ -48,5 +49,28 @@ test("getKeyOwner()", async () => {
|
|
|
48
49
|
const noOwner2 = await getKeyOwner(new URL("https://example.com/object"), options);
|
|
49
50
|
assertEquals(noOwner2, null);
|
|
50
51
|
});
|
|
52
|
+
test("doesActorOwnKey() records OpenTelemetry span", async () => {
|
|
53
|
+
const [tracerProvider, exporter] = createTestTracerProvider();
|
|
54
|
+
const activity = new Create({
|
|
55
|
+
id: new URL("https://example.com/activity"),
|
|
56
|
+
actor: new URL("https://example.com/person")
|
|
57
|
+
});
|
|
58
|
+
const key = new CryptographicKey({
|
|
59
|
+
id: new URL("https://example.com/person#key"),
|
|
60
|
+
owner: new URL("https://example.com/person")
|
|
61
|
+
});
|
|
62
|
+
const result = await doesActorOwnKey(activity, key, {
|
|
63
|
+
documentLoader: mockDocumentLoader,
|
|
64
|
+
tracerProvider
|
|
65
|
+
});
|
|
66
|
+
assert(result);
|
|
67
|
+
const spans = exporter.getSpans("activitypub.verify_key_ownership");
|
|
68
|
+
assertEquals(spans.length, 1);
|
|
69
|
+
const span = spans[0];
|
|
70
|
+
assertEquals(span.attributes["activitypub.actor.id"], "https://example.com/person");
|
|
71
|
+
assertEquals(span.attributes["activitypub.key.id"], "https://example.com/person#key");
|
|
72
|
+
assertEquals(span.attributes["activitypub.key_ownership.verified"], true);
|
|
73
|
+
assertEquals(span.attributes["activitypub.key_ownership.method"], "owner_id");
|
|
74
|
+
});
|
|
51
75
|
|
|
52
76
|
//#endregion
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-
|
|
6
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-Bjc-_Rom.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-pw97bxAu.js";
|
|
11
|
+
import "../actor-CzhWrNYT.js";
|
|
12
|
+
import "../key-DZXdhUze.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-BSpRVVLc.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DiHxoGZd.js";
|
|
15
15
|
import "../std__assert-X-_kMxKM.js";
|
|
16
16
|
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
17
17
|
import "../assert_is_error-BPGph1Jx.js";
|
|
18
18
|
import "../assert_not_equals-f3m3epl3.js";
|
|
19
19
|
import "../assert_throws-BOO88avQ.js";
|
|
20
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
20
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CfLhGOby.js";
|
|
21
21
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
22
22
|
|
|
23
23
|
//#region src/sig/proof.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-Bjc-_Rom.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
|
-
import "../lookup-
|
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-pw97bxAu.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DiHxoGZd.js";
|
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
package/dist/testing/mod.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
7
|
-
import "../lookup-
|
|
8
|
-
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-
|
|
6
|
+
import "../type-Bjc-_Rom.js";
|
|
7
|
+
import "../lookup-pw97bxAu.js";
|
|
8
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-DiHxoGZd.js";
|
|
9
9
|
|
|
10
10
|
export { createInboxContext, createRequestContext, test, testDefinitions };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __require, lookupWebFinger } from "./type-
|
|
7
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { __require, lookupWebFinger } from "./type-Bjc-_Rom.js";
|
|
7
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-pw97bxAu.js";
|
|
8
8
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
9
9
|
import { trace } from "@opentelemetry/api";
|
|
10
10
|
|