windmill-cli 1.394.2 → 1.394.4

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 (338) hide show
  1. package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/mod.js +0 -6
  2. package/esm/deps/jsr.io/@std/fs/1.0.3/_create_walk_entry.js +2 -2
  3. package/esm/deps/jsr.io/@std/fs/1.0.3/_is_same_path.js +1 -1
  4. package/esm/deps/jsr.io/@std/fs/1.0.3/_is_subdir.js +2 -2
  5. package/esm/deps/jsr.io/@std/fs/1.0.3/_to_path_string.js +1 -1
  6. package/esm/deps/jsr.io/@std/fs/1.0.3/copy.js +3 -3
  7. package/esm/deps/jsr.io/@std/fs/1.0.3/empty_dir.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_file.js +1 -1
  9. package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_link.js +1 -1
  10. package/esm/deps/jsr.io/@std/fs/1.0.3/ensure_symlink.js +2 -2
  11. package/esm/deps/jsr.io/@std/fs/1.0.3/expand_glob.js +6 -6
  12. package/esm/deps/jsr.io/@std/fs/1.0.3/walk.js +1 -1
  13. package/esm/deps/jsr.io/@std/io/0.224.8/types.js +15 -0
  14. package/esm/deps/jsr.io/@std/log/0.224.7/file_handler.js +1 -1
  15. package/esm/deps/jsr.io/@std/path/1.0.6/basename.js +36 -0
  16. package/esm/deps/jsr.io/@std/path/1.0.6/dirname.js +29 -0
  17. package/esm/deps/jsr.io/@std/path/1.0.6/extname.js +29 -0
  18. package/esm/deps/jsr.io/@std/path/1.0.6/join.js +29 -0
  19. package/esm/deps/jsr.io/@std/path/1.0.6/normalize.js +33 -0
  20. package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.js +32 -0
  21. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/dirname.js +18 -4
  22. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/extname.js +19 -4
  23. package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.js +29 -0
  24. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize.js +20 -2
  25. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/basename.js +21 -2
  26. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/dirname.js +18 -4
  27. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/extname.js +18 -4
  28. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join.js +19 -4
  29. package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize.js +20 -2
  30. package/esm/deps.js +6 -6
  31. package/esm/main.js +1 -1
  32. package/package.json +1 -1
  33. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.d.ts.map +1 -1
  34. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.d.ts.map +1 -1
  35. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.d.ts.map +1 -1
  36. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.d.ts.map +1 -1
  37. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.d.ts.map +1 -1
  38. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.d.ts.map +1 -1
  39. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.d.ts.map +1 -1
  40. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.d.ts.map +1 -1
  41. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/mod.d.ts +0 -6
  42. package/types/deps/jsr.io/@std/encoding/1.0.5/mod.d.ts.map +1 -0
  43. package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.d.ts.map +1 -1
  44. package/types/deps/jsr.io/@std/fs/1.0.3/expand_glob.d.ts +1 -1
  45. package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.d.ts.map +1 -1
  46. package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.d.ts.map +1 -1
  47. package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.d.ts.map +1 -1
  48. package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/types.d.ts +56 -5
  49. package/types/deps/jsr.io/@std/io/0.224.8/types.d.ts.map +1 -0
  50. package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts.map +1 -1
  51. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.d.ts.map +1 -1
  52. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.d.ts.map +1 -1
  53. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.d.ts.map +1 -1
  54. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.d.ts.map +1 -1
  55. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.d.ts.map +1 -1
  56. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.d.ts.map +1 -1
  57. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.d.ts.map +1 -1
  58. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.d.ts.map +1 -1
  59. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.d.ts.map +1 -1
  60. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.d.ts.map +1 -1
  61. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.d.ts.map +1 -1
  62. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.d.ts.map +1 -1
  63. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.d.ts.map +1 -1
  64. package/types/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
  65. package/types/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
  66. package/types/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
  67. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.d.ts.map +1 -1
  68. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.d.ts.map +1 -1
  69. package/types/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
  70. package/types/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
  71. package/types/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
  72. package/types/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
  73. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.d.ts.map +1 -1
  74. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.d.ts.map +1 -1
  75. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.d.ts.map +1 -1
  76. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.d.ts.map +1 -1
  77. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.d.ts.map +1 -1
  78. package/types/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
  79. package/types/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
  80. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.d.ts.map +1 -1
  81. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.d.ts.map +1 -1
  82. package/types/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
  83. package/types/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
  84. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.d.ts.map +1 -1
  85. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.d.ts.map +1 -1
  86. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.d.ts.map +1 -1
  87. package/types/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
  88. package/types/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
  89. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.d.ts.map +1 -1
  90. package/types/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
  91. package/types/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
  92. package/types/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
  93. package/types/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
  94. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.d.ts.map +1 -1
  95. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.d.ts.map +1 -1
  96. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.d.ts.map +1 -1
  97. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.d.ts.map +1 -1
  98. package/types/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
  99. package/types/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
  100. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.d.ts.map +1 -1
  101. package/types/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
  102. package/types/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
  103. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.d.ts.map +1 -1
  104. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.d.ts.map +1 -1
  105. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.d.ts.map +1 -1
  106. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.d.ts.map +1 -1
  107. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.d.ts.map +1 -1
  108. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.d.ts.map +1 -1
  109. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.d.ts.map +1 -1
  110. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.d.ts.map +1 -1
  111. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.d.ts.map +1 -1
  112. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.d.ts.map +1 -1
  113. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/types.d.ts.map +1 -1
  114. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.d.ts.map +1 -1
  115. package/types/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
  116. package/types/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
  117. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.d.ts.map +1 -1
  118. package/types/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
  119. package/types/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
  120. package/types/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
  121. package/types/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
  122. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.d.ts.map +1 -1
  123. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.d.ts.map +1 -1
  124. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.d.ts.map +1 -1
  125. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.d.ts.map +1 -1
  126. package/types/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
  127. package/types/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
  128. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.d.ts.map +1 -1
  129. package/types/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
  130. package/types/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
  131. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.d.ts.map +1 -1
  132. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.d.ts.map +1 -1
  133. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.d.ts.map +1 -1
  134. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.d.ts.map +1 -1
  135. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.d.ts.map +1 -1
  136. package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.d.ts.map +1 -1
  137. package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.d.ts +1 -1
  138. package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.d.ts +1 -1
  139. package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.d.ts +1 -1
  140. package/types/deps.d.ts +6 -6
  141. package/types/main.d.ts +1 -1
  142. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32_stream.js +0 -92
  143. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex.js +0 -77
  144. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.js +0 -92
  145. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64_stream.js +0 -92
  146. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.js +0 -93
  147. package/esm/deps/jsr.io/@std/encoding/1.0.4/hex_stream.js +0 -81
  148. package/esm/deps/jsr.io/@std/path/1.0.4/basename.js +0 -10
  149. package/esm/deps/jsr.io/@std/path/1.0.4/dirname.js +0 -8
  150. package/esm/deps/jsr.io/@std/path/1.0.4/extname.js +0 -8
  151. package/esm/deps/jsr.io/@std/path/1.0.4/join.js +0 -8
  152. package/esm/deps/jsr.io/@std/path/1.0.4/normalize.js +0 -8
  153. package/esm/deps/jsr.io/@std/path/1.0.4/posix/basename.js +0 -13
  154. package/esm/deps/jsr.io/@std/path/1.0.4/posix/join.js +0 -14
  155. package/esm/deps/jsr.io/@std/path/1.0.4/types.js +0 -3
  156. package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts +0 -48
  157. package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts.map +0 -1
  158. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts +0 -42
  159. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts.map +0 -1
  160. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts +0 -48
  161. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts.map +0 -1
  162. package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts +0 -48
  163. package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts.map +0 -1
  164. package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts +0 -49
  165. package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts.map +0 -1
  166. package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts +0 -48
  167. package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts.map +0 -1
  168. package/types/deps/jsr.io/@std/encoding/1.0.4/mod.d.ts.map +0 -1
  169. package/types/deps/jsr.io/@std/io/0.224.7/types.d.ts.map +0 -1
  170. package/types/deps/jsr.io/@std/path/1.0.4/_os.d.ts.map +0 -1
  171. package/types/deps/jsr.io/@std/path/1.0.4/basename.d.ts +0 -53
  172. package/types/deps/jsr.io/@std/path/1.0.4/basename.d.ts.map +0 -1
  173. package/types/deps/jsr.io/@std/path/1.0.4/dirname.d.ts +0 -43
  174. package/types/deps/jsr.io/@std/path/1.0.4/dirname.d.ts.map +0 -1
  175. package/types/deps/jsr.io/@std/path/1.0.4/extname.d.ts +0 -43
  176. package/types/deps/jsr.io/@std/path/1.0.4/extname.d.ts.map +0 -1
  177. package/types/deps/jsr.io/@std/path/1.0.4/join.d.ts +0 -39
  178. package/types/deps/jsr.io/@std/path/1.0.4/join.d.ts.map +0 -1
  179. package/types/deps/jsr.io/@std/path/1.0.4/normalize.d.ts +0 -51
  180. package/types/deps/jsr.io/@std/path/1.0.4/normalize.d.ts.map +0 -1
  181. package/types/deps/jsr.io/@std/path/1.0.4/posix/basename.d.ts +0 -43
  182. package/types/deps/jsr.io/@std/path/1.0.4/posix/basename.d.ts.map +0 -1
  183. package/types/deps/jsr.io/@std/path/1.0.4/posix/dirname.d.ts +0 -36
  184. package/types/deps/jsr.io/@std/path/1.0.4/posix/dirname.d.ts.map +0 -1
  185. package/types/deps/jsr.io/@std/path/1.0.4/posix/extname.d.ts +0 -43
  186. package/types/deps/jsr.io/@std/path/1.0.4/posix/extname.d.ts.map +0 -1
  187. package/types/deps/jsr.io/@std/path/1.0.4/posix/join.d.ts +0 -36
  188. package/types/deps/jsr.io/@std/path/1.0.4/posix/join.d.ts.map +0 -1
  189. package/types/deps/jsr.io/@std/path/1.0.4/posix/normalize.d.ts +0 -39
  190. package/types/deps/jsr.io/@std/path/1.0.4/posix/normalize.d.ts.map +0 -1
  191. package/types/deps/jsr.io/@std/path/1.0.4/windows/basename.d.ts +0 -43
  192. package/types/deps/jsr.io/@std/path/1.0.4/windows/basename.d.ts.map +0 -1
  193. package/types/deps/jsr.io/@std/path/1.0.4/windows/dirname.d.ts +0 -35
  194. package/types/deps/jsr.io/@std/path/1.0.4/windows/dirname.d.ts.map +0 -1
  195. package/types/deps/jsr.io/@std/path/1.0.4/windows/extname.d.ts +0 -35
  196. package/types/deps/jsr.io/@std/path/1.0.4/windows/extname.d.ts.map +0 -1
  197. package/types/deps/jsr.io/@std/path/1.0.4/windows/join.d.ts +0 -36
  198. package/types/deps/jsr.io/@std/path/1.0.4/windows/join.d.ts.map +0 -1
  199. package/types/deps/jsr.io/@std/path/1.0.4/windows/normalize.d.ts +0 -39
  200. package/types/deps/jsr.io/@std/path/1.0.4/windows/normalize.d.ts.map +0 -1
  201. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.js +0 -0
  202. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.js +0 -0
  203. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.js +0 -0
  204. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.js +0 -0
  205. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.js +0 -0
  206. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.js +0 -0
  207. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.js +0 -0
  208. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.js +0 -0
  209. /package/esm/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.js +0 -0
  210. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.js +0 -0
  211. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.js +0 -0
  212. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.js +0 -0
  213. /package/esm/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.js +0 -0
  214. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.js +0 -0
  215. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.js +0 -0
  216. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.js +0 -0
  217. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.js +0 -0
  218. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.js +0 -0
  219. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.js +0 -0
  220. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.js +0 -0
  221. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.js +0 -0
  222. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.js +0 -0
  223. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.js +0 -0
  224. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.js +0 -0
  225. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.js +0 -0
  226. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.js +0 -0
  227. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_os.js +0 -0
  228. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.js +0 -0
  229. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.js +0 -0
  230. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.js +0 -0
  231. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.js +0 -0
  232. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.js +0 -0
  233. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.js +0 -0
  234. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.js +0 -0
  235. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.js +0 -0
  236. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.js +0 -0
  237. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.js +0 -0
  238. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.js +0 -0
  239. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.js +0 -0
  240. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.js +0 -0
  241. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.js +0 -0
  242. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.js +0 -0
  243. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.js +0 -0
  244. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.js +0 -0
  245. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.js +0 -0
  246. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.js +0 -0
  247. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.js +0 -0
  248. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.js +0 -0
  249. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.js +0 -0
  250. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.js +0 -0
  251. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.js +0 -0
  252. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.js +0 -0
  253. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.js +0 -0
  254. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.js +0 -0
  255. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.js +0 -0
  256. /package/esm/deps/jsr.io/@std/{io/0.224.7 → path/1.0.6}/types.js +0 -0
  257. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.js +0 -0
  258. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.js +0 -0
  259. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.js +0 -0
  260. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.js +0 -0
  261. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.js +0 -0
  262. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.js +0 -0
  263. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.js +0 -0
  264. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.js +0 -0
  265. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.js +0 -0
  266. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.js +0 -0
  267. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.js +0 -0
  268. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.js +0 -0
  269. /package/esm/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.js +0 -0
  270. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_base32_common.d.ts +0 -0
  271. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/_validate_binary_like.d.ts +0 -0
  272. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/ascii85.d.ts +0 -0
  273. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base32.d.ts +0 -0
  274. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base58.d.ts +0 -0
  275. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64.d.ts +0 -0
  276. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/base64url.d.ts +0 -0
  277. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/hex.d.ts +0 -0
  278. /package/types/deps/jsr.io/@std/encoding/{1.0.4 → 1.0.5}/varint.d.ts +0 -0
  279. /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/_constants.d.ts +0 -0
  280. /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/copy.d.ts +0 -0
  281. /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/read_all.d.ts +0 -0
  282. /package/types/deps/jsr.io/@std/io/{0.224.7 → 0.224.8}/write_all.d.ts +0 -0
  283. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/assert_path.d.ts +0 -0
  284. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/basename.d.ts +0 -0
  285. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/common.d.ts +0 -0
  286. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/constants.d.ts +0 -0
  287. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/dirname.d.ts +0 -0
  288. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/format.d.ts +0 -0
  289. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/from_file_url.d.ts +0 -0
  290. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/glob_to_reg_exp.d.ts +0 -0
  291. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize.d.ts +0 -0
  292. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/normalize_string.d.ts +0 -0
  293. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/relative.d.ts +0 -0
  294. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/strip_trailing_separators.d.ts +0 -0
  295. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_common/to_file_url.d.ts +0 -0
  296. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/_os.d.ts +0 -0
  297. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/common.d.ts +0 -0
  298. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/constants.d.ts +0 -0
  299. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/format.d.ts +0 -0
  300. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/from_file_url.d.ts +0 -0
  301. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/glob_to_regexp.d.ts +0 -0
  302. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_absolute.d.ts +0 -0
  303. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/is_glob.d.ts +0 -0
  304. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/join_globs.d.ts +0 -0
  305. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/mod.d.ts +0 -0
  306. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/normalize_glob.d.ts +0 -0
  307. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/parse.d.ts +0 -0
  308. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/_util.d.ts +0 -0
  309. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/constants.d.ts +0 -0
  310. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/format.d.ts +0 -0
  311. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/from_file_url.d.ts +0 -0
  312. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/glob_to_regexp.d.ts +0 -0
  313. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/is_absolute.d.ts +0 -0
  314. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/join_globs.d.ts +0 -0
  315. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/normalize_glob.d.ts +0 -0
  316. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/parse.d.ts +0 -0
  317. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/relative.d.ts +0 -0
  318. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/resolve.d.ts +0 -0
  319. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_file_url.d.ts +0 -0
  320. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/posix/to_namespaced_path.d.ts +0 -0
  321. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/relative.d.ts +0 -0
  322. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/resolve.d.ts +0 -0
  323. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_file_url.d.ts +0 -0
  324. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/to_namespaced_path.d.ts +0 -0
  325. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/types.d.ts +0 -0
  326. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/_util.d.ts +0 -0
  327. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/constants.d.ts +0 -0
  328. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/format.d.ts +0 -0
  329. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/from_file_url.d.ts +0 -0
  330. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/glob_to_regexp.d.ts +0 -0
  331. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/is_absolute.d.ts +0 -0
  332. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/join_globs.d.ts +0 -0
  333. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/normalize_glob.d.ts +0 -0
  334. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/parse.d.ts +0 -0
  335. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/relative.d.ts +0 -0
  336. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/resolve.d.ts +0 -0
  337. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_file_url.d.ts +0 -0
  338. /package/types/deps/jsr.io/@std/path/{1.0.4 → 1.0.6}/windows/to_namespaced_path.d.ts +0 -0
