@fedify/fedify 1.8.1-dev.1251 → 1.8.1-dev.1257
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-BrcrDRrd.js → actor-BikY_SQM.js} +189 -189
- package/dist/{actor-C2nhWp6O.d.ts → actor-CWNAGvnO.d.ts} +3 -3
- package/dist/{actor-DoKu1L4T.js → actor-DZBoM62F.js} +2 -2
- package/dist/{assert-MZs1qjMx.js → assert-DwEa6glZ.js} +2 -2
- package/dist/{assert_equals-DSbWqCm3.js → assert_equals-C5gKCm6A.js} +9 -9
- package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C9QtN-X9.js} +2 -2
- package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-CeVBLPsZ.js} +2 -2
- package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-D2R2nl5h.js} +2 -2
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-AjlKk-Vo.js} +4 -4
- package/dist/{assert_throws-BOO88avQ.js → assert_throws-CqMKbTh_.js} +3 -3
- package/dist/{authdocloader-BCPue7G-.js → authdocloader-D5W4EQcq.js} +4 -4
- package/dist/{authdocloader-BM_rDISs.js → authdocloader-cp8_oTgz.js} +4 -4
- package/dist/{builder-DPbqDjRL.js → builder-Ci76otkW.js} +5 -5
- package/dist/{client-D2tgjFk3.d.ts → client-B0IOer6B.d.ts} +4 -4
- package/dist/{client-EtAMhk0M.js → client-DAkw--Jo.js} +3 -3
- package/dist/{collection-CSzG2j1P.js → collection-D5V3UzU3.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-BBD2ZH_P.d.ts → context-BNA3vzcr.d.ts} +22 -22
- package/dist/{denokv-2x6-IpXO.js → denokv-DK9P5Jq7.js} +1 -1
- package/dist/{docloader-BFnz4cUB.js → docloader-Bzo5ftEW.js} +34 -34
- package/dist/{docloader-Bz56sKV5.d.ts → docloader-CLolPVL_.d.ts} +2 -2
- package/dist/{esm-By_fFRjc.js → esm-BgiTMQOc.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-CMX7WzeL.js → federation-C44ekWNP.js} +2 -2
- package/dist/{http-1Wzt-s-x.js → http-9_ofTz9c.js} +3 -3
- package/dist/{http-CSZQOCiK.js → http-BLKR8Mok.js} +4 -4
- package/dist/{http-l4uEvaAw.d.ts → http-COez3YdK.d.ts} +4 -4
- package/dist/{inbox-C6-okn67.js → inbox-T3SweGaO.js} +2 -2
- package/dist/{key-Ds9OGz2b.js → key-BX1fbSuy.js} +3 -3
- package/dist/{key-DSQYlIcZ.js → key-Be3XMgry.js} +4 -4
- package/dist/{key-BE8Xa-LD.js → key-Bs9KACm9.js} +3 -3
- package/dist/{key-KiUFPYCP.js → key-Es-nlmhf.js} +3 -3
- package/dist/{keycache-B4Qb2wT6.js → keycache-C4BCC4vg.js} +2 -2
- package/dist/{keys-8gSmlKLZ.js → keys-WkBhomXe.js} +2 -2
- package/dist/{kv-C7sopW2E.d.ts → kv-BqOK6zss.d.ts} +1 -1
- package/dist/{kv-CRZrzyXm.js → kv-D7Yt6pnB.js} +1 -1
- package/dist/{ld-Ct7v-88v.js → ld-CCcdgBVj.js} +3 -3
- package/dist/{lookup-CVrpxrwg.js → lookup-CsClsl7o.js} +4 -4
- package/dist/{lookup-CSj0842o.js → lookup-DCu_zWM7.js} +2 -2
- package/dist/{lookup-BJelGpWr.d.ts → lookup-tSXYzgYs.d.ts} +3 -3
- package/dist/middleware-3Rhr9O99.js +26 -0
- package/dist/{middleware-h8mWKC7-.js → middleware-Bi6vii_m.js} +23 -23
- package/dist/middleware-Cl7rlBgB.js +17 -0
- package/dist/{middleware-DENCQMFM.js → middleware-DVPOQe3B.js} +23 -23
- package/dist/{mod-DwquBB1g.d.ts → mod-Bf-mThHd.d.ts} +5 -5
- package/dist/{mod-D79SaXL-.d.ts → mod-C2jQirfr.d.ts} +6 -6
- package/dist/{mod-DDwnlIlm.d.ts → mod-CxD6XXBN.d.ts} +3 -3
- package/dist/{mod-DM7ZpXF4.d.ts → mod-UTC30uNC.d.ts} +4 -4
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +12 -12
- package/dist/{mq-CRGm1e_F.d.ts → mq-DYKDDJmp.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-fFqUg4lq.d.ts → owner-BlxMNrL4.d.ts} +4 -4
- package/dist/{owner-C4I-uKsE.js → owner-DXNlaWD_.js} +3 -3
- package/dist/{proof-Dc6YBQrG.js → proof-C_0Zxi4w.js} +3 -3
- package/dist/{proof-D38LfAv-.js → proof-ns69frLC.js} +6 -6
- package/dist/{retry-D4GJ670a.js → retry-BnpVRGFC.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-dArNLkR9.js → semver-DCqorrj5.js} +1 -1
- package/dist/{send-Bmx4oAgz.js → send-Dn09D9YS.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-X-_kMxKM.js → std__assert-BQdmxyzF.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-D8jl2zpn.js → testing-BVzhQrbP.js} +5 -5
- package/dist/{transformers-Dna8Fg7k.js → transformers-DJRB0yFF.js} +1 -1
- package/dist/{type-BdEEMr54.js → type-D0afWG7L.js} +221 -221
- package/dist/{types-CB7kSoxP.js → types-CxIziLfB.js} +4 -4
- package/dist/{types-BIgY6c-l.js → types-n7HI7VFr.js} +2 -2
- 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-zTbk21_4.js → vocab-2wtaPVuo.js} +6 -6
- package/dist/{vocab-CA7YwVEz.d.ts → vocab-Cyrb7_co.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-DrXiPjY8.js +0 -17
- package/dist/middleware-DxmXyJsU.js +0 -26
- /package/dist/{src/vocab → vocab}/accept.yaml +0 -0
- /package/dist/{src/vocab → vocab}/activity.yaml +0 -0
- /package/dist/{src/vocab → vocab}/add.yaml +0 -0
- /package/dist/{src/vocab → vocab}/announce.yaml +0 -0
- /package/dist/{src/vocab → vocab}/application.yaml +0 -0
- /package/dist/{src/vocab → vocab}/arrive.yaml +0 -0
- /package/dist/{src/vocab → vocab}/article.yaml +0 -0
- /package/dist/{src/vocab → vocab}/audio.yaml +0 -0
- /package/dist/{src/vocab → vocab}/block.yaml +0 -0
- /package/dist/{src/vocab → vocab}/chatmessage.yaml +0 -0
- /package/dist/{src/vocab → vocab}/collection.yaml +0 -0
- /package/dist/{src/vocab → vocab}/collectionpage.yaml +0 -0
- /package/dist/{src/vocab → vocab}/create.yaml +0 -0
- /package/dist/{src/vocab → vocab}/dataintegrityproof.yaml +0 -0
- /package/dist/{src/vocab → vocab}/delete.yaml +0 -0
- /package/dist/{src/vocab → vocab}/didservice.yaml +0 -0
- /package/dist/{src/vocab → vocab}/dislike.yaml +0 -0
- /package/dist/{src/vocab → vocab}/document.yaml +0 -0
- /package/dist/{src/vocab → vocab}/emoji.yaml +0 -0
- /package/dist/{src/vocab → vocab}/emojireact.yaml +0 -0
- /package/dist/{src/vocab → vocab}/endpoints.yaml +0 -0
- /package/dist/{src/vocab → vocab}/event.yaml +0 -0
- /package/dist/{src/vocab → vocab}/export.yaml +0 -0
- /package/dist/{src/vocab → vocab}/flag.yaml +0 -0
- /package/dist/{src/vocab → vocab}/follow.yaml +0 -0
- /package/dist/{src/vocab → vocab}/group.yaml +0 -0
- /package/dist/{src/vocab → vocab}/hashtag.yaml +0 -0
- /package/dist/{src/vocab → vocab}/ignore.yaml +0 -0
- /package/dist/{src/vocab → vocab}/image.yaml +0 -0
- /package/dist/{src/vocab → vocab}/intransitiveactivity.yaml +0 -0
- /package/dist/{src/vocab → vocab}/invite.yaml +0 -0
- /package/dist/{src/vocab → vocab}/join.yaml +0 -0
- /package/dist/{src/vocab → vocab}/key.yaml +0 -0
- /package/dist/{src/vocab → vocab}/leave.yaml +0 -0
- /package/dist/{src/vocab → vocab}/like.yaml +0 -0
- /package/dist/{src/vocab → vocab}/link.yaml +0 -0
- /package/dist/{src/vocab → vocab}/listen.yaml +0 -0
- /package/dist/{src/vocab → vocab}/mention.yaml +0 -0
- /package/dist/{src/vocab → vocab}/move.yaml +0 -0
- /package/dist/{src/vocab → vocab}/multikey.yaml +0 -0
- /package/dist/{src/vocab → vocab}/note.yaml +0 -0
- /package/dist/{src/vocab → vocab}/object.yaml +0 -0
- /package/dist/{src/vocab → vocab}/offer.yaml +0 -0
- /package/dist/{src/vocab → vocab}/orderedcollection.yaml +0 -0
- /package/dist/{src/vocab → vocab}/orderedcollectionpage.yaml +0 -0
- /package/dist/{src/vocab → vocab}/organization.yaml +0 -0
- /package/dist/{src/vocab → vocab}/page.yaml +0 -0
- /package/dist/{src/vocab → vocab}/person.yaml +0 -0
- /package/dist/{src/vocab → vocab}/place.yaml +0 -0
- /package/dist/{src/vocab → vocab}/profile.yaml +0 -0
- /package/dist/{src/vocab → vocab}/propertyvalue.yaml +0 -0
- /package/dist/{src/vocab → vocab}/question.yaml +0 -0
- /package/dist/{src/vocab → vocab}/read.yaml +0 -0
- /package/dist/{src/vocab → vocab}/reject.yaml +0 -0
- /package/dist/{src/vocab → vocab}/relationship.yaml +0 -0
- /package/dist/{src/vocab → vocab}/remove.yaml +0 -0
- /package/dist/{src/vocab → vocab}/service.yaml +0 -0
- /package/dist/{src/vocab → vocab}/source.yaml +0 -0
- /package/dist/{src/vocab → vocab}/tentativeaccept.yaml +0 -0
- /package/dist/{src/vocab → vocab}/tentativereject.yaml +0 -0
- /package/dist/{src/vocab → vocab}/tombstone.yaml +0 -0
- /package/dist/{src/vocab → vocab}/travel.yaml +0 -0
- /package/dist/{src/vocab → vocab}/undo.yaml +0 -0
- /package/dist/{src/vocab → vocab}/update.yaml +0 -0
- /package/dist/{src/vocab → vocab}/video.yaml +0 -0
- /package/dist/{src/vocab → vocab}/view.yaml +0 -0
|
@@ -3,20 +3,20 @@
|
|
|
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 { formatSemVer, parseSemVer } from "../semver-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
13
|
-
import "../std__assert-
|
|
14
|
-
import "../assert_rejects-
|
|
15
|
-
import "../assert_is_error-
|
|
16
|
-
import "../assert_not_equals-
|
|
17
|
-
import { assertThrows } from "../assert_throws-
|
|
6
|
+
import "../type-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import { formatSemVer, parseSemVer } from "../semver-DCqorrj5.js";
|
|
11
|
+
import "../lookup-CsClsl7o.js";
|
|
12
|
+
import { test } from "../testing-BVzhQrbP.js";
|
|
13
|
+
import "../std__assert-BQdmxyzF.js";
|
|
14
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
15
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
16
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
17
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
18
18
|
|
|
19
|
-
//#region
|
|
19
|
+
//#region nodeinfo/semver.test.ts
|
|
20
20
|
test("parseSemVer() handles major", async (t) => {
|
|
21
21
|
const versions = [
|
|
22
22
|
["1.2.3", 1],
|
|
@@ -3,21 +3,21 @@
|
|
|
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 "../semver-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { nodeInfoToJson } from "../types-
|
|
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 { assertThrows } from "../assert_throws-
|
|
6
|
+
import "../type-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../semver-DCqorrj5.js";
|
|
11
|
+
import "../lookup-CsClsl7o.js";
|
|
12
|
+
import { nodeInfoToJson } from "../types-n7HI7VFr.js";
|
|
13
|
+
import { test } from "../testing-BVzhQrbP.js";
|
|
14
|
+
import "../std__assert-BQdmxyzF.js";
|
|
15
|
+
import "../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
19
|
|
|
20
|
-
//#region
|
|
20
|
+
//#region nodeinfo/types.test.ts
|
|
21
21
|
test("nodeInfoToJson()", () => {
|
|
22
22
|
const validInfo = {
|
|
23
23
|
software: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
4
|
-
import { Activity, CryptographicKey } from "./vocab-
|
|
5
|
-
import { Actor } from "./actor-
|
|
3
|
+
import { DocumentLoader } from "./docloader-CLolPVL_.js";
|
|
4
|
+
import { Activity, CryptographicKey } from "./vocab-Cyrb7_co.js";
|
|
5
|
+
import { Actor } from "./actor-CWNAGvnO.js";
|
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region sig/owner.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* Options for {@link doesActorOwnKey}.
|
|
11
11
|
* @since 0.8.0
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-D0afWG7L.js";
|
|
7
|
+
import { isActor } from "./actor-DZBoM62F.js";
|
|
8
8
|
import { trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
10
|
-
//#region
|
|
10
|
+
//#region sig/owner.ts
|
|
11
11
|
/**
|
|
12
12
|
* Checks if the actor of the given activity owns the specified key.
|
|
13
13
|
* @param activity The activity to check.
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-D0afWG7L.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BX1fbSuy.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { encodeHex } from "byte-encodings/hex";
|
|
11
11
|
import serialize from "json-canon";
|
|
12
12
|
|
|
13
|
-
//#region
|
|
13
|
+
//#region sig/proof.ts
|
|
14
14
|
const logger = getLogger([
|
|
15
15
|
"fedify",
|
|
16
16
|
"sig",
|
|
@@ -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-Bzo5ftEW.js";
|
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-BikY_SQM.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Es-nlmhf.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
|
|
15
|
+
//#region 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
|
|
269
|
+
//#region 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
|
|
347
|
+
//#region 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
|
|
6
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../lookup-CsClsl7o.js";
|
|
11
|
+
import "../actor-DZBoM62F.js";
|
|
12
|
+
import "../key-BX1fbSuy.js";
|
|
13
|
+
import { verifyRequest } from "../http-9_ofTz9c.js";
|
|
14
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-cp8_oTgz.js";
|
|
15
|
+
import { mockDocumentLoader, test } from "../testing-BVzhQrbP.js";
|
|
16
|
+
import "../std__assert-BQdmxyzF.js";
|
|
17
|
+
import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
18
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
19
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
20
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
21
|
+
import { rsaPrivateKey2 } from "../keys-WkBhomXe.js";
|
|
22
|
+
import { esm_default } from "../esm-BgiTMQOc.js";
|
|
23
23
|
|
|
24
|
-
//#region
|
|
24
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
+
import "../lookup-CsClsl7o.js";
|
|
12
|
+
import { mockDocumentLoader, test } from "../testing-BVzhQrbP.js";
|
|
13
|
+
import "../std__assert-BQdmxyzF.js";
|
|
14
|
+
import { assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
15
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
16
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
17
|
+
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
18
|
+
import { esm_default } from "../esm-BgiTMQOc.js";
|
|
19
19
|
import process from "node:process";
|
|
20
20
|
|
|
21
|
-
//#region
|
|
21
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../lookup-CsClsl7o.js";
|
|
11
|
+
import "../actor-DZBoM62F.js";
|
|
12
|
+
import { exportJwk, importJwk } from "../key-BX1fbSuy.js";
|
|
13
|
+
import { test } from "../testing-BVzhQrbP.js";
|
|
14
|
+
import "../std__assert-BQdmxyzF.js";
|
|
15
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
16
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
17
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
18
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
19
19
|
|
|
20
|
-
//#region
|
|
20
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../lookup-CsClsl7o.js";
|
|
11
|
+
import { test } from "../testing-BVzhQrbP.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";
|
|
17
17
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
18
18
|
import util from "node:util";
|
|
19
19
|
|
|
20
|
-
//#region
|
|
20
|
+
//#region 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-BqOK6zss.js";
|
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-CLolPVL_.js";
|
|
5
|
+
import { LanguageString } from "../vocab-Cyrb7_co.js";
|
|
6
|
+
import "../http-COez3YdK.js";
|
|
7
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "../mod-UTC30uNC.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-Bzo5ftEW.js";
|
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-BikY_SQM.js";
|
|
7
|
+
import "../lookup-DCu_zWM7.js";
|
|
8
|
+
import "../key-Es-nlmhf.js";
|
|
9
|
+
import "../http-BLKR8Mok.js";
|
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-D5W4EQcq.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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../../assert-DwEa6glZ.js";
|
|
9
|
+
import "../../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../../lookup-CsClsl7o.js";
|
|
11
|
+
import { test } from "../../testing-BVzhQrbP.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";
|
|
17
17
|
|
|
18
|
-
//#region
|
|
18
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../lookup-CsClsl7o.js";
|
|
10
|
+
import { test } from "../testing-BVzhQrbP.js";
|
|
11
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
12
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
13
13
|
|
|
14
|
-
//#region
|
|
14
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { doubleKnock } from "./http-9_ofTz9c.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../lookup-CsClsl7o.js";
|
|
11
|
+
import "../actor-DZBoM62F.js";
|
|
12
|
+
import { exportJwk } from "../key-BX1fbSuy.js";
|
|
13
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-9_ofTz9c.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-BVzhQrbP.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-WkBhomXe.js";
|
|
21
|
+
import { esm_default } from "../esm-BgiTMQOc.js";
|
|
22
22
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
23
23
|
|
|
24
|
-
//#region
|
|
24
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
+
import "../lookup-CsClsl7o.js";
|
|
11
|
+
import "../actor-DZBoM62F.js";
|
|
12
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-BX1fbSuy.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BVzhQrbP.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-WkBhomXe.js";
|
|
20
20
|
|
|
21
|
-
//#region
|
|
21
|
+
//#region 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-D0afWG7L.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
+
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
|
+
import "../lookup-CsClsl7o.js";
|
|
10
|
+
import "../actor-DZBoM62F.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-BX1fbSuy.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-CCcdgBVj.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BVzhQrbP.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-WkBhomXe.js";
|
|
18
18
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
19
19
|
|
|
20
|
-
//#region
|
|
20
|
+
//#region 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-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-Bzo5ftEW.js";
|
|
6
|
+
import "../actor-BikY_SQM.js";
|
|
7
|
+
import "../lookup-DCu_zWM7.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-Es-nlmhf.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-BLKR8Mok.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-ns69frLC.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 };
|