@mtkruto/node 0.66.1 → 0.66.3

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 (329) hide show
  1. package/esm/0_deps.d.ts +10 -9
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +10 -9
  4. package/esm/client/2_update_manager.d.ts.map +1 -1
  5. package/esm/client/2_update_manager.js +155 -1
  6. package/esm/client/5_client.d.ts +11 -0
  7. package/esm/client/5_client.d.ts.map +1 -1
  8. package/esm/client/5_client.js +11 -0
  9. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts.map +1 -1
  10. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts.map +1 -1
  11. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.js +2 -2
  12. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts.map +1 -1
  17. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts.map +1 -1
  20. package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
  21. package/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
  22. package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts +19 -0
  24. package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.js +550 -0
  26. package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/datetime/0.225.5/format.d.ts +70 -0
  28. package/esm/deps/jsr.io/@std/datetime/0.225.5/format.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/datetime/0.225.5/format.js +66 -0
  30. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts +2 -0
  34. package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.js +9 -0
  36. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts.map +1 -1
  38. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts.map +1 -1
  40. package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.d.ts +3 -4
  42. package/esm/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.js +2 -3
  44. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/extname.d.ts +3 -4
  45. package/esm/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/extname.js +2 -3
  47. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts.map +1 -1
  48. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/join.d.ts +4 -4
  49. package/esm/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/join.js +5 -5
  51. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts.map +1 -1
  52. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/basename.d.ts +3 -4
  53. package/esm/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/basename.js +6 -3
  55. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.d.ts +4 -4
  56. package/esm/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.js +7 -3
  58. package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts +16 -0
  59. package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +1 -0
  60. package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.js +21 -0
  61. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts.map +1 -1
  62. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/join.d.ts +4 -6
  63. package/esm/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/join.js +10 -7
  65. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.d.ts +3 -6
  66. package/esm/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.js +6 -5
  68. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/to_file_url.d.ts.map +1 -1
  69. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/to_file_url.d.ts.map +1 -1
  70. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/_util.d.ts.map +1 -1
  71. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/basename.d.ts +3 -4
  72. package/esm/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/basename.js +6 -3
  74. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/extname.d.ts +3 -6
  75. package/esm/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/extname.js +6 -5
  77. package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts +18 -0
  78. package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.js +30 -0
  80. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/is_absolute.d.ts.map +1 -1
  81. package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts +18 -0
  82. package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/join.js +9 -6
  84. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/normalize.d.ts +3 -6
  85. package/esm/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/normalize.js +6 -5
  87. package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/to_file_url.d.ts.map +1 -1
  88. package/esm/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.js +1 -1
  90. package/esm/session/2_session_encrypted.d.ts.map +1 -1
  91. package/esm/session/2_session_encrypted.js +8 -6
  92. package/esm/utilities/1_logger.d.ts.map +1 -1
  93. package/esm/utilities/1_logger.js +2 -1
  94. package/package.json +1 -1
  95. package/script/0_deps.d.ts +10 -9
  96. package/script/0_deps.d.ts.map +1 -1
  97. package/script/0_deps.js +12 -10
  98. package/script/client/2_update_manager.d.ts.map +1 -1
  99. package/script/client/2_update_manager.js +155 -1
  100. package/script/client/5_client.d.ts +11 -0
  101. package/script/client/5_client.d.ts.map +1 -1
  102. package/script/client/5_client.js +11 -0
  103. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts.map +1 -1
  104. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts.map +1 -1
  105. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.js +2 -2
  106. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts.map +1 -1
  107. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts.map +1 -1
  108. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts.map +1 -1
  109. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts.map +1 -1
  110. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts.map +1 -1
  111. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts.map +1 -1
  112. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts.map +1 -1
  113. package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts.map +1 -1
  114. package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
  115. package/{esm/deps/jsr.io/@std/bytes/1.0.5 → script/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
  116. package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
  117. package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts +19 -0
  118. package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts.map +1 -0
  119. package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.js +554 -0
  120. package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts.map +1 -1
  121. package/script/deps/jsr.io/@std/datetime/0.225.5/format.d.ts +70 -0
  122. package/script/deps/jsr.io/@std/datetime/0.225.5/format.d.ts.map +1 -0
  123. package/script/deps/jsr.io/@std/datetime/0.225.5/format.js +69 -0
  124. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts.map +1 -1
  125. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts.map +1 -1
  126. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts.map +1 -1
  127. package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts +2 -0
  128. package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +1 -0
  129. package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.js +12 -0
  130. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts.map +1 -1
  131. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts.map +1 -1
  132. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts.map +1 -1
  133. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts.map +1 -1
  134. package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +1 -0
  135. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.d.ts +3 -4
  136. package/script/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +1 -0
  137. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.js +2 -3
  138. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/extname.d.ts +3 -4
  139. package/script/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +1 -0
  140. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/extname.js +2 -3
  141. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts.map +1 -1
  142. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/join.d.ts +4 -4
  143. package/script/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +1 -0
  144. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/join.js +5 -5
  145. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts.map +1 -1
  146. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/basename.d.ts +3 -4
  147. package/script/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/basename.js +6 -3
  149. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.d.ts +4 -4
  150. package/script/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.js +7 -3
  152. package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts +16 -0
  153. package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +1 -0
  154. package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.js +24 -0
  155. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts.map +1 -1
  156. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/join.d.ts +4 -6
  157. package/script/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +1 -0
  158. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/join.js +10 -7
  159. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.d.ts +3 -6
  160. package/script/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +1 -0
  161. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.js +6 -5
  162. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/to_file_url.d.ts.map +1 -1
  163. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/to_file_url.d.ts.map +1 -1
  164. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/_util.d.ts.map +1 -1
  165. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/basename.d.ts +3 -4
  166. package/script/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +1 -0
  167. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/basename.js +6 -3
  168. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/extname.d.ts +3 -6
  169. package/script/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +1 -0
  170. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/extname.js +6 -5
  171. package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts +18 -0
  172. package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +1 -0
  173. package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.js +33 -0
  174. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/is_absolute.d.ts.map +1 -1
  175. package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts +18 -0
  176. package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +1 -0
  177. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/join.js +9 -6
  178. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/normalize.d.ts +3 -6
  179. package/script/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +1 -0
  180. package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/normalize.js +6 -5
  181. package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/to_file_url.d.ts.map +1 -1
  182. package/script/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +1 -0
  183. package/script/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.js +1 -1
  184. package/script/session/2_session_encrypted.d.ts.map +1 -1
  185. package/script/session/2_session_encrypted.js +8 -6
  186. package/script/utilities/1_logger.d.ts.map +1 -1
  187. package/script/utilities/1_logger.js +2 -1
  188. package/esm/deps/jsr.io/@std/path/1.0.9/_os.d.ts.map +0 -1
  189. package/esm/deps/jsr.io/@std/path/1.0.9/basename.d.ts.map +0 -1
  190. package/esm/deps/jsr.io/@std/path/1.0.9/extname.d.ts.map +0 -1
  191. package/esm/deps/jsr.io/@std/path/1.0.9/join.d.ts.map +0 -1
  192. package/esm/deps/jsr.io/@std/path/1.0.9/posix/basename.d.ts.map +0 -1
  193. package/esm/deps/jsr.io/@std/path/1.0.9/posix/extname.d.ts.map +0 -1
  194. package/esm/deps/jsr.io/@std/path/1.0.9/posix/join.d.ts.map +0 -1
  195. package/esm/deps/jsr.io/@std/path/1.0.9/posix/normalize.d.ts.map +0 -1
  196. package/esm/deps/jsr.io/@std/path/1.0.9/windows/basename.d.ts.map +0 -1
  197. package/esm/deps/jsr.io/@std/path/1.0.9/windows/extname.d.ts.map +0 -1
  198. package/esm/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts +0 -20
  199. package/esm/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts.map +0 -1
  200. package/esm/deps/jsr.io/@std/path/1.0.9/windows/normalize.d.ts.map +0 -1
  201. package/esm/deps/jsr.io/@std/streams/1.0.9/to_array_buffer.d.ts.map +0 -1
  202. package/script/deps/jsr.io/@std/path/1.0.9/_os.d.ts.map +0 -1
  203. package/script/deps/jsr.io/@std/path/1.0.9/basename.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/path/1.0.9/extname.d.ts.map +0 -1
  205. package/script/deps/jsr.io/@std/path/1.0.9/join.d.ts.map +0 -1
  206. package/script/deps/jsr.io/@std/path/1.0.9/posix/basename.d.ts.map +0 -1
  207. package/script/deps/jsr.io/@std/path/1.0.9/posix/extname.d.ts.map +0 -1
  208. package/script/deps/jsr.io/@std/path/1.0.9/posix/join.d.ts.map +0 -1
  209. package/script/deps/jsr.io/@std/path/1.0.9/posix/normalize.d.ts.map +0 -1
  210. package/script/deps/jsr.io/@std/path/1.0.9/windows/basename.d.ts.map +0 -1
  211. package/script/deps/jsr.io/@std/path/1.0.9/windows/extname.d.ts.map +0 -1
  212. package/script/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts +0 -20
  213. package/script/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts.map +0 -1
  214. package/script/deps/jsr.io/@std/path/1.0.9/windows/normalize.d.ts.map +0 -1
  215. package/script/deps/jsr.io/@std/streams/1.0.9/to_array_buffer.d.ts.map +0 -1
  216. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts +0 -0
  217. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.js +0 -0
  218. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts +0 -0
  219. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts +0 -0
  220. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.js +0 -0
  221. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts +0 -0
  222. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.js +0 -0
  223. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts +0 -0
  224. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.js +0 -0
  225. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts +0 -0
  226. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.js +0 -0
  227. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts +0 -0
  228. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.js +0 -0
  229. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts +0 -0
  230. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.js +0 -0
  231. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts +0 -0
  232. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.js +0 -0
  233. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts +0 -0
  234. /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.js +0 -0
  235. /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
  236. /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
  237. /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
  238. /package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts +0 -0
  239. /package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.js +0 -0
  240. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts +0 -0
  241. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.js +0 -0
  242. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts +0 -0
  243. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.js +0 -0
  244. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts +0 -0
  245. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.js +0 -0
  246. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts +0 -0
  247. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.js +0 -0
  248. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts +0 -0
  249. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.js +0 -0
  250. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts +0 -0
  251. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.js +0 -0
  252. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts +0 -0
  253. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.js +0 -0
  254. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.d.ts +0 -0
  255. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.js +0 -0
  256. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts +0 -0
  257. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.js +0 -0
  258. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts +0 -0
  259. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.js +0 -0
  260. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts +0 -0
  261. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.js +0 -0
  262. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.d.ts +0 -0
  263. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.js +0 -0
  264. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.d.ts +0 -0
  265. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.js +0 -0
  266. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.d.ts +0 -0
  267. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.js +0 -0
  268. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.d.ts +0 -0
  269. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.js +0 -0
  270. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.d.ts +0 -0
  271. /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.js +0 -0
  272. /package/esm/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.d.ts +0 -0
  273. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts +0 -0
  274. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.js +0 -0
  275. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts +0 -0
  276. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts +0 -0
  277. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.js +0 -0
  278. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts +0 -0
  279. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.js +0 -0
  280. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts +0 -0
  281. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.js +0 -0
  282. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts +0 -0
  283. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.js +0 -0
  284. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts +0 -0
  285. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.js +0 -0
  286. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts +0 -0
  287. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.js +0 -0
  288. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts +0 -0
  289. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.js +0 -0
  290. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts +0 -0
  291. /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.js +0 -0
  292. /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
  293. /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
  294. /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
  295. /package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts +0 -0
  296. /package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.js +0 -0
  297. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts +0 -0
  298. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.js +0 -0
  299. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts +0 -0
  300. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.js +0 -0
  301. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts +0 -0
  302. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.js +0 -0
  303. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts +0 -0
  304. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.js +0 -0
  305. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts +0 -0
  306. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.js +0 -0
  307. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts +0 -0
  308. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.js +0 -0
  309. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts +0 -0
  310. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.js +0 -0
  311. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.d.ts +0 -0
  312. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.js +0 -0
  313. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts +0 -0
  314. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.js +0 -0
  315. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts +0 -0
  316. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.js +0 -0
  317. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts +0 -0
  318. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.js +0 -0
  319. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.d.ts +0 -0
  320. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.js +0 -0
  321. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.d.ts +0 -0
  322. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.js +0 -0
  323. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.d.ts +0 -0
  324. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.js +0 -0
  325. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.d.ts +0 -0
  326. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.js +0 -0
  327. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.d.ts +0 -0
  328. /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.js +0 -0
  329. /package/script/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.d.ts +0 -0
@@ -0,0 +1,70 @@
1
+ /** Options for {@linkcode format}. */
2
+ export interface FormatOptions {
3
+ /**
4
+ * The timezone the formatted date should be in.
5
+ *
6
+ * @default {undefined}
7
+ */
8
+ timeZone?: "UTC";
9
+ }
10
+ /**
11
+ * Formats a date to a string with the specified format.
12
+ *
13
+ * The following symbols from
14
+ * {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | unicode LDML}
15
+ * are supported:
16
+ * - `yyyy` - numeric year
17
+ * - `yy` - 2-digit year
18
+ * - `M` - numeric month
19
+ * - `MM` - 2-digit month
20
+ * - `d` - numeric day
21
+ * - `dd` - 2-digit day
22
+ * - `H` - numeric hour (0-23 hours)
23
+ * - `HH` - 2-digit hour (00-23 hours)
24
+ * - `h` - numeric hour (1-12 hours)
25
+ * - `hh` - 2-digit hour (01-12 hours)
26
+ * - `m` - numeric minute
27
+ * - `mm` - 2-digit minute
28
+ * - `s` - numeric second
29
+ * - `ss` - 2-digit second
30
+ * - `S` - 1-digit fractional second
31
+ * - `SS` - 2-digit fractional second
32
+ * - `SSS` - 3-digit fractional second
33
+ * - `a` - dayPeriod, either `AM` or `PM`
34
+ * - `'foo'` - quoted literal
35
+ * - `./-` - unquoted literal
36
+ *
37
+ * @param date The date to be formatted.
38
+ * @param formatString The date time string format.
39
+ * @param options The options to customize the formatting of the date.
40
+ * @return The formatted date string.
41
+ *
42
+ * @example Basic usage
43
+ * ```ts ignore
44
+ * import { format } from "@std/datetime/format";
45
+ * import { assertEquals } from "@std/assert";
46
+ *
47
+ * const date = new Date(2019, 0, 20, 16, 34, 23, 123);
48
+ *
49
+ * assertEquals(format(date, "dd-MM-yyyy"), "20-01-2019");
50
+ *
51
+ * assertEquals(format(date, "MM-dd-yyyy HH:mm:ss.SSS"), "01-20-2019 16:34:23.123");
52
+ *
53
+ * assertEquals(format(date, "'today:' yyyy-MM-dd"), "today: 2019-01-20");
54
+ * ```
55
+ *
56
+ * @example UTC formatting
57
+ *
58
+ * Enable UTC formatting by setting the `timeZone` option to `"UTC"`.
59
+ *
60
+ * ```ts ignore
61
+ * import { format } from "@std/datetime/format";
62
+ * import { assertEquals } from "@std/assert";
63
+ *
64
+ * const date = new Date(2019, 0, 20, 16, 34, 23, 123);
65
+ *
66
+ * assertEquals(format(date, "yyyy-MM-dd HH:mm:ss", { timeZone: "UTC" }), "2019-01-20 05:34:23");
67
+ * ```
68
+ */
69
+ export declare function format(date: Date, formatString: string, options?: FormatOptions): string;
70
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/datetime/0.225.5/format.ts"],"names":[],"mappings":"AAKA,sCAAsC;AACtC,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,aAAkB,GAC1B,MAAM,CAGR"}
@@ -0,0 +1,66 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { DateTimeFormatter } from "./_date_time_formatter.js";
4
+ /**
5
+ * Formats a date to a string with the specified format.
6
+ *
7
+ * The following symbols from
8
+ * {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | unicode LDML}
9
+ * are supported:
10
+ * - `yyyy` - numeric year
11
+ * - `yy` - 2-digit year
12
+ * - `M` - numeric month
13
+ * - `MM` - 2-digit month
14
+ * - `d` - numeric day
15
+ * - `dd` - 2-digit day
16
+ * - `H` - numeric hour (0-23 hours)
17
+ * - `HH` - 2-digit hour (00-23 hours)
18
+ * - `h` - numeric hour (1-12 hours)
19
+ * - `hh` - 2-digit hour (01-12 hours)
20
+ * - `m` - numeric minute
21
+ * - `mm` - 2-digit minute
22
+ * - `s` - numeric second
23
+ * - `ss` - 2-digit second
24
+ * - `S` - 1-digit fractional second
25
+ * - `SS` - 2-digit fractional second
26
+ * - `SSS` - 3-digit fractional second
27
+ * - `a` - dayPeriod, either `AM` or `PM`
28
+ * - `'foo'` - quoted literal
29
+ * - `./-` - unquoted literal
30
+ *
31
+ * @param date The date to be formatted.
32
+ * @param formatString The date time string format.
33
+ * @param options The options to customize the formatting of the date.
34
+ * @return The formatted date string.
35
+ *
36
+ * @example Basic usage
37
+ * ```ts ignore
38
+ * import { format } from "@std/datetime/format";
39
+ * import { assertEquals } from "@std/assert";
40
+ *
41
+ * const date = new Date(2019, 0, 20, 16, 34, 23, 123);
42
+ *
43
+ * assertEquals(format(date, "dd-MM-yyyy"), "20-01-2019");
44
+ *
45
+ * assertEquals(format(date, "MM-dd-yyyy HH:mm:ss.SSS"), "01-20-2019 16:34:23.123");
46
+ *
47
+ * assertEquals(format(date, "'today:' yyyy-MM-dd"), "today: 2019-01-20");
48
+ * ```
49
+ *
50
+ * @example UTC formatting
51
+ *
52
+ * Enable UTC formatting by setting the `timeZone` option to `"UTC"`.
53
+ *
54
+ * ```ts ignore
55
+ * import { format } from "@std/datetime/format";
56
+ * import { assertEquals } from "@std/assert";
57
+ *
58
+ * const date = new Date(2019, 0, 20, 16, 34, 23, 123);
59
+ *
60
+ * assertEquals(format(date, "yyyy-MM-dd HH:mm:ss", { timeZone: "UTC" }), "2019-01-20 05:34:23");
61
+ * ```
62
+ */
63
+ export function format(date, formatString, options = {}) {
64
+ const formatter = new DateTimeFormatter(formatString);
65
+ return formatter.format(date, options);
66
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
1
+ {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/basename.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAChC,KAAK,SAAI,GACR,MAAM,CAiBR;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sBAQtD"}
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/basename.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAChC,KAAK,SAAI,GACR,MAAM,CAiBR;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sBAQtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function assertArg(url: URL | string): URL;
2
+ //# sourceMappingURL=from_file_url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,OAQ1C"}
@@ -0,0 +1,9 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ export function assertArg(url) {
4
+ url = url instanceof URL ? url : new URL(url);
5
+ if (url.protocol !== "file:") {
6
+ throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
7
+ }
8
+ return url;
9
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
1
+ {"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
@@ -1 +1 @@
1
- {"version":3,"file":"strip_trailing_separators.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/strip_trailing_separators.ts"],"names":[],"mappings":"AAKA,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAC/B,MAAM,CAgBR"}
1
+ {"version":3,"file":"strip_trailing_separators.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.ts"],"names":[],"mappings":"AAKA,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAC/B,MAAM,CAgBR"}
@@ -1 +1 @@
1
- {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/_common/to_file_url.ts"],"names":[],"mappings":"AAYA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIvD"}
1
+ {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.ts"],"names":[],"mappings":"AAYA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/_os.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,EAAE,OAIjB,CAAC"}
@@ -11,18 +11,17 @@
11
11
  *
12
12
  * if (Deno.build.os === "windows") {
13
13
  * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
14
+ * assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
14
15
  * } else {
15
16
  * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
17
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
16
18
  * }
17
19
  * ```
18
20
  *
19
- * Note: If you are working with file URLs,
20
- * use the new version of `basename` from `@std/path/unstable-basename`.
21
- *
22
21
  * @param path Path to extract the name from.
23
22
  * @param suffix Suffix to remove from extracted name.
24
23
  *
25
24
  * @returns The basename of the path.
26
25
  */
27
- export declare function basename(path: string, suffix?: string): string;
26
+ export declare function basename(path: string | URL, suffix?: string): string;
28
27
  //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/basename.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAIhE"}
@@ -16,14 +16,13 @@ import { basename as windowsBasename } from "./windows/basename.js";
16
16
  *
17
17
  * if (Deno.build.os === "windows") {
18
18
  * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
19
+ * assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
19
20
  * } else {
20
21
  * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
22
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
21
23
  * }
22
24
  * ```
23
25
  *
24
- * Note: If you are working with file URLs,
25
- * use the new version of `basename` from `@std/path/unstable-basename`.
26
- *
27
26
  * @param path Path to extract the name from.
28
27
  * @param suffix Suffix to remove from extracted name.
29
28
  *
@@ -8,16 +8,15 @@
8
8
  *
9
9
  * if (Deno.build.os === "windows") {
10
10
  * assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
11
+ * assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
11
12
  * } else {
12
13
  * assertEquals(extname("/home/user/Documents/image.png"), ".png");
14
+ * assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
13
15
  * }
14
16
  * ```
15
17
  *
16
- * Note: If you are working with file URLs,
17
- * use the new version of `extname` from `@std/path/unstable-extname`.
18
- *
19
18
  * @param path Path with extension.
20
19
  * @returns The file extension. E.g. returns `.ts` for `file.ts`.
21
20
  */
22
- export declare function extname(path: string): string;
21
+ export declare function extname(path: string | URL): string;
23
22
  //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAElD"}
@@ -13,14 +13,13 @@ import { extname as windowsExtname } from "./windows/extname.js";
13
13
  *
14
14
  * if (Deno.build.os === "windows") {
15
15
  * assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
16
+ * assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
16
17
  * } else {
17
18
  * assertEquals(extname("/home/user/Documents/image.png"), ".png");
19
+ * assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
18
20
  * }
19
21
  * ```
20
22
  *
21
- * Note: If you are working with file URLs,
22
- * use the new version of `extname` from `@std/path/unstable-extname`.
23
- *
24
23
  * @param path Path with extension.
25
24
  * @returns The file extension. E.g. returns `.ts` for `file.ts`.
26
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.9/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
1
+ {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
@@ -8,16 +8,16 @@
8
8
  *
9
9
  * if (Deno.build.os === "windows") {
10
10
  * assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
11
+ * assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
11
12
  * } else {
12
13
  * assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
14
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
13
15
  * }
14
16
  * ```
15
17
  *
16
- * Note: If you are working with file URLs,
17
- * use the new version of `join` from `@std/path/unstable-join`.
18
- *
18
+ * @param path The path to join. This can be string or file URL.
19
19
  * @param paths Paths to be joined and normalized.
20
20
  * @returns The joined and normalized path.
21
21
  */
22
- export declare function join(...paths: string[]): string;
22
+ export declare function join(path: string | URL, ...paths: string[]): string;
23
23
  //# sourceMappingURL=join.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE"}
@@ -13,17 +13,17 @@ import { join as windowsJoin } from "./windows/join.js";
13
13
  *
14
14
  * if (Deno.build.os === "windows") {
15
15
  * assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
16
+ * assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
16
17
  * } else {
17
18
  * assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
19
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
18
20
  * }
19
21
  * ```
20
22
  *
21
- * Note: If you are working with file URLs,
22
- * use the new version of `join` from `@std/path/unstable-join`.
23
- *
23
+ * @param path The path to join. This can be string or file URL.
24
24
  * @param paths Paths to be joined and normalized.
25
25
  * @returns The joined and normalized path.
26
26
  */
27
- export function join(...paths) {
28
- return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
27
+ export function join(path, ...paths) {
28
+ return isWindows ? windowsJoin(path, ...paths) : posixJoin(path, ...paths);
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -10,6 +10,8 @@
10
10
  * assertEquals(basename("/home/user/Documents/"), "Documents");
11
11
  * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
12
12
  * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
13
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
14
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
13
15
  * ```
14
16
  *
15
17
  * @example Working with URLs
@@ -29,12 +31,9 @@
29
31
  * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
30
32
  * ```
31
33
  *
32
- * Note: If you are working with file URLs,
33
- * use the new version of `basename` from `@std/path/posix/unstable-basename`.
34
- *
35
34
  * @param path The path to extract the name from.
36
35
  * @param suffix The suffix to remove from extracted name.
37
36
  * @returns The extracted name.
38
37
  */
39
- export declare function basename(path: string, suffix?: string): string;
38
+ export declare function basename(path: string | URL, suffix?: string): string;
40
39
  //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAYhE"}
@@ -1,6 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
+ import { fromFileUrl } from "./from_file_url.js";
4
5
  import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
6
  import { isPosixPathSeparator } from "./_util.js";
6
7
  /**
@@ -15,6 +16,8 @@ import { isPosixPathSeparator } from "./_util.js";
15
16
  * assertEquals(basename("/home/user/Documents/"), "Documents");
16
17
  * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
17
18
  * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
19
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
20
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
18
21
  * ```
19
22
  *
20
23
  * @example Working with URLs
@@ -34,14 +37,14 @@ import { isPosixPathSeparator } from "./_util.js";
34
37
  * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
35
38
  * ```
36
39
  *
37
- * Note: If you are working with file URLs,
38
- * use the new version of `basename` from `@std/path/posix/unstable-basename`.
39
- *
40
40
  * @param path The path to extract the name from.
41
41
  * @param suffix The suffix to remove from extracted name.
42
42
  * @returns The extracted name.
43
43
  */
44
44
  export function basename(path, suffix = "") {
45
+ if (path instanceof URL) {
46
+ path = fromFileUrl(path);
47
+ }
45
48
  assertArgs(path, suffix);
46
49
  const lastSegment = lastPathSegment(path, isPosixPathSeparator);
47
50
  const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
@@ -9,6 +9,9 @@
9
9
  * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
10
10
  * assertEquals(extname("/home/user/Documents/"), "");
11
11
  * assertEquals(extname("/home/user/Documents/image.png"), ".png");
12
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
13
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
14
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
12
15
  * ```
13
16
  *
14
17
  * @example Working with URLs
@@ -27,11 +30,8 @@
27
30
  * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
28
31
  * ```
29
32
  *
30
- * Note: If you are working with file URLs,
31
- * use the new version of `extname` from `@std/path/posix/unstable-extname`.
32
- *
33
33
  * @param path The path to get the extension from.
34
34
  * @returns The extension (ex. for `file.ts` returns `.ts`).
35
35
  */
36
- export declare function extname(path: string): string;
36
+ export declare function extname(path: string | URL): string;
37
37
  //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAoDlD"}
@@ -3,6 +3,7 @@
3
3
  import { CHAR_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
5
5
  import { isPosixPathSeparator } from "./_util.js";
6
+ import { fromFileUrl } from "./from_file_url.js";
6
7
  /**
7
8
  * Return the extension of the `path` with leading period.
8
9
  *
@@ -14,6 +15,9 @@ import { isPosixPathSeparator } from "./_util.js";
14
15
  * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
15
16
  * assertEquals(extname("/home/user/Documents/"), "");
16
17
  * assertEquals(extname("/home/user/Documents/image.png"), ".png");
18
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
19
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
20
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
17
21
  * ```
18
22
  *
19
23
  * @example Working with URLs
@@ -32,13 +36,13 @@ import { isPosixPathSeparator } from "./_util.js";
32
36
  * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
33
37
  * ```
34
38
  *
35
- * Note: If you are working with file URLs,
36
- * use the new version of `extname` from `@std/path/posix/unstable-extname`.
37
- *
38
39
  * @param path The path to get the extension from.
39
40
  * @returns The extension (ex. for `file.ts` returns `.ts`).
40
41
  */
41
42
  export function extname(path) {
43
+ if (path instanceof URL) {
44
+ path = fromFileUrl(path);
45
+ }
42
46
  assertPath(path);
43
47
  let startDot = -1;
44
48
  let startPart = 0;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Converts a file URL to a path string.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
10
+ * ```
11
+ *
12
+ * @param url The file URL to convert.
13
+ * @returns The path string.
14
+ */
15
+ export declare function fromFileUrl(url: URL | string): string;
16
+ //# sourceMappingURL=from_file_url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
@@ -0,0 +1,21 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { assertArg } from "../_common/from_file_url.js";
4
+ /**
5
+ * Converts a file URL to a path string.
6
+ *
7
+ * @example Usage
8
+ * ```ts
9
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
10
+ * import { assertEquals } from "@std/assert";
11
+ *
12
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
13
+ * ```
14
+ *
15
+ * @param url The file URL to convert.
16
+ * @returns The path string.
17
+ */
18
+ export function fromFileUrl(url) {
19
+ url = assertArg(url);
20
+ return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
21
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.9/posix/is_absolute.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD"}
1
+ {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD"}
@@ -6,8 +6,8 @@
6
6
  * import { join } from "@std/path/posix/join";
7
7
  * import { assertEquals } from "@std/assert";
8
8
  *
9
- * const path = join("/foo", "bar", "baz/asdf", "quux", "..");
10
- * assertEquals(path, "/foo/bar/baz/asdf");
9
+ * assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
10
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
11
11
  * ```
12
12
  *
13
13
  * @example Working with URLs
@@ -23,11 +23,9 @@
23
23
  * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
24
24
  * ```
25
25
  *
26
- * Note: If you are working with file URLs,
27
- * use the new version of `join` from `@std/path/posix/unstable-join`.
28
- *
26
+ * @param path The path to join. This can be string or file URL.
29
27
  * @param paths The paths to join.
30
28
  * @returns The joined path.
31
29
  */
32
- export declare function join(...paths: string[]): string;
30
+ export declare function join(path?: URL | string, ...paths: string[]): string;
33
31
  //# sourceMappingURL=join.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CASpE"}
@@ -1,6 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertPath } from "../_common/assert_path.js";
4
+ import { fromFileUrl } from "./from_file_url.js";
4
5
  import { normalize } from "./normalize.js";
5
6
  /**
6
7
  * Join all given a sequence of `paths`,then normalizes the resulting path.
@@ -10,8 +11,8 @@ import { normalize } from "./normalize.js";
10
11
  * import { join } from "@std/path/posix/join";
11
12
  * import { assertEquals } from "@std/assert";
12
13
  *
13
- * const path = join("/foo", "bar", "baz/asdf", "quux", "..");
14
- * assertEquals(path, "/foo/bar/baz/asdf");
14
+ * assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
15
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
15
16
  * ```
16
17
  *
17
18
  * @example Working with URLs
@@ -27,15 +28,17 @@ import { normalize } from "./normalize.js";
27
28
  * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
28
29
  * ```
29
30
  *
30
- * Note: If you are working with file URLs,
31
- * use the new version of `join` from `@std/path/posix/unstable-join`.
32
- *
31
+ * @param path The path to join. This can be string or file URL.
33
32
  * @param paths The paths to join.
34
33
  * @returns The joined path.
35
34
  */
36
- export function join(...paths) {
37
- if (paths.length === 0)
35
+ export function join(path, ...paths) {
36
+ if (path === undefined)
38
37
  return ".";
38
+ if (path instanceof URL) {
39
+ path = fromFileUrl(path);
40
+ }
41
+ paths = path ? [path, ...paths] : paths;
39
42
  paths.forEach((path) => assertPath(path));
40
43
  const joined = paths.filter((path) => path.length > 0).join("/");
41
44
  return joined === "" ? "." : normalize(joined);
@@ -8,8 +8,8 @@
8
8
  * import { normalize } from "@std/path/posix/normalize";
9
9
  * import { assertEquals } from "@std/assert";
10
10
  *
11
- * const path = normalize("/foo/bar//baz/asdf/quux/..");
12
- * assertEquals(path, "/foo/bar/baz/asdf");
11
+ * assertEquals(normalize("/foo/bar//baz/asdf/quux/.."), "/foo/bar/baz/asdf");
12
+ * assertEquals(normalize(new URL("file:///foo/bar//baz/asdf/quux/..")), "/foo/bar/baz/asdf/");
13
13
  * ```
14
14
  *
15
15
  * @example Working with URLs
@@ -30,11 +30,8 @@
30
30
  * assertEquals(url.href, "https://deno.land/std/async/retry.ts");
31
31
  * ```
32
32
  *
33
- * Note: If you are working with file URLs,
34
- * use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
35
- *
36
33
  * @param path The path to normalize.
37
34
  * @returns The normalized path.
38
35
  */
39
- export declare function normalize(path: string): string;
36
+ export declare function normalize(path: string | URL): string;
40
37
  //# sourceMappingURL=normalize.d.ts.map