@fedify/fedify 1.9.0-pr.407.1541 → 1.9.0-pr.428.1586

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 (78) hide show
  1. package/dist/{actor-Ci9FEnz7.js → actor-B5tIy95d.js} +191 -190
  2. package/dist/{actor-CgxU5g3T.js → actor-BvROT4WI.js} +1 -1
  3. package/dist/{authdocloader-C1mRjUL0.js → authdocloader-C0x8j14f.js} +3 -3
  4. package/dist/{authdocloader-BzYD_FmX.js → authdocloader-OluPwAHg.js} +3 -3
  5. package/dist/{builder-BA9imTs-.js → builder-D2HXoVva.js} +4 -4
  6. package/dist/{client-a0QdQSaG.js → client-xJdQnihM.js} +1 -1
  7. package/dist/compat/transformers.test.js +16 -16
  8. package/dist/{docloader-B1FKn22p.js → docloader-Bt0UHody.js} +1 -1
  9. package/dist/{esm-BnTQrd7h.js → esm-BvQpekiq.js} +1 -1
  10. package/dist/federation/builder.test.js +5 -5
  11. package/dist/federation/collection.test.js +3 -3
  12. package/dist/federation/handler.test.js +17 -17
  13. package/dist/federation/inbox.test.js +4 -4
  14. package/dist/federation/keycache.test.js +4 -4
  15. package/dist/federation/kv.test.js +3 -3
  16. package/dist/federation/middleware.test.js +18 -18
  17. package/dist/federation/mod.js +10 -10
  18. package/dist/federation/mq.test.js +3 -3
  19. package/dist/federation/retry.test.js +3 -3
  20. package/dist/federation/router.test.js +3 -3
  21. package/dist/federation/send.test.js +10 -10
  22. package/dist/{http-BJUVXM-v.js → http--EcwgJ-o.js} +3 -3
  23. package/dist/{http-_F1-otnG.js → http-JDYiNRhN.js} +4 -4
  24. package/dist/{inbox-BdmFE-7t.js → inbox-Bl_wty7Z.js} +1 -1
  25. package/dist/{key-BwUPZ9c4.js → key-BPXNBhbz.js} +3 -3
  26. package/dist/{key-BjMZVyIc.js → key-BvX5MdFq.js} +2 -2
  27. package/dist/{key-MAzA0B5q.js → key-D1zxraQw.js} +4 -4
  28. package/dist/{key-6mpld0vV.js → key-bPypi42Z.js} +2 -2
  29. package/dist/{keycache-C6v3brY3.js → keycache-wxc4hVKW.js} +1 -1
  30. package/dist/{keys-C4_uagjj.js → keys-DkdqERpZ.js} +1 -1
  31. package/dist/{ld-DjtcmRNX.js → ld-BXoYuA5A.js} +4 -4
  32. package/dist/{lookup-CHXemfKP.js → lookup-CMhfC2dM.js} +1 -1
  33. package/dist/{lookup-BacM-mU2.js → lookup-d9d3dtR_.js} +1 -1
  34. package/dist/middleware-BewwXd1k.js +17 -0
  35. package/dist/{middleware-D229H6sF.js → middleware-CdQaw9yb.js} +10 -10
  36. package/dist/{middleware-Chvh9WwC.js → middleware-D4fnIggT.js} +13 -13
  37. package/dist/middleware-zBygWKc_.js +26 -0
  38. package/dist/mod.js +10 -10
  39. package/dist/nodeinfo/client.test.js +5 -5
  40. package/dist/nodeinfo/handler.test.js +16 -16
  41. package/dist/nodeinfo/mod.js +2 -2
  42. package/dist/nodeinfo/semver.test.js +3 -3
  43. package/dist/nodeinfo/types.test.js +3 -3
  44. package/dist/{owner-C_Ovx3OW.js → owner-ChuZaPPP.js} +2 -2
  45. package/dist/{proof-Cn9ubQ_4.js → proof-Bn2HW4b0.js} +6 -6
  46. package/dist/{proof-DsTmMO9a.js → proof-Cx3hKQtr.js} +3 -3
  47. package/dist/runtime/authdocloader.test.js +9 -9
  48. package/dist/runtime/docloader.test.js +4 -4
  49. package/dist/runtime/key.test.js +5 -5
  50. package/dist/runtime/langstr.test.js +3 -3
  51. package/dist/runtime/mod.js +6 -6
  52. package/dist/runtime/multibase/multibase.test.js +3 -3
  53. package/dist/runtime/url.test.js +3 -3
  54. package/dist/{send-B_t14nZe.js → send-BfT7_btX.js} +2 -2
  55. package/dist/sig/http.test.js +9 -9
  56. package/dist/sig/key.test.js +6 -6
  57. package/dist/sig/ld.test.js +7 -7
  58. package/dist/sig/mod.js +6 -6
  59. package/dist/sig/owner.test.js +7 -7
  60. package/dist/sig/proof.test.js +7 -7
  61. package/dist/testing/docloader.test.js +3 -3
  62. package/dist/testing/mod.js +3 -3
  63. package/dist/{testing-BWnZ_sj_.js → testing-C3-suIGn.js} +2 -2
  64. package/dist/{type-B8vENQVR.js → type-CT1JmQ1X.js} +190 -189
  65. package/dist/{types-vtD95MgU.js → types-CP2QavTt.js} +1 -1
  66. package/dist/vocab/actor.test.js +5 -5
  67. package/dist/vocab/lookup.test.js +4 -4
  68. package/dist/vocab/mod.js +4 -4
  69. package/dist/vocab/type.test.js +3 -3
  70. package/dist/vocab/vocab.test.js +4 -4
  71. package/dist/{vocab-BQIHm1R2.js → vocab-C25F1t3e.js} +3 -3
  72. package/dist/webfinger/handler.test.js +16 -16
  73. package/dist/webfinger/lookup.test.js +4 -4
  74. package/dist/webfinger/mod.js +2 -2
  75. package/dist/x/cfworkers.test.js +3 -3
  76. package/package.json +1 -1
  77. package/dist/middleware-BmxFy3Oa.js +0 -17
  78. package/dist/middleware-DJi4jhq9.js +0 -26
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./type-B8vENQVR.js";
6
+ import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./type-CT1JmQ1X.js";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { domainToASCII, domainToUnicode } from "node:url";
9
9
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-B1FKn22p.js";
6
- import { validateCryptoKey } from "./key-6mpld0vV.js";
7
- import { doubleKnock } from "./http-_F1-otnG.js";
5
+ import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-Bt0UHody.js";
6
+ import { validateCryptoKey } from "./key-bPypi42Z.js";
7
+ import { doubleKnock } from "./http-JDYiNRhN.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
10
10
  //#region src/runtime/authdocloader.ts
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-B8vENQVR.js";
7
- import { validateCryptoKey } from "./key-BjMZVyIc.js";
8
- import { doubleKnock } from "./http-BJUVXM-v.js";
6
+ import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-CT1JmQ1X.js";
7
+ import { validateCryptoKey } from "./key-BvX5MdFq.js";
8
+ import { doubleKnock } from "./http--EcwgJ-o.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
 
