@fedify/fedify 1.7.8 → 1.7.10

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.
Files changed (113) hide show
  1. package/dist/{actor-BP-NTJ2m.js → actor-C9RnX-Fl.js} +3 -3
  2. package/dist/{actor-E2ennwBD.js → actor-m_MgQ1Da.js} +179 -179
  3. package/dist/{authdocloader-Banw__l6.js → authdocloader-7OXAs5XI.js} +3 -3
  4. package/dist/{authdocloader-CFeH0dJ-.js → authdocloader-cdK4XSRT.js} +3 -3
  5. package/dist/{builder-EdzpUb9N.js → builder-C7nJE1zO.js} +3 -3
  6. package/dist/{client-rv6n0nKR.js → client-DXIsEekV.js} +1 -1
  7. package/dist/compat/transformers.test.d.ts +2 -1
  8. package/dist/compat/transformers.test.js +19 -18
  9. package/dist/{context-Buzj1YKD.js → context-Bts52fbz.js} +2 -2
  10. package/dist/{docloader-b8Rvguvo.js → docloader-BK2Fp3AJ.js} +2 -2
  11. package/dist/{docloader-C8mmLN-Y.js → docloader-CgkbWVNz.js} +2 -2
  12. package/dist/federation/builder.test.d.ts +2 -1
  13. package/dist/federation/builder.test.js +6 -5
  14. package/dist/federation/collection.test.d.ts +2 -1
  15. package/dist/federation/collection.test.js +2 -1
  16. package/dist/federation/handler.test.d.ts +2 -1
  17. package/dist/federation/handler.test.js +79 -20
  18. package/dist/federation/inbox.test.d.ts +2 -1
  19. package/dist/federation/inbox.test.js +5 -4
  20. package/dist/federation/keycache.test.d.ts +2 -1
  21. package/dist/federation/keycache.test.js +5 -4
  22. package/dist/federation/kv.test.d.ts +2 -1
  23. package/dist/federation/kv.test.js +2 -1
  24. package/dist/federation/middleware.test.d.ts +2 -1
  25. package/dist/federation/middleware.test.js +20 -19
  26. package/dist/federation/mod.js +10 -10
  27. package/dist/federation/mq.test.d.ts +2 -1
  28. package/dist/federation/mq.test.js +2 -1
  29. package/dist/federation/retry.test.d.ts +2 -1
  30. package/dist/federation/retry.test.js +2 -1
  31. package/dist/federation/router.test.d.ts +2 -1
  32. package/dist/federation/router.test.js +2 -1
  33. package/dist/federation/send.test.d.ts +2 -1
  34. package/dist/federation/send.test.js +11 -10
  35. package/dist/{http-DLI_ZQS-.js → http-CwQqD0nE.js} +3 -3
  36. package/dist/{http-BmfI6U39.js → http-D1IBucdD.js} +3 -3
  37. package/dist/{inbox-AwdJVoMZ.js → inbox-BrMkm2b5.js} +2 -2
  38. package/dist/{key-BNa6EpJl.js → key-C6phFgFq.js} +2 -2
  39. package/dist/{key-CLy1OKnR.js → key-Do-Pud3s.js} +4 -4
  40. package/dist/{key-CPSlDkCj.js → key-DtQ4rLnr.js} +3 -3
  41. package/dist/{key-y9w9Y2OM.js → key-ZtjFeVO8.js} +5 -5
  42. package/dist/{keycache-BPwY_Up0.js → keycache-B_99o7Nj.js} +1 -1
  43. package/dist/{keys-CtFc865v.js → keys-BgLpfFXK.js} +1 -1
  44. package/dist/{ld-D9kk1Uy2.js → ld-AzOj4-js.js} +3 -3
  45. package/dist/{lookup-DNXR408t.js → lookup-CBbanOdu.js} +3 -3
  46. package/dist/{lookup-Ozuw-rxN.js → lookup-ChtUDlB-.js} +1 -1
  47. package/dist/{lookup-Q9UB5zay.js → lookup-DJgGrigh.js} +1 -1
  48. package/dist/{middleware-DlU2_Djj.js → middleware-BS_et69x.js} +29 -29
  49. package/dist/middleware-BVMzYv1x.js +33 -0
  50. package/dist/middleware-CnpuCK_K.js +17 -0
  51. package/dist/{middleware-DaSuFmHu.js → middleware-R0UobiAQ.js} +24 -24
  52. package/dist/mod.js +10 -10
  53. package/dist/nodeinfo/client.test.d.ts +2 -1
  54. package/dist/nodeinfo/client.test.js +4 -3
  55. package/dist/nodeinfo/handler.test.d.ts +2 -1
  56. package/dist/nodeinfo/handler.test.js +20 -19
  57. package/dist/nodeinfo/mod.js +2 -2
  58. package/dist/nodeinfo/semver.test.d.ts +2 -1
  59. package/dist/nodeinfo/semver.test.js +2 -1
  60. package/dist/nodeinfo/types.test.d.ts +2 -1
  61. package/dist/nodeinfo/types.test.js +2 -1
  62. package/dist/{owner-DF6Fg4-s.js → owner-Ces3Cs3s.js} +3 -3
  63. package/dist/{proof-Blo9MEVW.js → proof-BKV4HiE8.js} +3 -3
  64. package/dist/{proof-13QPysOU.js → proof-BOQF8Trx.js} +3 -3
  65. package/dist/runtime/authdocloader.test.d.ts +2 -1
  66. package/dist/runtime/authdocloader.test.js +10 -9
  67. package/dist/runtime/docloader.test.d.ts +2 -1
  68. package/dist/runtime/docloader.test.js +27 -2
  69. package/dist/runtime/key.test.d.ts +2 -1
  70. package/dist/runtime/key.test.js +7 -6
  71. package/dist/runtime/langstr.test.d.ts +2 -1
  72. package/dist/runtime/langstr.test.js +2 -1
  73. package/dist/runtime/mod.js +6 -6
  74. package/dist/runtime/multibase/multibase.test.d.ts +2 -1
  75. package/dist/runtime/multibase/multibase.test.js +2 -1
  76. package/dist/runtime/url.test.d.ts +2 -1
  77. package/dist/runtime/url.test.js +2 -1
  78. package/dist/{send-CaL5Xv1F.js → send-aAmnTqe8.js} +2 -2
  79. package/dist/sig/http.test.d.ts +2 -1
  80. package/dist/sig/http.test.js +9 -8
  81. package/dist/sig/key.test.d.ts +2 -1
  82. package/dist/sig/key.test.js +8 -7
  83. package/dist/sig/ld.test.d.ts +2 -1
  84. package/dist/sig/ld.test.js +9 -8
  85. package/dist/sig/mod.js +6 -6
  86. package/dist/sig/owner.test.d.ts +2 -1
  87. package/dist/sig/owner.test.js +10 -9
  88. package/dist/sig/proof.test.d.ts +2 -1
  89. package/dist/sig/proof.test.js +9 -8
  90. package/dist/testing/docloader.test.d.ts +2 -1
  91. package/dist/testing/docloader.test.js +2 -1
  92. package/dist/{types-CGJsS8Cg.js → types-DBIKpLqH.js} +1 -1
  93. package/dist/vocab/actor.test.d.ts +2 -1
  94. package/dist/vocab/actor.test.js +6 -6
  95. package/dist/vocab/lookup.test.d.ts +2 -1
  96. package/dist/vocab/lookup.test.js +6 -5
  97. package/dist/vocab/mod.js +4 -4
  98. package/dist/vocab/type.test.d.ts +2 -1
  99. package/dist/vocab/type.test.js +4 -3
  100. package/dist/vocab/vocab.test.d.ts +2 -1
  101. package/dist/vocab/vocab.test.js +19 -18
  102. package/dist/{vocab-dDpPQ0fF.js → vocab-BOerhowX.js} +178 -178
  103. package/dist/{vocab-C3GyhklV.js → vocab-F6vbRsQh.js} +3 -3
  104. package/dist/webfinger/handler.test.d.ts +2 -1
  105. package/dist/webfinger/handler.test.js +20 -19
  106. package/dist/webfinger/lookup.test.d.ts +2 -1
  107. package/dist/webfinger/lookup.test.js +4 -3
  108. package/dist/webfinger/mod.js +2 -2
  109. package/dist/x/cfworkers.test.d.ts +2 -1
  110. package/dist/x/cfworkers.test.js +2 -1
  111. package/package.json +1 -1
  112. package/dist/middleware-B9LOv9Q4.js +0 -17
  113. package/dist/middleware-CPNmYc_Q.js +0 -33
