@skmtc/core 0.0.742 → 0.0.743

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 (369) hide show
  1. package/LICENSE +105 -0
  2. package/README.md +85 -0
  3. package/esm/context/CoreContext.js +1 -1
  4. package/esm/context/GenerateContext.js +1 -1
  5. package/esm/context/ParseContext.js +1 -1
  6. package/esm/context/RenderContext.js +1 -1
  7. package/esm/dsl/model/ModelDriver.js +1 -1
  8. package/esm/dsl/operation/OperationDriver.js +1 -1
  9. package/esm/helpers/isImported.js +1 -1
  10. package/esm/helpers/toResolvedArtifactPath.js +1 -1
  11. package/esm/run/toV3JsonDocument.js +1 -1
  12. package/package.json +4 -4
  13. package/script/context/CoreContext.js +2 -2
  14. package/script/context/GenerateContext.js +2 -2
  15. package/script/context/ParseContext.js +2 -2
  16. package/script/context/RenderContext.js +2 -2
  17. package/script/dsl/model/ModelDriver.js +2 -2
  18. package/script/dsl/operation/OperationDriver.js +2 -2
  19. package/script/helpers/isImported.js +2 -2
  20. package/script/helpers/toResolvedArtifactPath.js +2 -2
  21. package/script/run/toV3JsonDocument.js +2 -2
  22. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts +0 -4
  23. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +0 -1
  24. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.js +0 -40
  25. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts +0 -2
  26. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts.map +0 -1
  27. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.js +0 -23
  28. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts +0 -2
  29. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts.map +0 -1
  30. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.js +0 -8
  31. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts +0 -4
  32. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts.map +0 -1
  33. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.js +0 -19
  34. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts +0 -35
  35. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts.map +0 -1
  36. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.js +0 -234
  37. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts +0 -2
  38. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts.map +0 -1
  39. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.js +0 -9
  40. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts +0 -2
  41. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +0 -1
  42. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.js +0 -19
  43. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts +0 -2
  44. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +0 -1
  45. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.js +0 -15
  46. package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts +0 -27
  47. package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +0 -1
  48. package/esm/deps/jsr.io/@std/path/1.1.2/basename.js +0 -35
  49. package/esm/deps/jsr.io/@std/path/1.1.2/common.d.ts +0 -28
  50. package/esm/deps/jsr.io/@std/path/1.1.2/common.d.ts.map +0 -1
  51. package/esm/deps/jsr.io/@std/path/1.1.2/common.js +0 -33
  52. package/esm/deps/jsr.io/@std/path/1.1.2/constants.d.ts +0 -15
  53. package/esm/deps/jsr.io/@std/path/1.1.2/constants.d.ts.map +0 -1
  54. package/esm/deps/jsr.io/@std/path/1.1.2/constants.js +0 -17
  55. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.d.ts +0 -22
  56. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.d.ts.map +0 -1
  57. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.js +0 -28
  58. package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts +0 -22
  59. package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +0 -1
  60. package/esm/deps/jsr.io/@std/path/1.1.2/extname.js +0 -28
  61. package/esm/deps/jsr.io/@std/path/1.1.2/format.d.ts +0 -22
  62. package/esm/deps/jsr.io/@std/path/1.1.2/format.d.ts.map +0 -1
  63. package/esm/deps/jsr.io/@std/path/1.1.2/format.js +0 -27
  64. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts +0 -22
  65. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts.map +0 -1
  66. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.js +0 -28
  67. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts +0 -77
  68. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts.map +0 -1
  69. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.js +0 -83
  70. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts +0 -22
  71. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +0 -1
  72. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.js +0 -28
  73. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts +0 -17
  74. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts.map +0 -1
  75. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.js +0 -42
  76. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts +0 -28
  77. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts.map +0 -1
  78. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.js +0 -34
  79. package/esm/deps/jsr.io/@std/path/1.1.2/mod.d.ts +0 -213
  80. package/esm/deps/jsr.io/@std/path/1.1.2/mod.d.ts.map +0 -1
  81. package/esm/deps/jsr.io/@std/path/1.1.2/mod.js +0 -216
  82. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts +0 -29
  83. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts.map +0 -1
  84. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.js +0 -35
  85. package/esm/deps/jsr.io/@std/path/1.1.2/parse.d.ts +0 -35
  86. package/esm/deps/jsr.io/@std/path/1.1.2/parse.d.ts.map +0 -1
  87. package/esm/deps/jsr.io/@std/path/1.1.2/parse.js +0 -39
  88. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts +0 -39
  89. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +0 -1
  90. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.js +0 -52
  91. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts +0 -13
  92. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts.map +0 -1
  93. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.js +0 -14
  94. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts +0 -30
  95. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts.map +0 -1
  96. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.js +0 -64
  97. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts +0 -37
  98. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +0 -1
  99. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.js +0 -93
  100. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts +0 -24
  101. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts.map +0 -1
  102. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.js +0 -28
  103. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts +0 -72
  104. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts.map +0 -1
  105. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.js +0 -82
  106. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts +0 -17
  107. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +0 -1
  108. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.js +0 -23
  109. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts +0 -20
  110. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts.map +0 -1
  111. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.js +0 -40
  112. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts +0 -20
  113. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts.map +0 -1
  114. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.js +0 -32
  115. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts +0 -25
  116. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts.map +0 -1
  117. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.js +0 -115
  118. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts +0 -20
  119. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts.map +0 -1
  120. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.js +0 -106
  121. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts +0 -17
  122. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts.map +0 -1
  123. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.js +0 -59
  124. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts +0 -17
  125. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +0 -1
  126. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.js +0 -27
  127. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts +0 -16
  128. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts.map +0 -1
  129. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.js +0 -20
  130. package/esm/deps/jsr.io/@std/path/1.1.2/relative.d.ts +0 -24
  131. package/esm/deps/jsr.io/@std/path/1.1.2/relative.d.ts.map +0 -1
  132. package/esm/deps/jsr.io/@std/path/1.1.2/relative.js +0 -30
  133. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.d.ts +0 -22
  134. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.d.ts.map +0 -1
  135. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.js +0 -30
  136. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts +0 -22
  137. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +0 -1
  138. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.js +0 -28
  139. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts +0 -21
  140. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts.map +0 -1
  141. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.js +0 -29
  142. package/esm/deps/jsr.io/@std/path/1.1.2/types.d.ts +0 -38
  143. package/esm/deps/jsr.io/@std/path/1.1.2/types.d.ts.map +0 -1
  144. package/esm/deps/jsr.io/@std/path/1.1.2/types.js +0 -3
  145. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts +0 -22
  146. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +0 -1
  147. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.js +0 -47
  148. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts +0 -13
  149. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts.map +0 -1
  150. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.js +0 -14
  151. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts +0 -17
  152. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts.map +0 -1
  153. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.js +0 -113
  154. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts +0 -17
  155. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +0 -1
  156. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.js +0 -82
  157. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts +0 -24
  158. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts.map +0 -1
  159. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.js +0 -28
  160. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts +0 -71
  161. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts.map +0 -1
  162. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.js +0 -82
  163. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts +0 -17
  164. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +0 -1
  165. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.js +0 -38
  166. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts +0 -21
  167. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts.map +0 -1
  168. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.js +0 -41
  169. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts +0 -20
  170. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts.map +0 -1
  171. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.js +0 -32
  172. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts +0 -25
  173. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts.map +0 -1
  174. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.js +0 -176
  175. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts +0 -23
  176. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts.map +0 -1
  177. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.js +0 -131
  178. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts +0 -17
  179. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts.map +0 -1
  180. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.js +0 -154
  181. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts +0 -17
  182. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +0 -1
  183. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.js +0 -34
  184. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts +0 -17
  185. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts.map +0 -1
  186. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.js +0 -49
  187. package/esm/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts +0 -106
  188. package/esm/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts.map +0 -1
  189. package/esm/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.js +0 -716
  190. package/esm/deps/jsr.io/@std/yaml/1.0.9/mod.d.ts +0 -50
  191. package/esm/deps/jsr.io/@std/yaml/1.0.9/mod.d.ts.map +0 -1
  192. package/esm/deps/jsr.io/@std/yaml/1.0.9/mod.js +0 -52
  193. package/esm/deps/jsr.io/@std/yaml/1.0.9/stringify.d.ts +0 -100
  194. package/esm/deps/jsr.io/@std/yaml/1.0.9/stringify.d.ts.map +0 -1
  195. package/esm/deps/jsr.io/@std/yaml/1.0.9/stringify.js +0 -33
  196. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts +0 -4
  197. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +0 -1
  198. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.js +0 -45
  199. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts +0 -2
  200. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts.map +0 -1
  201. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.js +0 -26
  202. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts +0 -2
  203. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.js +0 -11
  205. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts +0 -4
  206. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts.map +0 -1
  207. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.js +0 -23
  208. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts +0 -35
  209. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts.map +0 -1
  210. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.js +0 -237
  211. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts +0 -2
  212. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts.map +0 -1
  213. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.js +0 -12
  214. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts +0 -2
  215. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +0 -1
  216. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.js +0 -22
  217. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts +0 -2
  218. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +0 -1
  219. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.js +0 -18
  220. package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts +0 -27
  221. package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +0 -1
  222. package/script/deps/jsr.io/@std/path/1.1.2/basename.js +0 -38
  223. package/script/deps/jsr.io/@std/path/1.1.2/common.d.ts +0 -28
  224. package/script/deps/jsr.io/@std/path/1.1.2/common.d.ts.map +0 -1
  225. package/script/deps/jsr.io/@std/path/1.1.2/common.js +0 -36
  226. package/script/deps/jsr.io/@std/path/1.1.2/constants.d.ts +0 -15
  227. package/script/deps/jsr.io/@std/path/1.1.2/constants.d.ts.map +0 -1
  228. package/script/deps/jsr.io/@std/path/1.1.2/constants.js +0 -20
  229. package/script/deps/jsr.io/@std/path/1.1.2/dirname.d.ts +0 -22
  230. package/script/deps/jsr.io/@std/path/1.1.2/dirname.d.ts.map +0 -1
  231. package/script/deps/jsr.io/@std/path/1.1.2/dirname.js +0 -31
  232. package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts +0 -22
  233. package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +0 -1
  234. package/script/deps/jsr.io/@std/path/1.1.2/extname.js +0 -31
  235. package/script/deps/jsr.io/@std/path/1.1.2/format.d.ts +0 -22
  236. package/script/deps/jsr.io/@std/path/1.1.2/format.d.ts.map +0 -1
  237. package/script/deps/jsr.io/@std/path/1.1.2/format.js +0 -30
  238. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts +0 -22
  239. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts.map +0 -1
  240. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.js +0 -31
  241. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts +0 -77
  242. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts.map +0 -1
  243. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.js +0 -86
  244. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts +0 -22
  245. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +0 -1
  246. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.js +0 -31
  247. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts +0 -17
  248. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts.map +0 -1
  249. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.js +0 -45
  250. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts +0 -28
  251. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts.map +0 -1
  252. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.js +0 -37
  253. package/script/deps/jsr.io/@std/path/1.1.2/mod.d.ts +0 -213
  254. package/script/deps/jsr.io/@std/path/1.1.2/mod.d.ts.map +0 -1
  255. package/script/deps/jsr.io/@std/path/1.1.2/mod.js +0 -232
  256. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts +0 -29
  257. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts.map +0 -1
  258. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.js +0 -38
  259. package/script/deps/jsr.io/@std/path/1.1.2/parse.d.ts +0 -35
  260. package/script/deps/jsr.io/@std/path/1.1.2/parse.d.ts.map +0 -1
  261. package/script/deps/jsr.io/@std/path/1.1.2/parse.js +0 -42
  262. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts +0 -39
  263. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +0 -1
  264. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.js +0 -55
  265. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts +0 -13
  266. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts.map +0 -1
  267. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.js +0 -17
  268. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts +0 -30
  269. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts.map +0 -1
  270. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.js +0 -67
  271. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts +0 -37
  272. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +0 -1
  273. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.js +0 -96
  274. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts +0 -24
  275. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts.map +0 -1
  276. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.js +0 -31
  277. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts +0 -72
  278. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts.map +0 -1
  279. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.js +0 -85
  280. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts +0 -17
  281. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +0 -1
  282. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.js +0 -26
  283. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts +0 -20
  284. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts.map +0 -1
  285. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.js +0 -43
  286. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts +0 -20
  287. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts.map +0 -1
  288. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.js +0 -35
  289. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts +0 -25
  290. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts.map +0 -1
  291. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.js +0 -118
  292. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts +0 -20
  293. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts.map +0 -1
  294. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.js +0 -109
  295. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts +0 -17
  296. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts.map +0 -1
  297. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.js +0 -95
  298. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts +0 -17
  299. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +0 -1
  300. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.js +0 -30
  301. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts +0 -16
  302. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts.map +0 -1
  303. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.js +0 -23
  304. package/script/deps/jsr.io/@std/path/1.1.2/relative.d.ts +0 -24
  305. package/script/deps/jsr.io/@std/path/1.1.2/relative.d.ts.map +0 -1
  306. package/script/deps/jsr.io/@std/path/1.1.2/relative.js +0 -33
  307. package/script/deps/jsr.io/@std/path/1.1.2/resolve.d.ts +0 -22
  308. package/script/deps/jsr.io/@std/path/1.1.2/resolve.d.ts.map +0 -1
  309. package/script/deps/jsr.io/@std/path/1.1.2/resolve.js +0 -33
  310. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts +0 -22
  311. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +0 -1
  312. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.js +0 -31
  313. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts +0 -21
  314. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts.map +0 -1
  315. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.js +0 -32
  316. package/script/deps/jsr.io/@std/path/1.1.2/types.d.ts +0 -38
  317. package/script/deps/jsr.io/@std/path/1.1.2/types.d.ts.map +0 -1
  318. package/script/deps/jsr.io/@std/path/1.1.2/types.js +0 -4
  319. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts +0 -22
  320. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +0 -1
  321. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.js +0 -50
  322. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts +0 -13
  323. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts.map +0 -1
  324. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.js +0 -17
  325. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts +0 -17
  326. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts.map +0 -1
  327. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.js +0 -116
  328. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts +0 -17
  329. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +0 -1
  330. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.js +0 -85
  331. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts +0 -24
  332. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts.map +0 -1
  333. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.js +0 -31
  334. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts +0 -71
  335. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts.map +0 -1
  336. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.js +0 -85
  337. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts +0 -17
  338. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +0 -1
  339. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.js +0 -41
  340. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts +0 -21
  341. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts.map +0 -1
  342. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.js +0 -44
  343. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts +0 -20
  344. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts.map +0 -1
  345. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.js +0 -35
  346. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts +0 -25
  347. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts.map +0 -1
  348. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.js +0 -179
  349. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts +0 -23
  350. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts.map +0 -1
  351. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.js +0 -134
  352. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts +0 -17
  353. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts.map +0 -1
  354. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.js +0 -190
  355. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts +0 -17
  356. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +0 -1
  357. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.js +0 -37
  358. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts +0 -17
  359. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts.map +0 -1
  360. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.js +0 -52
  361. package/script/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts +0 -106
  362. package/script/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts.map +0 -1
  363. package/script/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.js +0 -720
  364. package/script/deps/jsr.io/@std/yaml/1.0.9/mod.d.ts +0 -50
  365. package/script/deps/jsr.io/@std/yaml/1.0.9/mod.d.ts.map +0 -1
  366. package/script/deps/jsr.io/@std/yaml/1.0.9/mod.js +0 -68
  367. package/script/deps/jsr.io/@std/yaml/1.0.9/stringify.d.ts +0 -100
  368. package/script/deps/jsr.io/@std/yaml/1.0.9/stringify.d.ts.map +0 -1
  369. package/script/deps/jsr.io/@std/yaml/1.0.9/stringify.js +0 -36