11
11
  //#region src/runtime/authdocloader.ts
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getTypeId } from "./type-B8vENQVR.js";
7
- import { Router, RouterError } from "./lookup-CHXemfKP.js";
8
- import { InboxListenerSet } from "./inbox-BdmFE-7t.js";
6
+ import { deno_default, getTypeId } from "./type-CT1JmQ1X.js";
7
+ import { Router, RouterError } from "./lookup-CMhfC2dM.js";
8
+ import { InboxListenerSet } from "./inbox-Bl_wty7Z.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
11
11
 
@@ -42,7 +42,7 @@ var FederationBuilderImpl = class {
42
42
  this.collectionTypeIds = {};
43
43
  }
44
44
  async build(options) {
45
- const { FederationImpl } = await import("./middleware-DJi4jhq9.js");
45
+ const { FederationImpl } = await import("./middleware-zBygWKc_.js");
46
46
  const f = new FederationImpl(options);
47
47
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
48
48
  f.router = this.router.clone();
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { getUserAgent } from "./type-B8vENQVR.js";
6
+ import { getUserAgent } from "./type-CT1JmQ1X.js";
7
7
  import { parseSemVer } from "./semver-dArNLkR9.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Follow, Person } from "../type-B8vENQVR.js";
6
+ import { Follow, Person } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-Chvh9WwC.js";
11
+ import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-D4fnIggT.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-a0QdQSaG.js";
14
- import "../lookup-CHXemfKP.js";
13
+ import "../client-xJdQnihM.js";
14
+ import "../lookup-CMhfC2dM.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-CgxU5g3T.js";
17
- import "../key-BjMZVyIc.js";
18
- import "../http-BJUVXM-v.js";
19
- import "../authdocloader-BzYD_FmX.js";
20
- import "../ld-DjtcmRNX.js";
21
- import "../owner-C_Ovx3OW.js";
22
- import "../proof-DsTmMO9a.js";
23
- import "../inbox-BdmFE-7t.js";
24
- import "../builder-BA9imTs-.js";
16
+ import "../actor-BvROT4WI.js";
17
+ import "../key-BvX5MdFq.js";
18
+ import "../http--EcwgJ-o.js";
19
+ import "../authdocloader-OluPwAHg.js";
20
+ import "../ld-BXoYuA5A.js";
21
+ import "../owner-ChuZaPPP.js";
22
+ import "../proof-Cx3hKQtr.js";
23
+ import "../inbox-Bl_wty7Z.js";
24
+ import "../builder-D2HXoVva.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-C6v3brY3.js";
26
+ import "../keycache-wxc4hVKW.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-B_t14nZe.js";
29
- import { test } from "../testing-BWnZ_sj_.js";
28
+ import "../send-BfT7_btX.js";
29
+ import { test } from "../testing-C3-suIGn.js";
30
30
 
31
31
  //#region src/compat/transformers.test.ts
32
32
  const federation = new FederationImpl({ kv: new MemoryKvStore() });
@@ -10,7 +10,7 @@ import { isIP } from "node:net";
10
10
 
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "1.9.0-pr.407.1541+f817af7f";
13
+ var version = "1.9.0-pr.428.1586+aacec75c";
14
14
  var license = "MIT";
15
15
  var exports = {
16
16
  ".": "./src/mod.ts",
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __commonJS, __toESM } from "./type-B8vENQVR.js";
6
+ import { __commonJS, __toESM } from "./type-CT1JmQ1X.js";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
9
9
  var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
@@ -3,16 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Note, Person } from "../type-B8vENQVR.js";
6
+ import { Activity, Note, Person } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
11
  import { parseSemVer } from "../semver-dArNLkR9.js";