@@ -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-b8Rvguvo.js";
6
- import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-E2ennwBD.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BNa6EpJl.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-BK2Fp3AJ.js";
6
+ import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-m_MgQ1Da.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-C6phFgFq.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import jsonld from "jsonld";
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-C8mmLN-Y.js";
7
- import { Activity, DataIntegrityProof, Multikey } from "./vocab-dDpPQ0fF.js";
6
+ import { deno_default } from "./docloader-CgkbWVNz.js";
7
+ import { Activity, DataIntegrityProof, Multikey } from "./vocab-BOerhowX.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
- import { fetchKey, validateCryptoKey } from "./key-CPSlDkCj.js";
9
+ import { fetchKey, validateCryptoKey } from "./key-DtQ4rLnr.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
12
12
  import { encodeHex } from "byte-encodings/hex";
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,17 +6,17 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import { UrlError } from "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import "../vocab-dDpPQ0fF.js";
12
+ import "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import "../key-CPSlDkCj.js";
18
- import { verifyRequest } from "../http-BmfI6U39.js";
19
- import { getAuthenticatedDocumentLoader } from "../authdocloader-Banw__l6.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import "../key-DtQ4rLnr.js";
18
+ import { verifyRequest } from "../http-D1IBucdD.js";
19
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-7OXAs5XI.js";
20
20
  import { test } from "../testing-BZ0dJ4qn.js";
