@fedify/fedify 1.6.1-dev.880 → 1.6.1-dev.881

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 (118) hide show
  1. package/dist/{actor-DIk6hH_U.js → actor-BRIxlOTx.js} +3 -3
  2. package/dist/{actor-DvmEmDn9.js → actor-BidJp8n0.js} +180 -180
  3. package/dist/{actor-f67C7yQD.d.ts → actor-tT_B0pDn.d.ts} +5 -8
  4. package/dist/{assert-Dv75vaGI.js → assert-YJk-1DlZ.js} +1 -1
  5. package/dist/{assert_equals-ClvzlhZu.js → assert_equals-Dnj7ejjL.js} +16 -9
  6. package/dist/{assert_instance_of--9UCVKsi.js → assert_instance_of-DBIoG5k7.js} +1 -1
  7. package/dist/{assert_is_error-D162gXcM.js → assert_is_error-jyzqjHud.js} +1 -1
  8. package/dist/{assert_not_equals-Cyf5m9Ke.js → assert_not_equals-wx-SRs4i.js} +1 -1
  9. package/dist/{assert_rejects-FOHCtlD2.js → assert_rejects-BZjUwo62.js} +2 -2
  10. package/dist/{assert_throws-CRfQJvVx.js → assert_throws-gBPv3v2V.js} +2 -2
  11. package/dist/{authdocloader-Bt52x-cz.js → authdocloader-BRs7flug.js} +4 -4
  12. package/dist/{authdocloader-B3ME-k-0.js → authdocloader-CG3GTtW2.js} +3 -3
  13. package/dist/{builder-DT_CjHJM.js → builder-DtoRVfyu.js} +3 -3
  14. package/dist/{client-CSQzJhcr.js → client-CQ24CTCb.js} +1 -1
  15. package/dist/{client-Dw1pCSIt.d.ts → client-Cd552pKL.d.ts} +6 -9
  16. package/dist/{collection-QaGK9TVn.js → collection-Dfb0TPno.js} +1 -1
  17. package/dist/compat/mod.d.ts +12 -12
  18. package/dist/compat/mod.js +1 -1
  19. package/dist/compat/transformers.test.js +21 -21
  20. package/dist/{context-DBM4y1xF.d.ts → context-DRhhOsMk.d.ts} +12 -28
  21. package/dist/{context-DaUJ8XgG.js → context-Dub61h2m.js} +2 -2
  22. package/dist/{docloader-DdQSFoDK.js → docloader-BzbamfL0.js} +1 -1
  23. package/dist/{docloader-BesQV-nU.js → docloader-CjMOaZ0w.js} +1 -1
  24. package/dist/{docloader-DTRsVZPo.d.ts → docloader-DlUDOVSe.d.ts} +4 -7
  25. package/dist/{esm-BxIKwi-M.js → esm-Btx3E8og.js} +1 -1
  26. package/dist/federation/builder.test.js +12 -12
  27. package/dist/federation/collection.test.js +9 -9
  28. package/dist/federation/handler.test.js +28 -28
  29. package/dist/federation/inbox.test.js +6 -6
  30. package/dist/federation/keycache.test.js +6 -6
  31. package/dist/federation/kv.test.js +8 -8
  32. package/dist/federation/middleware.test.js +28 -28
  33. package/dist/federation/mod.d.ts +11 -11
  34. package/dist/federation/mod.js +12 -12
  35. package/dist/federation/mq.test.js +9 -9
  36. package/dist/federation/retry.test.js +2 -2
  37. package/dist/federation/router.test.js +9 -9
  38. package/dist/federation/send.test.js +18 -18
  39. package/dist/{federation-Bmj7soSg.js → federation-3B6BDKCK.js} +1 -1
  40. package/dist/{hongminhee__deno-mock-fetch-DJKLj_H-.js → hongminhee__deno-mock-fetch-Az7fJGtg.js} +1 -1
  41. package/dist/{http-nvlEiwC4.js → http-B3Xedrzu.js} +4 -4
  42. package/dist/{http-CZyKN-rt.d.ts → http-BkUCISGt.d.ts} +6 -14
  43. package/dist/{http-DKFoMKYk.js → http-CV67UidJ.js} +4 -4
  44. package/dist/{inbox-DUxOSixz.js → inbox-BoldQCGa.js} +4 -4
  45. package/dist/{key-DnZNsfoE.js → key-D3Mc3n0F.js} +3 -3
  46. package/dist/{key-BiM3rCVA.js → key-DD4k9Ph4.js} +4 -4
  47. package/dist/{key-C_i44VCP.js → key-Dt894e0l.js} +2 -2
  48. package/dist/{key-B6j6aQIf.js → key-zqk3iQJM.js} +5 -5
  49. package/dist/{keycache-NtvEqcq9.js → keycache-DXp-3NZn.js} +2 -2
  50. package/dist/{keys-R9p0S8_o.js → keys-j3LZyq_M.js} +1 -1
  51. package/dist/{kv-BmsWxOQ2.d.ts → kv-p8sC8PTT.d.ts} +3 -7
  52. package/dist/{ld-BLZnxCWX.js → ld-BJz01zAZ.js} +4 -4
  53. package/dist/{lookup-CNK83LQK.js → lookup-CNv4GGs7.js} +1 -1
  54. package/dist/{lookup-B38eCiCI.js → lookup-DTOPcLsZ.js} +1 -1
  55. package/dist/{lookup-DXgwlvAK.js → lookup-dfyiwjbB.js} +3 -3
  56. package/dist/{lookup-nlxO7x0u.d.ts → lookup-vJccIKCS.d.ts} +4 -8
  57. package/dist/{middleware-Bjqgfc8l.js → middleware-BXqSM2dw.js} +18 -18
  58. package/dist/{middleware-FhQhkH0G.js → middleware-DB7wiPiW.js} +18 -18
  59. package/dist/middleware-HBJtiy_q.js +17 -0
  60. package/dist/middleware-ORyJDzKn.js +33 -0
  61. package/dist/{mod-iE_61Xjt.d.ts → mod-BTHfUeLo.d.ts} +2 -9
  62. package/dist/{mod-BUAWJ2pK.d.ts → mod-BUTm-sog.d.ts} +5 -9
  63. package/dist/{mod-CsYfI7YL.d.ts → mod-CgmTOt4z.d.ts} +3 -21
  64. package/dist/{mod-Bx6Du4Ct.d.ts → mod-DSPyncxx.d.ts} +5 -11
  65. package/dist/mod.d.ts +14 -14
  66. package/dist/mod.js +12 -12
  67. package/dist/{mq-Bue016Tz.d.ts → mq-nceTGCuc.d.ts} +3 -7
  68. package/dist/nodeinfo/client.test.js +11 -11
  69. package/dist/nodeinfo/handler.test.js +27 -27
  70. package/dist/nodeinfo/mod.d.ts +3 -3
  71. package/dist/nodeinfo/mod.js +2 -2
  72. package/dist/nodeinfo/semver.test.js +8 -8
  73. package/dist/nodeinfo/types.test.js +8 -8
  74. package/dist/{owner-C_Gw25Id.d.ts → owner-CbRc94FP.d.ts} +6 -9
  75. package/dist/{owner-DKsEWurW.js → owner-DPR9iegf.js} +3 -3
  76. package/dist/{proof-DtIUHGA0.js → proof-CIdBQp8W.js} +3 -3
  77. package/dist/{proof-DKetjewp.js → proof-DozAJu8u.js} +5 -5
  78. package/dist/runtime/authdocloader.test.js +17 -17
  79. package/dist/runtime/docloader.test.js +10 -10
  80. package/dist/runtime/key.test.js +13 -13
  81. package/dist/runtime/langstr.test.js +8 -8
  82. package/dist/runtime/mod.d.ts +5 -5
  83. package/dist/runtime/mod.js +6 -6
  84. package/dist/runtime/multibase/multibase.test.js +8 -8
  85. package/dist/runtime/url.test.js +4 -4
  86. package/dist/{send-Z9IEW2ZG.js → send-ZuWTBaWD.js} +3 -3
  87. package/dist/sig/http.test.js +16 -16
  88. package/dist/sig/key.test.js +14 -14
  89. package/dist/sig/ld.test.js +12 -12
  90. package/dist/sig/mod.d.ts +7 -7
  91. package/dist/sig/mod.js +6 -6
  92. package/dist/sig/owner.test.js +16 -16
  93. package/dist/sig/proof.test.js +15 -15
  94. package/dist/{std__assert-CaBUULmX.js → std__assert-CHXwj7zk.js} +1 -1
  95. package/dist/testing/docloader.test.js +8 -8
  96. package/dist/testing/mod.d.ts +0 -1
  97. package/dist/{transformers-jxj-4o2K.js → transformers-ghwJuzGY.js} +1 -1
  98. package/dist/{types-C9A_t_ZN.js → types-BkYhmwmv.js} +1 -1
  99. package/dist/vocab/actor.test.js +37 -37
  100. package/dist/vocab/lookup.test.js +13 -13
  101. package/dist/vocab/mod.d.ts +5 -5
  102. package/dist/vocab/mod.js +4 -4
  103. package/dist/vocab/type.test.js +3 -3
  104. package/dist/vocab/vocab.test.js +129 -132
  105. package/dist/{vocab-CHuz96Ha.js → vocab-CKuJcawO.js} +3 -3
  106. package/dist/{vocab-7mZSoHR0.js → vocab-D0LMe9FE.js} +178 -178
  107. package/dist/{vocab-C4bpdeio.d.ts → vocab-DSFLLLe6.d.ts} +2 -7
  108. package/dist/webfinger/handler.test.js +27 -27
  109. package/dist/webfinger/lookup.test.js +11 -11
  110. package/dist/webfinger/mod.d.ts +3 -3
  111. package/dist/webfinger/mod.js +2 -2
  112. package/dist/x/cfworkers.d.ts +2 -9
  113. package/dist/x/cfworkers.test.js +8 -8
  114. package/dist/x/hono.d.ts +11 -12
  115. package/dist/x/sveltekit.d.ts +11 -12
  116. package/package.json +2 -2
  117. package/dist/middleware-B8XTnZdu.js +0 -33
  118. package/dist/middleware-D-_NS4x8.js +0 -17
