@fedify/fedify 1.9.4 → 1.9.6-dev.2118
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-DaTw3ZoP.cjs → actor-C71CIMfC.cjs} +187 -187
- package/dist/{actor-Dt6VnVAI.js → actor-CCg-pZae.js} +187 -187
- package/dist/{actor-9lrMxiOC.js → actor-CNWkxCrC.js} +1 -1
- package/dist/{authdocloader-MaPCkajM.cjs → authdocloader-CT1cPj97.cjs} +3 -3
- package/dist/{authdocloader-Dt0rccI_.js → authdocloader-DEGiIEaL.js} +3 -3
- package/dist/{authdocloader-C_IO-V7D.js → authdocloader-wQk3e7Ag.js} +3 -3
- package/dist/{builder-CAqlYTn5.js → builder-D0mOpo0N.js} +4 -4
- package/dist/{client-BuiAxEUJ.js → client-BSRRCCF9.js} +1 -1
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{docloader-Czkn2Slv.js → docloader-ENN4YgIF.js} +31 -11
- package/dist/{docloader-NpoYR27X.cjs → docloader-OWdVzt6R.cjs} +31 -11
- package/dist/{esm-BwprNKvq.js → esm-rU2ogNNz.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 +8 -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 +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/fixtures/example.com/inline-paged/a.json +8 -0
- package/dist/fixtures/example.com/inline-paged-collection.json +13 -0
- package/dist/{http-4p9YB09O.cjs → http-Bmn4CXIM.cjs} +18 -7
- package/dist/{http-DeTXxhsX.js → http-DAz2fpwK.js} +18 -7
- package/dist/{http-Bds0K1mZ.js → http-LDjZxhgJ.js} +17 -6
- package/dist/{inbox-Bthm50NH.js → inbox-CLgNEczc.js} +1 -1
- package/dist/{key-D94plRTf.js → key-Bsm-uoaE.js} +4 -4
- package/dist/key-Bv9soVGW.cjs +10 -0
- package/dist/{key-Ce4B04hE.cjs → key-C45K8q1u.cjs} +2 -2
- package/dist/{key-CuDHIfti.js → key-C6dA6KgH.js} +3 -3
- package/dist/{key-BQWglQNz.js → key-VDAxfcre.js} +2 -2
- package/dist/{key-DVH5ZRRE.js → key-kD68vuX_.js} +2 -2
- package/dist/{keycache-DGoYy9uR.js → keycache-DtWOiAMc.js} +11 -2
- package/dist/{keys-A6bd_D4-.js → keys-CJezjcJ9.js} +1 -1
- package/dist/{ld-DVmFdxQm.js → ld-DSD_uqio.js} +2 -2
- package/dist/{lookup-DVLCnPMi.js → lookup-B0Qds1Mq.js} +8 -10
- package/dist/{lookup-DtHmRWRO.cjs → lookup-Brpn8XFF.cjs} +1 -1
- package/dist/{lookup-JqEqC50m.js → lookup-Dkw6PUQT.js} +1 -1
- package/dist/middleware-BJbqjuUV.js +17 -0
- package/dist/middleware-BVltQrGG.cjs +17 -0
- package/dist/{middleware-CCvp_5cE.js → middleware-Bn5wceGF.js} +13 -13
- package/dist/{middleware-BBiSgZBC.js → middleware-Cfia6iC-.js} +20 -11
- package/dist/{middleware-CmooH-ru.cjs → middleware-DQ1ijTAg.cjs} +20 -11
- package/dist/middleware-NDh5Vgwn.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/{owner-CmrFJ6nC.js → owner-CD3PoJME.js} +2 -2
- package/dist/{proof-B8qjy9Ir.cjs → proof-CKkQu1BL.cjs} +3 -3
- package/dist/{proof-DlPQw64j.js → proof-Qv3fs4TE.js} +3 -3
- package/dist/{proof-BQZSDcog.js → proof-fJIJMt-0.js} +2 -2
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +51 -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-OGomXDD2.js → send-KX74JBzu.js} +2 -2
- package/dist/sig/http.test.js +51 -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.js +3 -3
- package/dist/{testing-Ck5xuYFK.js → testing-DlM9L2qY.js} +2 -2
- package/dist/{type-BsdaIaDu.js → type-kdsaa4c5.js} +216 -196
- package/dist/{types-36vZrlJd.cjs → types-Bq8MUNvK.cjs} +1 -1
- package/dist/{types-CqQyG66G.js → types-CfuEksTX.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +8 -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-DKmyIckU.cjs → vocab-DBzzAvtf.cjs} +10 -12
- package/dist/{vocab-BI15AKJP.js → vocab-cxfw8FFj.js} +10 -12
- 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 +1 -1
- package/dist/key-B8CU1hSv.cjs +0 -10
- package/dist/middleware-B5f9G-Hm.cjs +0 -17
- package/dist/middleware-CnLtrHD9.js +0 -17
- package/dist/middleware-DOB0veaC.js +0 -26
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { codes, decode, decodeText, encode, encodeText, names } from "../../type-
|
|
6
|
+
import { codes, decode, decodeText, encode, encodeText, names } from "../../type-kdsaa4c5.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 { test } from "../../testing-
|
|
10
|
+
import "../../lookup-B0Qds1Mq.js";
|
|
11
|
+
import { test } from "../../testing-DlM9L2qY.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/runtime/url.test.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-
|
|
6
|
+
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-kdsaa4c5.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import { test } from "../testing-
|
|
9
|
+
import "../lookup-B0Qds1Mq.js";
|
|
10
|
+
import { test } from "../testing-DlM9L2qY.js";
|
|
11
11
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
12
12
|
import "../assert_is_error-BPGph1Jx.js";
|
|
13
13
|
|
|
@@ -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-kdsaa4c5.js";
|
|
7
|
+
import { doubleKnock } from "./http-LDjZxhgJ.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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
11
|
+
import "../actor-CNWkxCrC.js";
|
|
12
|
+
import { exportJwk } from "../key-kD68vuX_.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-LDjZxhgJ.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-CJezjcJ9.js";
|
|
21
|
+
import { esm_default } from "../esm-rU2ogNNz.js";
|
|
22
22
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
23
23
|
|
|
24
24
|
//#region src/sig/http.test.ts
|
|
@@ -857,6 +857,49 @@ test("doubleKnock() complex redirect chain test", async () => {
|
|
|
857
857
|
for (const loggedReq of logs) assert(loggedReq.headers.has("Signature-Input") || loggedReq.headers.has("Signature"), "Each request should be signed with either RFC 9421 or draft-cavage");
|
|
858
858
|
esm_default.hardReset();
|
|
859
859
|
});
|
|
860
|
+
test("doubleKnock() throws on too many redirects", async () => {
|
|
861
|
+
esm_default.spyGlobal();
|
|
862
|
+
let requestCount = 0;
|
|
863
|
+
esm_default.post("begin:https://example.com/too-many-redirects/", (cl) => {
|
|
864
|
+
requestCount++;
|
|
865
|
+
const index = Number(cl.url.split("/").at(-1));
|
|
866
|
+
return Response.redirect(`https://example.com/too-many-redirects/${index + 1}`, 302);
|
|
867
|
+
});
|
|
868
|
+
const request = new Request("https://example.com/too-many-redirects/0", {
|
|
869
|
+
method: "POST",
|
|
870
|
+
body: "Redirect loop",
|
|
871
|
+
headers: { "Content-Type": "text/plain" }
|
|
872
|
+
});
|
|
873
|
+
await assertRejects(() => doubleKnock(request, {
|
|
874
|
+
keyId: rsaPublicKey2.id,
|
|
875
|
+
privateKey: rsaPrivateKey2
|
|
876
|
+
}), Error, "Too many redirections");
|
|
877
|
+
assertEquals(requestCount, 21);
|
|
878
|
+
esm_default.hardReset();
|
|
879
|
+
});
|
|
880
|
+
test("doubleKnock() detects redirect loops", async () => {
|
|
881
|
+
esm_default.spyGlobal();
|
|
882
|
+
let requestCount = 0;
|
|
883
|
+
esm_default.post("https://example.com/redirect-loop-a", () => {
|
|
884
|
+
requestCount++;
|
|
885
|
+
return Response.redirect("https://example.com/redirect-loop-b", 302);
|
|
886
|
+
});
|
|
887
|
+
esm_default.post("https://example.com/redirect-loop-b", () => {
|
|
888
|
+
requestCount++;
|
|
889
|
+
return Response.redirect("https://example.com/redirect-loop-a", 302);
|
|
890
|
+
});
|
|
891
|
+
const request = new Request("https://example.com/redirect-loop-a", {
|
|
892
|
+
method: "POST",
|
|
893
|
+
body: "Redirect loop",
|
|
894
|
+
headers: { "Content-Type": "text/plain" }
|
|
895
|
+
});
|
|
896
|
+
await assertRejects(() => doubleKnock(request, {
|
|
897
|
+
keyId: rsaPublicKey2.id,
|
|
898
|
+
privateKey: rsaPrivateKey2
|
|
899
|
+
}), Error, "Redirect loop detected");
|
|
900
|
+
assertEquals(requestCount, 2);
|
|
901
|
+
esm_default.hardReset();
|
|
902
|
+
});
|
|
860
903
|
test("doubleKnock() async specDeterminer test", async () => {
|
|
861
904
|
esm_default.spyGlobal();
|
|
862
905
|
let requestCount = 0;
|
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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
11
|
+
import "../actor-CNWkxCrC.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-kD68vuX_.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-CJezjcJ9.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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
10
|
+
import "../actor-CNWkxCrC.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-kD68vuX_.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-DSD_uqio.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-CJezjcJ9.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-OWdVzt6R.cjs');
|
|
6
|
+
require('../actor-C71CIMfC.cjs');
|
|
7
|
+
require('../lookup-Brpn8XFF.cjs');
|
|
8
|
+
const require_key = require('../key-C45K8q1u.cjs');
|
|
9
|
+
const require_http = require('../http-Bmn4CXIM.cjs');
|
|
10
|
+
const require_proof = require('../proof-CKkQu1BL.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-ENN4YgIF.js";
|
|
6
|
+
import "../actor-CCg-pZae.js";
|
|
7
|
+
import "../lookup-Dkw6PUQT.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-VDAxfcre.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-DAz2fpwK.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-Qv3fs4TE.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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
11
|
+
import "../actor-CNWkxCrC.js";
|
|
12
|
+
import "../key-kD68vuX_.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-CD3PoJME.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-CJezjcJ9.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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
11
|
+
import "../actor-CNWkxCrC.js";
|
|
12
|
+
import "../key-kD68vuX_.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-fJIJMt-0.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-CJezjcJ9.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-kdsaa4c5.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-B0Qds1Mq.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DlM9L2qY.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-kdsaa4c5.js";
|
|
7
|
+
import "../lookup-B0Qds1Mq.js";
|
|
8
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-DlM9L2qY.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-kdsaa4c5.js";
|
|
7
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-B0Qds1Mq.js";
|
|
8
8
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
9
9
|
import { trace } from "@opentelemetry/api";
|
|
10
10
|
|