21
21
  import "../std__assert-vp0TKMS1.js";
22
22
  import { assertRejects } from "../assert_rejects-C-sxEMM5.js";
@@ -24,7 +24,7 @@ import "../assert_is_error-nrwA1GeT.js";
24
24
  import "../assert_not_equals-Dc7y-V5Q.js";
25
25
  import "../assert_throws-Cn9C6Jur.js";
26
26
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
27
- import { rsaPrivateKey2 } from "../keys-CtFc865v.js";
27
+ import { rsaPrivateKey2 } from "../keys-BgLpfFXK.js";
28
28
  import { esm_default } from "../esm-Db4De7AS.js";
29
29
 
30
30
  //#region runtime/authdocloader.test.ts
@@ -66,4 +66,5 @@ test("getAuthenticatedDocumentLoader()", async (t) => {
66
66
  });
67
67
  });
68
68
 
69
- //#endregion
69
+ //#endregion
70
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -7,7 +7,7 @@ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
9
  import { MemoryKvStore } from "../kv-BMY6Qf_A.js";
10
- import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-C8mmLN-Y.js";
10
+ import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-CgkbWVNz.js";
11
11
  import { UrlError } from "../url-kTAI6_KP.js";
12
12
  import { test } from "../testing-BZ0dJ4qn.js";
13
13
  import "../std__assert-vp0TKMS1.js";
@@ -159,6 +159,30 @@ test("getDocumentLoader()", async (t) => {
159
159
  }
160
160
  });
161
161
  });