@@ -1,93 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { CHAR_DOT } from "../_common/constants.js";
4
- import { assertPath } from "../_common/assert_path.js";
5
- import { isPosixPathSeparator } from "./_util.js";
6
- import { fromFileUrl } from "./from_file_url.js";
7
- /**
8
- * Return the extension of the `path` with leading period.
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { extname } from "@std/path/posix/extname";
13
- * import { assertEquals } from "@std/assert";
14
- *
15
- * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
16
- * assertEquals(extname("/home/user/Documents/"), "");
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");
21
- * ```
22
- *
23
- * @example Working with URLs
24
- *
25
- * Note: This function doesn't automatically strip hash and query parts from
26
- * URLs. If your URL contains a hash or query, remove them before passing the
27
- * URL to the function. This can be done by passing the URL to `new URL(url)`,
28
- * and setting the `hash` and `search` properties to empty strings.
29
- *
30
- * ```ts
31
- * import { extname } from "@std/path/posix/extname";
32
- * import { assertEquals } from "@std/assert";
33
- *
34
- * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
35
- * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
36
- * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
37
- * ```
38
- *
39
- * @param path The path to get the extension from.
40
- * @returns The extension (ex. for `file.ts` returns `.ts`).
41
- */
42
- export function extname(path) {
43
- if (path instanceof URL) {
44
- path = fromFileUrl(path);
45
- }
46
- assertPath(path);
47
- let startDot = -1;
48
- let startPart = 0;
49
- let end = -1;
50
- let matchedSlash = true;
51
- // Track the state of characters (if any) we see before our first dot and
52
- // after any path separator we find
53
- let preDotState = 0;
54
- for (let i = path.length - 1; i >= 0; --i) {
55
- const code = path.charCodeAt(i);
56
- if (isPosixPathSeparator(code)) {
57
- // If we reached a path separator that was not part of a set of path
58
- // separators at the end of the string, stop now
59
- if (!matchedSlash) {
60
- startPart = i + 1;
61
- break;
62
- }
63
- continue;
64
- }
65
- if (end === -1) {
66
- // We saw the first non-path separator, mark this as the end of our
67
- // extension
68
- matchedSlash = false;
69
- end = i + 1;
70
- }
71
- if (code === CHAR_DOT) {
72
- // If this is our first dot, mark it as the start of our extension
73
- if (startDot === -1)
74
- startDot = i;
75
- else if (preDotState !== 1)
76
- preDotState = 1;
77
- }
78
- else if (startDot !== -1) {
79
- // We saw a non-dot and non-path separator before our dot, so we should
80
- // have a good chance at having a non-empty extension
81
- preDotState = -1;
82
- }
83
- }
84
- if (startDot === -1 ||
85
- end === -1 ||
86
- // We saw a non-dot character immediately before the dot
87
- preDotState === 0 ||
88
- // The (right-most) trimmed path component is exactly '..'
89
- (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
90
- return "";
91
- }
92
- return path.slice(startDot, end);
93
- }
@@ -1,24 +0,0 @@
1
- import type { ParsedPath } from "../types.js";
2
- /**
3
- * Generate a path from `ParsedPath` object.
4
- *
5
- * @example Usage
6
- * ```ts
7
- * import { format } from "@std/path/posix/format";
8
- * import { assertEquals } from "@std/assert";
9
- *
10
- * const path = format({
11
- * root: "/",
12
- * dir: "/path/dir",
13
- * base: "file.txt",
14
- * ext: ".txt",
15
- * name: "file"
16
- * });
17
- * assertEquals(path, "/path/dir/file.txt");
18
- * ```
19
- *
20
- * @param pathObject The path object to format.
21
- * @returns The formatted path.
22
- */
23
- export declare function format(pathObject: Partial<ParsedPath>): string;
24
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/format.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9D"}
@@ -1,28 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { _format, assertArg } from "../_common/format.js";
4
- /**
5
- * Generate a path from `ParsedPath` object.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { format } from "@std/path/posix/format";
10
- * import { assertEquals } from "@std/assert";
11
- *
12
- * const path = format({
13
- * root: "/",
14
- * dir: "/path/dir",
15
- * base: "file.txt",
16
- * ext: ".txt",
17
- * name: "file"
18
- * });
19
- * assertEquals(path, "/path/dir/file.txt");
20
- * ```
21
- *
22
- * @param pathObject The path object to format.
23
- * @returns The formatted path.
24
- */
25
- export function format(pathObject) {
26
- assertArg(pathObject);
27
- return _format("/", pathObject);
28
- }
@@ -1,72 +0,0 @@
1
- import { type GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- export type { GlobOptions };
3
- /** Convert a glob string to a regular expression.
4
- *
5
- * Tries to match bash glob expansion as closely as possible.
6
- *
7
- * Basic glob syntax:
8
- * - `*` - Matches everything without leaving the path segment.
9
- * - `?` - Matches any single character.
10
- * - `{foo,bar}` - Matches `foo` or `bar`.
11
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
12
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
13
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
14
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
15
- * - `[[:alnum:]]` - Matches any digit or letter.
16
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
17
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
18
- * for a complete list of supported character classes.
19
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
20
- * - \` - Escapes the next character for `os` set to `"windows"`.
21
- * - `/` - Path separator.
22
- * - `\` - Additional path separator only for `os` set to `"windows"`.
23
- *
24
- * Extended syntax:
25
- * - Requires `{ extended: true }`.
26
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
27
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
28
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
29
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
30
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
31
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
32
- *
33
- * Globstar syntax:
34
- * - Requires `{ globstar: true }`.
35
- * - `**` - Matches any number of any path segments.
36
- * - Must comprise its entire path segment in the provided glob.
37
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
38
- *
39
- * Note the following properties:
40
- * - The generated `RegExp` is anchored at both start and end.
41
- * - Repeating and trailing separators are tolerated. Trailing separators in the
42
- * provided glob have no meaning and are discarded.
43
- * - Absolute globs will only match absolute paths, etc.
44
- * - Empty globs will match nothing.
45
- * - Any special glob syntax must be contained to one path segment. For example,
46
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
47
- * first segment ends with an unclosed group.
48
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
49
- * parse error has occurred. Every character for that segment is taken
50
- * literally in this event.
51
- *
52
- * Limitations:
53
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
54
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
55
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
56
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
57
- * the group occurs not nested at the end of the segment.
58
- *
59
- * @example Usage
60
- * ```ts
61
- * import { globToRegExp } from "@std/path/posix/glob-to-regexp";
62
- * import { assertEquals } from "@std/assert";
63
- *
64
- * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
65
- * ```
66
- *
67
- * @param glob Glob string to convert.
68
- * @param options Conversion options.
69
- * @returns The regular expression equivalent to the glob.
70
- */
71
- export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
72
- //# sourceMappingURL=glob_to_regexp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glob_to_regexp.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,WAAW,EAAE,CAAC;AAW5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAER"}
@@ -1,82 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
4
- const constants = {
5
- sep: "/+",
6
- sepMaybe: "/*",
7
- seps: ["/"],
8
- globstar: "(?:[^/]*(?:/|$)+)*",
9
- wildcard: "[^/]*",
10
- escapePrefix: "\\",
11
- };
12
- /** Convert a glob string to a regular expression.
13
- *
14
- * Tries to match bash glob expansion as closely as possible.
15
- *
16
- * Basic glob syntax:
17
- * - `*` - Matches everything without leaving the path segment.
18
- * - `?` - Matches any single character.
19
- * - `{foo,bar}` - Matches `foo` or `bar`.
20
- * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
21
- * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
22
- * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
23
- * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
24
- * - `[[:alnum:]]` - Matches any digit or letter.
25
- * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
26
- * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
27
- * for a complete list of supported character classes.
28
- * - `\` - Escapes the next character for an `os` other than `"windows"`.
29
- * - \` - Escapes the next character for `os` set to `"windows"`.
30
- * - `/` - Path separator.
31
- * - `\` - Additional path separator only for `os` set to `"windows"`.
32
- *
33
- * Extended syntax:
34
- * - Requires `{ extended: true }`.
35
- * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
36
- * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
37
- * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
38
- * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
39
- * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
40
- * - See https://www.linuxjournal.com/content/bash-extended-globbing.
41
- *
42
- * Globstar syntax:
43
- * - Requires `{ globstar: true }`.
44
- * - `**` - Matches any number of any path segments.
45
- * - Must comprise its entire path segment in the provided glob.
46
- * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
47
- *
48
- * Note the following properties:
49
- * - The generated `RegExp` is anchored at both start and end.
50
- * - Repeating and trailing separators are tolerated. Trailing separators in the
51
- * provided glob have no meaning and are discarded.
52
- * - Absolute globs will only match absolute paths, etc.
53
- * - Empty globs will match nothing.
54
- * - Any special glob syntax must be contained to one path segment. For example,
55
- * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
56
- * first segment ends with an unclosed group.
57
- * - If a path segment ends with unclosed groups or a dangling escape prefix, a
58
- * parse error has occurred. Every character for that segment is taken
59
- * literally in this event.
60
- *
61
- * Limitations:
62
- * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
63
- * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
64
- * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
65
- * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
66
- * the group occurs not nested at the end of the segment.
67
- *
68
- * @example Usage
69
- * ```ts
70
- * import { globToRegExp } from "@std/path/posix/glob-to-regexp";
71
- * import { assertEquals } from "@std/assert";
72
- *
73
- * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
74
- * ```
75
- *
76
- * @param glob Glob string to convert.
77
- * @param options Conversion options.
78
- * @returns The regular expression equivalent to the glob.
79
- */
80
- export function globToRegExp(glob, options = {}) {
81
- return _globToRegExp(constants, glob, options);
82
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Verifies whether provided path is absolute.
3
- *
4
- * @example Usage
5
- * ```ts
6
- * import { isAbsolute } from "@std/path/posix/is-absolute";
7
- * import { assert, assertFalse } from "@std/assert";
8
- *
9
- * assert(isAbsolute("/home/user/Documents/"));
10
- * assertFalse(isAbsolute("home/user/Documents/"));
11
- * ```
12
- *
13
- * @param path The path to verify.
14
- * @returns Whether the path is absolute.
15
- */
16
- export declare function isAbsolute(path: string): boolean;
17
- //# sourceMappingURL=is_absolute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD"}
@@ -1,23 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { assertPath } from "../_common/assert_path.js";
4
- import { isPosixPathSeparator } from "./_util.js";
5
- /**
6
- * Verifies whether provided path is absolute.
7
- *
8
- * @example Usage
9
- * ```ts
10
- * import { isAbsolute } from "@std/path/posix/is-absolute";
11
- * import { assert, assertFalse } from "@std/assert";
12
- *
13
- * assert(isAbsolute("/home/user/Documents/"));
14
- * assertFalse(isAbsolute("home/user/Documents/"));
15
- * ```
16
- *
17
- * @param path The path to verify.
18
- * @returns Whether the path is absolute.
19
- */
20
- export function isAbsolute(path) {
21
- assertPath(path);
22
- return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
23
- }
@@ -1,20 +0,0 @@
1
- import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- export type { GlobOptions };
3
- /**
4
- * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { joinGlobs } from "@std/path/posix/join-globs";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
12
- * assertEquals(path, "foo/bar/**");
13
- * ```
14
- *
15
- * @param globs The globs to join.
16
- * @param options The options to use.
17
- * @returns The joined path.
18
- */
19
- export declare function joinGlobs(globs: string[], options?: Pick<GlobOptions, "globstar">): string;
20
- //# sourceMappingURL=join_globs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"join_globs.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAKjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,GAC1C,MAAM,CAeR"}
@@ -1,40 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { join } from "./join.js";
4
- import { SEPARATOR } from "./constants.js";
5
- import { normalizeGlob } from "./normalize_glob.js";
6
- /**
7
- * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { joinGlobs } from "@std/path/posix/join-globs";
12
- * import { assertEquals } from "@std/assert";
13
- *
14
- * const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
15
- * assertEquals(path, "foo/bar/**");
16
- * ```
17
- *
18
- * @param globs The globs to join.
19
- * @param options The options to use.
20
- * @returns The joined path.
21
- */
22
- export function joinGlobs(globs, options = {}) {
23
- const { globstar = false } = options;
24
- if (!globstar || globs.length === 0) {
25
- return join(...globs);
26
- }
27
- let joined;
28
- for (const glob of globs) {
29
- const path = glob;
30
- if (path.length > 0) {
31
- if (!joined)
32
- joined = path;
33
- else
34
- joined += `${SEPARATOR}${path}`;
35
- }
36
- }
37
- if (!joined)
38
- return ".";
39
- return normalizeGlob(joined, { globstar });
40
- }
@@ -1,20 +0,0 @@
1
- import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
2
- export type { GlobOptions };
3
- /**
4
- * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { normalizeGlob } from "@std/path/posix/normalize-glob";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * const path = normalizeGlob("foo/bar/../*", { globstar: true });
12
- * assertEquals(path, "foo/*");
13
- * ```
14
- *
15
- * @param glob The glob to normalize.
16
- * @param options The options to use.
17
- * @returns The normalized path.
18
- */
19
- export declare function normalizeGlob(glob: string, options?: Pick<GlobOptions, "globstar">): string;
20
- //# sourceMappingURL=normalize_glob.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize_glob.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,GAC1C,MAAM,CAcR"}
@@ -1,32 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { normalize } from "./normalize.js";
4
- import { SEPARATOR_PATTERN } from "./constants.js";
5
- /**
6
- * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
7
- *
8
- * @example Usage
9
- * ```ts
10
- * import { normalizeGlob } from "@std/path/posix/normalize-glob";
11
- * import { assertEquals } from "@std/assert";
12
- *
13
- * const path = normalizeGlob("foo/bar/../*", { globstar: true });
14
- * assertEquals(path, "foo/*");
15
- * ```
16
- *
17
- * @param glob The glob to normalize.
18
- * @param options The options to use.
19
- * @returns The normalized path.
20
- */
21
- export function normalizeGlob(glob, options = {}) {
22
- const { globstar = false } = options;
23
- if (glob.match(/\0/g)) {
24
- throw new Error(`Glob contains invalid characters: "${glob}"`);
25
- }
26
- if (!globstar) {
27
- return normalize(glob);
28
- }
29
- const s = SEPARATOR_PATTERN.source;
30
- const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
31
- return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
32
- }
@@ -1,25 +0,0 @@
1
- import type { ParsedPath } from "../types.js";
2
- export type { ParsedPath } from "../types.js";
3
- /**
4
- * Return a `ParsedPath` object of the `path`.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { parse } from "@std/path/posix/parse";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * const path = parse("/home/user/file.txt");
12
- * assertEquals(path, {
13
- * root: "/",
14
- * dir: "/home/user",
15
- * base: "file.txt",
16
- * ext: ".txt",
17
- * name: "file"
18
- * });
19
- * ```
20
- *
21
- * @param path The path to parse.
22
- * @returns The parsed path object.
23
- */
24
- export declare function parse(path: string): ParsedPath;
25
- //# sourceMappingURL=parse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAwF9C"}
@@ -1,115 +0,0 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
2
- // This module is browser compatible.
3
- import { CHAR_DOT } from "../_common/constants.js";
4
- import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
- import { assertPath } from "../_common/assert_path.js";
6
- import { isPosixPathSeparator } from "./_util.js";
7
- /**
8
- * Return a `ParsedPath` object of the `path`.
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { parse } from "@std/path/posix/parse";
13
- * import { assertEquals } from "@std/assert";
14
- *
15
- * const path = parse("/home/user/file.txt");
16
- * assertEquals(path, {
17
- * root: "/",
18
- * dir: "/home/user",
19
- * base: "file.txt",
20
- * ext: ".txt",
21
- * name: "file"
22
- * });
23
- * ```
24
- *
25
- * @param path The path to parse.
26
- * @returns The parsed path object.
27
- */
28
- export function parse(path) {
29
- assertPath(path);
30
- const ret = { root: "", dir: "", base: "", ext: "", name: "" };
31
- if (path.length === 0)
32
- return ret;
33
- const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
34
- let start;
35
- if (isAbsolute) {
36
- ret.root = "/";
37
- start = 1;
38
- }
39
- else {
40
- start = 0;
41
- }
42
- let startDot = -1;
43
- let startPart = 0;
44
- let end = -1;
45
- let matchedSlash = true;
46
- let i = path.length - 1;
47
- // Track the state of characters (if any) we see before our first dot and
48
- // after any path separator we find
49
- let preDotState = 0;
50
- // Get non-dir info
51
- for (; i >= start; --i) {
52
- const code = path.charCodeAt(i);
53
- if (isPosixPathSeparator(code)) {
54
- // If we reached a path separator that was not part of a set of path
55
- // separators at the end of the string, stop now
56
- if (!matchedSlash) {
57
- startPart = i + 1;
58
- break;
59
- }
60
- continue;
61
- }
62
- if (end === -1) {
63
- // We saw the first non-path separator, mark this as the end of our
64
- // extension
65
- matchedSlash = false;
66
- end = i + 1;
67
- }
68
- if (code === CHAR_DOT) {
69
- // If this is our first dot, mark it as the start of our extension
70
- if (startDot === -1)
71
- startDot = i;
72
- else if (preDotState !== 1)
73
- preDotState = 1;
74
- }
75
- else if (startDot !== -1) {
76
- // We saw a non-dot and non-path separator before our dot, so we should
77
- // have a good chance at having a non-empty extension
78
- preDotState = -1;
79
- }
80
- }
81
- if (startDot === -1 ||
82
- end === -1 ||
83
- // We saw a non-dot character immediately before the dot
84
- preDotState === 0 ||
85
- // The (right-most) trimmed path component is exactly '..'
86
- (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
87
- if (end !== -1) {
88
- if (startPart === 0 && isAbsolute) {
89
- ret.base = ret.name = path.slice(1, end);
90
- }
91
- else {
92
- ret.base = ret.name = path.slice(startPart, end);
93
- }
94
- }
95
- // Fallback to '/' in case there is no basename
96
- ret.base = ret.base || "/";
97
- }
98
- else {
99
- if (startPart === 0 && isAbsolute) {
100
- ret.name = path.slice(1, startDot);
101
- ret.base = path.slice(1, end);
102
- }
103
- else {
104
- ret.name = path.slice(startPart, startDot);
105
- ret.base = path.slice(startPart, end);
106
- }
107
- ret.ext = path.slice(startDot, end);
108
- }
109
- if (startPart > 0) {
110
- ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator);
111
- }
112
- else if (isAbsolute)
113
- ret.dir = "/";
114
- return ret;
115
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * Return the relative path from `from` to `to` based on current working directory.
3
- *
4
- * If `from` and `to` are the same, return an empty string.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { relative } from "@std/path/posix/relative";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb");
12
- * assertEquals(path, "../../impl/bbb");
13
- * ```
14
- *
15
- * @param from The path to start from.
16
- * @param to The path to reach.
17
- * @returns The relative path.
18
- */
19
- export declare function relative(from: string, to: string): string;
20
- //# sourceMappingURL=relative.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/posix/relative.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CA6EzD"}