@fedify/fedify 2.0.0-pr.414.1563 → 2.0.0-pr.427.1596

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 (99) hide show
  1. package/dist/{actor-BMnCVgwM.js → actor-B5BxYOhq.js} +191 -190
  2. package/dist/{actor-D2WUUCfP.js → actor-BcI705Oy.js} +1 -1
  3. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-7UF4R_Qs.js} +1 -1
  4. package/dist/{assert_throws-BOO88avQ.js → assert_throws-53_pKeP3.js} +1 -1
  5. package/dist/{authdocloader-j_VIhBOb.js → authdocloader-COG6H232.js} +3 -3
  6. package/dist/{authdocloader-CpjIqC9n.js → authdocloader-Cq1_Pq4C.js} +3 -3
  7. package/dist/{builder-D2bd-56_.js → builder-D5FCCfGb.js} +4 -4
  8. package/dist/{client-C7wXXa6t.js → client-DGTPHDGq.js} +5 -19
  9. package/dist/{client-DF8anIB5.d.ts → client-bgSdkFa2.d.ts} +2 -74
  10. package/dist/compat/mod.d.ts +3 -3
  11. package/dist/compat/transformers.test.js +19 -20
  12. package/dist/{context-9gCpIkiz.d.ts → context-CDSZdQHD.d.ts} +1 -1
  13. package/dist/{docloader-XGQT0txi.js → docloader-ee-psLUQ.js} +1 -1
  14. package/dist/{esm-BfnIYt0n.js → esm-CL8MgCfB.js} +1 -1
  15. package/dist/federation/builder.test.js +11 -12
  16. package/dist/federation/collection.test.js +9 -9
  17. package/dist/federation/handler.test.js +25 -26
  18. package/dist/federation/inbox.test.js +6 -6
  19. package/dist/federation/keycache.test.js +4 -4
  20. package/dist/federation/kv.test.js +8 -8
  21. package/dist/federation/middleware.test.js +29 -44
  22. package/dist/federation/mod.d.ts +2 -2
  23. package/dist/federation/mod.js +10 -10
  24. package/dist/federation/mq.test.js +10 -10
  25. package/dist/federation/retry.test.js +5 -5
  26. package/dist/federation/router.test.js +8 -8
  27. package/dist/federation/send.test.js +15 -15
  28. package/dist/{http-BeRerTBc.js → http-CwTPhAaE.js} +3 -3
  29. package/dist/{http-Ca2t0JFv.js → http-DoMqFHOF.js} +4 -4
  30. package/dist/{inbox-C0gVfibX.js → inbox-J4s6B2iT.js} +1 -1
  31. package/dist/{key-Bx1v18MI.js → key-D9X7MTWZ.js} +3 -3
  32. package/dist/{key-BBbPD2SJ.js → key-Dq93VWRD.js} +2 -2
  33. package/dist/{key-MIfD6Cqy.js → key-N34AY7FB.js} +2 -2
  34. package/dist/{key-Bz-rOXgb.js → key-O3AADxYM.js} +4 -4
  35. package/dist/{keycache-Dv8ghXhJ.js → keycache-CGVRuCk7.js} +1 -1
  36. package/dist/{keys-CbVjziAM.js → keys-B9R0CzTw.js} +1 -1
  37. package/dist/{ld-B_Flot3C.js → ld-BbutKW7Z.js} +4 -4
  38. package/dist/{lookup-Ez6GiujS.js → lookup-DXFbsfgr.js} +1 -1
  39. package/dist/{lookup-CY1ghFMr.js → lookup-Zvbl1eFh.js} +1 -1
  40. package/dist/{middleware-DBjAsS9u.js → middleware-7asW0k66.js} +16 -16
  41. package/dist/middleware-ChjHyac2.js +17 -0
  42. package/dist/{middleware-C2hYYKjC.js → middleware-ChyOVN0n.js} +10 -10
  43. package/dist/middleware-DrCDISrj.js +25 -0
  44. package/dist/{mod-Bqxcp7eN.d.ts → mod-RI3-KvUI.d.ts} +1 -1
  45. package/dist/mod.d.ts +4 -4
  46. package/dist/mod.js +11 -11
  47. package/dist/nodeinfo/client.test.js +32 -111
  48. package/dist/nodeinfo/handler.test.js +25 -26
  49. package/dist/nodeinfo/mod.d.ts +2 -2
  50. package/dist/nodeinfo/mod.js +3 -3
  51. package/dist/nodeinfo/types.test.js +10 -15
  52. package/dist/{owner-BlS-nhnY.js → owner-AHH4r9Jv.js} +2 -2
  53. package/dist/{proof-DK0N5QrE.js → proof-DAhKQZMf.js} +6 -6
  54. package/dist/{proof-owJeHGTc.js → proof-DGAhdf0m.js} +3 -3
  55. package/dist/runtime/authdocloader.test.js +14 -14
  56. package/dist/runtime/docloader.test.js +9 -9
  57. package/dist/runtime/key.test.js +10 -10
  58. package/dist/runtime/langstr.test.js +8 -8
  59. package/dist/runtime/mod.js +6 -6
  60. package/dist/runtime/multibase/multibase.test.js +8 -8
  61. package/dist/runtime/url.test.js +5 -5
  62. package/dist/{send-CuB63BFd.js → send-D1Sxc3QL.js} +2 -2
  63. package/dist/sig/http.test.js +14 -14
  64. package/dist/sig/key.test.js +11 -11
  65. package/dist/sig/ld.test.js +10 -10
  66. package/dist/sig/mod.js +6 -6
  67. package/dist/sig/owner.test.js +12 -12
  68. package/dist/sig/proof.test.js +12 -12
  69. package/dist/testing/docloader.test.js +8 -8
  70. package/dist/testing/mod.d.ts +1 -28
  71. package/dist/testing/mod.js +3 -3
  72. package/dist/{testing-C7EdRnkf.js → testing-Cw9WXCu2.js} +2 -2
  73. package/dist/{type-B6OlnDN2.js → type-CipPIcbS.js} +190 -189
  74. package/dist/{types-BIgY6c-l.js → types-BSuWJsOm.js} +1 -3
  75. package/dist/{types-xMIKBkAL.js → types-DqBxEn6o.js} +7 -163
  76. package/dist/vocab/actor.test.js +10 -10
  77. package/dist/vocab/lookup.test.js +9 -9
  78. package/dist/vocab/mod.js +4 -4
  79. package/dist/vocab/type.test.js +3 -3
  80. package/dist/vocab/vocab.test.js +9 -9
  81. package/dist/{vocab-BBiVdK4w.js → vocab-j7idRCnH.js} +3 -3
  82. package/dist/webfinger/handler.test.js +24 -25
  83. package/dist/webfinger/lookup.test.js +9 -9
  84. package/dist/webfinger/mod.js +2 -2
  85. package/dist/x/cfworkers.test.js +8 -8
  86. package/dist/x/hono.d.ts +2 -2
  87. package/dist/x/sveltekit.d.ts +2 -2
  88. package/package.json +1 -1
  89. package/dist/middleware-BEuwX7Os.js +0 -17
  90. package/dist/middleware-BYY9CoB2.js +0 -26
  91. package/dist/nodeinfo/semver.test.d.ts +0 -3
  92. package/dist/nodeinfo/semver.test.js +0 -143
  93. package/dist/semver-dArNLkR9.js +0 -149
  94. /package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-B035L3om.js} +0 -0
  95. /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
  96. /package/dist/{collection-CSzG2j1P.js → collection-CcnIw1qY.js} +0 -0
  97. /package/dist/{denokv-Bv33Xxea.js → denokv-jZ0Z2h0M.js} +0 -0
  98. /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
  99. /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