@@ -3,39 +3,67 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-ClvzlhZu.js";
7
- import "../assert-Dv75vaGI.js";
8
- import { assertInstanceOf } from "../assert_instance_of--9UCVKsi.js";
9
- import "../docloader-DdQSFoDK.js";
6
+ import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
7
+ import "../assert-YJk-1DlZ.js";
8
+ import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
9
+ import "../docloader-BzbamfL0.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, Source, vocab_exports } from "../vocab-7mZSoHR0.js";
12
+ import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Source, vocab_exports } from "../vocab-D0LMe9FE.js";
13
13
  import { LanguageString } from "../langstr-DbWheeIS.js";
14
14
  import { test } from "../testing-jcGLO9Lp.js";
15
- import "../std__assert-CaBUULmX.js";
16
- import { assertFalse, assertRejects } from "../assert_rejects-FOHCtlD2.js";
17
- import "../assert_is_error-D162gXcM.js";
18
- import { assertNotEquals } from "../assert_not_equals-Cyf5m9Ke.js";
19
- import { assertThrows } from "../assert_throws-CRfQJvVx.js";
15
+ import "../std__assert-CHXwj7zk.js";
16
+ import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
17
+ import "../assert_is_error-jyzqjHud.js";
18
+ import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
19
+ import { assertThrows } from "../assert_throws-gBPv3v2V.js";
20
20
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
21
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-R9p0S8_o.js";
21
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-j3LZyq_M.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";
25
25
  import { readFile, readdir } from "node:fs/promises";
