@fedify/fedify 1.8.1-pr.345.1245 → 1.8.1-pr.348.1271
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 +14 -11
- package/dist/{actor-CWNAGvnO.d.ts → actor-C2nhWp6O.d.ts} +3 -3
- package/dist/{actor-CTGO4wgc.js → actor-D-8TdNPr.js} +189 -189
- package/dist/{actor-mhmzZU1g.js → actor-DrRRDhb8.js} +2 -2
- package/dist/{assert-DwEa6glZ.js → assert-MZs1qjMx.js} +2 -2
- package/dist/{assert_equals-C5gKCm6A.js → assert_equals-DSbWqCm3.js} +9 -9
- package/dist/{assert_instance_of-C9QtN-X9.js → assert_instance_of-DHz7EHNU.js} +2 -2
- package/dist/{assert_is_error-CeVBLPsZ.js → assert_is_error-BPGph1Jx.js} +2 -2
- package/dist/{assert_not_equals-D2R2nl5h.js → assert_not_equals-f3m3epl3.js} +2 -2
- package/dist/{assert_rejects-AjlKk-Vo.js → assert_rejects-DiIiJbZn.js} +4 -4
- package/dist/{assert_throws-CqMKbTh_.js → assert_throws-BOO88avQ.js} +3 -3
- package/dist/{authdocloader-tiZ590SB.js → authdocloader-Bl-I2-Sq.js} +4 -4
- package/dist/{authdocloader-CYvVipt0.js → authdocloader-TjazCcIU.js} +4 -4
- package/dist/{builder-C3D92262.js → builder-B6FPbgkw.js} +5 -5
- package/dist/{client-B0IOer6B.d.ts → client-D2tgjFk3.d.ts} +4 -4
- package/dist/{client-DjYYs_OW.js → client-puE6hfUk.js} +3 -3
- package/dist/{collection-D5V3UzU3.js → collection-CSzG2j1P.js} +1 -1
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +25 -25
- package/dist/{context-BNA3vzcr.d.ts → context-BBD2ZH_P.d.ts} +22 -22
- package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-CLolPVL_.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
- package/dist/{docloader-CxqWgqfO.js → docloader-C7WW0kMN.js} +34 -34
- package/dist/{esm-BjbJmcRn.js → esm-kKgnN0F0.js} +15 -15
- package/dist/federation/builder.test.js +16 -16
- package/dist/federation/collection.test.js +13 -13
- package/dist/federation/handler.test.js +31 -31
- package/dist/federation/inbox.test.js +8 -8
- package/dist/federation/keycache.test.js +9 -9
- package/dist/federation/kv.test.js +13 -13
- package/dist/federation/middleware.test.js +34 -34
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +15 -15
- package/dist/federation/retry.test.js +7 -7
- package/dist/federation/router.test.js +12 -12
- package/dist/federation/send.test.js +19 -19
- package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
- package/dist/{http-pyA3O-iu.js → http-CsB7aLbk.js} +3 -3
- package/dist/{http-DKwEynG6.js → http-DVY5TWhV.js} +4 -4
- package/dist/{http-COez3YdK.d.ts → http-l4uEvaAw.d.ts} +4 -4
- package/dist/{inbox-v5wWCRpe.js → inbox-BLhA-QWO.js} +2 -2
- package/dist/{key-BLQ_GGUM.js → key-CZYy7mnV.js} +3 -3
- package/dist/{key-8Sh3XrAI.js → key-Ckkyz6B7.js} +3 -3
- package/dist/{key-BTtPNBpl.js → key-D7pylbp7.js} +3 -3
- package/dist/{key-C1UqarQf.js → key-ZLk0pywF.js} +4 -4
- package/dist/{keycache-DKmDz7t8.js → keycache-DIx0OpPd.js} +2 -2
- package/dist/{keys-bRHZ6z9w.js → keys-ED6v78Fx.js} +2 -2
- package/dist/{kv-BqOK6zss.d.ts → kv-C7sopW2E.d.ts} +1 -1
- package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
- package/dist/{ld-DuGmR_iA.js → ld-CkgvjhBi.js} +3 -3
- package/dist/{lookup-tSXYzgYs.d.ts → lookup-BJelGpWr.d.ts} +3 -3
- package/dist/{lookup-CYcncMTD.js → lookup-D8SjsWr2.js} +4 -4
- package/dist/{lookup-BDjhBU7v.js → lookup-DDoSF4Q1.js} +2 -2
- package/dist/{middleware-BUvuryMN.js → middleware-D3v8eOPA.js} +23 -23
- package/dist/{middleware-Dawm8fA5.js → middleware-DU3AZVLF.js} +23 -23
- package/dist/middleware-Dq3YUjC0.js +17 -0
- package/dist/middleware-U-bEePkd.js +26 -0
- package/dist/{mod-C2jQirfr.d.ts → mod-D79SaXL-.d.ts} +6 -6
- package/dist/{mod-CxD6XXBN.d.ts → mod-DDwnlIlm.d.ts} +3 -3
- package/dist/{mod-UTC30uNC.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
- package/dist/{mod-Bf-mThHd.d.ts → mod-DwquBB1g.d.ts} +5 -5
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +12 -12
- package/dist/{mq-DYKDDJmp.d.ts → mq-CRGm1e_F.d.ts} +1 -1
- package/dist/nodeinfo/client.test.js +15 -15
- package/dist/nodeinfo/handler.test.js +30 -30
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +13 -13
- package/dist/nodeinfo/types.test.js +14 -14
- package/dist/{owner-C3AuVSZe.js → owner-DFOzrXnn.js} +3 -3
- package/dist/{owner-BlxMNrL4.d.ts → owner-fFqUg4lq.d.ts} +4 -4
- package/dist/{proof-CNOUPouK.js → proof-C9I8sGkH.js} +3 -3
- package/dist/{proof-CFVDEL_T.js → proof-QpYXzvLP.js} +6 -6
- package/dist/{retry-BnpVRGFC.js → retry-D4GJ670a.js} +1 -1
- package/dist/runtime/authdocloader.test.js +18 -18
- package/dist/runtime/docloader.test.js +14 -14
- package/dist/runtime/key.test.js +14 -14
- package/dist/runtime/langstr.test.js +12 -12
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +12 -12
- package/dist/runtime/url.test.js +8 -8
- package/dist/{semver-DCqorrj5.js → semver-dArNLkR9.js} +1 -1
- package/dist/{send-BSoyjraS.js → send-Cr09S8dD.js} +3 -3
- package/dist/sig/http.test.js +17 -17
- package/dist/sig/key.test.js +15 -15
- package/dist/sig/ld.test.js +13 -13
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +16 -16
- package/dist/{std__assert-BQdmxyzF.js → std__assert-X-_kMxKM.js} +6 -6
- package/dist/testing/docloader.test.js +12 -12
- package/dist/testing/mod.d.ts +19 -19
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DpcMmWRw.js → testing-BYDK5oCn.js} +5 -5
- package/dist/{transformers-DJRB0yFF.js → transformers-Dna8Fg7k.js} +1 -1
- package/dist/{type-DtkIQZak.js → type-TZK8-ARl.js} +221 -221
- package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-DHz0awNo.js → types-BWv51qsq.js} +4 -4
- package/dist/vocab/actor.test.js +143 -143
- package/dist/vocab/lookup.test.js +13 -13
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +5 -5
- package/dist/vocab/vocab.test.js +54 -54
- package/dist/{vocab-t4O-VgwY.js → vocab-0oZsFDQ1.js} +6 -6
- package/dist/{vocab-Cyrb7_co.d.ts → vocab-CA7YwVEz.d.ts} +3 -3
- package/dist/webfinger/handler.test.js +30 -30
- package/dist/webfinger/lookup.test.js +13 -13
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +3 -3
- package/dist/x/cfworkers.js +1 -1
- package/dist/x/cfworkers.test.js +13 -13
- package/dist/x/hono.d.ts +12 -12
- package/dist/x/hono.js +1 -1
- package/dist/x/sveltekit.d.ts +12 -12
- package/dist/x/sveltekit.js +1 -1
- package/package.json +3 -3
- package/dist/middleware-ChmcJI6-.js +0 -17
- package/dist/middleware-FDLn3UGn.js +0 -26
- /package/dist/{vocab → src/vocab}/accept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/activity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/add.yaml +0 -0
- /package/dist/{vocab → src/vocab}/announce.yaml +0 -0
- /package/dist/{vocab → src/vocab}/application.yaml +0 -0
- /package/dist/{vocab → src/vocab}/arrive.yaml +0 -0
- /package/dist/{vocab → src/vocab}/article.yaml +0 -0
- /package/dist/{vocab → src/vocab}/audio.yaml +0 -0
- /package/dist/{vocab → src/vocab}/block.yaml +0 -0
- /package/dist/{vocab → src/vocab}/chatmessage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/create.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dataintegrityproof.yaml +0 -0
- /package/dist/{vocab → src/vocab}/delete.yaml +0 -0
- /package/dist/{vocab → src/vocab}/didservice.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dislike.yaml +0 -0
- /package/dist/{vocab → src/vocab}/document.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emoji.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emojireact.yaml +0 -0
- /package/dist/{vocab → src/vocab}/endpoints.yaml +0 -0
- /package/dist/{vocab → src/vocab}/event.yaml +0 -0
- /package/dist/{vocab → src/vocab}/export.yaml +0 -0
- /package/dist/{vocab → src/vocab}/flag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/follow.yaml +0 -0
- /package/dist/{vocab → src/vocab}/group.yaml +0 -0
- /package/dist/{vocab → src/vocab}/hashtag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/ignore.yaml +0 -0
- /package/dist/{vocab → src/vocab}/image.yaml +0 -0
- /package/dist/{vocab → src/vocab}/intransitiveactivity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/invite.yaml +0 -0
- /package/dist/{vocab → src/vocab}/join.yaml +0 -0
- /package/dist/{vocab → src/vocab}/key.yaml +0 -0
- /package/dist/{vocab → src/vocab}/leave.yaml +0 -0
- /package/dist/{vocab → src/vocab}/like.yaml +0 -0
- /package/dist/{vocab → src/vocab}/link.yaml +0 -0
- /package/dist/{vocab → src/vocab}/listen.yaml +0 -0
- /package/dist/{vocab → src/vocab}/mention.yaml +0 -0
- /package/dist/{vocab → src/vocab}/move.yaml +0 -0
- /package/dist/{vocab → src/vocab}/multikey.yaml +0 -0
- /package/dist/{vocab → src/vocab}/note.yaml +0 -0
- /package/dist/{vocab → src/vocab}/object.yaml +0 -0
- /package/dist/{vocab → src/vocab}/offer.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/organization.yaml +0 -0
- /package/dist/{vocab → src/vocab}/page.yaml +0 -0
- /package/dist/{vocab → src/vocab}/person.yaml +0 -0
- /package/dist/{vocab → src/vocab}/place.yaml +0 -0
- /package/dist/{vocab → src/vocab}/profile.yaml +0 -0
- /package/dist/{vocab → src/vocab}/propertyvalue.yaml +0 -0
- /package/dist/{vocab → src/vocab}/question.yaml +0 -0
- /package/dist/{vocab → src/vocab}/read.yaml +0 -0
- /package/dist/{vocab → src/vocab}/reject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/relationship.yaml +0 -0
- /package/dist/{vocab → src/vocab}/remove.yaml +0 -0
- /package/dist/{vocab → src/vocab}/service.yaml +0 -0
- /package/dist/{vocab → src/vocab}/source.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativeaccept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativereject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tombstone.yaml +0 -0
- /package/dist/{vocab → src/vocab}/travel.yaml +0 -0
- /package/dist/{vocab → src/vocab}/undo.yaml +0 -0
- /package/dist/{vocab → src/vocab}/update.yaml +0 -0
- /package/dist/{vocab → src/vocab}/video.yaml +0 -0
- /package/dist/{vocab → src/vocab}/view.yaml +0 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-C7WW0kMN.js";
|
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-D-8TdNPr.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CZYy7mnV.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import jsonld from "jsonld";
|
|
@@ -12,7 +12,7 @@ import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
|
12
12
|
import { encodeHex } from "byte-encodings/hex";
|
|
13
13
|
import serialize from "json-canon";
|
|
14
14
|
|
|
15
|
-
//#region sig/ld.ts
|
|
15
|
+
//#region src/sig/ld.ts
|
|
16
16
|
const logger$1 = getLogger([
|
|
17
17
|
"fedify",
|
|
18
18
|
"sig",
|
|
@@ -266,7 +266,7 @@ async function hashJsonLd(jsonLd, contextLoader) {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
//#endregion
|
|
269
|
-
//#region sig/owner.ts
|
|
269
|
+
//#region src/sig/owner.ts
|
|
270
270
|
/**
|
|
271
271
|
* Checks if the actor of the given activity owns the specified key.
|
|
272
272
|
* @param activity The activity to check.
|
|
@@ -344,7 +344,7 @@ async function getKeyOwner(keyId, options) {
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
//#endregion
|
|
347
|
-
//#region sig/proof.ts
|
|
347
|
+
//#region src/sig/proof.ts
|
|
348
348
|
const logger = getLogger([
|
|
349
349
|
"fedify",
|
|
350
350
|
"sig",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
//#region federation/retry.ts
|
|
6
|
+
//#region src/federation/retry.ts
|
|
7
7
|
/**
|
|
8
8
|
* Creates an exponential backoff retry policy. The delay between retries
|
|
9
9
|
* starts at the `initialDelay` and is multiplied by the `factor` for each
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
15
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
16
|
-
import "../std__assert-
|
|
17
|
-
import { assertRejects } from "../assert_rejects-
|
|
18
|
-
import "../assert_is_error-
|
|
19
|
-
import "../assert_not_equals-
|
|
20
|
-
import "../assert_throws-
|
|
21
|
-
import { rsaPrivateKey2 } from "../keys-
|
|
22
|
-
import { esm_default } from "../esm-
|
|
6
|
+
import { UrlError } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import "../key-D7pylbp7.js";
|
|
13
|
+
import { verifyRequest } from "../http-CsB7aLbk.js";
|
|
14
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-TjazCcIU.js";
|
|
15
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
16
|
+
import "../std__assert-X-_kMxKM.js";
|
|
17
|
+
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
18
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
19
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
20
|
+
import "../assert_throws-BOO88avQ.js";
|
|
21
|
+
import { rsaPrivateKey2 } from "../keys-ED6v78Fx.js";
|
|
22
|
+
import { esm_default } from "../esm-kKgnN0F0.js";
|
|
23
23
|
|
|
24
|
-
//#region runtime/authdocloader.test.ts
|
|
24
|
+
//#region src/runtime/authdocloader.test.ts
|
|
25
25
|
test("getAuthenticatedDocumentLoader()", async (t) => {
|
|
26
26
|
esm_default.spyGlobal();
|
|
27
27
|
esm_default.get("begin:https://example.com/object", async (cl) => {
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { FetchError, UrlError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
13
|
-
import "../std__assert-
|
|
14
|
-
import { assertRejects } from "../assert_rejects-
|
|
15
|
-
import "../assert_is_error-
|
|
16
|
-
import "../assert_not_equals-
|
|
17
|
-
import { assertThrows } from "../assert_throws-
|
|
18
|
-
import { esm_default } from "../esm-
|
|
6
|
+
import { FetchError, UrlError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
+
import "../lookup-D8SjsWr2.js";
|
|
12
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
13
|
+
import "../std__assert-X-_kMxKM.js";
|
|
14
|
+
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
15
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
16
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
17
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
18
|
+
import { esm_default } from "../esm-kKgnN0F0.js";
|
|
19
19
|
import process from "node:process";
|
|
20
20
|
|
|
21
|
-
//#region runtime/docloader.test.ts
|
|
21
|
+
//#region src/runtime/docloader.test.ts
|
|
22
22
|
test("new FetchError()", () => {
|
|
23
23
|
const e = new FetchError("https://example.com/", "An error message.");
|
|
24
24
|
assertEquals(e.name, "FetchError");
|
package/dist/runtime/key.test.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import { exportJwk, importJwk } from "../key-
|
|
13
|
-
import { test } from "../testing-
|
|
14
|
-
import "../std__assert-
|
|
15
|
-
import "../assert_rejects-
|
|
16
|
-
import "../assert_is_error-
|
|
17
|
-
import "../assert_not_equals-
|
|
18
|
-
import "../assert_throws-
|
|
6
|
+
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import { exportJwk, importJwk } from "../key-D7pylbp7.js";
|
|
13
|
+
import { test } from "../testing-BYDK5oCn.js";
|
|
14
|
+
import "../std__assert-X-_kMxKM.js";
|
|
15
|
+
import "../assert_rejects-DiIiJbZn.js";
|
|
16
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
17
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
18
|
+
import "../assert_throws-BOO88avQ.js";
|
|
19
19
|
|
|
20
|
-
//#region runtime/key.test.ts
|
|
20
|
+
//#region src/runtime/key.test.ts
|
|
21
21
|
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";
|
|
22
22
|
const rsaPkcs1 = "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsmnt/J1mQfZasfJtN33dcZ3d1lJroxmgmM\nu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7\nWQnKQgQMI+ezn24GHsZ/v1JIo77lerX5k4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd\n0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1sZnh1WbHbevlGd72HSXll5rocPIHn8gq6\nxpBgpHwRphlRsgn4KHaJ6brXDIJjrnQhIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hw\nbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2uwIDAQAB\n-----END RSA PUBLIC KEY-----\n";
|
|
23
23
|
const rsaJwk = {
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { LanguageString } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
12
|
-
import "../std__assert-
|
|
13
|
-
import "../assert_rejects-
|
|
14
|
-
import "../assert_is_error-
|
|
15
|
-
import "../assert_not_equals-
|
|
16
|
-
import "../assert_throws-
|
|
6
|
+
import { LanguageString } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import { test } from "../testing-BYDK5oCn.js";
|
|
12
|
+
import "../std__assert-X-_kMxKM.js";
|
|
13
|
+
import "../assert_rejects-DiIiJbZn.js";
|
|
14
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
15
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
16
|
+
import "../assert_throws-BOO88avQ.js";
|
|
17
17
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
18
18
|
import util from "node:util";
|
|
19
19
|
|
|
20
|
-
//#region runtime/langstr.test.ts
|
|
20
|
+
//#region src/runtime/langstr.test.ts
|
|
21
21
|
test("new LanguageString()", () => {
|
|
22
22
|
const langStr = new LanguageString("Hello", "en");
|
|
23
23
|
assertEquals(langStr.toString(), "Hello");
|
package/dist/runtime/mod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
|
5
|
-
import { LanguageString } from "../vocab-
|
|
6
|
-
import "../http-
|
|
7
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-
|
|
3
|
+
import "../kv-C7sopW2E.js";
|
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-Bz56sKV5.js";
|
|
5
|
+
import { LanguageString } from "../vocab-CA7YwVEz.js";
|
|
6
|
+
import "../http-l4uEvaAw.js";
|
|
7
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-DM7ZpXF4.js";
|
|
8
8
|
export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, LanguageString, RemoteDocument, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
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-C7WW0kMN.js";
|
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-D-8TdNPr.js";
|
|
7
|
+
import "../lookup-DDoSF4Q1.js";
|
|
8
|
+
import "../key-CZYy7mnV.js";
|
|
9
|
+
import "../http-DVY5TWhV.js";
|
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-Bl-I2-Sq.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,19 +3,19 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { codes, decode, decodeText, encode, encodeText, names } from "../../type-
|
|
7
|
-
import { assertEquals } from "../../assert_equals-
|
|
8
|
-
import "../../assert-
|
|
9
|
-
import "../../assert_instance_of-
|
|
10
|
-
import "../../lookup-
|
|
11
|
-
import { test } from "../../testing-
|
|
12
|
-
import "../../std__assert-
|
|
13
|
-
import "../../assert_rejects-
|
|
14
|
-
import "../../assert_is_error-
|
|
15
|
-
import "../../assert_not_equals-
|
|
16
|
-
import "../../assert_throws-
|
|
6
|
+
import { codes, decode, decodeText, encode, encodeText, names } from "../../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../../assert-MZs1qjMx.js";
|
|
9
|
+
import "../../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../../lookup-D8SjsWr2.js";
|
|
11
|
+
import { test } from "../../testing-BYDK5oCn.js";
|
|
12
|
+
import "../../std__assert-X-_kMxKM.js";
|
|
13
|
+
import "../../assert_rejects-DiIiJbZn.js";
|
|
14
|
+
import "../../assert_is_error-BPGph1Jx.js";
|
|
15
|
+
import "../../assert_not_equals-f3m3epl3.js";
|
|
16
|
+
import "../../assert_throws-BOO88avQ.js";
|
|
17
17
|
|
|
18
|
-
//#region runtime/multibase/multibase.test.ts
|
|
18
|
+
//#region src/runtime/multibase/multibase.test.ts
|
|
19
19
|
test("multibase.encode and decode", async (t) => {
|
|
20
20
|
const testCases = [
|
|
21
21
|
[
|
package/dist/runtime/url.test.js
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import { test } from "../testing-
|
|
11
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
12
|
-
import "../assert_is_error-
|
|
6
|
+
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../lookup-D8SjsWr2.js";
|
|
10
|
+
import { test } from "../testing-BYDK5oCn.js";
|
|
11
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
12
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
13
13
|
|
|
14
|
-
//#region runtime/url.test.ts
|
|
14
|
+
//#region src/runtime/url.test.ts
|
|
15
15
|
test("validatePublicUrl()", async () => {
|
|
16
16
|
await assertRejects(() => validatePublicUrl("ftp://localhost"), UrlError);
|
|
17
17
|
await assertRejects(() => validatePublicUrl("data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="), UrlError);
|
|
@@ -3,12 +3,12 @@
|
|
|
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-TZK8-ARl.js";
|
|
7
|
+
import { doubleKnock } from "./http-CsB7aLbk.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
11
|
-
//#region federation/send.ts
|
|
11
|
+
//#region src/federation/send.ts
|
|
12
12
|
/**
|
|
13
13
|
* Extracts the inbox URLs from recipients.
|
|
14
14
|
* @param parameters The parameters to extract the inboxes.
|
package/dist/sig/http.test.js
CHANGED
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { exportSpki } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
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-
|
|
15
|
-
import { assertExists, assertStringIncludes } from "../std__assert-
|
|
16
|
-
import { assertFalse } from "../assert_rejects-
|
|
17
|
-
import "../assert_is_error-
|
|
18
|
-
import "../assert_not_equals-
|
|
19
|
-
import { assertThrows } from "../assert_throws-
|
|
20
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
|
21
|
-
import { esm_default } from "../esm-
|
|
6
|
+
import { exportSpki } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import { exportJwk } from "../key-D7pylbp7.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-CsB7aLbk.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
15
|
+
import { assertExists, assertStringIncludes } from "../std__assert-X-_kMxKM.js";
|
|
16
|
+
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
17
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
18
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
19
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
20
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-ED6v78Fx.js";
|
|
21
|
+
import { esm_default } from "../esm-kKgnN0F0.js";
|
|
22
22
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
23
23
|
|
|
24
|
-
//#region sig/http.test.ts
|
|
24
|
+
//#region src/sig/http.test.ts
|
|
25
25
|
test("signRequest() [draft-cavage]", async () => {
|
|
26
26
|
const request = new Request("https://example.com/", {
|
|
27
27
|
method: "POST",
|
package/dist/sig/key.test.js
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
14
|
-
import "../std__assert-
|
|
15
|
-
import { assertRejects } from "../assert_rejects-
|
|
16
|
-
import "../assert_is_error-
|
|
17
|
-
import "../assert_not_equals-
|
|
18
|
-
import { assertThrows } from "../assert_throws-
|
|
19
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-D7pylbp7.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
14
|
+
import "../std__assert-X-_kMxKM.js";
|
|
15
|
+
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
16
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
17
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
18
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
19
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-ED6v78Fx.js";
|
|
20
20
|
|
|
21
|
-
//#region sig/key.test.ts
|
|
21
|
+
//#region src/sig/key.test.ts
|
|
22
22
|
test("validateCryptoKey()", async () => {
|
|
23
23
|
const pkcs1v15 = await crypto.subtle.generateKey({
|
|
24
24
|
name: "RSASSA-PKCS1-v1_5",
|
package/dist/sig/ld.test.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
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-
|
|
14
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
15
|
-
import "../assert_is_error-
|
|
16
|
-
import { assertThrows } from "../assert_throws-
|
|
17
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
6
|
+
import { CryptographicKey } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../lookup-D8SjsWr2.js";
|
|
10
|
+
import "../actor-DrRRDhb8.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-D7pylbp7.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-CkgvjhBi.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
14
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
15
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
17
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-ED6v78Fx.js";
|
|
18
18
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
19
19
|
|
|
20
|
-
//#region sig/ld.test.ts
|
|
20
|
+
//#region src/sig/ld.test.ts
|
|
21
21
|
test("attachSignature()", () => {
|
|
22
22
|
const sig = {
|
|
23
23
|
"@context": "https://w3id.org/identity/v1",
|
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-C7sopW2E.js";
|
|
4
|
+
import "../docloader-Bz56sKV5.js";
|
|
5
|
+
import "../vocab-CA7YwVEz.js";
|
|
6
|
+
import "../actor-C2nhWp6O.js";
|
|
7
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-l4uEvaAw.js";
|
|
8
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-fFqUg4lq.js";
|
|
9
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-DwquBB1g.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-C7WW0kMN.js";
|
|
6
|
+
import "../actor-D-8TdNPr.js";
|
|
7
|
+
import "../lookup-DDoSF4Q1.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-CZYy7mnV.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-DVY5TWhV.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-QpYXzvLP.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,23 +3,23 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import { lookupObject } from "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
15
|
-
import "../std__assert-
|
|
16
|
-
import { assertFalse } from "../assert_rejects-
|
|
17
|
-
import "../assert_is_error-
|
|
18
|
-
import "../assert_not_equals-
|
|
19
|
-
import "../assert_throws-
|
|
20
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
|
6
|
+
import { Create } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { lookupObject } from "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import "../key-D7pylbp7.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-DFOzrXnn.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
15
|
+
import "../std__assert-X-_kMxKM.js";
|
|
16
|
+
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
17
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
18
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
19
|
+
import "../assert_throws-BOO88avQ.js";
|
|
20
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-ED6v78Fx.js";
|
|
21
21
|
|
|
22
|
-
//#region sig/owner.test.ts
|
|
22
|
+
//#region src/sig/owner.test.ts
|
|
23
23
|
test("doesActorOwnKey()", async () => {
|
|
24
24
|
const options = {
|
|
25
25
|
documentLoader: mockDocumentLoader,
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
15
|
-
import "../std__assert-
|
|
16
|
-
import { assertRejects } from "../assert_rejects-
|
|
17
|
-
import "../assert_is_error-
|
|
18
|
-
import "../assert_not_equals-
|
|
19
|
-
import "../assert_throws-
|
|
20
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
6
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import "../actor-DrRRDhb8.js";
|
|
12
|
+
import "../key-D7pylbp7.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-C9I8sGkH.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.js";
|
|
15
|
+
import "../std__assert-X-_kMxKM.js";
|
|
16
|
+
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
17
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
18
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
19
|
+
import "../assert_throws-BOO88avQ.js";
|
|
20
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-ED6v78Fx.js";
|
|
21
21
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
22
22
|
|
|
23
|
-
//#region sig/proof.test.ts
|
|
23
|
+
//#region src/sig/proof.test.ts
|
|
24
24
|
const fep8b32TestVectorPrivateKey = await crypto.subtle.importKey("jwk", {
|
|
25
25
|
"kty": "OKP",
|
|
26
26
|
"crv": "Ed25519",
|