@fedify/fedify 1.8.1-pr.339.1223 → 1.8.1-pr.339.1268
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-B4TBtqRP.d.ts → actor-C2nhWp6O.d.ts} +3 -3
- package/dist/{actor-DzraO78i.js → actor-CiJAcLqB.js} +189 -189
- package/dist/{actor-CB79AEUc.js → actor-D6GOlLJ6.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-CZbt-zus.js → authdocloader-BAjrhBq8.js} +4 -4
- package/dist/{authdocloader-9w4UWFGu.js → authdocloader-Cw_v2hNg.js} +4 -4
- package/dist/{builder-DqeW2NfK.js → builder-BsZBzMCd.js} +6 -6
- package/dist/{client-D8ECiMRC.js → client-BLfRipwg.js} +3 -3
- package/dist/{client-BQ4AQGKo.d.ts → client-D2tgjFk3.d.ts} +4 -4
- 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-Csbv_Ssv.d.ts → context-BBD2ZH_P.d.ts} +95 -95
- package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-BeCtcTOJ.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
- package/dist/{docloader-Dko90hhf.js → docloader-Dzx8U2Dk.js} +34 -34
- package/dist/{esm-BcNnrbSt.js → esm-DxxcosLG.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-DtRd__2b.js → http-DhBXJ5RQ.js} +3 -3
- package/dist/{http-DJZoomhf.js → http-DznaySDa.js} +4 -4
- package/dist/{http-BL6S1G0j.d.ts → http-l4uEvaAw.d.ts} +5 -5
- package/dist/{inbox-BkgXcbh1.js → inbox-CVky_FSA.js} +2 -2
- package/dist/{key-CFc9faD4.js → key-B1ub9SFn.js} +4 -4
- package/dist/{key-Crm3TsZ2.js → key-DMP3ef1u.js} +4 -4
- package/dist/{key-Bax5Sopu.js → key-DU-yHn0w.js} +3 -3
- package/dist/{key-BrnILBxz.js → key-Dl4LrkV9.js} +4 -4
- package/dist/{keycache-CYB-S-yN.js → keycache-mF6ZI1Ry.js} +2 -2
- package/dist/{keys-DH4KqO28.js → keys-BXRIwott.js} +2 -2
- package/dist/{kv-DDdb1hMa.d.ts → kv-C7sopW2E.d.ts} +2 -2
- package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
- package/dist/{ld-BFU5cPI-.js → ld-CRIArREg.js} +3 -3
- package/dist/{lookup-DVKVaXLA.js → lookup-B3WsTfHy.js} +2 -2
- package/dist/{lookup-J_m4YZg0.d.ts → lookup-BJelGpWr.d.ts} +3 -3
- package/dist/{lookup-tAXRzrWm.js → lookup-CEq6hJB1.js} +4 -4
- package/dist/{middleware-Cv5Hwaiq.js → middleware-C8OPJrsd.js} +53 -53
- package/dist/middleware-CRpNmaRj.js +26 -0
- package/dist/{middleware-C7VFLIDZ.js → middleware-CddribuD.js} +51 -51
- package/dist/middleware-Dea_ou2w.js +17 -0
- package/dist/{mod-BFwgZ7_K.d.ts → mod-D79SaXL-.d.ts} +6 -6
- package/dist/{mod-Dc_fDCtK.d.ts → mod-DDwnlIlm.d.ts} +6 -6
- package/dist/{mod-D8-liXFY.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
- package/dist/{mod-j0OCtlRW.d.ts → mod-DwquBB1g.d.ts} +6 -6
- 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-C9J9KW9l.js → owner-B_UHjSAW.js} +3 -3
- package/dist/{owner-CEv_PfyK.d.ts → owner-fFqUg4lq.d.ts} +4 -4
- package/dist/{proof-BWeV09ZD.js → proof-BnjyRduN.js} +4 -4
- package/dist/{proof-BZywF9va.js → proof-vKFtbY3f.js} +7 -7
- 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-C3Es32HL.js → send-Cny2HDmX.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 +90 -90
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-CYMIJPbF.js → testing-DsaC3niW.js} +5 -5
- package/dist/{transformers-ghwJuzGY.js → transformers-Dna8Fg7k.js} +4 -4
- package/dist/{type-Cv-2McVu.js → type-BLjp2987.js} +221 -221
- package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-DNJjUEG0.js → types-D1iYYYAA.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-C6a42Zlb.js → vocab-C11iyvr5.js} +6 -6
- package/dist/{vocab-By6mpzr-.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 +16 -16
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.d.ts +13 -13
- package/dist/x/sveltekit.js +2 -2
- package/package.json +3 -3
- package/dist/middleware-BtixRKu5.js +0 -17
- package/dist/middleware-DRVxz0CE.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
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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-CEq6hJB1.js";
|
|
11
|
+
import "../actor-D6GOlLJ6.js";
|
|
12
|
+
import { exportJwk, importJwk } from "../key-B1ub9SFn.js";
|
|
13
|
+
import { test } from "../testing-DsaC3niW.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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-CEq6hJB1.js";
|
|
11
|
+
import { test } from "../testing-DsaC3niW.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-Dzx8U2Dk.js";
|
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-CiJAcLqB.js";
|
|
7
|
+
import "../lookup-B3WsTfHy.js";
|
|
8
|
+
import "../key-Dl4LrkV9.js";
|
|
9
|
+
import "../http-DznaySDa.js";
|
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-Cw_v2hNg.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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../../assert-MZs1qjMx.js";
|
|
9
|
+
import "../../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../../lookup-CEq6hJB1.js";
|
|
11
|
+
import { test } from "../../testing-DsaC3niW.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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../lookup-CEq6hJB1.js";
|
|
10
|
+
import { test } from "../testing-DsaC3niW.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-BLjp2987.js";
|
|
7
|
+
import { doubleKnock } from "./http-DhBXJ5RQ.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-BLjp2987.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-CEq6hJB1.js";
|
|
11
|
+
import "../actor-D6GOlLJ6.js";
|
|
12
|
+
import { exportJwk } from "../key-B1ub9SFn.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-DhBXJ5RQ.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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-BXRIwott.js";
|
|
21
|
+
import { esm_default } from "../esm-DxxcosLG.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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-CEq6hJB1.js";
|
|
11
|
+
import "../actor-D6GOlLJ6.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-B1ub9SFn.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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-BXRIwott.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-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../lookup-CEq6hJB1.js";
|
|
10
|
+
import "../actor-D6GOlLJ6.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-B1ub9SFn.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-CRIArREg.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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-BXRIwott.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-Dzx8U2Dk.js";
|
|
6
|
+
import "../actor-CiJAcLqB.js";
|
|
7
|
+
import "../lookup-B3WsTfHy.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-Dl4LrkV9.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-DznaySDa.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-vKFtbY3f.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-BLjp2987.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-CEq6hJB1.js";
|
|
11
|
+
import "../actor-D6GOlLJ6.js";
|
|
12
|
+
import "../key-B1ub9SFn.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-B_UHjSAW.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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-BXRIwott.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-BLjp2987.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-CEq6hJB1.js";
|
|
11
|
+
import "../actor-D6GOlLJ6.js";
|
|
12
|
+
import "../key-B1ub9SFn.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-BnjyRduN.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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-BXRIwott.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",
|
|
@@ -3,9 +3,9 @@
|
|
|
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-DSbWqCm3.js";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that actual is not null or undefined.
|
|
11
11
|
* If not then throw.
|
|
@@ -30,7 +30,7 @@ import { AssertionError, buildMessage, diff, diffStr, format, red } from "./asse
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region
|
|
33
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js
|
|
34
34
|
/**
|
|
35
35
|
* Make an assertion that `actual` is greater than or equal to `expected`.
|
|
36
36
|
* If not then throw.
|
|
@@ -56,7 +56,7 @@ import { AssertionError, buildMessage, diff, diffStr, format, red } from "./asse
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
//#endregion
|
|
59
|
-
//#region
|
|
59
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js
|
|
60
60
|
/**
|
|
61
61
|
* Make an assertion that `actual` is greater than `expected`.
|
|
62
62
|
* If not then throw.
|
|
@@ -82,7 +82,7 @@ import { AssertionError, buildMessage, diff, diffStr, format, red } from "./asse
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region
|
|
85
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js
|
|
86
86
|
/**
|
|
87
87
|
* Make an assertion that `actual` and `expected` are equal using
|
|
88
88
|
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
|
@@ -123,7 +123,7 @@ import { AssertionError, buildMessage, diff, diffStr, format, red } from "./asse
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
//#endregion
|
|
126
|
-
//#region
|
|
126
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js
|
|
127
127
|
/**
|
|
128
128
|
* Make an assertion that actual includes expected. If not
|
|
129
129
|
* then throw.
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { mockDocumentLoader, 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 "../type-BLjp2987.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-CEq6hJB1.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DsaC3niW.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 testing/docloader.test.ts
|
|
18
|
+
//#region src/testing/docloader.test.ts
|
|
19
19
|
test("mockDocumentLoader()", async () => {
|
|
20
20
|
const response = await mockDocumentLoader("https://example.com/test");
|
|
21
21
|
assertEquals(await response.document, { "https://example.com/prop/test": { "@value": "foo" } });
|