162
+ esm_default.get("https://example.com/xhtml-link", {
163
+ body: `<html>
164
+ <head>
165
+ <meta charset="utf-8" />
166
+ <link
167
+ rel=alternate
168
+ type="application/activity+json"
169
+ href="https://example.com/object" />
170
+ </head>
171
+ </html>`,
172
+ headers: { "Content-Type": "application/xhtml+xml; charset=utf-8" }
173
+ });
174
+ await t.step("XHTML <link>", async () => {
175
+ assertEquals(await fetchDocumentLoader("https://example.com/xhtml-link"), {
176
+ contextUrl: null,
177
+ documentUrl: "https://example.com/object",
178
+ document: {
179
+ "@context": "https://www.w3.org/ns/activitystreams",
180
+ id: "https://example.com/object",
181
+ name: "Fetched object",
182
+ type: "Object"
183
+ }
184
+ });
185
+ });
162
186
  esm_default.get("https://example.com/html-a", {
163
187
  body: `<html>
164
188
  <head>
@@ -496,4 +520,5 @@ test("getUserAgent()", () => {
496
520
  }
497
521
  });
498
522
 
499
- //#endregion
523
+ //#endregion
524
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,15 +6,15 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-dDpPQ0fF.js";
12
+ import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import { exportJwk, importJwk } from "../key-CPSlDkCj.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import { exportJwk, importJwk } from "../key-DtQ4rLnr.js";
18
18
  import { test } from "../testing-BZ0dJ4qn.js";
19
19
  import "../std__assert-vp0TKMS1.js";
20
20
  import "../assert_rejects-C-sxEMM5.js";
@@ -105,4 +105,5 @@ test("exportMultibaseKey()", async () => {
105
105
  assertEquals(ed25519Mb2, "z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK");
106
106
  });
107
107
 
108
- //#endregion
108
+ //#endregion
109
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -36,4 +36,5 @@ test("util.inspect(LanguageString)", () => {
36
36
  assertEquals(util.inspect(langStr, { colors: false }), "<en> \"Hello, 'world'\"");
37
37
  });
38
38
 
39
- //#endregion
39
+ //#endregion
40
+ export { };
@@ -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-b8Rvguvo.js";
6
- import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-E2ennwBD.js";
7
- import "../lookup-Q9UB5zay.js";
8
- import "../key-BNa6EpJl.js";
9
- import "../http-DLI_ZQS-.js";
10
- import { getAuthenticatedDocumentLoader } from "../authdocloader-CFeH0dJ-.js";
5
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-BK2Fp3AJ.js";
6
+ import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-m_MgQ1Da.js";
7
+ import "../lookup-DJgGrigh.js";
8
+ import "../key-C6phFgFq.js";
9
+ import "../http-CwQqD0nE.js";
10
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-cdK4XSRT.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 };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -354,4 +354,5 @@ test("constants", async (t) => {
354
354
  });
355
355
  });
356
356
 
357
- //#endregion
357
+ //#endregion
358
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -41,4 +41,5 @@ test("expandIPv6Address()", () => {
41
41
  assertEquals(expandIPv6Address("2001:db8::1"), "2001:0db8:0000:0000:0000:0000:0000:0001");
42
42
  });
43
43
 
44
- //#endregion
44
+ //#endregion
45
+ export { };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-C8mmLN-Y.js";
7
- import { doubleKnock } from "./http-BmfI6U39.js";
6
+ import { deno_default } from "./docloader-CgkbWVNz.js";
7
+ import { doubleKnock } from "./http-D1IBucdD.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,16 +6,16 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import { assert } from "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { exportSpki } from "../vocab-dDpPQ0fF.js";
12
+ import { exportSpki } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import { exportJwk } from "../key-CPSlDkCj.js";
18
- import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-BmfI6U39.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import { exportJwk } from "../key-DtQ4rLnr.js";
18
+ import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-D1IBucdD.js";
19
19
  import { test } from "../testing-BZ0dJ4qn.js";
20
20
  import { assertExists, assertStringIncludes } from "../std__assert-vp0TKMS1.js";
21
21
  import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
@@ -23,7 +23,7 @@ import "../assert_is_error-nrwA1GeT.js";
23
23
  import "../assert_not_equals-Dc7y-V5Q.js";
24
24
  import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
25
25
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
26
- import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-CtFc865v.js";
26
+ import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-BgLpfFXK.js";
27
27
  import { esm_default } from "../esm-Db4De7AS.js";
28
28
  import { encodeBase64 } from "byte-encodings/base64";
29
29
 
@@ -1183,4 +1183,5 @@ test("doubleKnock() regression test for redirect handling bug", async () => {
1183
1183
  esm_default.hardReset();
1184
1184
  });
1185
1185
 
1186
- //#endregion
1186
+ //#endregion
1187
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,15 +6,15 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { CryptographicKey, Multikey } from "../vocab-dDpPQ0fF.js";
12
+ import { CryptographicKey, Multikey } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-CPSlDkCj.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-DtQ4rLnr.js";
18
18
  import { test } from "../testing-BZ0dJ4qn.js";
19
19
  import "../std__assert-vp0TKMS1.js";
20
20
  import { assertRejects } from "../assert_rejects-C-sxEMM5.js";
@@ -22,7 +22,7 @@ import "../assert_is_error-nrwA1GeT.js";
22
22
  import "../assert_not_equals-Dc7y-V5Q.js";
23
23
  import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
24
24
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
25
- import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-CtFc865v.js";
25
+ import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-BgLpfFXK.js";
26
26
 
27
27
  //#region sig/key.test.ts
28
28
  test("validateCryptoKey()", async () => {
@@ -252,4 +252,5 @@ test("fetchKey()", async () => {
252
252
  });
253
253
  });
254
254
 
255
- //#endregion
255
+ //#endregion
256
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -5,22 +5,22 @@
5
5
 
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import { assert } from "../assert-DmFG7ppO.js";
8
- import "../docloader-C8mmLN-Y.js";
8
+ import "../docloader-CgkbWVNz.js";
9
9
  import "../url-kTAI6_KP.js";
10
10
  import "../multibase-DeCHcK8L.js";
11
- import { CryptographicKey } from "../vocab-dDpPQ0fF.js";
11
+ import { CryptographicKey } from "../vocab-BOerhowX.js";
12
12
  import "../langstr-DbWheeIS.js";
13
- import "../lookup-Ozuw-rxN.js";
13
+ import "../lookup-ChtUDlB-.js";
14
14
  import "../type-D2s5lmbZ.js";
15
- import "../actor-BP-NTJ2m.js";
16
- import { generateCryptoKeyPair } from "../key-CPSlDkCj.js";
17
- import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-D9kk1Uy2.js";
15
+ import "../actor-C9RnX-Fl.js";
16
+ import { generateCryptoKeyPair } from "../key-DtQ4rLnr.js";
17
+ import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-AzOj4-js.js";
18
18
  import { test } from "../testing-BZ0dJ4qn.js";
19
19
  import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
20
20
  import "../assert_is_error-nrwA1GeT.js";
21
21
  import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
22
22
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
23
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CtFc865v.js";
23
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BgLpfFXK.js";
24
24
  import { encodeBase64 } from "byte-encodings/base64";
25
25
 
26
26
  //#region sig/ld.test.ts
@@ -229,4 +229,5 @@ test("verifyJsonLd()", async () => {
229
229
  assertFalse(verified2);
230
230
  });
231
231
 
232
- //#endregion
232
+ //#endregion
233
+ export { };
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-b8Rvguvo.js";
6
- import "../actor-E2ennwBD.js";
7
- import "../lookup-Q9UB5zay.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-BNa6EpJl.js";
9
- import { signRequest, verifyRequest } from "../http-DLI_ZQS-.js";
10
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-Blo9MEVW.js";
5
+ import "../docloader-BK2Fp3AJ.js";
6
+ import "../actor-m_MgQ1Da.js";
7
+ import "../lookup-DJgGrigh.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-C6phFgFq.js";
9
+ import { signRequest, verifyRequest } from "../http-CwQqD0nE.js";
10
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-BKV4HiE8.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 };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,17 +6,17 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import { assert } from "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { Create } from "../vocab-dDpPQ0fF.js";
12
+ import { Create } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import "../key-CPSlDkCj.js";
18
- import { doesActorOwnKey, getKeyOwner } from "../owner-DF6Fg4-s.js";
19
- import { lookupObject } from "../lookup-DNXR408t.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import "../key-DtQ4rLnr.js";
18
+ import { doesActorOwnKey, getKeyOwner } from "../owner-Ces3Cs3s.js";
19
+ import { lookupObject } from "../lookup-CBbanOdu.js";
20
20
  import { test } from "../testing-BZ0dJ4qn.js";
21
21
  import "../std__assert-vp0TKMS1.js";
22
22
  import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
@@ -24,7 +24,7 @@ import "../assert_is_error-nrwA1GeT.js";
24
24
  import "../assert_not_equals-Dc7y-V5Q.js";
25
25
  import "../assert_throws-Cn9C6Jur.js";
26
26
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
27
- import { rsaPublicKey1, rsaPublicKey2 } from "../keys-CtFc865v.js";
27
+ import { rsaPublicKey1, rsaPublicKey2 } from "../keys-BgLpfFXK.js";
28
28
 
29
29
  //#region sig/owner.test.ts
30
30
  test("doesActorOwnKey()", async () => {
@@ -56,4 +56,5 @@ test("getKeyOwner()", async () => {
56
56
  assertEquals(noOwner2, null);
57
57
  });
58
58
 
59
- //#endregion
59
+ //#endregion
60
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,16 +6,16 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import { decode } from "../multibase-DeCHcK8L.js";
12
- import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-dDpPQ0fF.js";
12
+ import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BP-NTJ2m.js";
17
- import "../key-CPSlDkCj.js";
18
- import { createProof, signObject, verifyObject, verifyProof } from "../proof-13QPysOU.js";
16
+ import "../actor-C9RnX-Fl.js";
17
+ import "../key-DtQ4rLnr.js";
18
+ import { createProof, signObject, verifyObject, verifyProof } from "../proof-BOQF8Trx.js";
19
19
  import { test } from "../testing-BZ0dJ4qn.js";
20
20
  import "../std__assert-vp0TKMS1.js";
21
21
  import { assertRejects } from "../assert_rejects-C-sxEMM5.js";
@@ -23,7 +23,7 @@ import "../assert_is_error-nrwA1GeT.js";
23
23
  import "../assert_not_equals-Dc7y-V5Q.js";
24
24
  import "../assert_throws-Cn9C6Jur.js";
25
25
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
26
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CtFc865v.js";
26
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BgLpfFXK.js";
27
27
  import { decodeHex, encodeHex } from "byte-encodings/hex";
28
28
 
29
29
  //#region sig/proof.test.ts
@@ -272,4 +272,5 @@ test("verifyObject()", async () => {
272
272
  assertEquals(note.content, "Hello world");
273
273
  });
274
274
 
275
- //#endregion
275
+ //#endregion
276
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -20,4 +20,5 @@ test("mockDocumentLoader()", async () => {
20
20
  assertEquals(await response.document, { "https://example.com/prop/test": { "@value": "foo" } });
21
21
  });
22
22
 
23
- //#endregion
23
+ //#endregion
24
+ export { };
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getUserAgent } from "./docloader-b8Rvguvo.js";
5
+ import { getUserAgent } from "./docloader-BK2Fp3AJ.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
 
8
8
  //#region nodeinfo/semver.ts
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -7,14 +7,14 @@ import { __export } from "../chunk-HsBuZ-b2.js";
7
7
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
8
8
  import { assert } from "../assert-DmFG7ppO.js";
9
9
  import "../assert_instance_of-CF09JHYM.js";
10
- import "../docloader-C8mmLN-Y.js";
10
+ import "../docloader-CgkbWVNz.js";
11
11
  import "../url-kTAI6_KP.js";
12
12
  import "../multibase-DeCHcK8L.js";
13
- import { Application, Group, Organization, Person, Service } from "../vocab-dDpPQ0fF.js";
13
+ import { Application, Group, Organization, Person, Service } from "../vocab-BOerhowX.js";
14
14
  import "../langstr-DbWheeIS.js";
15
- import "../lookup-Ozuw-rxN.js";
15
+ import "../lookup-ChtUDlB-.js";
16
16
  import "../type-D2s5lmbZ.js";
17
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BP-NTJ2m.js";
17
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C9RnX-Fl.js";
18
18
  import { test } from "../testing-BZ0dJ4qn.js";
19
19
  import { assertStrictEquals } from "../std__assert-vp0TKMS1.js";
20
20
  import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
@@ -5382,7 +5382,6 @@ const safeNegativeInfinity = Number.NEGATIVE_INFINITY;
5382
5382
  const safePositiveInfinity = Number.POSITIVE_INFINITY;
5383
5383
  const safeNaN = NaN;
5384
5384
  function safeFloatToIndex(f, constraintsLabel) {
5385
- const conversionTrick = "you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
5386
5385
  const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
5387
5386
  if (safeNumberIsNaN(f) || safeMathFround(f) !== f) throw new Error(errorMessage);
5388
5387
  return floatToIndex(f);
@@ -5959,4 +5958,5 @@ test("normalizeActorHandle()", () => {
5959
5958
  assertThrows(() => normalizeActorHandle("@foo@bar.com@baz.com"));
5960
5959
  });
5961
5960
 
5962
- //#endregion
5961
+ //#endregion
5962
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,14 +6,14 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-C8mmLN-Y.js";
9
+ import "../docloader-CgkbWVNz.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { Collection, Note, Object as Object$1, Person } from "../vocab-dDpPQ0fF.js";
12
+ import { Collection, Note, Object as Object$1, Person } from "../vocab-BOerhowX.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-Ozuw-rxN.js";
14
+ import "../lookup-ChtUDlB-.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import { lookupObject, traverseCollection } from "../lookup-DNXR408t.js";
16
+ import { lookupObject, traverseCollection } from "../lookup-CBbanOdu.js";
17
17
  import { test } from "../testing-BZ0dJ4qn.js";
18
18
  import "../std__assert-vp0TKMS1.js";
19
19
  import "../assert_rejects-C-sxEMM5.js";
@@ -118,4 +118,5 @@ test("traverseCollection()", async () => {
118
118
  ]);
119
119
  });
120
120
 
121
- //#endregion
121
+ //#endregion
122
+ export { };
package/dist/vocab/mod.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-b8Rvguvo.js";
6
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-E2ennwBD.js";
7
- import "../lookup-Q9UB5zay.js";
8
- import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-C3GyhklV.js";
5
+ import "../docloader-BK2Fp3AJ.js";
6
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-m_MgQ1Da.js";
7
+ import "../lookup-DJgGrigh.js";
8
+ import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-F6vbRsQh.js";
9
9
 
10
10
  export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};