@fedify/fedify 1.9.0-dev.1723 → 1.9.0-dev.1737
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-Bck28wpR.js → actor-DEtJgLMQ.js} +187 -187
- package/dist/{actor-DJB4Vcry.cjs → actor-DcykPGnw.cjs} +187 -187
- package/dist/{actor-C0tREqah.js → actor-ntgz7dT8.js} +1 -1
- package/dist/{authdocloader-CK0Xf-wR.js → authdocloader-B1PdTq4G.js} +3 -3
- package/dist/{authdocloader-L79525JY.js → authdocloader-B6T-e38T.js} +3 -3
- package/dist/{authdocloader-BGRNpmBY.cjs → authdocloader-GIwELfPF.cjs} +3 -3
- package/dist/{builder-CllNIJUW.js → builder-DOfm8mMV.js} +4 -4
- package/dist/{client-CqZUAIKM.js → client-C8gs0sHo.js} +1 -1
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-C51zGhGC.d.ts → context-CXUibY4L.d.ts} +15 -45
- package/dist/{context-Qnv814-p.d.cts → context-CwUAkopp.d.cts} +15 -45
- package/dist/{docloader-8pZfzt96.cjs → docloader-BfbahPF-.cjs} +1 -1
- package/dist/{docloader-C_tcUe9l.js → docloader-q1GL4UZS.js} +1 -1
- package/dist/{esm-iiswZds0.js → esm-BHwrcHfn.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/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.d.cts +1 -1
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +10 -10
- 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/{http-CEuXdReR.cjs → http-C09lkL3a.cjs} +3 -3
- package/dist/{http-0NYYZxmW.js → http-Csib8WD2.js} +2 -2
- package/dist/{http-7RegzYNG.js → http-DmrO4aBr.js} +3 -3
- package/dist/{inbox-CkIdV3Ev.js → inbox-BeJQX8Im.js} +1 -1
- package/dist/{key-B56sv4Fl.cjs → key-4LfKU4cS.cjs} +2 -2
- package/dist/{key-BhGPiWUd.js → key-BDXhONb0.js} +2 -2
- package/dist/{key-C9PF4hnE.js → key-Ck_iU-Yy.js} +2 -2
- package/dist/{key-BLdgpIjx.js → key-Cns6moO_.js} +3 -3
- package/dist/{key-BwxOfVpT.js → key-GnCxtC6J.js} +4 -4
- package/dist/key-TCHl4iAQ.cjs +10 -0
- package/dist/{keycache-BTjERToa.js → keycache-DrxI0LW3.js} +1 -1
- package/dist/{keys-BhcsCPhh.js → keys-CCcXQUyi.js} +1 -1
- package/dist/{ld-D0xNckDT.js → ld-Bhss7jpx.js} +2 -2
- package/dist/{lookup-Db2ZNRUd.js → lookup-8z7_MP9u.js} +1 -1
- package/dist/{lookup-xdEsBwwQ.js → lookup-D4z8I_pV.js} +1 -1
- package/dist/{lookup-C6_F4vT5.cjs → lookup-VkfXUHMj.cjs} +1 -1
- package/dist/middleware-4v_keHbk.js +26 -0
- package/dist/{middleware-BZJyUDXL.js → middleware-Bu3Yu1Q0.js} +10 -10
- package/dist/middleware-CJfLx4Z4.js +17 -0
- package/dist/middleware-CLO30PRK.cjs +17 -0
- package/dist/{middleware-C9P1mSn_.cjs → middleware-D4ajxxXR.cjs} +10 -10
- package/dist/{middleware-BeXOYZwa.js → middleware-TF7fKq55.js} +13 -13
- package/dist/{mod-o-hx_hU8.d.ts → mod-BcObK1Lz.d.ts} +1 -1
- package/dist/{mod-COTXAYRl.d.cts → mod-mXx9V0q5.d.cts} +1 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- 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/{owner-gy5GU0xI.js → owner-BdFD2RTz.js} +2 -2
- package/dist/{proof-fpjWg11s.cjs → proof-Bg_6qtK0.cjs} +3 -3
- package/dist/{proof-DLRWN-8p.js → proof-Taw3Wm1p.js} +3 -3
- package/dist/{proof-CfLS43th.js → proof-XMUDNDXi.js} +2 -2
- 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.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-GJbfneG0.js → send-D5-vc2Hd.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 +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +15 -45
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-BWcU9Pfz.js → testing-Cz5H7Kl9.js} +2 -2
- package/dist/{type-Dd-usiUJ.js → type-BDP-ja-u.js} +186 -186
- package/dist/{types-CkApr45E.js → types-D1Xf6CaE.js} +1 -1
- package/dist/{types-DiAz6at6.cjs → types-DXunEaUU.cjs} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- 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-BCI9fICV.cjs → vocab-BlQH7c2j.cjs} +3 -3
- package/dist/{vocab-BZoa2e6N.js → vocab-CgsituXm.js} +3 -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/dist/x/hono.d.cts +1 -1
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.d.cts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/key-CkQH1Uhs.cjs +0 -10
- package/dist/middleware-BFhY5NjZ.js +0 -26
- package/dist/middleware-CfpOEs0j.js +0 -17
- package/dist/middleware-QMPcx47j.cjs +0 -17
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./type-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { deno_default } from "./type-BDP-ja-u.js";
|
|
7
|
+
import { doubleKnock } from "./http-Csib8WD2.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
package/dist/sig/http.test.js
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { exportSpki } from "../type-
|
|
6
|
+
import { exportSpki } from "../type-BDP-ja-u.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 "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import { exportJwk } from "../key-
|
|
13
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-D4z8I_pV.js";
|
|
11
|
+
import "../actor-ntgz7dT8.js";
|
|
12
|
+
import { exportJwk } from "../key-Ck_iU-Yy.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-Csib8WD2.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.js";
|
|
15
15
|
import { assertExists, assertStringIncludes } from "../std__assert-X-_kMxKM.js";
|
|
16
16
|
import { assertFalse, 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 { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
20
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
|
21
|
-
import { esm_default } from "../esm-
|
|
20
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-CCcXQUyi.js";
|
|
21
|
+
import { esm_default } from "../esm-BHwrcHfn.js";
|
|
22
22
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
23
23
|
|
|
24
24
|
//#region src/sig/http.test.ts
|
package/dist/sig/key.test.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../type-BDP-ja-u.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 "../actor-
|
|
12
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-D4z8I_pV.js";
|
|
11
|
+
import "../actor-ntgz7dT8.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-Ck_iU-Yy.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.js";
|
|
14
14
|
import "../std__assert-X-_kMxKM.js";
|
|
15
15
|
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
16
16
|
import "../assert_is_error-BPGph1Jx.js";
|
|
17
17
|
import "../assert_not_equals-f3m3epl3.js";
|
|
18
18
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
19
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
19
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-CCcXQUyi.js";
|
|
20
20
|
|
|
21
21
|
//#region src/sig/key.test.ts
|
|
22
22
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey } from "../type-
|
|
6
|
+
import { CryptographicKey } from "../type-BDP-ja-u.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../actor-
|
|
11
|
-
import { generateCryptoKeyPair } from "../key-
|
|
12
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
9
|
+
import "../lookup-D4z8I_pV.js";
|
|
10
|
+
import "../actor-ntgz7dT8.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-Ck_iU-Yy.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-Bhss7jpx.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.js";
|
|
14
14
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
16
16
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
17
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
17
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CCcXQUyi.js";
|
|
18
18
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
19
19
|
|
|
20
20
|
//#region src/sig/ld.test.ts
|
package/dist/sig/mod.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
require('../docloader-
|
|
6
|
-
require('../actor-
|
|
7
|
-
require('../lookup-
|
|
8
|
-
const require_key = require('../key-
|
|
9
|
-
const require_http = require('../http-
|
|
10
|
-
const require_proof = require('../proof-
|
|
5
|
+
require('../docloader-BfbahPF-.cjs');
|
|
6
|
+
require('../actor-DcykPGnw.cjs');
|
|
7
|
+
require('../lookup-VkfXUHMj.cjs');
|
|
8
|
+
const require_key = require('../key-4LfKU4cS.cjs');
|
|
9
|
+
const require_http = require('../http-C09lkL3a.cjs');
|
|
10
|
+
const require_proof = require('../proof-Bg_6qtK0.cjs');
|
|
11
11
|
require('../sig-ByHXzqUi.cjs');
|
|
12
12
|
|
|
13
13
|
exports.attachSignature = require_proof.attachSignature;
|
package/dist/sig/mod.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
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 } from "../key-
|
|
9
|
-
import { signRequest, verifyRequest } from "../http-
|
|
10
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
|
5
|
+
import "../docloader-q1GL4UZS.js";
|
|
6
|
+
import "../actor-DEtJgLMQ.js";
|
|
7
|
+
import "../lookup-8z7_MP9u.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-BDXhONb0.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-DmrO4aBr.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-Taw3Wm1p.js";
|
|
11
11
|
import "../sig-Cj3tk-ig.js";
|
|
12
12
|
|
|
13
13
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create } from "../type-
|
|
6
|
+
import { Create } from "../type-BDP-ja-u.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-D4z8I_pV.js";
|
|
11
|
+
import "../actor-ntgz7dT8.js";
|
|
12
|
+
import "../key-Ck_iU-Yy.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-BdFD2RTz.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.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-CCcXQUyi.js";
|
|
21
21
|
|
|
22
22
|
//#region src/sig/owner.test.ts
|
|
23
23
|
test("doesActorOwnKey()", async () => {
|
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-BDP-ja-u.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-D4z8I_pV.js";
|
|
11
|
+
import "../actor-ntgz7dT8.js";
|
|
12
|
+
import "../key-Ck_iU-Yy.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-XMUDNDXi.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.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-CCcXQUyi.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-BDP-ja-u.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-D4z8I_pV.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-Cz5H7Kl9.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.d.ts
CHANGED
|
@@ -7661,9 +7661,7 @@ interface Federatable<TContextData> {
|
|
|
7661
7661
|
* must have one or more variables.
|
|
7662
7662
|
* @param dispatcher An object dispatcher callback to register.
|
|
7663
7663
|
*/
|
|
7664
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7665
|
-
typeId: URL;
|
|
7666
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7664
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7667
7665
|
/**
|
|
7668
7666
|
* Registers an object dispatcher.
|
|
7669
7667
|
*
|
|
@@ -7677,9 +7675,7 @@ interface Federatable<TContextData> {
|
|
|
7677
7675
|
* must have one or more variables.
|
|
7678
7676
|
* @param dispatcher An object dispatcher callback to register.
|
|
7679
7677
|
*/
|
|
7680
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7681
|
-
typeId: URL;
|
|
7682
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7678
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7683
7679
|
/**
|
|
7684
7680
|
* Registers an object dispatcher.
|
|
7685
7681
|
*
|
|
@@ -7693,9 +7689,7 @@ interface Federatable<TContextData> {
|
|
|
7693
7689
|
* must have one or more variables.
|
|
7694
7690
|
* @param dispatcher An object dispatcher callback to register.
|
|
7695
7691
|
*/
|
|
7696
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7697
|
-
typeId: URL;
|
|
7698
|
-
}, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7692
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7699
7693
|
/**
|
|
7700
7694
|
* Registers an object dispatcher.
|
|
7701
7695
|
*
|
|
@@ -7709,9 +7703,7 @@ interface Federatable<TContextData> {
|
|
|
7709
7703
|
* must have one or more variables.
|
|
7710
7704
|
* @param dispatcher An object dispatcher callback to register.
|
|
7711
7705
|
*/
|
|
7712
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7713
|
-
typeId: URL;
|
|
7714
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7706
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7715
7707
|
/**
|
|
7716
7708
|
* Registers an object dispatcher.
|
|
7717
7709
|
*
|
|
@@ -7725,9 +7717,7 @@ interface Federatable<TContextData> {
|
|
|
7725
7717
|
* must have one or more variables.
|
|
7726
7718
|
* @param dispatcher An object dispatcher callback to register.
|
|
7727
7719
|
*/
|
|
7728
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7729
|
-
typeId: URL;
|
|
7730
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7720
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7731
7721
|
/**
|
|
7732
7722
|
* Registers an object dispatcher.
|
|
7733
7723
|
*
|
|
@@ -7741,9 +7731,7 @@ interface Federatable<TContextData> {
|
|
|
7741
7731
|
* must have one or more variables.
|
|
7742
7732
|
* @param dispatcher An object dispatcher callback to register.
|
|
7743
7733
|
*/
|
|
7744
|
-
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls:
|
|
7745
|
-
typeId: URL;
|
|
7746
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7734
|
+
setObjectDispatcher<TObject extends Object$1, TParam extends string>(cls: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
|
|
7747
7735
|
/**
|
|
7748
7736
|
* Registers an inbox dispatcher.
|
|
7749
7737
|
*
|
|
@@ -7884,9 +7872,7 @@ interface Federatable<TContextData> {
|
|
|
7884
7872
|
* The path must have one or more variables.
|
|
7885
7873
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7886
7874
|
*/
|
|
7887
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7888
|
-
typeId: URL;
|
|
7889
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7875
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7890
7876
|
/**
|
|
7891
7877
|
* Registers a collection of objects dispatcher.
|
|
7892
7878
|
*
|
|
@@ -7901,9 +7887,7 @@ interface Federatable<TContextData> {
|
|
|
7901
7887
|
* The path must have one or more variables.
|
|
7902
7888
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7903
7889
|
*/
|
|
7904
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7905
|
-
typeId: URL;
|
|
7906
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7890
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7907
7891
|
/**
|
|
7908
7892
|
* Registers a collection of objects dispatcher.
|
|
7909
7893
|
*
|
|
@@ -7918,9 +7902,7 @@ interface Federatable<TContextData> {
|
|
|
7918
7902
|
* The path must have one or more variables.
|
|
7919
7903
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7920
7904
|
*/
|
|
7921
|
-
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7922
|
-
typeId: URL;
|
|
7923
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7905
|
+
setCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7924
7906
|
/**
|
|
7925
7907
|
* Registers an ordered collection of objects dispatcher.
|
|
7926
7908
|
*
|
|
@@ -7935,9 +7917,7 @@ interface Federatable<TContextData> {
|
|
|
7935
7917
|
* The path must have one or more variables.
|
|
7936
7918
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7937
7919
|
*/
|
|
7938
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7939
|
-
typeId: URL;
|
|
7940
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7920
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7941
7921
|
/**
|
|
7942
7922
|
* Registers an ordered collection of objects dispatcher.
|
|
7943
7923
|
*
|
|
@@ -7952,9 +7932,7 @@ interface Federatable<TContextData> {
|
|
|
7952
7932
|
* The path must have one or more variables.
|
|
7953
7933
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7954
7934
|
*/
|
|
7955
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7956
|
-
typeId: URL;
|
|
7957
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7935
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7958
7936
|
/**
|
|
7959
7937
|
* Registers an ordered collection of objects dispatcher.
|
|
7960
7938
|
*
|
|
@@ -7969,9 +7947,7 @@ interface Federatable<TContextData> {
|
|
|
7969
7947
|
* The path must have one or more variables.
|
|
7970
7948
|
* @param dispatcher A collection dispatcher callback to register.
|
|
7971
7949
|
*/
|
|
7972
|
-
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType:
|
|
7973
|
-
typeId: URL;
|
|
7974
|
-
}, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7950
|
+
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
7975
7951
|
}
|
|
7976
7952
|
/**
|
|
7977
7953
|
* An object that registers federation-related business logic and dispatches
|
|
@@ -8429,9 +8405,7 @@ interface Context<TContextData> {
|
|
|
8429
8405
|
* @throws {TypeError} If values are invalid.
|
|
8430
8406
|
* @since 0.7.0
|
|
8431
8407
|
*/
|
|
8432
|
-
getObjectUri<TObject extends Object$1>(cls:
|
|
8433
|
-
typeId: URL;
|
|
8434
|
-
}, values: Record<string, string>): URL;
|
|
8408
|
+
getObjectUri<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): URL;
|
|
8435
8409
|
/**
|
|
8436
8410
|
* Builds the URI of an actor's outbox with the given identifier.
|
|
8437
8411
|
* @param identifier The actor's identifier.
|
|
@@ -8745,9 +8719,7 @@ interface RequestContext<TContextData> extends Context<TContextData> {
|
|
|
8745
8719
|
* @throws {TypeError} If values are invalid.
|
|
8746
8720
|
* @since 0.7.0
|
|
8747
8721
|
*/
|
|
8748
|
-
getObject<TObject extends Object$1>(cls:
|
|
8749
|
-
typeId: URL;
|
|
8750
|
-
}, values: Record<string, string>): Promise<TObject | null>;
|
|
8722
|
+
getObject<TObject extends Object$1>(cls: ConstructorWithTypeId<TObject>, values: Record<string, string>): Promise<TObject | null>;
|
|
8751
8723
|
/**
|
|
8752
8724
|
* Gets the public key of the sender, if any exists and it is verified.
|
|
8753
8725
|
* Otherwise, `null` is returned.
|
|
@@ -8891,9 +8863,7 @@ type ParseUriResult =
|
|
|
8891
8863
|
* The case of an object URI.
|
|
8892
8864
|
*/ | {
|
|
8893
8865
|
readonly type: "object";
|
|
8894
|
-
readonly class:
|
|
8895
|
-
typeId: URL;
|
|
8896
|
-
};
|
|
8866
|
+
readonly class: ConstructorWithTypeId<Object$1>;
|
|
8897
8867
|
readonly typeId: URL;
|
|
8898
8868
|
readonly values: Record<string, string>;
|
|
8899
8869
|
}
|
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-BDP-ja-u.js";
|
|
7
|
+
import "../lookup-D4z8I_pV.js";
|
|
8
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-Cz5H7Kl9.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-BDP-ja-u.js";
|
|
7
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-D4z8I_pV.js";
|
|
8
8
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
9
9
|
import { trace } from "@opentelemetry/api";
|
|
10
10
|
|