26
26
  import { join } from "node:path";
27
27
 
28
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_os.js
28
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_os.js
29
29
  const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
30
30
 
31
31
  //#endregion
32
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js
32
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
33
33
  function assertPath(path) {
34
34
  if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
35
35
  }
36
36
 
37
37
  //#endregion
38
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
38
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/from_file_url.js
39
+ function assertArg$2(url) {
40
+ url = url instanceof URL ? url : new URL(url);
41
+ if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
42
+ return url;
43
+ }
44
+
45
+ //#endregion
46
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/from_file_url.js
47
+ /**
48
+ * Converts a file URL to a path string.
49
+ *
50
+ * @example Usage
51
+ * ```ts
52
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
53
+ * import { assertEquals } from "@std/assert";
54
+ *
55
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
56
+ * ```
57
+ *
58
+ * @param url The file URL to convert.
59
+ * @returns The path string.
60
+ */ function fromFileUrl$1(url) {
61
+ url = assertArg$2(url);
62
+ return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
63
+ }
64
+
65
+ //#endregion
66
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
39
67
  function stripTrailingSeparators(segment, isSep) {
40
68
  if (segment.length <= 1) return segment;
41
69
  let end = segment.length;
@@ -45,25 +73,49 @@ function stripTrailingSeparators(segment, isSep) {
45
73
  }
46
74
 
47
75
  //#endregion
48
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js
76
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/constants.js
49
77
  const CHAR_DOT = 46;
50
78
  const CHAR_FORWARD_SLASH = 47;
51
79
 
52
80
  //#endregion
53
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js
81
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/_util.js
54
82
  function isPosixPathSeparator(code) {
55
83
  return code === CHAR_FORWARD_SLASH;
56
84
  }
57
85
 
58
86
  //#endregion
59
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js
60
- function assertArg$2(path) {
87
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/windows/from_file_url.js
88
+ /**
89
+ * Converts a file URL to a path string.
90
+ *
91
+ * @example Usage
92
+ * ```ts
93
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
94
+ * import { assertEquals } from "@std/assert";
95
+ *
96
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
97
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
98
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
99
+ * ```
100
+ *
101
+ * @param url The file URL to convert.
102
+ * @returns The path string.
103
+ */ function fromFileUrl$2(url) {
104
+ url = assertArg$2(url);
105
+ let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
106
+ if (url.hostname !== "") path = `\\\\${url.hostname}${path}`;
107
+ return path;
108
+ }
109
+
110
+ //#endregion
111
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/dirname.js
112
+ function assertArg$1(path) {
61
113
  assertPath(path);
62
114
  if (path.length === 0) return ".";
63
115
  }
64
116
 
65
117
  //#endregion
66
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js
118
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/dirname.js
67
119
  /**
68
120
  * Return the directory path of a `path`.
69
121
  *
@@ -75,6 +127,7 @@ function assertArg$2(path) {
75
127
  * assertEquals(dirname("/home/user/Documents/"), "/home/user");
76
128
  * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
77
129
  * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
130
+ * assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
78
131
  * ```
79
132
  *
80
133
  * @example Working with URLs
@@ -88,13 +141,11 @@ function assertArg$2(path) {
88
141
  * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
89
142
  * ```
90
143
  *
91
- * Note: If you are working with file URLs,
92
- * use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
93
- *
94
144
  * @param path The path to get the directory from.
95
145
  * @returns The directory path.
96
- */ function dirname$1(path) {
97
- assertArg$2(path);
146
+ */ function dirname(path) {
147
+ if (path instanceof URL) path = fromFileUrl$1(path);
148
+ assertArg$1(path);
98
149
  let end = -1;
99
150
  let matchedNonSeparator = false;
100
151
  for (let i = path.length - 1; i >= 1; --i) if (isPosixPathSeparator(path.charCodeAt(i))) {
@@ -108,59 +159,7 @@ function assertArg$2(path) {
108
159
  }
109
160
 
110
161
  //#endregion
111
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js
112
- function assertArg$1(url) {
113
- url = url instanceof URL ? url : new URL(url);
114
- if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
115
- return url;
116
- }
117
-
118
- //#endregion
119
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js
120
- /**
121
- * Converts a file URL to a path string.
122
- *
123
- * @example Usage
124
- * ```ts
125
- * import { fromFileUrl } from "@std/path/posix/from-file-url";
126
- * import { assertEquals } from "@std/assert";
127
- *
128
- * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
129
- * ```
130
- *
131
- * @param url The file URL to convert.
132
- * @returns The path string.
133
- */ function fromFileUrl$2(url) {
134
- url = assertArg$1(url);
135
- return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
136
- }
137
-
138
- //#endregion
139
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js
140
- /**
141
- * Converts a file URL to a path string.
142
- *
143
- * @example Usage
144
- * ```ts
145
- * import { fromFileUrl } from "@std/path/windows/from-file-url";
146
- * import { assertEquals } from "@std/assert";
147
- *
148
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
149
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
150
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
151
- * ```
152
- *
153
- * @param url The file URL to convert.
154
- * @returns The path string.
155
- */ function fromFileUrl$1(url) {
156
- url = assertArg$1(url);
157
- let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
158
- if (url.hostname !== "") path = `\\\\${url.hostname}${path}`;
159
- return path;
160
- }
161
-
162
- //#endregion
163
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js
162
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/from_file_url.js
164
163
  /**
165
164
  * Converts a file URL to a path string.
166
165
  *
@@ -181,18 +180,18 @@ function assertArg$1(url) {
181
180
  * @param url The file URL to convert to a path.
182
181
  * @returns The path string.
183
182
  */ function fromFileUrl(url) {
184
- return isWindows ? fromFileUrl$1(url) : fromFileUrl$2(url);
183
+ return isWindows ? fromFileUrl$2(url) : fromFileUrl$1(url);
185
184
  }
186
185
 
187
186
  //#endregion
188
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js
187
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize.js
189
188
  function assertArg(path) {
190
189
  assertPath(path);
191
190
  if (path.length === 0) return ".";
192
191
  }
193
192
 
194
193
  //#endregion
195
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js
194
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize_string.js
196
195
  function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
197
196
  let res = "";
198
197
  let lastSegmentLength = 0;
@@ -245,7 +244,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
245
244
  }
246
245
 
247
246
  //#endregion
248
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js
247
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/normalize.js
249
248
  /**
250
249
  * Normalize the `path`, resolving `'..'` and `'.'` segments.
251
250
  * Note that resolving these segments does not necessarily mean that all will be eliminated.
@@ -256,8 +255,8 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
256
255
  * import { normalize } from "@std/path/posix/normalize";
257
256
  * import { assertEquals } from "@std/assert";
258
257
  *
259
- * const path = normalize("/foo/bar//baz/asdf/quux/..");
260
- * assertEquals(path, "/foo/bar/baz/asdf");
258
+ * assertEquals(normalize("/foo/bar//baz/asdf/quux/.."), "/foo/bar/baz/asdf");
259
+ * assertEquals(normalize(new URL("file:///foo/bar//baz/asdf/quux/..")), "/foo/bar/baz/asdf/");
261
260
  * ```
262
261
  *
263
262
  * @example Working with URLs
@@ -278,12 +277,10 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
278
277
  * assertEquals(url.href, "https://deno.land/std/async/retry.ts");
279
278
  * ```
280
279
  *
281
- * Note: If you are working with file URLs,
282
- * use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
283
- *
284
280
  * @param path The path to normalize.
285
281
  * @returns The normalized path.
286
282
  */ function normalize(path) {
283
+ if (path instanceof URL) path = fromFileUrl$1(path);
287
284
  assertArg(path);
288
285
  const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
289
286
  const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
@@ -295,7 +292,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
295
292
  }
296
293
 
297
294
  //#endregion
298
- //#region node_modules/.pnpm/@jsr+std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js
295
+ //#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/join.js
299
296
  /**
300
297
  * Join all given a sequence of `paths`,then normalizes the resulting path.
301
298
  *
@@ -304,8 +301,8 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
304
301
  * import { join } from "@std/path/posix/join";
305
302
  * import { assertEquals } from "@std/assert";
306
303
  *
307
- * const path = join("/foo", "bar", "baz/asdf", "quux", "..");
308
- * assertEquals(path, "/foo/bar/baz/asdf");
304
+ * assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
305
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
309
306
  * ```
310
307
  *
311
308
  * @example Working with URLs
@@ -321,15 +318,15 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
321
318
  * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
322
319
  * ```
323
320
  *
324
- * Note: If you are working with file URLs,
325
- * use the new version of `join` from `@std/path/posix/unstable-join`.
326
- *
321
+ * @param path The path to join. This can be string or file URL.
327
322
  * @param paths The paths to join.
328
323
  * @returns The joined path.
329
- */ function join$2(...paths) {
330
- if (paths.length === 0) return ".";
331
- paths.forEach((path) => assertPath(path));
332
- const joined = paths.filter((path) => path.length > 0).join("/");
324
+ */ function join$1(path, ...paths) {
325
+ if (path === void 0) return ".";
326
+ if (path instanceof URL) path = fromFileUrl$1(path);
327
+ paths = path ? [path, ...paths] : paths;
328
+ paths.forEach((path$1) => assertPath(path$1));
329
+ const joined = paths.filter((path$1) => path$1.length > 0).join("/");
333
330
  return joined === "" ? "." : normalize(joined);
334
331
  }
335
332
 
@@ -368,10 +365,10 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
368
365
  * @deprecated Use
369
366
  * {@linkcode https://jsr.io/@std/path/doc/posix/~/dirname | @std/path/posix/dirname}
370
367
  * instead (examples included). `@std/url` will be removed in the future.
371
- */ function dirname(url) {
368
+ */ function dirname$1(url) {
372
369
  url = new URL(url);
373
370
  strip(url);
374
- url.pathname = dirname$1(url.pathname);
371
+ url.pathname = dirname(url.pathname);
375
372
  return url;
376
373
  }
377
374
 
@@ -398,14 +395,14 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
398
395
  * @deprecated Use
399
396
  * {@linkcode https://jsr.io/@std/path/doc/posix/~/join | @std/path/posix/join}
400
397
  * instead (examples included). `@std/url` will be removed in the future.
401
- */ function join$1(url, ...paths) {
398
+ */ function join$2(url, ...paths) {
402
399
  url = new URL(url);
403
- url.pathname = join$2(url.pathname, ...paths);
400
+ url.pathname = join$1(url.pathname, ...paths);
404
401
  return url;
405
402
  }
406
403
 
407
404
  //#endregion
408
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js
405
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_chars.js
409
406
  const TAB = 9;
410
407
  const LINE_FEED = 10;
411
408
  const CARRIAGE_RETURN = 13;
@@ -447,7 +444,7 @@ function isFlowIndicator(c) {
447
444
  }
448
445
 
449
446
  //#endregion
450
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js
447
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/binary.js
451
448
  const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
452
449
  function resolveYamlBinary(data) {
453
450
  if (data === null) return false;
@@ -534,7 +531,7 @@ const binary = {
534
531
  };
535
532
 
536
533
  //#endregion
537
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js
534
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/bool.js
538
535
  const YAML_TRUE_BOOLEANS = [
539
536
  "true",
540
537
  "True",
@@ -570,7 +567,7 @@ const bool = {
570
567
  };
571
568
 
572
569
  //#endregion
573
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js
570
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_utils.js
574
571
  function isObject(value) {
575
572
  return value !== null && typeof value === "object";
576
573
  }
@@ -582,7 +579,7 @@ function isPlainObject(object) {
582
579
  }
583
580
 
584
581
  //#endregion
585
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js
582
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/float.js
586
583
  const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
587
584
  function resolveYamlFloat(data) {
588
585
  if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
@@ -633,7 +630,7 @@ const float = {
633
630
  };
634
631
 
635
632
  //#endregion
636
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js
633
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/int.js
637
634
  function isCharCodeInRange(c, lower, upper) {
638
635
  return lower <= c && c <= upper;
639
636
  }
@@ -744,7 +741,7 @@ const int = {
744
741
  };
745
742
 
746
743
  //#endregion
747
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js
744
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/map.js
748
745
  const map = {
749
746
  tag: "tag:yaml.org,2002:map",
750
747
  resolve() {
@@ -757,7 +754,7 @@ const map = {
757
754
  };
758
755
 
759
756
  //#endregion
760
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js
757
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/merge.js
761
758
  const merge = {
762
759
  tag: "tag:yaml.org,2002:merge",
763
760
  kind: "scalar",
@@ -766,7 +763,7 @@ const merge = {
766
763
  };
767
764
 
768
765
  //#endregion
769
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js
766
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/nil.js
770
767
  const nil = {
771
768
  tag: "tag:yaml.org,2002:null",
772
769
  kind: "scalar",
@@ -784,9 +781,9 @@ const nil = {
784
781
  };
785
782
 
786
783
  //#endregion
787
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js
784
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/omap.js
788
785
  function resolveYamlOmap(data) {
789
- const objectKeys = new Set();
786
+ const objectKeys = /* @__PURE__ */ new Set();
790
787
  for (const object of data) {
791
788
  if (!isPlainObject(object)) return false;
792
789
  const keys = Object.keys(object);
@@ -808,7 +805,7 @@ const omap = {
808
805
  };
809
806
 
810
807
  //#endregion
811
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js
808
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/pairs.js
812
809
  function resolveYamlPairs(data) {
813
810
  if (data === null) return true;
814
811
  return data.every((it) => isPlainObject(it) && Object.keys(it).length === 1);
@@ -823,7 +820,7 @@ const pairs = {
823
820
  };
824
821
 
825
822
  //#endregion
826
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js
823
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/regexp.js
827
824
  const REGEXP = /^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/;
828
825
  const regexp = {
829
826
  tag: "tag:yaml.org,2002:js/regexp",
@@ -847,7 +844,7 @@ const regexp = {
847
844
  };
848
845
 
849
846
  //#endregion
850
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js
847
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/seq.js
851
848
  const seq = {
852
849
  tag: "tag:yaml.org,2002:seq",
853
850
  kind: "sequence",
@@ -856,7 +853,7 @@ const seq = {
856
853
  };
857
854
 
858
855
  //#endregion
859
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js
856
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/set.js
860
857
  const set = {
861
858
  tag: "tag:yaml.org,2002:set",
862
859
  kind: "mapping",
@@ -868,7 +865,7 @@ const set = {
868
865
  };
869
866
 
870
867
  //#endregion
871
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js
868
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/str.js
872
869
  const str = {
873
870
  tag: "tag:yaml.org,2002:str",
874
871
  kind: "scalar",
@@ -877,7 +874,7 @@ const str = {
877
874
  };
878
875
 
879
876
  //#endregion
880
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js
877
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/timestamp.js
881
878
  const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
882
879
  const YAML_TIMESTAMP_REGEXP = 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]))?))?$");
883
880
  function resolveYamlTimestamp(data) {
@@ -929,7 +926,7 @@ const timestamp = {
929
926
  };
930
927
 
931
928
  //#endregion
932
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js
929
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_type/undefined.js
933
930
  const undefinedType = {
934
931
  tag: "tag:yaml.org,2002:js/undefined",
935
932
  kind: "scalar",
@@ -948,13 +945,13 @@ const undefinedType = {
948
945
  };
949
946
 
950
947
  //#endregion
951
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js
948
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_schema.js
952
949
  function createTypeMap(implicitTypes, explicitTypes) {
953
950
  const result = {
954
- fallback: new Map(),
955
- mapping: new Map(),
956
- scalar: new Map(),
957
- sequence: new Map()
951
+ fallback: /* @__PURE__ */ new Map(),
952
+ mapping: /* @__PURE__ */ new Map(),
953
+ scalar: /* @__PURE__ */ new Map(),
954
+ sequence: /* @__PURE__ */ new Map()
958
955
  };
959
956
  const fallbackMap = result.fallback;
960
957
  for (const type of [...implicitTypes, ...explicitTypes]) {
@@ -1047,7 +1044,7 @@ const SCHEMA_MAP = new Map([
1047
1044
  ]);
1048
1045
 
1049
1046
  //#endregion
1050
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js
1047
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/_loader_state.js
1051
1048
  const CONTEXT_FLOW_IN = 1;
1052
1049
  const CONTEXT_FLOW_OUT = 2;
1053
1050
  const CONTEXT_BLOCK_IN = 3;
@@ -1154,8 +1151,8 @@ var LoaderState = class {
1154
1151
  typeMap;
1155
1152
  version;
1156
1153
  checkLineBreaks = false;
1157
- tagMap = new Map();
1158
- anchorMap = new Map();
1154
+ tagMap = /* @__PURE__ */ new Map();
1155
+ anchorMap = /* @__PURE__ */ new Map();
1159
1156
  tag;
1160
1157
  anchor;
1161
1158
  kind;
@@ -1514,7 +1511,7 @@ var LoaderState = class {
1514
1511
  let isPair = false;
1515
1512
  let following = 0;
1516
1513
  let line = 0;
1517
- const overridableKeys = new Set();
1514
+ const overridableKeys = /* @__PURE__ */ new Set();
1518
1515
  while (ch !== 0) {
1519
1516
  this.skipSeparationSpace(true, nodeIndent);
1520
1517
  ch = this.peek();
@@ -1636,7 +1633,7 @@ var LoaderState = class {
1636
1633
  const tag = this.tag;
1637
1634
  const anchor = this.anchor;
1638
1635
  const result = {};
1639
- const overridableKeys = new Set();
1636
+ const overridableKeys = /* @__PURE__ */ new Set();
1640
1637
  let allowCompact = false;
1641
1638
  let line;
1642
1639
  let pos;
@@ -1863,8 +1860,8 @@ var LoaderState = class {
1863
1860
  let hasDirectives = false;
1864
1861
  this.version = null;
1865
1862
  this.checkLineBreaks = false;
1866
- this.tagMap = new Map();
1867
- this.anchorMap = new Map();
1863
+ this.tagMap = /* @__PURE__ */ new Map();
1864
+ this.anchorMap = /* @__PURE__ */ new Map();
1868
1865
  let ch = this.peek();
1869
1866
  while (ch !== 0) {
1870
1867
  this.skipSeparationSpace(true, -1);
@@ -1922,7 +1919,7 @@ var LoaderState = class {
1922
1919
  };
1923
1920
 
1924
1921
  //#endregion
1925
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js
1922
+ //#region node_modules/.pnpm/@jsr+std__yaml@1.0.7/node_modules/@jsr/std__yaml/parse.js
1926
1923
  function sanitizeInput(input) {
1927
1924
  input = String(input);
1928
1925
  if (input.length > 0) {
@@ -2003,7 +2000,7 @@ var SchemaError = class extends Error {
2003
2000
  };
2004
2001
  async function loadSchemaValidator() {
2005
2002
  const thisFile = new URL(import.meta.url);
2006
- const schemaFile = join$1(dirname(thisFile), "schema.yaml");
2003
+ const schemaFile = join$2(dirname$1(thisFile), "schema.yaml");
2007
2004
  let content;
2008
2005
  if (schemaFile.protocol !== "file:") {
2009
2006
  const response = await fetch(schemaFile);
@@ -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-BesQV-nU.js";
6
- import { Object as Object$1, getTypeId$1 as getTypeId } from "./actor-DvmEmDn9.js";
7
- import { lookupWebFinger } from "./lookup-B38eCiCI.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-CjMOaZ0w.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-BidJp8n0.js";
7
+ import { lookupWebFinger } from "./lookup-DTOPcLsZ.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "@es-toolkit/es-toolkit";