@fedify/fedify 1.6.6 → 1.6.7-pr.324.1126

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 (89) hide show
  1. package/dist/{actor-BhWyGSvc.js → actor-BwArPqmo.js} +3 -3
  2. package/dist/{actor-BnD1TcaD.js → actor-DM_SRbRh.js} +179 -179
  3. package/dist/{assert-0DSnLFa8.js → assert-DmFG7ppO.js} +1 -1
  4. package/dist/{assert_equals-XhPMqqO2.js → assert_equals-CTYbeopb.js} +29 -11
  5. package/dist/{assert_instance_of-v5adm_-K.js → assert_instance_of-CF09JHYM.js} +1 -1
  6. package/dist/{assert_is_error-Drwb_yQp.js → assert_is_error-nrwA1GeT.js} +1 -1
  7. package/dist/{assert_not_equals-BRPdeJ9D.js → assert_not_equals-Dc7y-V5Q.js} +1 -1
  8. package/dist/{assert_rejects-D_nYI1gs.js → assert_rejects-C-sxEMM5.js} +2 -2
  9. package/dist/{assert_throws-DNuPhPNp.js → assert_throws-Cn9C6Jur.js} +2 -2
  10. package/dist/{authdocloader-D0X14aT6.js → authdocloader-DkBt9yQ1.js} +3 -3
  11. package/dist/{authdocloader-DIf5Pftw.js → authdocloader-_l3dADl1.js} +3 -3
  12. package/dist/{builder-AQ4t-DJV.js → builder-DbavXneJ.js} +3 -3
  13. package/dist/{client-BuXoYms8.js → client-DqIiwxSy.js} +1 -1
  14. package/dist/compat/transformers.test.js +20 -20
  15. package/dist/{context-BJia3Lvl.js → context-hxsOiYmP.js} +2 -2
  16. package/dist/{docloader-BFs6cEyy.js → docloader-D7dGLmkl.js} +1 -1
  17. package/dist/{docloader-SCQ3pQe0.js → docloader-DUo3tgWk.js} +1 -1
  18. package/dist/federation/builder.test.js +12 -12
  19. package/dist/federation/collection.test.js +8 -8
  20. package/dist/federation/handler.test.js +27 -27
  21. package/dist/federation/inbox.test.js +6 -6
  22. package/dist/federation/keycache.test.js +6 -6
  23. package/dist/federation/kv.test.js +8 -8
  24. package/dist/federation/middleware.test.js +26 -26
  25. package/dist/federation/mod.js +10 -10
  26. package/dist/federation/mq.test.js +8 -8
  27. package/dist/federation/retry.test.js +2 -2
  28. package/dist/federation/router.test.js +8 -8
  29. package/dist/federation/send.test.js +17 -17
  30. package/dist/{http-pxUA5-qD.js → http-BfVxWDs3.js} +5 -4
  31. package/dist/{http-pIER_ce1.js → http-DpTQ1TfC.js} +5 -4
  32. package/dist/{inbox-3aMbSjLX.js → inbox-EGtUWUcM.js} +2 -2
  33. package/dist/{key-CjxZKJJy.js → key-BO7AcpY8.js} +2 -2
  34. package/dist/{key-8XBUvs5J.js → key-CvwTMMXL.js} +4 -4
  35. package/dist/{key-DnnhZGCB.js → key-DInuvr6f.js} +3 -3
  36. package/dist/{key-C73SWaOz.js → key-DLZGF3Uq.js} +5 -5
  37. package/dist/{keycache-nIMV_Fz0.js → keycache-KGgJhpgy.js} +1 -1
  38. package/dist/{keys-DghTneK2.js → keys-BzLAgMua.js} +1 -1
  39. package/dist/{ld-CgkjLU3I.js → ld-CwAlcuGX.js} +3 -3
  40. package/dist/{lookup-CPzKdUCr.js → lookup-Bb7USblG.js} +1 -1
  41. package/dist/{lookup-CC4GjYaR.js → lookup-DKtb3QJ7.js} +3 -3
  42. package/dist/{lookup-nuyiydZj.js → lookup-YHeHSxL6.js} +1 -1
  43. package/dist/middleware-BCK0CxWN.js +33 -0
  44. package/dist/{middleware-009_7w5o.js → middleware-BOvht1U1.js} +11 -11
  45. package/dist/{middleware-BgK7M8TS.js → middleware-Bqa9yWbw.js} +16 -16
  46. package/dist/middleware-_QBnfJvc.js +17 -0
  47. package/dist/{mod-BUTm-sog.d.ts → mod-j45KmAfR.d.ts} +1 -1
  48. package/dist/mod.d.ts +2 -2
  49. package/dist/mod.js +10 -10
  50. package/dist/nodeinfo/client.test.js +10 -10
  51. package/dist/nodeinfo/handler.test.js +26 -26
  52. package/dist/nodeinfo/mod.js +2 -2
  53. package/dist/nodeinfo/semver.test.js +8 -8
  54. package/dist/nodeinfo/types.test.js +8 -8
  55. package/dist/{owner-DSrvvzXQ.js → owner-B5qnR6nt.js} +3 -3
  56. package/dist/{proof-ChCSnuG9.js → proof-CMzCH_un.js} +3 -3
  57. package/dist/{proof-57B4gdEF.js → proof-Dp1Aw_0_.js} +3 -3
  58. package/dist/runtime/authdocloader.test.js +16 -16
  59. package/dist/runtime/docloader.test.js +9 -9
  60. package/dist/runtime/key.test.js +13 -13
  61. package/dist/runtime/langstr.test.js +8 -8
  62. package/dist/runtime/mod.js +6 -6
  63. package/dist/runtime/multibase/multibase.test.js +8 -8
  64. package/dist/runtime/url.test.js +4 -4
  65. package/dist/{send-C8cnjL8z.js → send-Cpui7v9S.js} +2 -2
  66. package/dist/sig/http.test.js +38 -15
  67. package/dist/sig/key.test.js +14 -14
  68. package/dist/sig/ld.test.js +12 -12
  69. package/dist/sig/mod.d.ts +1 -1
  70. package/dist/sig/mod.js +6 -6
  71. package/dist/sig/owner.test.js +16 -16
  72. package/dist/sig/proof.test.js +15 -15
  73. package/dist/{std__assert-CmyZxqPw.js → std__assert-vp0TKMS1.js} +1 -1
  74. package/dist/testing/docloader.test.js +8 -8
  75. package/dist/{types-KCmrXiY8.js → types-DG5V-wM6.js} +1 -1
  76. package/dist/vocab/actor.test.js +12 -12
  77. package/dist/vocab/lookup.test.js +12 -12
  78. package/dist/vocab/mod.js +4 -4
  79. package/dist/vocab/type.test.js +3 -3
  80. package/dist/vocab/vocab.test.js +48 -46
  81. package/dist/{vocab-B04bgnOo.js → vocab-B4wEQxcP.js} +178 -178
  82. package/dist/{vocab-BmKtHRZU.js → vocab-LxKjWrto.js} +3 -3
  83. package/dist/webfinger/handler.test.js +26 -26
  84. package/dist/webfinger/lookup.test.js +10 -10
  85. package/dist/webfinger/mod.js +2 -2
  86. package/dist/x/cfworkers.test.js +8 -8
  87. package/package.json +1 -1
  88. package/dist/middleware-DVUlJvUU.js +0 -33
  89. package/dist/middleware-LR1eXr2W.js +0 -17
