@fedify/fedify 1.8.1-pr.315.1090 → 1.8.1-pr.318.1225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/{actor-BX-pKSuT.js → actor-C5n4A944.js} +1 -4
- package/dist/{actor-1rvS-py8.d.ts → actor-CWNAGvnO.d.ts} +2 -2
- package/dist/{actor-C02Getjh.js → actor-s5mQBwHr.js} +179 -179
- package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-AjlKk-Vo.js} +1 -1
- package/dist/{assert_throws-DTDC_gwN.js → assert_throws-CqMKbTh_.js} +1 -1
- package/dist/{authdocloader-BZs3nvC8.js → authdocloader-4RSyvLgz.js} +4 -5
- package/dist/{authdocloader-BbVFhkcz.js → authdocloader-CPaXUreA.js} +4 -4
- package/dist/{builder-DuW8p2S3.js → builder-CChGxW97.js} +74 -5
- package/dist/{client-BD0mI7gk.js → client-49mgdebk.js} +2 -2
- package/dist/{client-DK4qnXK0.d.ts → client-B0IOer6B.d.ts} +1 -1
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +20 -27
- package/dist/{context-BhO5LP_t.d.ts → context-BNA3vzcr.d.ts} +273 -60
- package/dist/{docloader-DtGccyuM.d.ts → docloader-CLolPVL_.d.ts} +2 -11
- package/dist/{docloader-umQd797n.js → docloader-DfooRmPz.js} +26 -13
- package/dist/{esm-d-9EVGaP.js → esm-3l5DpT9c.js} +1 -1
- package/dist/federation/builder.test.js +30 -16
- package/dist/federation/collection.test.js +9 -7
- package/dist/federation/handler.test.js +336 -35
- package/dist/federation/inbox.test.js +6 -10
- package/dist/federation/keycache.test.js +4 -7
- package/dist/federation/kv.test.js +8 -6
- package/dist/federation/middleware.test.js +58 -35
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +10 -8
- package/dist/federation/retry.test.js +5 -3
- package/dist/federation/router.test.js +8 -7
- package/dist/federation/send.test.js +15 -21
- package/dist/{http-Cp-0z2Ja.d.ts → http-COez3YdK.d.ts} +4 -4
- package/dist/{http-CkS9JLmm.js → http-CsGPBDOo.js} +5 -4
- package/dist/{http-D59x3pzl.js → http-DyZD6UXI.js} +4 -4
- package/dist/{inbox-BjyNe-HL.js → inbox-DVl0Nqfm.js} +1 -3
- package/dist/{key-Btkh3AwY.js → key-CNNi5ktf.js} +3 -3
- package/dist/{key-jxin-rRq.js → key-CvnCx-As.js} +3 -4
- package/dist/{key-Cf8lNopw.js → key-MvqIkRnS.js} +4 -4
- package/dist/key-X4-XaJF1.js +10 -0
- package/dist/{keycache-BC5bL06g.js → keycache-BZR7b67J.js} +1 -1
- package/dist/{keys-Dfntfi5m.js → keys-CFFCiRYU.js} +1 -1
- package/dist/{kv-DDdb1hMa.d.ts → kv-BqOK6zss.d.ts} +1 -1
- package/dist/{ld-DwoZFwEd.js → ld-BDA3JCwf.js} +2 -4
- package/dist/{lookup-CAXRxPZ3.js → lookup-DcB1UuZA.js} +116 -10
- package/dist/{lookup-gQIU9tXW.js → lookup-mq8Ba5Kb.js} +2 -3
- package/dist/{lookup-m3U6KA0u.d.ts → lookup-tSXYzgYs.d.ts} +1 -7
- package/dist/{middleware-BOHju0mN.js → middleware-BKoKlIe8.js} +617 -12
- package/dist/middleware-CJiChbvg.js +26 -0
- package/dist/middleware-D6H2vPkH.js +17 -0
- package/dist/{middleware-cN6r9o1m.js → middleware-XOfMDFVl.js} +556 -25
- package/dist/{mod-yPzXIjJX.d.ts → mod-Bf-mThHd.d.ts} +4 -4
- package/dist/{mod-BqCBztub.d.ts → mod-C2jQirfr.d.ts} +2 -7
- package/dist/{mod-nlVEnYuj.d.ts → mod-CxD6XXBN.d.ts} +5 -5
- package/dist/{mod-c1I-Ydch.d.ts → mod-UTC30uNC.d.ts} +2 -2
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +11 -11
- package/dist/nodeinfo/handler.test.js +25 -34
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +9 -7
- package/dist/nodeinfo/types.test.js +10 -8
- package/dist/{owner-BK4eWKBp.d.ts → owner-BlxMNrL4.d.ts} +3 -3
- package/dist/{owner-BrSLT3By.js → owner-D_-GBbn-.js} +2 -3
- package/dist/{proof-u4rhYX_R.js → proof-BnFHVB6H.js} +3 -5
- package/dist/{proof-BDYegzwN.js → proof-C94_doNG.js} +4 -4
- package/dist/runtime/authdocloader.test.js +14 -20
- package/dist/runtime/docloader.test.js +9 -10
- package/dist/runtime/key.test.js +10 -15
- package/dist/runtime/langstr.test.js +8 -7
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -7
- package/dist/runtime/url.test.js +5 -4
- package/dist/{send-DRDKgORs.js → send-DcuZAIY1.js} +2 -2
- package/dist/sig/http.test.js +36 -19
- package/dist/sig/key.test.js +11 -17
- package/dist/sig/ld.test.js +10 -16
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +12 -19
- package/dist/sig/proof.test.js +12 -18
- package/dist/testing/docloader.test.js +8 -7
- package/dist/testing/mod.d.ts +8599 -1
- package/dist/testing/mod.js +4 -2
- package/dist/testing-C4oxyGxC.js +302 -0
- package/dist/{transformers-ghwJuzGY.js → transformers-DJRB0yFF.js} +3 -3
- package/dist/{vocab-C4cyrUaT.js → type-CFzYOYUt.js} +5255 -183
- package/dist/{types-D1lhruqy.js → types-Cr8o5d6d.js} +1 -1
- package/dist/{types-C7C_l-jz.js → types-n7HI7VFr.js} +1 -1
- package/dist/vocab/actor.test.js +10 -16
- package/dist/vocab/lookup.test.js +11 -86
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -7
- package/dist/vocab/vocab.test.js +9 -13
- package/dist/{vocab-BaWeqg9y.js → vocab-BwGxoM8R.js} +6 -7
- package/dist/{vocab-B52eQhpN.d.ts → vocab-Cyrb7_co.d.ts} +1 -1
- package/dist/webfinger/handler.test.js +25 -34
- package/dist/webfinger/lookup.test.js +9 -64
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +8 -6
- package/dist/x/hono.d.ts +14 -14
- package/dist/x/hono.js +2 -2
- package/dist/x/sveltekit.d.ts +11 -11
- package/dist/x/sveltekit.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-HsBuZ-b2.js +0 -41
- package/dist/context-V7yd31ov.js +0 -108
- package/dist/docloader-Bh-sDknx.js +0 -68
- package/dist/docloader-D5BOqs-9.js +0 -4514
- package/dist/key-DqZKjPjH.js +0 -16
- package/dist/langstr-DbWheeIS.js +0 -33
- package/dist/lookup-DvfZUKur.js +0 -133
- package/dist/middleware-31SyXabg.js +0 -33
- package/dist/middleware-CGl-YyTa.js +0 -17
- package/dist/multibase-DeCHcK8L.js +0 -316
- package/dist/router-D3UybECj.js +0 -118
- package/dist/testing-BZ0dJ4qn.js +0 -143
- package/dist/type-D2s5lmbZ.js +0 -14
- package/dist/url-kTAI6_KP.js +0 -68
- /package/dist/{assert_is_error-DQdKoRgb.js → assert_is_error-CeVBLPsZ.js} +0 -0
- /package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-D2R2nl5h.js} +0 -0
- /package/dist/{collection-Dfb0TPno.js → collection-D5V3UzU3.js} +0 -0
- /package/dist/{denokv-QWKsIqML.js → denokv-DK9P5Jq7.js} +0 -0
- /package/dist/{retry-BiIhZWgD.js → retry-BnpVRGFC.js} +0 -0
- /package/dist/{semver-DWClQt_5.js → semver-DCqorrj5.js} +0 -0
- /package/dist/{std__assert-B3iAixc-.js → std__assert-BQdmxyzF.js} +0 -0
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-DfooRmPz.js";
|
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-s5mQBwHr.js";
|
|
7
|
+
import "../lookup-mq8Ba5Kb.js";
|
|
8
|
+
import "../key-CNNi5ktf.js";
|
|
9
|
+
import "../http-CsGPBDOo.js";
|
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-CPaXUreA.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,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { codes, decode, decodeText, encode, encodeText, names } from "../../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../../assert-DwEa6glZ.js";
|
|
8
9
|
import "../../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import
|
|
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 "../../lookup-DcB1UuZA.js";
|
|
11
|
+
import { test } from "../../testing-C4oxyGxC.js";
|
|
12
|
+
import "../../std__assert-BQdmxyzF.js";
|
|
13
|
+
import "../../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import "../../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import "../../assert_throws-CqMKbTh_.js";
|
|
16
17
|
|
|
17
18
|
//#region runtime/multibase/multibase.test.ts
|
|
18
19
|
test("multibase.encode and decode", async (t) => {
|
package/dist/runtime/url.test.js
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
|
-
import
|
|
9
|
-
import { test } from "../testing-
|
|
10
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
11
|
-
import "../assert_is_error-
|
|
9
|
+
import "../lookup-DcB1UuZA.js";
|
|
10
|
+
import { test } from "../testing-C4oxyGxC.js";
|
|
11
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
12
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
12
13
|
|
|
13
14
|
//#region runtime/url.test.ts
|
|
14
15
|
test("validatePublicUrl()", async () => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { deno_default } from "./type-CFzYOYUt.js";
|
|
7
|
+
import { doubleKnock } from "./http-DyZD6UXI.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,28 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { exportSpki } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { assertFalse } from "../assert_rejects-DceVjUlD.js";
|
|
22
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
23
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
24
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
25
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
26
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-Dfntfi5m.js";
|
|
27
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import "../actor-C5n4A944.js";
|
|
12
|
+
import { exportJwk } from "../key-CvnCx-As.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-DyZD6UXI.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
15
|
+
import { assertExists, assertStringIncludes } from "../std__assert-BQdmxyzF.js";
|
|
16
|
+
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
17
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
18
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
19
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
20
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-CFFCiRYU.js";
|
|
21
|
+
import { esm_default } from "../esm-3l5DpT9c.js";
|
|
28
22
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
29
23
|
|
|
30
24
|
//#region sig/http.test.ts
|
|
@@ -1159,5 +1153,28 @@ test("doubleKnock() regression test for TypeError: unusable bug #294", async ()
|
|
|
1159
1153
|
assertEquals(requestCount, 2, "Should make 2 requests before redirect");
|
|
1160
1154
|
esm_default.hardReset();
|
|
1161
1155
|
});
|
|
1156
|
+
test("doubleKnock() regression test for redirect handling bug", async () => {
|
|
1157
|
+
esm_default.spyGlobal();
|
|
1158
|
+
esm_default.post("https://example.com/inbox-retry-redirect", (_cl) => {
|
|
1159
|
+
return new Response(null, {
|
|
1160
|
+
status: 302,
|
|
1161
|
+
headers: { location: "/final-destination" }
|
|
1162
|
+
});
|
|
1163
|
+
});
|
|
1164
|
+
esm_default.post("https://example.com/final-destination", () => {
|
|
1165
|
+
return new Response("Success", { status: 200 });
|
|
1166
|
+
});
|
|
1167
|
+
const request = new Request("https://example.com/inbox-retry-redirect", {
|
|
1168
|
+
method: "POST",
|
|
1169
|
+
body: "Test activity content",
|
|
1170
|
+
headers: { "Content-Type": "application/activity+json" }
|
|
1171
|
+
});
|
|
1172
|
+
const response = await doubleKnock(request, {
|
|
1173
|
+
keyId: rsaPublicKey2.id,
|
|
1174
|
+
privateKey: rsaPrivateKey2
|
|
1175
|
+
});
|
|
1176
|
+
assertEquals(response.status, 200);
|
|
1177
|
+
esm_default.hardReset();
|
|
1178
|
+
});
|
|
1162
1179
|
|
|
1163
1180
|
//#endregion
|
package/dist/sig/key.test.js
CHANGED
|
@@ -3,26 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { CryptographicKey, Multikey } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "../std__assert-B3iAixc-.js";
|
|
20
|
-
import { assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
21
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
22
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
23
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
24
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
25
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-Dfntfi5m.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import "../actor-C5n4A944.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-CvnCx-As.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
14
|
+
import "../std__assert-BQdmxyzF.js";
|
|
15
|
+
import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
16
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
17
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
18
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
19
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-CFFCiRYU.js";
|
|
26
20
|
|
|
27
21
|
//#region sig/key.test.ts
|
|
28
22
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
|
@@ -3,24 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { CryptographicKey } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import {
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import {
|
|
17
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-DwoZFwEd.js";
|
|
18
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
19
|
-
import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
20
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
21
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
22
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
23
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Dfntfi5m.js";
|
|
9
|
+
import "../lookup-DcB1UuZA.js";
|
|
10
|
+
import "../actor-C5n4A944.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-CvnCx-As.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-BDA3JCwf.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
14
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
15
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
17
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CFFCiRYU.js";
|
|
24
18
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
25
19
|
|
|
26
20
|
//#region sig/ld.test.ts
|
package/dist/sig/mod.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../vocab-
|
|
6
|
-
import "../actor-
|
|
7
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
8
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-
|
|
9
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
|
3
|
+
import "../kv-BqOK6zss.js";
|
|
4
|
+
import "../docloader-CLolPVL_.js";
|
|
5
|
+
import "../vocab-Cyrb7_co.js";
|
|
6
|
+
import "../actor-CWNAGvnO.js";
|
|
7
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-COez3YdK.js";
|
|
8
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-BlxMNrL4.js";
|
|
9
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-Bf-mThHd.js";
|
|
10
10
|
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
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-DfooRmPz.js";
|
|
6
|
+
import "../actor-s5mQBwHr.js";
|
|
7
|
+
import "../lookup-mq8Ba5Kb.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-CNNi5ktf.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-CsGPBDOo.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-C94_doNG.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,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Create } from "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
21
|
-
import "../std__assert-B3iAixc-.js";
|
|
22
|
-
import { assertFalse } from "../assert_rejects-DceVjUlD.js";
|
|
23
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
24
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
25
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
26
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-Dfntfi5m.js";
|
|
10
|
+
import { lookupObject } from "../lookup-DcB1UuZA.js";
|
|
11
|
+
import "../actor-C5n4A944.js";
|
|
12
|
+
import "../key-CvnCx-As.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-D_-GBbn-.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
15
|
+
import "../std__assert-BQdmxyzF.js";
|
|
16
|
+
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
17
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
18
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
19
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
20
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-CFFCiRYU.js";
|
|
28
21
|
|
|
29
22
|
//#region sig/owner.test.ts
|
|
30
23
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -3,27 +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-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import "../std__assert-B3iAixc-.js";
|
|
21
|
-
import { assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
22
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
23
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
24
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
25
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
26
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-Dfntfi5m.js";
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import "../actor-C5n4A944.js";
|
|
12
|
+
import "../key-CvnCx-As.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-BnFHVB6H.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
15
|
+
import "../std__assert-BQdmxyzF.js";
|
|
16
|
+
import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
17
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
18
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
19
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
20
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CFFCiRYU.js";
|
|
27
21
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
28
22
|
|
|
29
23
|
//#region sig/proof.test.ts
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import "../type-CFzYOYUt.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import
|
|
10
|
+
import "../lookup-DcB1UuZA.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-C4oxyGxC.js";
|
|
12
|
+
import "../std__assert-BQdmxyzF.js";
|
|
13
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
14
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
15
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
16
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
16
17
|
|
|
17
18
|
//#region testing/docloader.test.ts
|
|
18
19
|
test("mockDocumentLoader()", async () => {
|