12
- import "../lookup-CHXemfKP.js";
13
- import "../inbox-BdmFE-7t.js";
14
- import { createFederationBuilder } from "../builder-BA9imTs-.js";
15
- import { test } from "../testing-BWnZ_sj_.js";
12
+ import "../lookup-CMhfC2dM.js";
13
+ import "../inbox-Bl_wty7Z.js";
14
+ import { createFederationBuilder } from "../builder-D2HXoVva.js";
15
+ import { test } from "../testing-C3-suIGn.js";
16
16
  import { assertExists } from "../std__assert-X-_kMxKM.js";
17
17
  import "../assert_rejects-DiIiJbZn.js";
18
18
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B8vENQVR.js";
6
+ import "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-CHXemfKP.js";
10
+ import "../lookup-CMhfC2dM.js";
11
11
  import { buildCollectionSynchronizationHeader, digest } from "../collection-CSzG2j1P.js";
12
- import { test } from "../testing-BWnZ_sj_.js";
12
+ import { test } from "../testing-C3-suIGn.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,36 +3,36 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create, Note, Person } from "../type-B8vENQVR.js";
6
+ import { Create, Note, Person } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Chvh9WwC.js";
11
+ import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-D4fnIggT.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-a0QdQSaG.js";
14
- import "../lookup-CHXemfKP.js";
13
+ import "../client-xJdQnihM.js";
14
+ import "../lookup-CMhfC2dM.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-CgxU5g3T.js";
17
- import "../key-BjMZVyIc.js";
18
- import { signRequest } from "../http-BJUVXM-v.js";
19
- import "../authdocloader-BzYD_FmX.js";
20
- import "../ld-DjtcmRNX.js";
21
- import "../owner-C_Ovx3OW.js";
22
- import "../proof-DsTmMO9a.js";
23
- import { InboxListenerSet } from "../inbox-BdmFE-7t.js";
24
- import "../builder-BA9imTs-.js";
16
+ import "../actor-BvROT4WI.js";
17
+ import "../key-BvX5MdFq.js";
18
+ import { signRequest } from "../http--EcwgJ-o.js";
19
+ import "../authdocloader-OluPwAHg.js";
20
+ import "../ld-BXoYuA5A.js";
21
+ import "../owner-ChuZaPPP.js";
22
+ import "../proof-Cx3hKQtr.js";
23
+ import { InboxListenerSet } from "../inbox-Bl_wty7Z.js";
24
+ import "../builder-D2HXoVva.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-C6v3brY3.js";
26
+ import "../keycache-wxc4hVKW.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-B_t14nZe.js";
29
- import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-BWnZ_sj_.js";
28
+ import "../send-BfT7_btX.js";
29
+ import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-C3-suIGn.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
33
33
  import "../assert_not_equals-f3m3epl3.js";