@@ -3,28 +3,28 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
7
- import { assert } from "../assert-0DSnLFa8.js";
8
- import "../assert_instance_of-v5adm_-K.js";
9
- import "../docloader-BFs6cEyy.js";
6
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
+ import { assert } from "../assert-DmFG7ppO.js";
8
+ import "../assert_instance_of-CF09JHYM.js";
9
+ import "../docloader-D7dGLmkl.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { Create } from "../vocab-B04bgnOo.js";
12
+ import { Create } from "../vocab-B4wEQxcP.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-nuyiydZj.js";
14
+ import "../lookup-YHeHSxL6.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BhWyGSvc.js";
17
- import "../key-DnnhZGCB.js";
18
- import { doesActorOwnKey, getKeyOwner } from "../owner-DSrvvzXQ.js";
19
- import { lookupObject } from "../lookup-CC4GjYaR.js";
16
+ import "../actor-BwArPqmo.js";
17
+ import "../key-DInuvr6f.js";
18
+ import { doesActorOwnKey, getKeyOwner } from "../owner-B5qnR6nt.js";
19
+ import { lookupObject } from "../lookup-DKtb3QJ7.js";
20
20
  import { test } from "../testing-BZ0dJ4qn.js";
21
- import "../std__assert-CmyZxqPw.js";
22
- import { assertFalse } from "../assert_rejects-D_nYI1gs.js";
23
- import "../assert_is_error-Drwb_yQp.js";
24
- import "../assert_not_equals-BRPdeJ9D.js";
25
- import "../assert_throws-DNuPhPNp.js";
21
+ import "../std__assert-vp0TKMS1.js";
22
+ import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
23
+ import "../assert_is_error-nrwA1GeT.js";
24
+ import "../assert_not_equals-Dc7y-V5Q.js";
25
+ import "../assert_throws-Cn9C6Jur.js";
26
26
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
27
- import { rsaPublicKey1, rsaPublicKey2 } from "../keys-DghTneK2.js";
27
+ import { rsaPublicKey1, rsaPublicKey2 } from "../keys-BzLAgMua.js";
28
28
 