@@ -1,77 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // Copyright (c) 2014 Jameson Little. MIT License.
3
- // This module is browser compatible.
4
- /**
5
- * Utilities for
6
- * {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7 | base32hex}
7
- * encoding and decoding.
8
- *
9
- * @experimental **UNSTABLE**: New API, yet to be vetted.
10
- *
11
- * Modified from {@link [base32]}.
12
- *
13
- * This module is browser compatible.
14
- *
15
- * ```ts
16
- * import { encodeBase32Hex, decodeBase32Hex } from "@std/encoding/base32hex";
17
- * import { assertEquals } from "@std/assert";
18
- *
19
- * assertEquals(encodeBase32Hex("foobar"), "CPNMUOJ1E8======");
20
- *
21
- * assertEquals(
22
- * decodeBase32Hex("CPNMUOJ1E8======"),
23
- * new TextEncoder().encode("foobar")
24
- * );
25
- * ```
26
- *
27
- * @module
28
- */
29
- import { decode, encode } from "./_base32_common.js";
30
- const lookup = "0123456789ABCDEFGHIJKLMNOPQRSTUV".split("");
31
- const revLookup = [];
32
- lookup.forEach((c, i) => revLookup[c.charCodeAt(0)] = i);
33
- /**
34
- * Decodes a base32hex-encoded string.
35
- *
36
- * @experimental **UNSTABLE**: New API, yet to be vetted.
37
- *
38
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
39
- *
40
- * @param b32 The base32hex-encoded string to decode.
41
- * @returns The decoded data.
42
- *
43
- * @example Usage
44
- * ```ts
45
- * import { decodeBase32Hex } from "@std/encoding/base32hex";
46
- * import { assertEquals } from "@std/assert";
47
- *
48
- * assertEquals(
49
- * decodeBase32Hex("6PHJCC3360======"),
50
- * new TextEncoder().encode("6c60c0"),
51
- * );
52
- * ```
53
- */
54
- export function decodeBase32Hex(b32) {
55
- return decode(b32, lookup);
56
- }
57
- /**
58
- * Converts data into a base32hex-encoded string.
59
- *
60
- * @experimental **UNSTABLE**: New API, yet to be vetted.
61
- *
62
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
63
- *
64
- * @param data The data to encode.
65
- * @returns The base32hex-encoded string.
66
- *
67
- * @example Usage
68
- * ```ts
69
- * import { encodeBase32Hex } from "@std/encoding/base32hex";
70
- * import { assertEquals } from "@std/assert";
71
- *
72
- * assertEquals(encodeBase32Hex("6c60c0"), "6PHJCC3360======");
73
- * ```
74
- */
75
- export function encodeBase32Hex(data) {
76
- return encode(data, lookup);
77
- }
@@ -1,92 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Utilities for encoding and decoding to and from base32hex in a streaming manner.
5
- *
6
- * @experimental **UNSTABLE**: New API, yet to be vetted.
7
- *
8
- * @module
9
- */
10
- import { decodeBase32Hex, encodeBase32Hex } from "./base32hex.js";
11
- /**
12
- * Converts a Uint8Array stream into a base32hex-encoded stream.
13
- *
14
- * @experimental **UNSTABLE**: New API, yet to be vetted.
15
- *
16
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
17
- *
18
- * @example Usage
19
- * ```ts
20
- * import { assertEquals } from "@std/assert";
21
- * import { encodeBase32Hex } from "@std/encoding/base32hex";
22
- * import { Base32HexEncoderStream } from "@std/encoding/base32hex-stream";
23
- * import { toText } from "@std/streams/to-text";
24
- *
25
- * const stream = ReadableStream.from(["Hello,", " world!"])
26
- * .pipeThrough(new TextEncoderStream())
27
- * .pipeThrough(new Base32HexEncoderStream());
28
- *
29
- * assertEquals(await toText(stream), encodeBase32Hex(new TextEncoder().encode("Hello, world!")));
30
- * ```
31
- */
32
- export class Base32HexEncoderStream extends TransformStream {
33
- constructor() {
34
- let push = new Uint8Array(0);
35
- super({
36
- transform(chunk, controller) {
37
- const concat = new Uint8Array(push.length + chunk.length);
38
- concat.set(push);
39
- concat.set(chunk, push.length);
40
- const remainder = -concat.length % 5;
41
- controller.enqueue(encodeBase32Hex(concat.slice(0, remainder || undefined)));
42
- push = remainder ? concat.slice(remainder) : new Uint8Array(0);
43
- },
44
- flush(controller) {
45
- if (push.length) {
46
- controller.enqueue(encodeBase32Hex(push));
47
- }
48
- },
49
- });
50
- }
51
- }
52
- /**
53
- * Decodes a base32hex-encoded stream into a Uint8Array stream.
54
- *
55
- * @experimental **UNSTABLE**: New API, yet to be vetted.
56
- *
57
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
58
- *
59
- * @example Usage
60
- * ```ts
61
- * import { assertEquals } from "@std/assert";
62
- * import { Base32HexDecoderStream } from "@std/encoding/base32hex-stream";
63
- * import { toText } from "@std/streams/to-text";
64
- *
65
- * const stream = ReadableStream.from(["91IMOR3F5GG7ERRI", "DHI22==="])
66
- * .pipeThrough(new Base32HexDecoderStream())
67
- * .pipeThrough(new TextDecoderStream());
68
- *
69
- * assertEquals(await toText(stream), "Hello, world!");
70
- * ```
71
- */
72
- export class Base32HexDecoderStream extends TransformStream {
73
- constructor() {
74
- let push = "";
75
- super({
76
- transform(chunk, controller) {
77
- push += chunk;
78
- if (push.length < 8) {
79
- return;
80
- }
81
- const remainder = -push.length % 8;
82
- controller.enqueue(decodeBase32Hex(push.slice(0, remainder || undefined)));
83
- push = remainder ? chunk.slice(remainder) : "";
84
- },
85
- flush(controller) {
86
- if (push.length) {
87
- controller.enqueue(decodeBase32Hex(push));
88
- }
89
- },
90
- });
91
- }
92
- }
@@ -1,92 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Utilities for encoding and decoding to and from base64 in a streaming manner.
5
- *
6
- * @experimental **UNSTABLE**: New API, yet to be vetted.
7
- *
8
- * @module
9
- */
10
- import { decodeBase64, encodeBase64 } from "./base64.js";
11
- /**
12
- * Converts a Uint8Array stream into a base64-encoded stream.
13
- *
14
- * @experimental **UNSTABLE**: New API, yet to be vetted.
15
- *
16
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
17
- *
18
- * @example Usage
19
- * ```ts
20
- * import { assertEquals } from "@std/assert";
21
- * import { encodeBase64 } from "@std/encoding/base64";
22
- * import { Base64EncoderStream } from "@std/encoding/base64-stream";
23
- * import { toText } from "@std/streams/to-text";
24
- *
25
- * const stream = ReadableStream.from(["Hello,", " world!"])
26
- * .pipeThrough(new TextEncoderStream())
27
- * .pipeThrough(new Base64EncoderStream());
28
- *
29
- * assertEquals(await toText(stream), encodeBase64(new TextEncoder().encode("Hello, world!")));
30
- * ```
31
- */
32
- export class Base64EncoderStream extends TransformStream {
33
- constructor() {
34
- let push = new Uint8Array(0);
35
- super({
36
- transform(chunk, controller) {
37
- const concat = new Uint8Array(push.length + chunk.length);
38
- concat.set(push);
39
- concat.set(chunk, push.length);
40
- const remainder = -concat.length % 3;
41
- controller.enqueue(encodeBase64(concat.slice(0, remainder || undefined)));
42
- push = remainder ? concat.slice(remainder) : new Uint8Array(0);
43
- },
44
- flush(controller) {
45
- if (push.length) {
46
- controller.enqueue(encodeBase64(push));
47
- }
48
- },
49
- });
50
- }
51
- }
52
- /**
53
- * Decodes a base64-encoded stream into a Uint8Array stream.
54
- *
55
- * @experimental **UNSTABLE**: New API, yet to be vetted.
56
- *
57
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
58
- *
59
- * @example Usage
60
- * ```ts
61
- * import { assertEquals } from "@std/assert";
62
- * import { Base64DecoderStream } from "@std/encoding/base64-stream";
63
- * import { toText } from "@std/streams/to-text";
64
- *
65
- * const stream = ReadableStream.from(["SGVsbG8s", "IHdvcmxkIQ=="])
66
- * .pipeThrough(new Base64DecoderStream())
67
- * .pipeThrough(new TextDecoderStream());
68
- *
69
- * assertEquals(await toText(stream), "Hello, world!");
70
- * ```
71
- */
72
- export class Base64DecoderStream extends TransformStream {
73
- constructor() {
74
- let push = "";
75
- super({
76
- transform(chunk, controller) {
77
- push += chunk;
78
- if (push.length < 4) {
79
- return;
80
- }
81
- const remainder = -push.length % 4;
82
- controller.enqueue(decodeBase64(push.slice(0, remainder || undefined)));
83
- push = remainder ? push.slice(remainder) : "";
84
- },
85
- flush(controller) {
86
- if (push.length) {
87
- controller.enqueue(decodeBase64(push));
88
- }
89
- },
90
- });
91
- }
92
- }
@@ -1,93 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Utilities for encoding and decoding to and from base64url in a streaming manner.
5
- *
6
- * @experimental **UNSTABLE**: New API, yet to be vetted.
7
- *
8
- * @module
9
- */
10
- import { decodeBase64Url, encodeBase64Url } from "./base64url.js";
11
- /**
12
- * Converts a Uint8Array stream into a base64url-encoded stream.
13
- *
14
- * @experimental **UNSTABLE**: New API, yet to be vetted.
15
- *
16
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
17
- *
18
- * @example Usage
19
- * ```ts
20
- * import { assertEquals } from "@std/assert";
21
- * import { encodeBase64Url } from "@std/encoding/base64url";
22
- * import { Base64UrlEncoderStream } from "@std/encoding/base64url-stream";
23
- * import { toText } from "@std/streams/to-text";
24
- *
25
- * const stream = ReadableStream.from(["Hello,", " world!"])
26
- * .pipeThrough(new TextEncoderStream())
27
- * .pipeThrough(new Base64UrlEncoderStream());
28
- *
29
- * assertEquals(await toText(stream), encodeBase64Url(new TextEncoder().encode("Hello, world!")));
30
- * ```
31
- */
32
- export class Base64UrlEncoderStream extends TransformStream {
33
- constructor() {
34
- let push = new Uint8Array(0);
35
- super({
36
- transform(chunk, controller) {
37
- const concat = new Uint8Array(push.length + chunk.length);
38
- concat.set(push);
39
- concat.set(chunk, push.length);
40
- const remainder = -concat.length % 3;
41
- controller.enqueue(encodeBase64Url(concat.slice(0, remainder || undefined)));
42
- push = remainder ? concat.slice(remainder) : new Uint8Array(0);
43
- },
44
- flush(controller) {
45
- if (push.length) {
46
- controller.enqueue(encodeBase64Url(push));
47
- }
48
- },
49
- });
50
- }
51
- }
52
- /**
53
- * Decodes a base64url-encoded stream into a Uint8Array stream.
54
- *
55
- * @experimental **UNSTABLE**: New API, yet to be vetted.
56
- *
57
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
58
- *
59
- * @example Usage
60
- * ```ts
61
- * import { assertEquals } from "@std/assert";
62
- * import { encodeBase64Url } from "@std/encoding/base64url";
63
- * import { Base64UrlDecoderStream } from "@std/encoding/base64url-stream";
64
- * import { toText } from "@std/streams/to-text";
65
- *
66
- * const stream = ReadableStream.from(["SGVsbG8s", "IHdvcmxkIQ"])
67
- * .pipeThrough(new Base64UrlDecoderStream())
68
- * .pipeThrough(new TextDecoderStream());
69
- *
70
- * assertEquals(await toText(stream), "Hello, world!");
71
- * ```
72
- */
73
- export class Base64UrlDecoderStream extends TransformStream {
74
- constructor() {
75
- let push = "";
76
- super({
77
- transform(chunk, controller) {
78
- push += chunk;
79
- if (push.length < 4) {
80
- return;
81
- }
82
- const remainder = -push.length % 4;
83
- controller.enqueue(decodeBase64Url(push.slice(0, remainder || undefined)));
84
- push = remainder ? push.slice(remainder) : "";
85
- },
86
- flush(controller) {
87
- if (push.length) {
88
- controller.enqueue(decodeBase64Url(push));
89
- }
90
- },
91
- });
92
- }
93
- }
@@ -1,81 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- /**
4
- * Utilities for encoding and decoding to and from hex in a streaming manner.
5
- *
6
- * @experimental **UNSTABLE**: New API, yet to be vetted.
7
- *
8
- * @module
9
- */
10
- import { decodeHex, encodeHex } from "./hex.js";
11
- /**
12
- * Converts a Uint8Array stream into a hex-encoded stream.
13
- *
14
- * @experimental **UNSTABLE**: New API, yet to be vetted.
15
- *
16
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-8}
17
- *
18
- * @example Usage
19
- * ```ts
20
- * import { assertEquals } from "@std/assert";
21
- * import { encodeHex } from "@std/encoding/hex";
22
- * import { HexEncoderStream } from "@std/encoding/hex-stream";
23
- * import { toText } from "@std/streams/to-text";
24
- *
25
- * const stream = ReadableStream.from(["Hello,", " world!"])
26
- * .pipeThrough(new TextEncoderStream())
27
- * .pipeThrough(new HexEncoderStream());
28
- *
29
- * assertEquals(await toText(stream), encodeHex(new TextEncoder().encode("Hello, world!")));
30
- * ```
31
- */
32
- export class HexEncoderStream extends TransformStream {
33
- constructor() {
34
- super({
35
- transform(chunk, controller) {
36
- controller.enqueue(encodeHex(chunk));
37
- },
38
- });
39
- }
40
- }
41
- /**
42
- * Decodes a hex-encoded stream into a Uint8Array stream.
43
- *
44
- * @experimental **UNSTABLE**: New API, yet to be vetted.
45
- *
46
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-8}
47
- *
48
- * @example Usage
49
- * ```ts
50
- * import { assertEquals } from "@std/assert";
51
- * import { HexDecoderStream } from "@std/encoding/hex-stream";
52
- * import { toText } from "@std/streams/to-text";
53
- *
54
- * const stream = ReadableStream.from(["48656c6c6f2c", "20776f726c6421"])
55
- * .pipeThrough(new HexDecoderStream())
56
- * .pipeThrough(new TextDecoderStream());
57
- *
58
- * assertEquals(await toText(stream), "Hello, world!");
59
- * ```
60
- */
61
- export class HexDecoderStream extends TransformStream {
62
- constructor() {
63
- let push = "";
64
- super({
65
- transform(chunk, controller) {
66
- push += chunk;
67
- if (push.length < 2) {
68
- return;
69
- }
70
- const remainder = -push.length % 2;
71
- controller.enqueue(decodeHex(push.slice(0, remainder || undefined)));
72
- push = remainder ? push.slice(remainder) : "";
73
- },
74
- flush(controller) {
75
- if (push.length) {
76
- controller.enqueue(decodeHex(push));
77
- }
78
- },
79
- });
80
- }
81
- }
@@ -1,10 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { basename as posixBasename } from "./posix/basename.js";
5
- import { basename as windowsBasename } from "./windows/basename.js";
6
- export function basename(path, suffix = "") {
7
- return isWindows
8
- ? windowsBasename(path, suffix)
9
- : posixBasename(path, suffix);
10
- }
@@ -1,8 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { dirname as posixDirname } from "./posix/dirname.js";
5
- import { dirname as windowsDirname } from "./windows/dirname.js";
6
- export function dirname(path) {
7
- return isWindows ? windowsDirname(path) : posixDirname(path);
8
- }
@@ -1,8 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { extname as posixExtname } from "./posix/extname.js";
5
- import { extname as windowsExtname } from "./windows/extname.js";
6
- export function extname(path) {
7
- return isWindows ? windowsExtname(path) : posixExtname(path);
8
- }
@@ -1,8 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { join as posixJoin } from "./posix/join.js";
5
- import { join as windowsJoin } from "./windows/join.js";
6
- export function join(path, ...paths) {
7
- return isWindows ? windowsJoin(path, ...paths) : posixJoin(path, ...paths);
8
- }
@@ -1,8 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { isWindows } from "./_os.js";
4
- import { normalize as posixNormalize } from "./posix/normalize.js";
5
- import { normalize as windowsNormalize } from "./windows/normalize.js";
6
- export function normalize(path) {
7
- return isWindows ? windowsNormalize(path) : posixNormalize(path);
8
- }
@@ -1,13 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
- import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
- import { isPosixPathSeparator } from "./_util.js";
6
- import { fromFileUrl } from "./from_file_url.js";
7
- export function basename(path, suffix = "") {
8
- path = path instanceof URL ? fromFileUrl(path) : path;
9
- assertArgs(path, suffix);
10
- const lastSegment = lastPathSegment(path, isPosixPathSeparator);
11
- const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
12
- return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
13
- }
@@ -1,14 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { assertPath } from "../_common/assert_path.js";
4
- import { normalize } from "./normalize.js";
5
- import { fromFileUrl } from "./from_file_url.js";
6
- export function join(path, ...paths) {
7
- if (path === undefined)
8
- return ".";
9
- path = path instanceof URL ? fromFileUrl(path) : path;
10
- paths = path ? [path, ...paths] : paths;
11
- paths.forEach((path) => assertPath(path));
12
- const joined = paths.filter((path) => path.length > 0).join("/");
13
- return joined === "" ? "." : normalize(joined);
14
- }
@@ -1,3 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- export {};
@@ -1,48 +0,0 @@
1
- /**
2
- * Converts a Uint8Array stream into a base32-encoded stream.
3
- *
4
- * @experimental **UNSTABLE**: New API, yet to be vetted.
5
- *
6
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
7
- *
8
- * @example Usage
9
- * ```ts
10
- * import { assertEquals } from "@std/assert";
11
- * import { encodeBase32 } from "@std/encoding/base32";
12
- * import { Base32EncoderStream } from "@std/encoding/base32-stream";
13
- * import { toText } from "@std/streams/to-text";
14
- *
15
- * const stream = ReadableStream.from(["Hello,", " world!"])
16
- * .pipeThrough(new TextEncoderStream())
17
- * .pipeThrough(new Base32EncoderStream());
18
- *
19
- * assertEquals(await toText(stream), encodeBase32(new TextEncoder().encode("Hello, world!")));
20
- * ```
21
- */
22
- export declare class Base32EncoderStream extends TransformStream<Uint8Array, string> {
23
- constructor();
24
- }
25
- /**
26
- * Decodes a base32-encoded stream into a Uint8Array stream.
27
- *
28
- * @experimental **UNSTABLE**: New API, yet to be vetted.
29
- *
30
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
31
- *
32
- * @example Usage
33
- * ```ts
34
- * import { assertEquals } from "@std/assert";
35
- * import { Base32DecoderStream } from "@std/encoding/base32-stream";
36
- * import { toText } from "@std/streams/to-text";
37
- *
38
- * const stream = ReadableStream.from(["JBSWY3DPEBLW64TMMQQQ===="])
39
- * .pipeThrough(new Base32DecoderStream())
40
- * .pipeThrough(new TextDecoderStream());
41
- *
42
- * assertEquals(await toText(stream), "Hello World!");
43
- * ```
44
- */
45
- export declare class Base32DecoderStream extends TransformStream<string, Uint8Array> {
46
- constructor();
47
- }
48
- //# sourceMappingURL=base32_stream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base32_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB3E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAoB3E"}
@@ -1,42 +0,0 @@
1
- /**
2
- * Decodes a base32hex-encoded string.
3
- *
4
- * @experimental **UNSTABLE**: New API, yet to be vetted.
5
- *
6
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
7
- *
8
- * @param b32 The base32hex-encoded string to decode.
9
- * @returns The decoded data.
10
- *
11
- * @example Usage
12
- * ```ts
13
- * import { decodeBase32Hex } from "@std/encoding/base32hex";
14
- * import { assertEquals } from "@std/assert";
15
- *
16
- * assertEquals(
17
- * decodeBase32Hex("6PHJCC3360======"),
18
- * new TextEncoder().encode("6c60c0"),
19
- * );
20
- * ```
21
- */
22
- export declare function decodeBase32Hex(b32: string): Uint8Array;
23
- /**
24
- * Converts data into a base32hex-encoded string.
25
- *
26
- * @experimental **UNSTABLE**: New API, yet to be vetted.
27
- *
28
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
29
- *
30
- * @param data The data to encode.
31
- * @returns The base32hex-encoded string.
32
- *
33
- * @example Usage
34
- * ```ts
35
- * import { encodeBase32Hex } from "@std/encoding/base32hex";
36
- * import { assertEquals } from "@std/assert";
37
- *
38
- * assertEquals(encodeBase32Hex("6c60c0"), "6PHJCC3360======");
39
- * ```
40
- */
41
- export declare function encodeBase32Hex(data: ArrayBuffer | Uint8Array | string): string;
42
- //# sourceMappingURL=base32hex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base32hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32hex.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEvD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Converts a Uint8Array stream into a base32hex-encoded stream.
3
- *
4
- * @experimental **UNSTABLE**: New API, yet to be vetted.
5
- *
6
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
7
- *
8
- * @example Usage
9
- * ```ts
10
- * import { assertEquals } from "@std/assert";
11
- * import { encodeBase32Hex } from "@std/encoding/base32hex";
12
- * import { Base32HexEncoderStream } from "@std/encoding/base32hex-stream";
13
- * import { toText } from "@std/streams/to-text";
14
- *
15
- * const stream = ReadableStream.from(["Hello,", " world!"])
16
- * .pipeThrough(new TextEncoderStream())
17
- * .pipeThrough(new Base32HexEncoderStream());
18
- *
19
- * assertEquals(await toText(stream), encodeBase32Hex(new TextEncoder().encode("Hello, world!")));
20
- * ```
21
- */
22
- export declare class Base32HexEncoderStream extends TransformStream<Uint8Array, string> {
23
- constructor();
24
- }
25
- /**
26
- * Decodes a base32hex-encoded stream into a Uint8Array stream.
27
- *
28
- * @experimental **UNSTABLE**: New API, yet to be vetted.
29
- *
30
- * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
31
- *
32
- * @example Usage
33
- * ```ts
34
- * import { assertEquals } from "@std/assert";
35
- * import { Base32HexDecoderStream } from "@std/encoding/base32hex-stream";
36
- * import { toText } from "@std/streams/to-text";
37
- *
38
- * const stream = ReadableStream.from(["91IMOR3F5GG7ERRI", "DHI22==="])
39
- * .pipeThrough(new Base32HexDecoderStream())
40
- * .pipeThrough(new TextDecoderStream());
41
- *
42
- * assertEquals(await toText(stream), "Hello, world!");
43
- * ```
44
- */
45
- export declare class Base32HexDecoderStream extends TransformStream<string, Uint8Array> {
46
- constructor();
47
- }
48
- //# sourceMappingURL=base32hex_stream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base32hex_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB5C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAsB5C"}