34
34
  import "../assert_throws-BOO88avQ.js";
35
- import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-C4_uagjj.js";
35
+ import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DkdqERpZ.js";
36
36
 
37
37
  //#region src/federation/handler.test.ts
38
38
  test("acceptsJsonLd()", () => {
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Create, Invite, Offer, Update } from "../type-B8vENQVR.js";
6
+ import { Activity, Create, Invite, Offer, Update } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-CHXemfKP.js";
9
- import { InboxListenerSet } from "../inbox-BdmFE-7t.js";
10
- import { test } from "../testing-BWnZ_sj_.js";
8
+ import "../lookup-CMhfC2dM.js";
9
+ import { InboxListenerSet } from "../inbox-Bl_wty7Z.js";
10
+ import { test } from "../testing-C3-suIGn.js";
11
11
  import "../assert_is_error-BPGph1Jx.js";
12
12
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
13
13
 
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "../type-B8vENQVR.js";
6
+ import { CryptographicKey, Multikey } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import "../lookup-CHXemfKP.js";
12
- import { KvKeyCache } from "../keycache-C6v3brY3.js";
13
- import { test } from "../testing-BWnZ_sj_.js";
11
+ import "../lookup-CMhfC2dM.js";
12
+ import { KvKeyCache } from "../keycache-wxc4hVKW.js";
13
+ import { test } from "../testing-C3-suIGn.js";
14
14
 
15
15
  //#region src/federation/keycache.test.ts
16
16
  test("KvKeyCache.set()", async () => {
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B8vENQVR.js";
6
+ import "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import "../lookup-CHXemfKP.js";
12
- import { test } from "../testing-BWnZ_sj_.js";
11
+ import "../lookup-CMhfC2dM.js";
12
+ import { test } from "../testing-C3-suIGn.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,37 +3,37 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-B8vENQVR.js";
6
+ import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-Chvh9WwC.js";
11
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-D4fnIggT.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-a0QdQSaG.js";
14
- import { RouterError, lookupObject } from "../lookup-CHXemfKP.js";
13
+ import "../client-xJdQnihM.js";
14
+ import { RouterError, lookupObject } from "../lookup-CMhfC2dM.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-CgxU5g3T.js";
17
- import "../key-BjMZVyIc.js";
18
- import { signRequest, verifyRequest } from "../http-BJUVXM-v.js";
19
- import { getAuthenticatedDocumentLoader } from "../authdocloader-BzYD_FmX.js";
20
- import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-DjtcmRNX.js";
21
- import { doesActorOwnKey } from "../owner-C_Ovx3OW.js";
22
- import { signObject, verifyObject } from "../proof-DsTmMO9a.js";
23
- import "../inbox-BdmFE-7t.js";
24
- import "../builder-BA9imTs-.js";
16
+ import "../actor-BvROT4WI.js";
17
+ import "../key-BvX5MdFq.js";
18
+ import { signRequest, verifyRequest } from "../http--EcwgJ-o.js";
19
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-OluPwAHg.js";
20
+ import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BXoYuA5A.js";
21
+ import { doesActorOwnKey } from "../owner-ChuZaPPP.js";
22
+ import { signObject, verifyObject } from "../proof-Cx3hKQtr.js";
23
+ import "../inbox-Bl_wty7Z.js";
24
+ import "../builder-D2HXoVva.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-C6v3brY3.js";
26
+ import "../keycache-wxc4hVKW.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-B_t14nZe.js";
29
- import { mockDocumentLoader, test } from "../testing-BWnZ_sj_.js";
28
+ import "../send-BfT7_btX.js";
29
+ import { mockDocumentLoader, test } from "../testing-C3-suIGn.js";
30
30
  import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
31
31
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
33
33
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
34
34
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
35
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-C4_uagjj.js";
36
- import { esm_default } from "../esm-BnTQrd7h.js";
35
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DkdqERpZ.js";
36
+ import { esm_default } from "../esm-BvQpekiq.js";
37
37
 
38
38
  //#region src/testing/fixtures/example.com/person.json
39
39
  var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
@@ -3,16 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import "../transformers-Dna8Fg7k.js";
6
- import "../docloader-B1FKn22p.js";
7
- import "../actor-Ci9FEnz7.js";
8
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-D229H6sF.js";
9
- import "../lookup-BacM-mU2.js";
10
- import "../key-6mpld0vV.js";
11
- import "../http-_F1-otnG.js";
12
- import "../proof-Cn9ubQ_4.js";
6
+ import "../docloader-Bt0UHody.js";
7
+ import "../actor-B5tIy95d.js";
8
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CdQaw9yb.js";
9
+ import "../lookup-d9d3dtR_.js";
10
+ import "../key-bPypi42Z.js";
11
+ import "../http-JDYiNRhN.js";
12
+ import "../proof-Bn2HW4b0.js";
13
13
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-CMX7WzeL.js";
14
- import "../types-vtD95MgU.js";
15
- import "../authdocloader-C1mRjUL0.js";
16
- import "../vocab-BQIHm1R2.js";
14
+ import "../types-CP2QavTt.js";
15
+ import "../authdocloader-C0x8j14f.js";
16
+ import "../vocab-C25F1t3e.js";
17
17
 
18
18
  export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B8vENQVR.js";
6
+ import "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-CHXemfKP.js";
11
- import { test } from "../testing-BWnZ_sj_.js";
10
+ import "../lookup-CMhfC2dM.js";
11
+ import { test } from "../testing-C3-suIGn.js";
12
12
  import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B8vENQVR.js";
6
+ import "../type-CT1JmQ1X.js";
7
7
  import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-CHXemfKP.js";
8
+ import "../lookup-CMhfC2dM.js";
9
9
  import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
10
- import { test } from "../testing-BWnZ_sj_.js";
10
+ import { test } from "../testing-C3-suIGn.js";
11
11
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
12
12
 
13
13
  //#region src/federation/retry.test.ts
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B8vENQVR.js";
6
+ import "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import { Router, RouterError } from "../lookup-CHXemfKP.js";
11
- import { test } from "../testing-BWnZ_sj_.js";
10
+ import { Router, RouterError } from "../lookup-CMhfC2dM.js";
11
+ import { test } from "../testing-C3-suIGn.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,24 +3,24 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../type-B8vENQVR.js";
6
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../type-CT1JmQ1X.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-CHXemfKP.js";
11
- import "../actor-CgxU5g3T.js";
12
- import "../key-BjMZVyIc.js";
13
- import { verifyRequest } from "../http-BJUVXM-v.js";
14
- import { doesActorOwnKey } from "../owner-C_Ovx3OW.js";
15
- import { extractInboxes, sendActivity } from "../send-B_t14nZe.js";
16
- import { mockDocumentLoader, test } from "../testing-BWnZ_sj_.js";
10
+ import "../lookup-CMhfC2dM.js";
11
+ import "../actor-BvROT4WI.js";
12
+ import "../key-BvX5MdFq.js";
13
+ import { verifyRequest } from "../http--EcwgJ-o.js";
14
+ import { doesActorOwnKey } from "../owner-ChuZaPPP.js";
15
+ import { extractInboxes, sendActivity } from "../send-BfT7_btX.js";
16
+ import { mockDocumentLoader, test } from "../testing-C3-suIGn.js";
17
17
  import "../std__assert-X-_kMxKM.js";
18
18
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
19
19
  import "../assert_is_error-BPGph1Jx.js";
20
20
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
21
21
  import "../assert_throws-BOO88avQ.js";
22
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-C4_uagjj.js";
23
- import { esm_default } from "../esm-BnTQrd7h.js";
22
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DkdqERpZ.js";
23
+ import { esm_default } from "../esm-BvQpekiq.js";
24
24
 
25
25
  //#region src/federation/send.test.ts
26
26
  test("extractInboxes()", () => {
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, deno_default } from "./type-B8vENQVR.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BjMZVyIc.js";
6
+ import { CryptographicKey, deno_default } from "./type-CT1JmQ1X.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-BvX5MdFq.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -658,7 +658,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
658
658
  const signatureBaseBytes = new TextEncoder().encode(signatureBase);
659
659
  span?.setAttribute("http_signatures.signature", encodeHex(sigBytes));
660
660
  try {
661
- const verified = await crypto.subtle.verify(algorithm, key.publicKey, sigBytes, signatureBaseBytes);
661
+ const verified = await crypto.subtle.verify(algorithm, key.publicKey, sigBytes.slice(), signatureBaseBytes);
662
662
  if (verified) {
663
663
  validKey = key;
664
664
  break;
@@ -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 } from "./docloader-B1FKn22p.js";
6
- import { CryptographicKey } from "./actor-Ci9FEnz7.js";
7
- import { fetchKey, validateCryptoKey } from "./key-6mpld0vV.js";
5
+ import { deno_default } from "./docloader-Bt0UHody.js";
6
+ import { CryptographicKey } from "./actor-B5tIy95d.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-bPypi42Z.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -658,7 +658,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
658
658
  const signatureBaseBytes = new TextEncoder().encode(signatureBase);
659
659
  span?.setAttribute("http_signatures.signature", encodeHex(sigBytes));
660
660
  try {
661
- const verified = await crypto.subtle.verify(algorithm, key.publicKey, sigBytes, signatureBaseBytes);
661
+ const verified = await crypto.subtle.verify(algorithm, key.publicKey, sigBytes.slice(), signatureBaseBytes);
662
662
  if (verified) {
663
663
  validKey = key;
664
664
  break;
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, deno_default, getTypeId } from "./type-B8vENQVR.js";
6
+ import { Activity, deno_default, getTypeId } from "./type-CT1JmQ1X.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
9
 
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "./type-B8vENQVR.js";
7
- import "./actor-CgxU5g3T.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BjMZVyIc.js";
6
+ import "./type-CT1JmQ1X.js";
7
+ import "./actor-BvROT4WI.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BvX5MdFq.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-B8vENQVR.js";
7
- import { isActor } from "./actor-CgxU5g3T.js";
6
+ import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-CT1JmQ1X.js";
7
+ import { isActor } from "./actor-BvROT4WI.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-B1FKn22p.js";
6
- import "./actor-Ci9FEnz7.js";
7
- import "./lookup-BacM-mU2.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-6mpld0vV.js";
5
+ import "./docloader-Bt0UHody.js";
6
+ import "./actor-B5tIy95d.js";
7
+ import "./lookup-d9d3dtR_.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-bPypi42Z.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-B1FKn22p.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-Ci9FEnz7.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-Bt0UHody.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-B5tIy95d.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./type-B8vENQVR.js";
6
+ import { CryptographicKey, Multikey } from "./type-CT1JmQ1X.js";
7
7
 
8
8
  //#region src/federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey, importSpki } from "./type-B8vENQVR.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./type-CT1JmQ1X.js";
7
7
 
8
8
  //#region src/testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-B8vENQVR.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BjMZVyIc.js";
6
+ import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-CT1JmQ1X.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-BvX5MdFq.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -182,7 +182,7 @@ async function verifySignature(jsonLd, options = {}) {
182
182
  const encoder = new TextEncoder();
183
183
  const message = sigOptsHash + docHash;
184
184
  const messageBytes = encoder.encode(message);
185
- const verified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, signature, messageBytes);
185
+ const verified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, signature.slice(), messageBytes);
186
186
  if (verified) return key;
187
187
  if (cached) {
188
188
  logger.debug("Failed to verify with the cached key {keyId}; signature {signatureValue} is invalid. Retrying with the freshly fetched key...", {
@@ -197,7 +197,7 @@ async function verifySignature(jsonLd, options = {}) {
197
197
  }
198
198
  });
199
199
  if (key$1 == null) return null;
200
- const verified$1 = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key$1.publicKey, signature, messageBytes);
200
+ const verified$1 = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key$1.publicKey, signature.slice(), messageBytes);
201
201
  return verified$1 ? key$1 : null;
202
202
  }
203
203
  logger.debug("Failed to verify with the fetched key {keyId}; signature {signatureValue} is invalid. Check if the key is correct or if the signed message is correct. The message to sign is:\n{message}", {