@@ -3,20 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B6OlnDN2.js";
6
+ import "../type-CipPIcbS.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 "../semver-dArNLkR9.js";
11
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-C7wXXa6t.js";
12
- import "../lookup-Ez6GiujS.js";
13
- import { test } from "../testing-C7EdRnkf.js";
14
- import "../std__assert-X-_kMxKM.js";
15
- import "../assert_rejects-DiIiJbZn.js";
16
- import "../assert_is_error-BPGph1Jx.js";
17
- import "../assert_not_equals-f3m3epl3.js";
18
- import "../assert_throws-BOO88avQ.js";
19
- import { esm_default } from "../esm-BfnIYt0n.js";
10
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-DGTPHDGq.js";
11
+ import "../lookup-DXFbsfgr.js";
12
+ import { test } from "../testing-Cw9WXCu2.js";
13
+ import "../std__assert-DWivtrGR.js";
14
+ import "../assert_rejects-7UF4R_Qs.js";
15
+ import "../assert_is_error-B035L3om.js";
16
+ import "../assert_not_equals-C80BG-_5.js";
17
+ import "../assert_throws-53_pKeP3.js";
18
+ import { esm_default } from "../esm-CL8MgCfB.js";
20
19
 
21
20
  //#region src/nodeinfo/client.test.ts