29
29
  //#region sig/owner.test.ts
30
30
  test("doesActorOwnKey()", async () => {
@@ -3,27 +3,27 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
7
- import "../assert-0DSnLFa8.js";
8
- import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
9
- import "../docloader-BFs6cEyy.js";
6
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
+ import "../assert-DmFG7ppO.js";
8
+ import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
9
+ import "../docloader-D7dGLmkl.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-B04bgnOo.js";
12
+ import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-B4wEQxcP.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-nuyiydZj.js";
14
+ import "../lookup-YHeHSxL6.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-BhWyGSvc.js";
17
- import "../key-DnnhZGCB.js";
18
- import { createProof, signObject, verifyObject, verifyProof } from "../proof-57B4gdEF.js";
16
+ import "../actor-BwArPqmo.js";
17
+ import "../key-DInuvr6f.js";
18
+ import { createProof, signObject, verifyObject, verifyProof } from "../proof-Dp1Aw_0_.js";
19
19
  import { test } from "../testing-BZ0dJ4qn.js";
20
- import "../std__assert-CmyZxqPw.js";
21
- import { assertRejects } from "../assert_rejects-D_nYI1gs.js";
22
- import "../assert_is_error-Drwb_yQp.js";
23
- import "../assert_not_equals-BRPdeJ9D.js";
24
- import "../assert_throws-DNuPhPNp.js";
20
+ import "../std__assert-vp0TKMS1.js";
21
+ import { assertRejects } from "../assert_rejects-C-sxEMM5.js";
22
+ import "../assert_is_error-nrwA1GeT.js";
23
+ import "../assert_not_equals-Dc7y-V5Q.js";
24
+ import "../assert_throws-Cn9C6Jur.js";
25
25
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
26
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DghTneK2.js";
26
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BzLAgMua.js";
27
27
  import { decodeHex, encodeHex } from "byte-encodings/hex";
28
28
 
29
29
  //#region sig/proof.test.ts
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-XhPMqqO2.js";
6
+ import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-CTYbeopb.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
9
9
  /**
@@ -3,15 +3,15 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
7
- import "../assert-0DSnLFa8.js";
8
- import "../assert_instance_of-v5adm_-K.js";
6
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
+ import "../assert-DmFG7ppO.js";
8
+ import "../assert_instance_of-CF09JHYM.js";
9
9
  import { test } from "../testing-BZ0dJ4qn.js";
10
- import "../std__assert-CmyZxqPw.js";
11
- import "../assert_rejects-D_nYI1gs.js";
12
- import "../assert_is_error-Drwb_yQp.js";
13
- import "../assert_not_equals-BRPdeJ9D.js";
14
- import "../assert_throws-DNuPhPNp.js";
10
+ import "../std__assert-vp0TKMS1.js";
11
+ import "../assert_rejects-C-sxEMM5.js";
12
+ import "../assert_is_error-nrwA1GeT.js";
13
+ import "../assert_not_equals-Dc7y-V5Q.js";
14
+ import "../assert_throws-Cn9C6Jur.js";
15
15
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
16
16
 
17
17
  //#region testing/docloader.test.ts
@@ -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-SCQ3pQe0.js";
5
+ import { getUserAgent } from "./docloader-DUo3tgWk.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
 
8
8
  //#region nodeinfo/semver.ts
@@ -4,23 +4,23 @@
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
6
  import { __export } from "../chunk-HsBuZ-b2.js";
7
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
8
- import { assert } from "../assert-0DSnLFa8.js";
9
- import "../assert_instance_of-v5adm_-K.js";
10
- import "../docloader-BFs6cEyy.js";
7
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
8
+ import { assert } from "../assert-DmFG7ppO.js";
9
+ import "../assert_instance_of-CF09JHYM.js";
10
+ import "../docloader-D7dGLmkl.js";
11
11
  import "../url-kTAI6_KP.js";
12
12
  import "../multibase-DeCHcK8L.js";
13
- import { Application, Group, Organization, Person, Service } from "../vocab-B04bgnOo.js";
13
+ import { Application, Group, Organization, Person, Service } from "../vocab-B4wEQxcP.js";
14
14
  import "../langstr-DbWheeIS.js";
15
- import "../lookup-nuyiydZj.js";
15
+ import "../lookup-YHeHSxL6.js";
16
16
  import "../type-D2s5lmbZ.js";
17
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BhWyGSvc.js";
17
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BwArPqmo.js";
18
18
  import { test } from "../testing-BZ0dJ4qn.js";
19
- import { assertStrictEquals } from "../std__assert-CmyZxqPw.js";
20
- import { assertFalse, assertRejects } from "../assert_rejects-D_nYI1gs.js";
21
- import "../assert_is_error-Drwb_yQp.js";
22
- import "../assert_not_equals-BRPdeJ9D.js";
23
- import { assertThrows } from "../assert_throws-DNuPhPNp.js";
19
+ import { assertStrictEquals } from "../std__assert-vp0TKMS1.js";
20
+ import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
21
+ import "../assert_is_error-nrwA1GeT.js";
22
+ import "../assert_not_equals-Dc7y-V5Q.js";
23
+ import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
24
24
  import { esm_default } from "../esm-CASHO3OR.js";
25
25
 
26
26
  //#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
@@ -3,23 +3,23 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
7
- import "../assert-0DSnLFa8.js";
8
- import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
9
- import "../docloader-BFs6cEyy.js";
6
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
+ import "../assert-DmFG7ppO.js";
8
+ import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
9
+ import "../docloader-D7dGLmkl.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-B04bgnOo.js";
12
+ import { Collection, Note, Object as Object$1, Person } from "../vocab-B4wEQxcP.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-nuyiydZj.js";
14
+ import "../lookup-YHeHSxL6.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import { lookupObject, traverseCollection } from "../lookup-CC4GjYaR.js";
16
+ import { lookupObject, traverseCollection } from "../lookup-DKtb3QJ7.js";
17
17
  import { test } from "../testing-BZ0dJ4qn.js";
18
- import "../std__assert-CmyZxqPw.js";
19
- import "../assert_rejects-D_nYI1gs.js";
20
- import "../assert_is_error-Drwb_yQp.js";
21
- import "../assert_not_equals-BRPdeJ9D.js";
22
- import "../assert_throws-DNuPhPNp.js";
18
+ import "../std__assert-vp0TKMS1.js";
19
+ import "../assert_rejects-C-sxEMM5.js";
20
+ import "../assert_is_error-nrwA1GeT.js";
21
+ import "../assert_not_equals-Dc7y-V5Q.js";
22
+ import "../assert_throws-Cn9C6Jur.js";
23
23
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
24
24
  import { esm_default } from "../esm-CASHO3OR.js";
25
25
 
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-SCQ3pQe0.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-BnD1TcaD.js";
7
- import "../lookup-CPzKdUCr.js";
8
- import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-BmKtHRZU.js";
5
+ import "../docloader-DUo3tgWk.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-DM_SRbRh.js";
7
+ import "../lookup-Bb7USblG.js";
8
+ import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-LxKjWrto.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 };
@@ -3,11 +3,11 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-XhPMqqO2.js";
7
- import "../docloader-BFs6cEyy.js";
6
+ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
+ import "../docloader-D7dGLmkl.js";
8
8
  import "../url-kTAI6_KP.js";
9
9
  import "../multibase-DeCHcK8L.js";
10
- import { Person } from "../vocab-B04bgnOo.js";
10
+ import { Person } from "../vocab-B4wEQxcP.js";
11
11
  import "../langstr-DbWheeIS.js";
12
12
  import { getTypeId } from "../type-D2s5lmbZ.js";
13
13
  import { test } from "../testing-BZ0dJ4qn.js";
@@ -3,22 +3,22 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals, isWindows } from "../assert_equals-XhPMqqO2.js";
7
- import { assert } from "../assert-0DSnLFa8.js";
8
- import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
9
- import "../docloader-BFs6cEyy.js";
6
+ import { assertEquals, isWindows } from "../assert_equals-CTYbeopb.js";
7
+ import { assert } from "../assert-DmFG7ppO.js";
8
+ import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
9
+ import "../docloader-D7dGLmkl.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import { decode } from "../multibase-DeCHcK8L.js";
12
- import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-B04bgnOo.js";
12
+ import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-B4wEQxcP.js";
13
13
  import { LanguageString } from "../langstr-DbWheeIS.js";
14
14
  import { test } from "../testing-BZ0dJ4qn.js";
15
- import "../std__assert-CmyZxqPw.js";
16
- import { assertFalse, assertRejects } from "../assert_rejects-D_nYI1gs.js";
17
- import "../assert_is_error-Drwb_yQp.js";
18
- import { assertNotEquals } from "../assert_not_equals-BRPdeJ9D.js";
19
- import { assertThrows } from "../assert_throws-DNuPhPNp.js";
15
+ import "../std__assert-vp0TKMS1.js";
16
+ import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
17
+ import "../assert_is_error-nrwA1GeT.js";
18
+ import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
19
+ import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
20
20
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
21
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DghTneK2.js";
21
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BzLAgMua.js";
22
22
  import { pascalCase } from "@es-toolkit/es-toolkit";
23
23
  import { parseLanguageTag } from "@phensley/language-tag";
24
24
  import { Validator } from "@cfworker/json-schema";
@@ -398,7 +398,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
398
398
  }
399
399
 
400
400
  //#endregion
401
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_chars.js
401
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_chars.js
402
402
  const TAB = 9;
403
403
  const LINE_FEED = 10;
404
404
  const CARRIAGE_RETURN = 13;
@@ -440,7 +440,7 @@ function isFlowIndicator(c) {
440
440
  }
441
441
 
442
442
  //#endregion
443
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/binary.js
443
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/binary.js
444
444
  const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
445
445
  function resolveYamlBinary(data) {
446
446
  if (data === null) return false;
@@ -527,7 +527,7 @@ const binary = {
527
527
  };
528
528
 
529
529
  //#endregion
530
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/bool.js
530
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/bool.js
531
531
  const YAML_TRUE_BOOLEANS = [
532
532
  "true",
533
533
  "True",
@@ -563,7 +563,7 @@ const bool = {
563
563
  };
564
564
 
565
565
  //#endregion
566
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_utils.js
566
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_utils.js
567
567
  function isObject(value) {
568
568
  return value !== null && typeof value === "object";
569
569
  }
@@ -575,7 +575,7 @@ function isPlainObject(object) {
575
575
  }
576
576
 
577
577
  //#endregion
578
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/float.js
578
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/float.js
579
579
  const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
580
580
  function resolveYamlFloat(data) {
581
581
  if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
@@ -626,7 +626,7 @@ const float = {
626
626
  };
627
627
 
628
628
  //#endregion
629
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/int.js
629
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/int.js
630
630
  function isCharCodeInRange(c, lower, upper) {
631
631
  return lower <= c && c <= upper;
632
632
  }
@@ -737,7 +737,7 @@ const int = {
737
737
  };
738
738
 
739
739
  //#endregion
740
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/map.js
740
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/map.js
741
741
  const map = {
742
742
  tag: "tag:yaml.org,2002:map",
743
743
  resolve() {
@@ -750,7 +750,7 @@ const map = {
750
750
  };
751
751
 
752
752
  //#endregion
753
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/merge.js
753
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/merge.js
754
754
  const merge = {
755
755
  tag: "tag:yaml.org,2002:merge",
756
756
  kind: "scalar",
@@ -759,7 +759,7 @@ const merge = {
759
759
  };
760
760
 
761
761
  //#endregion
762
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/nil.js
762
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/nil.js
763
763
  const nil = {
764
764
  tag: "tag:yaml.org,2002:null",
765
765
  kind: "scalar",
@@ -777,7 +777,7 @@ const nil = {
777
777
  };
778
778
 
779
779
  //#endregion
780
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/omap.js
780
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/omap.js
781
781
  function resolveYamlOmap(data) {
782
782
  const objectKeys = /* @__PURE__ */ new Set();
783
783
  for (const object of data) {
@@ -801,7 +801,7 @@ const omap = {
801
801
  };
802
802
 
803
803
  //#endregion
804
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/pairs.js
804
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/pairs.js
805
805
  function resolveYamlPairs(data) {
806
806
  if (data === null) return true;
807
807
  return data.every((it) => isPlainObject(it) && Object.keys(it).length === 1);
@@ -816,7 +816,7 @@ const pairs = {
816
816
  };
817
817
 
818
818
  //#endregion
819
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/regexp.js
819
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/regexp.js
820
820
  const REGEXP = /^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/;
821
821
  const regexp = {
822
822
  tag: "tag:yaml.org,2002:js/regexp",
@@ -840,7 +840,7 @@ const regexp = {
840
840
  };
841
841
 
842
842
  //#endregion
843
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/seq.js
843
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/seq.js
844
844
  const seq = {
845
845
  tag: "tag:yaml.org,2002:seq",
846
846
  kind: "sequence",
@@ -849,7 +849,7 @@ const seq = {
849
849
  };
850
850
 
851
851
  //#endregion
852
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/set.js
852
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/set.js
853
853
  const set = {
854
854
  tag: "tag:yaml.org,2002:set",
855
855
  kind: "mapping",
@@ -861,7 +861,7 @@ const set = {
861
861
  };
862
862
 
863
863
  //#endregion
864
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/str.js
864
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/str.js
865
865
  const str = {
866
866
  tag: "tag:yaml.org,2002:str",
867
867
  kind: "scalar",
@@ -870,7 +870,7 @@ const str = {
870
870
  };
871
871
 
872
872
  //#endregion
873
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/timestamp.js
873
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/timestamp.js
874
874
  const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
875
875
  const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
876
876
  function resolveYamlTimestamp(data) {
@@ -922,7 +922,7 @@ const timestamp = {
922
922
  };
923
923
 
924
924
  //#endregion
925
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/undefined.js
925
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_type/undefined.js
926
926
  const undefinedType = {
927
927
  tag: "tag:yaml.org,2002:js/undefined",
928
928
  kind: "scalar",
@@ -941,7 +941,7 @@ const undefinedType = {
941
941
  };
942
942
 
943
943
  //#endregion
944
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_schema.js
944
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_schema.js
945
945
  function createTypeMap(implicitTypes, explicitTypes) {
946
946
  const result = {
947
947
  fallback: /* @__PURE__ */ new Map(),
@@ -1040,7 +1040,7 @@ const SCHEMA_MAP = new Map([
1040
1040
  ]);
1041
1041
 
1042
1042
  //#endregion
1043
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_loader_state.js
1043
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/_loader_state.js
1044
1044
  const CONTEXT_FLOW_IN = 1;
1045
1045
  const CONTEXT_FLOW_OUT = 2;
1046
1046
  const CONTEXT_BLOCK_IN = 3;
@@ -1145,7 +1145,6 @@ var LoaderState = class {
1145
1145
  allowDuplicateKeys;
1146
1146
  implicitTypes;
1147
1147
  typeMap;
1148
- version;
1149
1148
  checkLineBreaks = false;
1150
1149
  tagMap = /* @__PURE__ */ new Map();
1151
1150
  anchorMap = /* @__PURE__ */ new Map();
@@ -1160,7 +1159,6 @@ var LoaderState = class {
1160
1159
  this.implicitTypes = schema.implicitTypes;
1161
1160
  this.typeMap = schema.typeMap;
1162
1161
  this.length = input.length;
1163
- this.version = null;
1164
1162
  this.readIndent();
1165
1163
  }
1166
1164
  skipWhitespaces() {
@@ -1195,19 +1193,18 @@ var LoaderState = class {
1195
1193
  const error = this.#createError(message);
1196
1194
  this.onWarning?.(error);
1197
1195
  }
1198
- yamlDirectiveHandler(...args) {
1199
- if (this.version !== null) throw this.#createError("Cannot handle YAML directive: duplication of %YAML directive");
1196
+ yamlDirectiveHandler(args) {
1200
1197
  if (args.length !== 1) throw this.#createError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
1201
1198
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1202
1199
  if (match === null) throw this.#createError("Cannot handle YAML directive: ill-formed argument");
1203
1200
  const major = parseInt(match[1], 10);
1204
1201
  const minor = parseInt(match[2], 10);
1205
1202
  if (major !== 1) throw this.#createError("Cannot handle YAML directive: unacceptable YAML version");
1206
- this.version = args[0] ?? null;
1207
1203
  this.checkLineBreaks = minor < 2;
1208
- if (minor !== 1 && minor !== 2) return this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
1204
+ if (minor !== 1 && minor !== 2) this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
1205
+ return args[0] ?? null;
1209
1206
  }
1210
- tagDirectiveHandler(...args) {
1207
+ tagDirectiveHandler(args) {
1211
1208
  if (args.length !== 2) throw this.#createError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
1212
1209
  const handle = args[0];
1213
1210
  const prefix = args[1];
@@ -1876,13 +1873,9 @@ var LoaderState = class {
1876
1873
  } else throw this.#createError(`Cannot resolve unknown tag !<${this.tag}>`);
1877
1874
  return this.tag !== null || this.anchor !== null || hasContent;
1878
1875
  }
1879
- readDocument() {
1880
- const documentStart = this.position;
1876
+ readDirectives() {
1881
1877
  let hasDirectives = false;
1882
- this.version = null;
1883
- this.checkLineBreaks = false;
1884
- this.tagMap = /* @__PURE__ */ new Map();
1885
- this.anchorMap = /* @__PURE__ */ new Map();
1878
+ let version = null;
1886
1879
  let ch = this.peek();
1887
1880
  while (ch !== 0) {
1888
1881
  this.skipSeparationSpace(true, -1);
@@ -1907,10 +1900,11 @@ var LoaderState = class {
1907
1900
  if (ch !== 0) this.readLineBreak();
1908
1901
  switch (directiveName) {
1909
1902
  case "YAML":
1910
- this.yamlDirectiveHandler(...directiveArgs);
1903
+ if (version !== null) throw this.#createError("Cannot handle YAML directive: duplication of %YAML directive");
1904
+ version = this.yamlDirectiveHandler(directiveArgs);
1911
1905
  break;
1912
1906
  case "TAG":
1913
- this.tagDirectiveHandler(...directiveArgs);
1907
+ this.tagDirectiveHandler(directiveArgs);
1914
1908
  break;
1915
1909
  default:
1916
1910
  this.dispatchWarning(`unknown document directive "${directiveName}"`);
@@ -1918,6 +1912,14 @@ var LoaderState = class {
1918
1912
  }
1919
1913
  ch = this.peek();
1920
1914
  }
1915
+ return hasDirectives;
1916
+ }
1917
+ readDocument() {
1918
+ const documentStart = this.position;
1919
+ this.checkLineBreaks = false;
1920
+ this.tagMap = /* @__PURE__ */ new Map();
1921
+ this.anchorMap = /* @__PURE__ */ new Map();
1922
+ const hasDirectives = this.readDirectives();
1921
1923
  this.skipSeparationSpace(true, -1);
1922
1924
  if (this.lineIndent === 0 && this.peek() === MINUS && this.peek(1) === MINUS && this.peek(2) === MINUS) {
1923
1925
  this.position += 3;
@@ -1945,7 +1947,7 @@ var LoaderState = class {
1945
1947
  };
1946
1948
 
1947
1949
  //#endregion
1948
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/parse.js
1950
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.9/node_modules/@jsr/std__yaml/parse.js
1949
1951
  function sanitizeInput(input) {
1950
1952
  input = String(input);
1951
1953
  if (input.length > 0) {