@fedify/fedify 1.7.11 → 1.7.12
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-DgWryCk8.js → actor-GZRoTRqg.js} +1059 -2276
- package/dist/{actor-2ENhJMd7.js → actor-TYqJGdVq.js} +6 -9
- package/dist/{assert-DmFG7ppO.js → assert-LOEeCUK5.js} +1 -1
- package/dist/{assert_equals-CTYbeopb.js → assert_equals-B44MxcIj.js} +2 -4
- package/dist/{assert_instance_of-CF09JHYM.js → assert_instance_of-XtuFevV_.js} +1 -1
- package/dist/{assert_is_error-nrwA1GeT.js → assert_is_error-BTlryvT0.js} +1 -1
- package/dist/{assert_not_equals-Dc7y-V5Q.js → assert_not_equals-C685gKx6.js} +1 -1
- package/dist/{assert_rejects-C-sxEMM5.js → assert_rejects-DWQ4jaf9.js} +2 -2
- package/dist/{assert_throws-Cn9C6Jur.js → assert_throws-YetpVSc-.js} +2 -2
- package/dist/{authdocloader-BUJAQQAE.js → authdocloader-BopfyipD.js} +3 -3
- package/dist/{authdocloader-CK17fG7y.js → authdocloader-hiFSyM7V.js} +4 -4
- package/dist/{builder-CZM8EtHh.js → builder-mi6RdzNE.js} +7 -10
- package/dist/{chunk-HsBuZ-b2.js → chunk-Cx8LTkjm.js} +3 -1
- package/dist/{client-D83KwIk4.js → client-DuUKk4pk.js} +6 -6
- package/dist/compat/transformers.test.js +27 -28
- package/dist/{context-MUHrGcK9.js → context-RMU32mk4.js} +2 -2
- package/dist/{docloader-BcyuO_kK.js → docloader-DJxET2fN.js} +5 -9
- package/dist/{docloader-D4wl8z_4.js → docloader-bgBm1Hd1.js} +4 -6
- package/dist/{esm-Db4De7AS.js → esm-DO9PrujO.js} +23 -34
- package/dist/federation/builder.test.js +23 -29
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +33 -33
- package/dist/federation/inbox.test.js +10 -10
- package/dist/federation/keycache.test.js +9 -9
- package/dist/federation/kv.test.js +10 -9
- package/dist/federation/middleware.test.js +76 -99
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +10 -11
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +22 -22
- package/dist/{federation-BRIQn-GV.js → federation-B0aljx0V.js} +1 -2
- package/dist/{http-DFHfa9tA.js → http-D2DkwsjA.js} +8 -15
- package/dist/{http-Dsj_eYDw.js → http-vqMAvOVs.js} +8 -15
- package/dist/{inbox-CltmHpHc.js → inbox-DAAZZl2k.js} +5 -7
- package/dist/key-5ssHQ67E.js +16 -0
- package/dist/{key-bBurC_PZ.js → key-DSJGnD10.js} +4 -4
- package/dist/{key-qFVeObG1.js → key-DmqJj57e.js} +5 -8
- package/dist/{key-bttcdrh5.js → key-KVhaUM92.js} +6 -9
- package/dist/{keycache-DijbBawF.js → keycache-C1pEuRyQ.js} +2 -2
- package/dist/{keys-DJ5t4jB4.js → keys-C4XQHW5_.js} +1 -1
- package/dist/{ld-U-lGfuzj.js → ld-DzlJ_IpT.js} +9 -16
- package/dist/{lookup-BlPHJ-Ff.js → lookup-CSngxuWm.js} +2 -4
- package/dist/{lookup-C8ZpflGI.js → lookup-D0je8AqR.js} +7 -11
- package/dist/{lookup-BGqnk7rW.js → lookup-DL62q3Xh.js} +3 -5
- package/dist/{middleware-D66R1UZl.js → middleware-3wVT6S9E.js} +34 -52
- package/dist/middleware-CxFoFBD8.js +33 -0
- package/dist/{middleware-BRzqW-QG.js → middleware-DlDXugwZ.js} +34 -58
- package/dist/middleware-w7_U3fFi.js +17 -0
- package/dist/mod.js +11 -11
- package/dist/{multibase-DeCHcK8L.js → multibase-CnLHszip.js} +1 -2
- package/dist/nodeinfo/client.test.js +20 -23
- package/dist/nodeinfo/handler.test.js +32 -32
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +23 -30
- package/dist/nodeinfo/types.test.js +11 -11
- package/dist/{owner-2zho-3Ew.js → owner-81ey_76X.js} +3 -3
- package/dist/{proof-BYHc1mMr.js → proof-BlULDH4H.js} +8 -14
- package/dist/{proof-3J23UdVg.js → proof-DlI7QNdn.js} +12 -25
- package/dist/runtime/authdocloader.test.js +21 -21
- package/dist/runtime/docloader.test.js +16 -18
- package/dist/runtime/key.test.js +17 -17
- package/dist/runtime/langstr.test.js +9 -9
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +11 -12
- package/dist/runtime/url.test.js +6 -6
- package/dist/{semver-DWClQt_5.js → semver-BNrOOAs9.js} +1 -3
- package/dist/{send-CW7iJ-b9.js → send-DdxfTHo6.js} +3 -4
- package/dist/sig/http.test.js +40 -54
- package/dist/sig/key.test.js +18 -18
- package/dist/sig/ld.test.js +20 -22
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +20 -20
- package/dist/sig/proof.test.js +19 -19
- package/dist/{std__assert-vp0TKMS1.js → std__assert-o_r9vqm1.js} +1 -1
- package/dist/testing/docloader.test.js +9 -9
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-BZ0dJ4qn.js → testing-DLyvtiiW.js} +3 -5
- package/dist/{type-D2s5lmbZ.js → type-CFuiGLz9.js} +1 -2
- package/dist/{types-C7C_l-jz.js → types-CJHS5pXl.js} +1 -1
- package/dist/{types-DXmLob1B.js → types-CmVV9LT1.js} +6 -8
- package/dist/{url-kTAI6_KP.js → url-C2xuoQD1.js} +2 -4
- package/dist/vocab/actor.test.js +104 -156
- package/dist/vocab/lookup.test.js +17 -17
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +11 -15
- package/dist/vocab/vocab.test.js +45 -49
- package/dist/{vocab-Cy9XhW_T.js → vocab-BebR0kAy.js} +6 -10
- package/dist/{vocab-BojAnGjI.js → vocab-DFlq4Wa6.js} +1057 -2270
- package/dist/webfinger/handler.test.js +33 -34
- package/dist/webfinger/lookup.test.js +13 -13
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +9 -9
- package/package.json +1 -1
- package/dist/key-BROjrzkW.js +0 -16
- package/dist/middleware-BhqeOJrC.js +0 -17
- package/dist/middleware-DFra19vb.js +0 -33
package/dist/runtime/key.test.js
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
9
|
-
import "../docloader-
|
|
10
|
-
import "../url-
|
|
11
|
-
import "../multibase-
|
|
12
|
-
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import "../docloader-bgBm1Hd1.js";
|
|
10
|
+
import "../url-C2xuoQD1.js";
|
|
11
|
+
import "../multibase-CnLHszip.js";
|
|
12
|
+
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-DFlq4Wa6.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../type-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import { exportJwk, importJwk } from "../key-
|
|
18
|
-
import { test } from "../testing-
|
|
19
|
-
import "../std__assert-
|
|
20
|
-
import "../assert_rejects-
|
|
21
|
-
import "../assert_is_error-
|
|
22
|
-
import "../assert_not_equals-
|
|
23
|
-
import "../assert_throws-
|
|
14
|
+
import "../lookup-DL62q3Xh.js";
|
|
15
|
+
import "../type-CFuiGLz9.js";
|
|
16
|
+
import "../actor-TYqJGdVq.js";
|
|
17
|
+
import { exportJwk, importJwk } from "../key-KVhaUM92.js";
|
|
18
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
19
|
+
import "../std__assert-o_r9vqm1.js";
|
|
20
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
21
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
22
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
23
|
+
import "../assert_throws-YetpVSc-.js";
|
|
24
24
|
|
|
25
25
|
//#region runtime/key.test.ts
|
|
26
26
|
const rsaSpki = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsm\nnt/J1mQfZasfJtN33dcZ3d1lJroxmgmMu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR\n5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7WQnKQgQMI+ezn24GHsZ/v1JIo77lerX5\nk4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1s\nZnh1WbHbevlGd72HSXll5rocPIHn8gq6xpBgpHwRphlRsgn4KHaJ6brXDIJjrnQh\nIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hwbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2\nuwIDAQAB\n-----END PUBLIC KEY-----\n";
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
|
10
|
-
import { test } from "../testing-
|
|
11
|
-
import "../std__assert-
|
|
12
|
-
import "../assert_rejects-
|
|
13
|
-
import "../assert_is_error-
|
|
14
|
-
import "../assert_not_equals-
|
|
15
|
-
import "../assert_throws-
|
|
10
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
11
|
+
import "../std__assert-o_r9vqm1.js";
|
|
12
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
13
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
14
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
15
|
+
import "../assert_throws-YetpVSc-.js";
|
|
16
16
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
17
17
|
import util from "node:util";
|
|
18
18
|
|
package/dist/runtime/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 { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
|
6
|
-
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-
|
|
7
|
-
import "../lookup-
|
|
8
|
-
import "../key-
|
|
9
|
-
import "../http-
|
|
10
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
5
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-DJxET2fN.js";
|
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-GZRoTRqg.js";
|
|
7
|
+
import "../lookup-CSngxuWm.js";
|
|
8
|
+
import "../key-DmqJj57e.js";
|
|
9
|
+
import "../http-vqMAvOVs.js";
|
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-BopfyipD.js";
|
|
11
11
|
import "../runtime-BSkOVUWM.js";
|
|
12
12
|
|
|
13
13
|
export { FetchError, LanguageString, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../../assert_equals-
|
|
7
|
-
import "../../assert-
|
|
8
|
-
import "../../assert_instance_of-
|
|
9
|
-
import { codes, decode, decodeText, encode, encodeText, names } from "../../multibase-
|
|
10
|
-
import { test } from "../../testing-
|
|
11
|
-
import "../../std__assert-
|
|
12
|
-
import "../../assert_rejects-
|
|
13
|
-
import "../../assert_is_error-
|
|
14
|
-
import "../../assert_not_equals-
|
|
15
|
-
import "../../assert_throws-
|
|
6
|
+
import { assertEquals } from "../../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../../assert-LOEeCUK5.js";
|
|
8
|
+
import "../../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import { codes, decode, decodeText, encode, encodeText, names } from "../../multibase-CnLHszip.js";
|
|
10
|
+
import { test } from "../../testing-DLyvtiiW.js";
|
|
11
|
+
import "../../std__assert-o_r9vqm1.js";
|
|
12
|
+
import "../../assert_rejects-DWQ4jaf9.js";
|
|
13
|
+
import "../../assert_is_error-BTlryvT0.js";
|
|
14
|
+
import "../../assert_not_equals-C685gKx6.js";
|
|
15
|
+
import "../../assert_throws-YetpVSc-.js";
|
|
16
16
|
|
|
17
17
|
//#region runtime/multibase/multibase.test.ts
|
|
18
18
|
test("multibase.encode and decode", async (t) => {
|
|
@@ -337,8 +337,7 @@ test("multibase.encode and decode", async (t) => {
|
|
|
337
337
|
assertEquals(decodedFromBuffer, encodeText(input), `Decoding buffer of ${name} failed`);
|
|
338
338
|
});
|
|
339
339
|
await t.step("should allow base32pad full alphabet", () => {
|
|
340
|
-
const
|
|
341
|
-
const decoded = decode(encodedStr);
|
|
340
|
+
const decoded = decode("ctimaq4ygg2iegci7");
|
|
342
341
|
const encoded = encode("c", decoded);
|
|
343
342
|
assertEquals(decode(encoded), decoded);
|
|
344
343
|
});
|
package/dist/runtime/url.test.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../url-
|
|
9
|
-
import { test } from "../testing-
|
|
10
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
11
|
-
import "../assert_is_error-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../url-C2xuoQD1.js";
|
|
9
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
10
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DWQ4jaf9.js";
|
|
11
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
12
12
|
|
|
13
13
|
//#region runtime/url.test.ts
|
|
14
14
|
test("validatePublicUrl()", async () => {
|
|
@@ -140,9 +140,7 @@ function formatSemVer(version) {
|
|
|
140
140
|
const patch = formatNumber(version.patch);
|
|
141
141
|
const pre = version.prerelease?.join(".") ?? "";
|
|
142
142
|
const build = version.build?.join(".") ?? "";
|
|
143
|
-
|
|
144
|
-
const release = [primary, pre].filter((v) => v).join("-");
|
|
145
|
-
return [release, build].filter((v) => v).join("+");
|
|
143
|
+
return [[`${major}.${minor}.${patch}`, pre].filter((v) => v).join("-"), build].filter((v) => v).join("+");
|
|
146
144
|
}
|
|
147
145
|
|
|
148
146
|
//#endregion
|
|
@@ -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 { doubleKnock } from "./http-
|
|
6
|
+
import { deno_default } from "./docloader-bgBm1Hd1.js";
|
|
7
|
+
import { doubleKnock } from "./http-D2DkwsjA.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -44,8 +44,7 @@ function extractInboxes({ recipients, preferSharedInbox, excludeBaseUris }) {
|
|
|
44
44
|
*/
|
|
45
45
|
function sendActivity(options) {
|
|
46
46
|
const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
|
|
47
|
-
|
|
48
|
-
return tracer.startActiveSpan("activitypub.send_activity", {
|
|
47
|
+
return tracerProvider.getTracer(deno_default.name, deno_default.version).startActiveSpan("activitypub.send_activity", {
|
|
49
48
|
kind: SpanKind.CLIENT,
|
|
50
49
|
attributes: { "activitypub.shared_inbox": options.sharedInbox ?? false }
|
|
51
50
|
}, async (span) => {
|
package/dist/sig/http.test.js
CHANGED
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
9
|
-
import "../docloader-
|
|
10
|
-
import "../url-
|
|
11
|
-
import "../multibase-
|
|
12
|
-
import { exportSpki } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import "../docloader-bgBm1Hd1.js";
|
|
10
|
+
import "../url-C2xuoQD1.js";
|
|
11
|
+
import "../multibase-CnLHszip.js";
|
|
12
|
+
import { exportSpki } from "../vocab-DFlq4Wa6.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../type-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import { exportJwk } from "../key-
|
|
18
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
|
19
|
-
import { test } from "../testing-
|
|
20
|
-
import { assertExists, assertStringIncludes } from "../std__assert-
|
|
21
|
-
import { assertFalse } from "../assert_rejects-
|
|
22
|
-
import "../assert_is_error-
|
|
23
|
-
import "../assert_not_equals-
|
|
24
|
-
import { assertThrows } from "../assert_throws-
|
|
14
|
+
import "../lookup-DL62q3Xh.js";
|
|
15
|
+
import "../type-CFuiGLz9.js";
|
|
16
|
+
import "../actor-TYqJGdVq.js";
|
|
17
|
+
import { exportJwk } from "../key-KVhaUM92.js";
|
|
18
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-D2DkwsjA.js";
|
|
19
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
20
|
+
import { assertExists, assertStringIncludes } from "../std__assert-o_r9vqm1.js";
|
|
21
|
+
import { assertFalse } from "../assert_rejects-DWQ4jaf9.js";
|
|
22
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
23
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
24
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
26
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
|
27
|
-
import { esm_default } from "../esm-
|
|
26
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-C4XQHW5_.js";
|
|
27
|
+
import { esm_default } from "../esm-DO9PrujO.js";
|
|
28
28
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
29
29
|
|
|
30
30
|
//#region sig/http.test.ts
|
|
@@ -250,17 +250,15 @@ test("createRfc9421SignatureBase()", () => {
|
|
|
250
250
|
"Content-Type": "text/plain"
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
const
|
|
253
|
+
const signatureBase = createRfc9421SignatureBase(request, [
|
|
254
254
|
"@method",
|
|
255
255
|
"@target-uri",
|
|
256
256
|
"host",
|
|
257
257
|
"date"
|
|
258
|
-
]
|
|
259
|
-
const created = 1709626184;
|
|
260
|
-
const signatureBase = createRfc9421SignatureBase(request, components, formatRfc9421SignatureParameters({
|
|
258
|
+
], formatRfc9421SignatureParameters({
|
|
261
259
|
algorithm: "rsa-v1_5-sha256",
|
|
262
260
|
keyId: new URL("https://example.com/key"),
|
|
263
|
-
created
|
|
261
|
+
created: 1709626184
|
|
264
262
|
}));
|
|
265
263
|
const expected = [
|
|
266
264
|
`"@method": POST`,
|
|
@@ -279,24 +277,20 @@ test("formatRfc9421Signature()", () => {
|
|
|
279
277
|
4
|
|
280
278
|
]);
|
|
281
279
|
const keyId = new URL("https://example.com/key");
|
|
282
|
-
const
|
|
283
|
-
const components = [
|
|
280
|
+
const [signatureInput, signatureHeader] = formatRfc9421Signature(signature, [
|
|
284
281
|
"@method",
|
|
285
282
|
"@target-uri",
|
|
286
283
|
"host"
|
|
287
|
-
]
|
|
288
|
-
|
|
289
|
-
const [signatureInput, signatureHeader] = formatRfc9421Signature(signature, components, formatRfc9421SignatureParameters({
|
|
290
|
-
algorithm,
|
|
284
|
+
], formatRfc9421SignatureParameters({
|
|
285
|
+
algorithm: "rsa-v1_5-sha256",
|
|
291
286
|
keyId,
|
|
292
|
-
created
|
|
287
|
+
created: 1709626184
|
|
293
288
|
}));
|
|
294
289
|
assertEquals(signatureInput, `sig1=("@method" "@target-uri" "host");alg="rsa-v1_5-sha256";keyid="https://example.com/key";created=1709626184`);
|
|
295
290
|
assertEquals(signatureHeader, `sig1=:AQIDBA==:`);
|
|
296
291
|
});
|
|
297
292
|
test("parseRfc9421SignatureInput()", () => {
|
|
298
|
-
const
|
|
299
|
-
const parsed = parseRfc9421SignatureInput(signatureInput);
|
|
293
|
+
const parsed = parseRfc9421SignatureInput(`sig1=("@method" "@target-uri" "host" "date");keyid="https://example.com/key";alg="rsa-v1_5-sha256";created=1709626184`);
|
|
300
294
|
assertEquals(parsed.sig1.keyId, "https://example.com/key");
|
|
301
295
|
assertEquals(parsed.sig1.alg, "rsa-v1_5-sha256");
|
|
302
296
|
assertEquals(parsed.sig1.created, 1709626184);
|
|
@@ -309,8 +303,7 @@ test("parseRfc9421SignatureInput()", () => {
|
|
|
309
303
|
assertEquals(parsed.sig1.parameters, "keyid=\"https://example.com/key\";alg=\"rsa-v1_5-sha256\";created=1709626184");
|
|
310
304
|
});
|
|
311
305
|
test("parseRfc9421Signature()", () => {
|
|
312
|
-
const
|
|
313
|
-
const parsed = parseRfc9421Signature(signature);
|
|
306
|
+
const parsed = parseRfc9421Signature(`sig1=:AQIDBA==:,sig2=:Zm9vYmFy:`);
|
|
314
307
|
assertExists(parsed.sig1);
|
|
315
308
|
assertExists(parsed.sig2);
|
|
316
309
|
const sig1Bytes = new Uint8Array(parsed.sig1);
|
|
@@ -387,7 +380,7 @@ test("verifyRequest() [rfc9421] manual POST verification", async () => {
|
|
|
387
380
|
headers: new Headers(signedPostRequest.headers)
|
|
388
381
|
});
|
|
389
382
|
const signatureBase = createRfc9421SignatureBase(manualRequest, parsedInput.sig1.components, parsedInput.sig1.parameters);
|
|
390
|
-
const signatureVerified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", rsaPublicKey2.publicKey, parsedSignature.sig1, new TextEncoder().encode(signatureBase));
|
|
383
|
+
const signatureVerified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", rsaPublicKey2.publicKey, parsedSignature.sig1.slice(), new TextEncoder().encode(signatureBase));
|
|
391
384
|
assert(signatureVerified, "Manual verification of POST signature should succeed");
|
|
392
385
|
});
|
|
393
386
|
test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
@@ -563,8 +556,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
|
563
556
|
const parsedSig = parseRfc9421Signature(signature);
|
|
564
557
|
assertExists(parsedSig.sig1);
|
|
565
558
|
assert(new TextDecoder().decode(parsedSig.sig1).length > 0, "Signature base64 should decode to non-empty string");
|
|
566
|
-
const
|
|
567
|
-
const complexParsedInput = parseRfc9421SignatureInput(complexSignatureInput);
|
|
559
|
+
const complexParsedInput = parseRfc9421SignatureInput("sig1=(\"@method\" \"@target-uri\" \"host\" \"content-type\" \"value with \\\"quotes\\\" and spaces\");keyid=\"https://example.com/key with spaces\";alg=\"rsa-v1_5-sha256\";created=1709626184");
|
|
568
560
|
assertExists(complexParsedInput.sig1);
|
|
569
561
|
assertEquals(complexParsedInput.sig1.keyId, "https://example.com/key with spaces");
|
|
570
562
|
assertEquals(complexParsedInput.sig1.alg, "rsa-v1_5-sha256");
|
|
@@ -583,14 +575,11 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
|
583
575
|
assertEquals(multiParsedInput.sig2.alg, "rsa-pss-sha512");
|
|
584
576
|
const multiParsedSig = parseRfc9421Signature(multiSigRequest.headers.get("Signature") || "");
|
|
585
577
|
assertEquals(Object.keys(multiParsedSig).length, 2, "Should parse multiple signature values");
|
|
586
|
-
const
|
|
587
|
-
const parsedInvalidInput = parseRfc9421SignatureInput(invalidInputFormat);
|
|
578
|
+
const parsedInvalidInput = parseRfc9421SignatureInput("this is not a valid signature-input format");
|
|
588
579
|
assertEquals(Object.keys(parsedInvalidInput).length, 0, "Should handle invalid Signature-Input format");
|
|
589
|
-
const
|
|
590
|
-
const parsedInvalidSig = parseRfc9421Signature(invalidSigFormat);
|
|
580
|
+
const parsedInvalidSig = parseRfc9421Signature("this is not a valid signature format");
|
|
591
581
|
assertEquals(Object.keys(parsedInvalidSig).length, 0, "Should handle invalid Signature format");
|
|
592
|
-
const
|
|
593
|
-
const parsedInvalidBase64 = parseRfc9421Signature(invalidBase64Sig);
|
|
582
|
+
const parsedInvalidBase64 = parseRfc9421Signature("sig1=:!@#$%%^&*():");
|
|
594
583
|
assertEquals(Object.keys(parsedInvalidBase64).length, 0, "Should handle invalid base64 in signature");
|
|
595
584
|
const mixedRequest = new Request("https://example.com/api/resource", {
|
|
596
585
|
method: "GET",
|
|
@@ -968,7 +957,7 @@ test("timingSafeEqual()", async (t) => {
|
|
|
968
957
|
assert(timingSafeEqual(arr, arr), "Array should be equal to itself by reference");
|
|
969
958
|
});
|
|
970
959
|
await t.step("should return false for arrays with same length but different content", async (t2) => {
|
|
971
|
-
const
|
|
960
|
+
for (const tc of [
|
|
972
961
|
{
|
|
973
962
|
a: [
|
|
974
963
|
1,
|
|
@@ -1026,13 +1015,12 @@ test("timingSafeEqual()", async (t) => {
|
|
|
1026
1015
|
],
|
|
1027
1016
|
name: "middle byte differs with edge values"
|
|
1028
1017
|
}
|
|
1029
|
-
]
|
|
1030
|
-
for (const tc of testCases) await t2.step(tc.name, () => {
|
|
1018
|
+
]) await t2.step(tc.name, () => {
|
|
1031
1019
|
assertFalse(timingSafeEqual(new Uint8Array(tc.a), new Uint8Array(tc.b)));
|
|
1032
1020
|
});
|
|
1033
1021
|
});
|
|
1034
1022
|
await t.step("should return false for arrays with different lengths", async (t2) => {
|
|
1035
|
-
const
|
|
1023
|
+
for (const tc of [
|
|
1036
1024
|
{
|
|
1037
1025
|
a: [
|
|
1038
1026
|
1,
|
|
@@ -1069,13 +1057,12 @@ test("timingSafeEqual()", async (t) => {
|
|
|
1069
1057
|
b: [],
|
|
1070
1058
|
name: "a non-empty, b empty"
|
|
1071
1059
|
}
|
|
1072
|
-
]
|
|
1073
|
-
for (const tc of testCases) await t2.step(tc.name, () => {
|
|
1060
|
+
]) await t2.step(tc.name, () => {
|
|
1074
1061
|
assertFalse(timingSafeEqual(new Uint8Array(tc.a), new Uint8Array(tc.b)));
|
|
1075
1062
|
});
|
|
1076
1063
|
});
|
|
1077
1064
|
await t.step("should return false where content matches up to shorter length", async (t2) => {
|
|
1078
|
-
const
|
|
1065
|
+
for (const tc of [
|
|
1079
1066
|
{
|
|
1080
1067
|
a: [1, 2],
|
|
1081
1068
|
b: [
|
|
@@ -1104,8 +1091,7 @@ test("timingSafeEqual()", async (t) => {
|
|
|
1104
1091
|
b: [0],
|
|
1105
1092
|
name: "two zeros vs single zero"
|
|
1106
1093
|
}
|
|
1107
|
-
]
|
|
1108
|
-
for (const tc of testCases) await t2.step(tc.name, () => {
|
|
1094
|
+
]) await t2.step(tc.name, () => {
|
|
1109
1095
|
assertFalse(timingSafeEqual(new Uint8Array(tc.a), new Uint8Array(tc.b)));
|
|
1110
1096
|
});
|
|
1111
1097
|
});
|
package/dist/sig/key.test.js
CHANGED
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
9
|
-
import "../docloader-
|
|
10
|
-
import "../url-
|
|
11
|
-
import "../multibase-
|
|
12
|
-
import { CryptographicKey, Multikey } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import "../docloader-bgBm1Hd1.js";
|
|
10
|
+
import "../url-C2xuoQD1.js";
|
|
11
|
+
import "../multibase-CnLHszip.js";
|
|
12
|
+
import { CryptographicKey, Multikey } from "../vocab-DFlq4Wa6.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../type-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
|
18
|
-
import { test } from "../testing-
|
|
19
|
-
import "../std__assert-
|
|
20
|
-
import { assertRejects } from "../assert_rejects-
|
|
21
|
-
import "../assert_is_error-
|
|
22
|
-
import "../assert_not_equals-
|
|
23
|
-
import { assertThrows } from "../assert_throws-
|
|
14
|
+
import "../lookup-DL62q3Xh.js";
|
|
15
|
+
import "../type-CFuiGLz9.js";
|
|
16
|
+
import "../actor-TYqJGdVq.js";
|
|
17
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-KVhaUM92.js";
|
|
18
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
19
|
+
import "../std__assert-o_r9vqm1.js";
|
|
20
|
+
import { assertRejects } from "../assert_rejects-DWQ4jaf9.js";
|
|
21
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
22
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
23
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
24
24
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
25
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
25
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-C4XQHW5_.js";
|
|
26
26
|
|
|
27
27
|
//#region sig/key.test.ts
|
|
28
28
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import "../docloader-
|
|
9
|
-
import "../url-
|
|
10
|
-
import "../multibase-
|
|
11
|
-
import { CryptographicKey } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../docloader-bgBm1Hd1.js";
|
|
9
|
+
import "../url-C2xuoQD1.js";
|
|
10
|
+
import "../multibase-CnLHszip.js";
|
|
11
|
+
import { CryptographicKey } from "../vocab-DFlq4Wa6.js";
|
|
12
12
|
import "../langstr-DbWheeIS.js";
|
|
13
|
-
import "../lookup-
|
|
14
|
-
import "../type-
|
|
15
|
-
import "../actor-
|
|
16
|
-
import { generateCryptoKeyPair } from "../key-
|
|
17
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
|
18
|
-
import { test } from "../testing-
|
|
19
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
20
|
-
import "../assert_is_error-
|
|
21
|
-
import { assertThrows } from "../assert_throws-
|
|
13
|
+
import "../lookup-DL62q3Xh.js";
|
|
14
|
+
import "../type-CFuiGLz9.js";
|
|
15
|
+
import "../actor-TYqJGdVq.js";
|
|
16
|
+
import { generateCryptoKeyPair } from "../key-KVhaUM92.js";
|
|
17
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-DzlJ_IpT.js";
|
|
18
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
19
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DWQ4jaf9.js";
|
|
20
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
21
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
22
22
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
23
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
23
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-C4XQHW5_.js";
|
|
24
24
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
25
25
|
|
|
26
26
|
//#region sig/ld.test.ts
|
|
@@ -59,13 +59,12 @@ test("createSignature()", async () => {
|
|
|
59
59
|
assertRejects(() => createSignature(doc, ed25519PrivateKey, ed25519Multikey.id, { contextLoader: mockDocumentLoader }), TypeError);
|
|
60
60
|
});
|
|
61
61
|
test("signJsonLd()", async () => {
|
|
62
|
-
const
|
|
62
|
+
const signed = await signJsonLd({
|
|
63
63
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
64
64
|
id: "https://example.com/1",
|
|
65
65
|
type: "Create",
|
|
66
66
|
actor: "https://example.com/person2"
|
|
67
|
-
};
|
|
68
|
-
const signed = await signJsonLd(doc, rsaPrivateKey3, rsaPublicKey3.id, { contextLoader: mockDocumentLoader });
|
|
67
|
+
}, rsaPrivateKey3, rsaPublicKey3.id, { contextLoader: mockDocumentLoader });
|
|
69
68
|
const verified = await verifyJsonLd(signed, {
|
|
70
69
|
documentLoader: mockDocumentLoader,
|
|
71
70
|
contextLoader: mockDocumentLoader
|
|
@@ -215,13 +214,12 @@ test("verifyJsonLd()", async () => {
|
|
|
215
214
|
contextLoader: mockDocumentLoader
|
|
216
215
|
});
|
|
217
216
|
assert(verified);
|
|
218
|
-
const
|
|
217
|
+
const signed = await signJsonLd({
|
|
219
218
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
220
219
|
id: "https://example.com/1",
|
|
221
220
|
type: "Create",
|
|
222
221
|
actor: "https://example.com/person2"
|
|
223
|
-
};
|
|
224
|
-
const signed = await signJsonLd(doc, rsaPrivateKey2, rsaPublicKey2.id, { contextLoader: mockDocumentLoader });
|
|
222
|
+
}, rsaPrivateKey2, rsaPublicKey2.id, { contextLoader: mockDocumentLoader });
|
|
225
223
|
const verified2 = await verifyJsonLd(signed, {
|
|
226
224
|
documentLoader: mockDocumentLoader,
|
|
227
225
|
contextLoader: mockDocumentLoader
|
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-DJxET2fN.js";
|
|
6
|
+
import "../actor-GZRoTRqg.js";
|
|
7
|
+
import "../lookup-CSngxuWm.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-DmqJj57e.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-vqMAvOVs.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-DlI7QNdn.js";
|
|
11
11
|
import "../sig-BXJO--F9.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,28 +3,28 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
9
|
-
import "../docloader-
|
|
10
|
-
import "../url-
|
|
11
|
-
import "../multibase-
|
|
12
|
-
import { Create } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import "../docloader-bgBm1Hd1.js";
|
|
10
|
+
import "../url-C2xuoQD1.js";
|
|
11
|
+
import "../multibase-CnLHszip.js";
|
|
12
|
+
import { Create } from "../vocab-DFlq4Wa6.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../type-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
|
19
|
-
import { lookupObject } from "../lookup-
|
|
20
|
-
import { test } from "../testing-
|
|
21
|
-
import "../std__assert-
|
|
22
|
-
import { assertFalse } from "../assert_rejects-
|
|
23
|
-
import "../assert_is_error-
|
|
24
|
-
import "../assert_not_equals-
|
|
25
|
-
import "../assert_throws-
|
|
14
|
+
import "../lookup-DL62q3Xh.js";
|
|
15
|
+
import "../type-CFuiGLz9.js";
|
|
16
|
+
import "../actor-TYqJGdVq.js";
|
|
17
|
+
import "../key-KVhaUM92.js";
|
|
18
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-81ey_76X.js";
|
|
19
|
+
import { lookupObject } from "../lookup-D0je8AqR.js";
|
|
20
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
21
|
+
import "../std__assert-o_r9vqm1.js";
|
|
22
|
+
import { assertFalse } from "../assert_rejects-DWQ4jaf9.js";
|
|
23
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
24
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
25
|
+
import "../assert_throws-YetpVSc-.js";
|
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
|
27
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-C4XQHW5_.js";
|
|
28
28
|
|
|
29
29
|
//#region sig/owner.test.ts
|
|
30
30
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
9
|
-
import "../docloader-
|
|
10
|
-
import "../url-
|
|
11
|
-
import { decode } from "../multibase-
|
|
12
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import "../docloader-bgBm1Hd1.js";
|
|
10
|
+
import "../url-C2xuoQD1.js";
|
|
11
|
+
import { decode } from "../multibase-CnLHszip.js";
|
|
12
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-DFlq4Wa6.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../type-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
|
19
|
-
import { test } from "../testing-
|
|
20
|
-
import "../std__assert-
|
|
21
|
-
import { assertRejects } from "../assert_rejects-
|
|
22
|
-
import "../assert_is_error-
|
|
23
|
-
import "../assert_not_equals-
|
|
24
|
-
import "../assert_throws-
|
|
14
|
+
import "../lookup-DL62q3Xh.js";
|
|
15
|
+
import "../type-CFuiGLz9.js";
|
|
16
|
+
import "../actor-TYqJGdVq.js";
|
|
17
|
+
import "../key-KVhaUM92.js";
|
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-BlULDH4H.js";
|
|
19
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
20
|
+
import "../std__assert-o_r9vqm1.js";
|
|
21
|
+
import { assertRejects } from "../assert_rejects-DWQ4jaf9.js";
|
|
22
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
23
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
24
|
+
import "../assert_throws-YetpVSc-.js";
|
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
26
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
26
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-C4XQHW5_.js";
|
|
27
27
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
28
28
|
|
|
29
29
|
//#region sig/proof.test.ts
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-
|
|
6
|
+
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-B44MxcIj.js";
|
|
7
7
|
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
|
|
9
9
|
/**
|