22
21
  test("getNodeInfo()", async (t) => {
@@ -42,13 +41,7 @@ test("getNodeInfo()", async (t) => {
42
41
  const expected = {
43
42
  software: {
44
43
  name: "foo",
45
- version: {
46
- major: 1,
47
- minor: 2,
48
- patch: 3,
49
- build: [],
50
- prerelease: []
51
- }
44
+ version: "1.2.3"
52
45
  },
53
46
  protocols: ["activitypub", "diaspora"],
54
47
  usage: {
@@ -126,13 +119,7 @@ test("parseNodeInfo()", () => {
126
119
  const output = {
127
120
  software: {
128
121
  name: "foo",
129
- version: {
130
- major: 1,
131
- minor: 2,
132
- patch: 3,
133
- build: [],
134
- prerelease: []
135
- },
122
+ version: "1.2.3",
136
123
  repository: new URL("https://codeberg.org/foo/foo"),
137
124
  homepage: new URL("https://foo.example")
138
125
  },
@@ -294,13 +281,7 @@ test("parseSoftware()", () => {
294
281
  homepage: "https://foo.example"
295
282
  }), {
296
283
  name: "foo",
297
- version: {
298
- major: 1,
299
- minor: 2,
300
- patch: 3,
301
- build: [],
302
- prerelease: []
303
- },
284
+ version: "1.2.3",
304
285
  repository: new URL("https://codeberg.org/foo/foo"),
305
286
  homepage: new URL("https://foo.example")
306
287
  });
@@ -309,13 +290,7 @@ test("parseSoftware()", () => {
309
290
  version: "4.5.6-beta.7+build.8"
310
291
  }), {
311
292
  name: "foo",
312
- version: {
313
- major: 4,
314
- minor: 5,
315
- patch: 6,
316
- build: ["build", "8"],
317
- prerelease: ["beta", 7]
318
- }
293
+ version: "4.5.6-beta.7+build.8"
319
294
  });
320
295
  assertEquals(parseSoftware(123), null);
321
296
  assertEquals(parseSoftware(123, { tryBestEffort: true }), null);
@@ -326,73 +301,49 @@ test("parseSoftware()", () => {
326
301
  assertEquals(parseSoftware({ name: " FOO " }), null);
327
302
  assertEquals(parseSoftware({ name: " FOO " }, { tryBestEffort: true }), {
328
303
  name: "foo",
329
- version: {
330
- major: 0,
331
- minor: 0,
332
- patch: 0,
333
- build: [],
334
- prerelease: []
335
- }
304
+ version: "0.0.0"
336
305
  });
337
306
  assertEquals(parseSoftware({
338
307
  name: "foo",
339
308
  version: 123
340
- }), null);
309
+ }), {
310
+ name: "foo",
311
+ version: "123"
312
+ });
341
313
  assertEquals(parseSoftware({
342
314
  name: "foo",
343
315
  version: 123
344
316
  }, { tryBestEffort: true }), {
345
317
  name: "foo",
346
- version: {
347
- major: 0,
348
- minor: 0,
349
- patch: 0,
350
- build: [],
351
- prerelease: []
352
- }
318
+ version: "123"
353
319
  });
354
320
  assertEquals(parseSoftware({
355
321
  name: "foo",
356
322
  version: "abc"
357
- }), null);
323
+ }), {
324
+ name: "foo",
325
+ version: "abc"
326
+ });
358
327
  assertEquals(parseSoftware({
359
328
  name: "foo",
360
329
  version: "abc"
361
330
  }, { tryBestEffort: true }), {
362
331
  name: "foo",
363
- version: {
364
- major: 0,
365
- minor: 0,
366
- patch: 0,
367
- build: [],
368
- prerelease: []
369
- }
332
+ version: "abc"
370
333
  });
371
334
  assertEquals(parseSoftware({
372
335
  name: "foo",
373
336
  version: " 1.2.3 "
374
337
  }), {
375
338
  name: "foo",
376
- version: {
377
- major: 1,
378
- minor: 2,
379
- patch: 3,
380
- build: [],
381
- prerelease: []
382
- }
339
+ version: " 1.2.3 "
383
340
  });
384
341
  assertEquals(parseSoftware({
385
342
  name: "foo",
386
343
  version: " 1.2.3 "
387
344
  }, { tryBestEffort: true }), {
388
345
  name: "foo",
389
- version: {
390
- major: 1,
391
- minor: 2,
392
- patch: 3,
393
- build: [],
394
- prerelease: []
395
- }
346
+ version: " 1.2.3 "
396
347
  });
397
348
  assertEquals(parseSoftware({
398
349
  name: "foo",
@@ -411,13 +362,7 @@ test("parseSoftware()", () => {
411
362
  homepage: 456
412
363
  }, { tryBestEffort: true }), {
413
364
  name: "foo",
414
- version: {
415
- major: 1,
416
- minor: 2,
417
- patch: 3,
418
- build: [],
419
- prerelease: []
420
- }
365
+ version: "1.2.3"
421
366
  });
422
367
  assertEquals(parseSoftware({
423
368
  name: "foo",
@@ -436,13 +381,7 @@ test("parseSoftware()", () => {
436
381
  homepage: ""
437
382
  }, { tryBestEffort: true }), {
438
383
  name: "foo",
439
- version: {
440
- major: 1,
441
- minor: 2,
442
- patch: 3,
443
- build: [],
444
- prerelease: []
445
- }
384
+ version: "1.2.3"
446
385
  });
447
386
  assertEquals(parseSoftware({
448
387
  name: "foo",
@@ -451,13 +390,7 @@ test("parseSoftware()", () => {
451
390
  homepage: ""
452
391
  }, { tryBestEffort: true }), {
453
392
  name: "foo",
454
- version: {
455
- major: 2,
456
- minor: 81,
457
- patch: 0,
458
- build: [],
459
- prerelease: []
460
- }
393
+ version: "2.81"
461
394
  });
462
395
  assertEquals(parseSoftware({
463
396
  name: "foo",
@@ -466,13 +399,7 @@ test("parseSoftware()", () => {
466
399
  homepage: ""
467
400
  }, { tryBestEffort: true }), {
468
401
  name: "foo",
469
- version: {
470
- major: 3,
471
- minor: 0,
472
- patch: 0,
473
- build: [],
474
- prerelease: []
475
- }
402
+ version: "3"
476
403
  });
477
404
  assertEquals(parseSoftware({
478
405
  name: "foo",
@@ -481,13 +408,7 @@ test("parseSoftware()", () => {
481
408
  homepage: ""
482
409
  }, { tryBestEffort: true }), {
483
410
  name: "foo",
484
- version: {
485
- major: 2,
486
- minor: 1,
487
- patch: 3,
488
- build: [],
489
- prerelease: []
490
- }
411
+ version: "2.1.3.4"
491
412
  });
492
413
  });
493
414
  test("parseProtocol()", () => {
@@ -3,35 +3,34 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B6OlnDN2.js";
6
+ import "../type-CipPIcbS.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 { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-DBjAsS9u.js";
12
- import { parseSemVer } from "../semver-dArNLkR9.js";
13
- import "../client-C7wXXa6t.js";
14
- import "../lookup-Ez6GiujS.js";
15
- import "../types-BIgY6c-l.js";
16
- import "../actor-D2WUUCfP.js";
17
- import "../key-MIfD6Cqy.js";
18
- import "../http-BeRerTBc.js";
19
- import "../authdocloader-j_VIhBOb.js";
20
- import "../ld-B_Flot3C.js";
21
- import "../owner-BlS-nhnY.js";
22
- import "../proof-owJeHGTc.js";
23
- import "../inbox-C0gVfibX.js";
24
- import "../builder-D2bd-56_.js";
25
- import "../collection-CSzG2j1P.js";
26
- import "../keycache-Dv8ghXhJ.js";
27
- import "../retry-D4GJ670a.js";
28
- import "../send-CuB63BFd.js";
29
- import { createRequestContext, test } from "../testing-C7EdRnkf.js";
30
- import "../std__assert-X-_kMxKM.js";
31
- import "../assert_rejects-DiIiJbZn.js";
32
- import "../assert_is_error-BPGph1Jx.js";
33
- import "../assert_not_equals-f3m3epl3.js";
34
- import "../assert_throws-BOO88avQ.js";
11
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-7asW0k66.js";
12
+ import "../client-DGTPHDGq.js";
13
+ import "../lookup-DXFbsfgr.js";
14
+ import "../types-BSuWJsOm.js";
15
+ import "../actor-BcI705Oy.js";
16
+ import "../key-N34AY7FB.js";
17
+ import "../http-CwTPhAaE.js";
18
+ import "../authdocloader-COG6H232.js";
19
+ import "../ld-BbutKW7Z.js";
20
+ import "../owner-AHH4r9Jv.js";
21
+ import "../proof-DGAhdf0m.js";
22
+ import "../inbox-J4s6B2iT.js";
23
+ import "../builder-D5FCCfGb.js";
24
+ import "../collection-CcnIw1qY.js";
25
+ import "../keycache-CGVRuCk7.js";
26
+ import "../retry-CfF8Gn4d.js";
27
+ import "../send-D1Sxc3QL.js";
28
+ import { createRequestContext, test } from "../testing-Cw9WXCu2.js";
29
+ import "../std__assert-DWivtrGR.js";
30
+ import "../assert_rejects-7UF4R_Qs.js";
31
+ import "../assert_is_error-B035L3om.js";
32
+ import "../assert_not_equals-C80BG-_5.js";
33
+ import "../assert_throws-53_pKeP3.js";
35
34
 
36
35
  //#region src/nodeinfo/handler.test.ts
37
36
  test("handleNodeInfo()", async () => {
@@ -46,7 +45,7 @@ test("handleNodeInfo()", async () => {
46
45
  const nodeInfoDispatcher = (_ctx) => ({
47
46
  software: {
48
47
  name: "test",
49
- version: parseSemVer("1.2.3")
48
+ version: "1.2.3"
50
49
  },
51
50
  protocols: ["activitypub"],
52
51
  usage: {
@@ -2,6 +2,6 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import "../docloader-CxWcuWqQ.js";
5
- import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-DF8anIB5.js";
5
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-bgSdkFa2.js";
6
6
  import "../mod-1pDWKvUL.js";
7
- export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
7
+ export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-XGQT0txi.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-xMIKBkAL.js";
5
+ import "../docloader-ee-psLUQ.js";
6
+ import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../types-DqBxEn6o.js";
7
7
  import "../nodeinfo-CyEbLjHs.js";
8
8
 
9
- export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
9
+ export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -3,30 +3,25 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-B6OlnDN2.js";
6
+ import "../type-CipPIcbS.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 "../semver-dArNLkR9.js";
11
- import "../lookup-Ez6GiujS.js";
12
- import { nodeInfoToJson } from "../types-BIgY6c-l.js";
13
- import { test } from "../testing-C7EdRnkf.js";
14
- import "../std__assert-X-_kMxKM.js";
15
- import "../assert_rejects-DiIiJbZn.js";
16
- import "../assert_is_error-BPGph1Jx.js";
17
- import "../assert_not_equals-f3m3epl3.js";
18
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
10
+ import "../lookup-DXFbsfgr.js";
11
+ import { nodeInfoToJson } from "../types-BSuWJsOm.js";
12
+ import { test } from "../testing-Cw9WXCu2.js";
13
+ import "../std__assert-DWivtrGR.js";
14
+ import "../assert_rejects-7UF4R_Qs.js";
15
+ import "../assert_is_error-B035L3om.js";
16
+ import "../assert_not_equals-C80BG-_5.js";
17
+ import { assertThrows } from "../assert_throws-53_pKeP3.js";
19
18
 
20
19
  //#region src/nodeinfo/types.test.ts
21
20
  test("nodeInfoToJson()", () => {
22
21
  const validInfo = {
23
22
  software: {
24
23
  name: "software-name",
25
- version: {
26
- major: 1,
27
- minor: 2,
28
- patch: 3
29
- }
24
+ version: "1.2.3"
30
25
  },
31
26
  protocols: ["activitypub"],
32
27
  usage: {
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-B6OlnDN2.js";
7
- import { isActor } from "./actor-D2WUUCfP.js";
6
+ import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-CipPIcbS.js";
7
+ import { isActor } from "./actor-BcI705Oy.js";
8
8
  import { trace } from "@opentelemetry/api";
9
9
 
10
10
  //#region src/sig/owner.ts
@@ -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-XGQT0txi.js";
6
- import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-BMnCVgwM.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BBbPD2SJ.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-ee-psLUQ.js";
6
+ import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-B5BxYOhq.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-Dq93VWRD.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import jsonld from "jsonld";
@@ -183,7 +183,7 @@ async function verifySignature(jsonLd, options = {}) {
183
183
  const encoder = new TextEncoder();
184
184
  const message = sigOptsHash + docHash;
185
185
  const messageBytes = encoder.encode(message);
186
- const verified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, signature, messageBytes);
186
+ const verified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, signature.slice(), messageBytes);
187
187
  if (verified) return key;
188
188
  if (cached) {
189
189
  logger$1.debug("Failed to verify with the cached key {keyId}; signature {signatureValue} is invalid. Retrying with the freshly fetched key...", {
@@ -198,7 +198,7 @@ async function verifySignature(jsonLd, options = {}) {
198
198
  }
199
199
  });
200
200
  if (key$1 == null) return null;
201
- const verified$1 = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key$1.publicKey, signature, messageBytes);
201
+ const verified$1 = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key$1.publicKey, signature.slice(), messageBytes);
202
202
  return verified$1 ? key$1 : null;
203
203
  }
204
204
  logger$1.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}", {
@@ -529,7 +529,7 @@ async function verifyProofInternal(jsonLd, proof, options) {
529
529
  });
530
530
  return null;
531
531
  }
532
- const verified = await crypto.subtle.verify("Ed25519", publicKey.publicKey, proof.proofValue, digest);
532
+ const verified = await crypto.subtle.verify("Ed25519", publicKey.publicKey, proof.proofValue.slice(), digest);
533
533
  if (!verified) {
534
534
  if (fetchedKey.cached) {
535
535
  logger.debug("Failed to verify the proof with the cached key {keyId}; retrying with the freshly fetched key...", {
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-B6OlnDN2.js";
7
- import { fetchKey, validateCryptoKey } from "./key-MIfD6Cqy.js";
6
+ import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-CipPIcbS.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-N34AY7FB.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { encodeHex } from "byte-encodings/hex";
@@ -195,7 +195,7 @@ async function verifyProofInternal(jsonLd, proof, options) {
195
195
  });
196
196
  return null;
197
197
  }
198
- const verified = await crypto.subtle.verify("Ed25519", publicKey.publicKey, proof.proofValue, digest);
198
+ const verified = await crypto.subtle.verify("Ed25519", publicKey.publicKey, proof.proofValue.slice(), digest);
199
199
  if (!verified) {
200
200
  if (fetchedKey.cached) {
201
201
  logger.debug("Failed to verify the proof with the cached key {keyId}; retrying with the freshly fetched key...", {
@@ -3,23 +3,23 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { UrlError } from "../type-B6OlnDN2.js";
6
+ import { UrlError } from "../type-CipPIcbS.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-Ez6GiujS.js";
11
- import "../actor-D2WUUCfP.js";
12
- import "../key-MIfD6Cqy.js";
13
- import { verifyRequest } from "../http-BeRerTBc.js";
14
- import { getAuthenticatedDocumentLoader } from "../authdocloader-j_VIhBOb.js";
15
- import { mockDocumentLoader, test } from "../testing-C7EdRnkf.js";
16
- import "../std__assert-X-_kMxKM.js";
17
- import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
18
- import "../assert_is_error-BPGph1Jx.js";
19
- import "../assert_not_equals-f3m3epl3.js";
20
- import "../assert_throws-BOO88avQ.js";
21
- import { rsaPrivateKey2 } from "../keys-CbVjziAM.js";
22
- import { esm_default } from "../esm-BfnIYt0n.js";
10
+ import "../lookup-DXFbsfgr.js";
11
+ import "../actor-BcI705Oy.js";
12
+ import "../key-N34AY7FB.js";
13
+ import { verifyRequest } from "../http-CwTPhAaE.js";
14
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-COG6H232.js";
15
+ import { mockDocumentLoader, test } from "../testing-Cw9WXCu2.js";
16
+ import "../std__assert-DWivtrGR.js";
17
+ import { assertRejects } from "../assert_rejects-7UF4R_Qs.js";
18
+ import "../assert_is_error-B035L3om.js";
19
+ import "../assert_not_equals-C80BG-_5.js";
20
+ import "../assert_throws-53_pKeP3.js";
21
+ import { rsaPrivateKey2 } from "../keys-B9R0CzTw.js";
22
+ import { esm_default } from "../esm-CL8MgCfB.js";
23
23
 
24
24
  //#region src/runtime/authdocloader.test.ts
25
25
  test("getAuthenticatedDocumentLoader()", async (t) => {
@@ -3,19 +3,19 @@
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-B6OlnDN2.js";
6
+ import { FetchError, UrlError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../type-CipPIcbS.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-Ez6GiujS.js";
12
- import { mockDocumentLoader, test } from "../testing-C7EdRnkf.js";
13
- import "../std__assert-X-_kMxKM.js";
14
- import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
- import "../assert_is_error-BPGph1Jx.js";
16
- import "../assert_not_equals-f3m3epl3.js";
17
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
- import { esm_default } from "../esm-BfnIYt0n.js";
11
+ import "../lookup-DXFbsfgr.js";
12
+ import { mockDocumentLoader, test } from "../testing-Cw9WXCu2.js";
13
+ import "../std__assert-DWivtrGR.js";
14
+ import { assertRejects } from "../assert_rejects-7UF4R_Qs.js";
15
+ import "../assert_is_error-B035L3om.js";
16
+ import "../assert_not_equals-C80BG-_5.js";
17
+ import { assertThrows } from "../assert_throws-53_pKeP3.js";
18
+ import { esm_default } from "../esm-CL8MgCfB.js";
19
19
  import process from "node:process";
20
20
 
21
21
  //#region src/runtime/docloader.test.ts
@@ -3,19 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../type-B6OlnDN2.js";
6
+ import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../type-CipPIcbS.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-Ez6GiujS.js";
11
- import "../actor-D2WUUCfP.js";
12
- import { exportJwk, importJwk } from "../key-MIfD6Cqy.js";
13
- import { test } from "../testing-C7EdRnkf.js";
14
- import "../std__assert-X-_kMxKM.js";
15
- import "../assert_rejects-DiIiJbZn.js";
16
- import "../assert_is_error-BPGph1Jx.js";
17
- import "../assert_not_equals-f3m3epl3.js";
18
- import "../assert_throws-BOO88avQ.js";
10
+ import "../lookup-DXFbsfgr.js";
11
+ import "../actor-BcI705Oy.js";
12
+ import { exportJwk, importJwk } from "../key-N34AY7FB.js";
13
+ import { test } from "../testing-Cw9WXCu2.js";
14
+ import "../std__assert-DWivtrGR.js";
15
+ import "../assert_rejects-7UF4R_Qs.js";
16
+ import "../assert_is_error-B035L3om.js";
17
+ import "../assert_not_equals-C80BG-_5.js";
18
+ import "../assert_throws-53_pKeP3.js";
19
19
 
20
20
  //#region src/runtime/key.test.ts
21
21
  const rsaSpki = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxsRuvCkgJtflBTl4OVsm\nnt/J1mQfZasfJtN33dcZ3d1lJroxmgmMu69zjGEAwkNbMQaWNLqC4eogkJaeJ4RR\n5MHYXkL9nNilVoTkjX5BVit3puzs7XJ7WQnKQgQMI+ezn24GHsZ/v1JIo77lerX5\nk4HNwTNVt+yaZVQWaOMR3+6FwziQR6kd0VuG9/a9dgAnz2cEoORRC1i4W7IZaB1s\nZnh1WbHbevlGd72HSXll5rocPIHn8gq6xpBgpHwRphlRsgn4KHaJ6brXDIJjrnQh\nIe/YUBOGj/ImSEXhRwlFerKsoAVnZ0Hwbfa46qk44TAt8CyoPMWmpK6pt0ng4pQ2\nuwIDAQAB\n-----END PUBLIC KEY-----\n";
@@ -3,17 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { LanguageString } from "../type-B6OlnDN2.js";
6
+ import { LanguageString } from "../type-CipPIcbS.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-Ez6GiujS.js";
11
- import { test } from "../testing-C7EdRnkf.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import "../assert_throws-BOO88avQ.js";
10
+ import "../lookup-DXFbsfgr.js";
11
+ import { test } from "../testing-Cw9WXCu2.js";
12
+ import "../std__assert-DWivtrGR.js";
13
+ import "../assert_rejects-7UF4R_Qs.js";
14
+ import "../assert_is_error-B035L3om.js";
15
+ import "../assert_not_equals-C80BG-_5.js";
16
+ import "../assert_throws-53_pKeP3.js";
17
17
  import util from "node:util";
18
18
 
19
19
  //#region src/runtime/langstr.test.ts
@@ -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-XGQT0txi.js";
6
- import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-BMnCVgwM.js";
7
- import "../lookup-CY1ghFMr.js";
8
- import "../key-BBbPD2SJ.js";
9
- import "../http-Ca2t0JFv.js";
10
- import { getAuthenticatedDocumentLoader } from "../authdocloader-CpjIqC9n.js";
5
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-ee-psLUQ.js";
6
+ import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-B5BxYOhq.js";
7
+ import "../lookup-Zvbl1eFh.js";
8
+ import "../key-Dq93VWRD.js";
9
+ import "../http-DoMqFHOF.js";
10
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-Cq1_Pq4C.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,17 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { codes, decode, decodeText, encode, encodeText, names } from "../../type-B6OlnDN2.js";
6
+ import { codes, decode, decodeText, encode, encodeText, names } from "../../type-CipPIcbS.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-Ez6GiujS.js";
11
- import { test } from "../../testing-C7EdRnkf.js";
12
- import "../../std__assert-X-_kMxKM.js";
13
- import "../../assert_rejects-DiIiJbZn.js";
14
- import "../../assert_is_error-BPGph1Jx.js";
15
- import "../../assert_not_equals-f3m3epl3.js";
16
- import "../../assert_throws-BOO88avQ.js";
10
+ import "../../lookup-DXFbsfgr.js";
11
+ import { test } from "../../testing-Cw9WXCu2.js";
12
+ import "../../std__assert-DWivtrGR.js";
13
+ import "../../assert_rejects-7UF4R_Qs.js";
14
+ import "../../assert_is_error-B035L3om.js";
15
+ import "../../assert_not_equals-C80BG-_5.js";
16
+ import "../../assert_throws-53_pKeP3.js";
17
17
 
18
18
  //#region src/runtime/multibase/multibase.test.ts
19
19
  test("multibase.encode and decode", async (t) => {
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-B6OlnDN2.js";
6
+ import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../type-CipPIcbS.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
- import "../lookup-Ez6GiujS.js";
10
- import { test } from "../testing-C7EdRnkf.js";
11
- import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
12
- import "../assert_is_error-BPGph1Jx.js";
9
+ import "../lookup-DXFbsfgr.js";
10
+ import { test } from "../testing-Cw9WXCu2.js";
11
+ import { assertFalse, assertRejects } from "../assert_rejects-7UF4R_Qs.js";
12
+ import "../assert_is_error-B035L3om.js";
13
13
 
14
14
  //#region src/runtime/url.test.ts
15
15
  test("validatePublicUrl()", async () => {