@skmtc/core 0.0.223 → 0.0.224

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/{script → esm}/_dnt.polyfills.js +1 -2
  2. package/{script → esm}/_dnt.shims.js +4 -8
  3. package/{script → esm}/context/CoreContext.js +24 -28
  4. package/{script → esm}/context/GenerateContext.js +13 -17
  5. package/{script → esm}/context/LogStore.js +1 -5
  6. package/{script → esm}/context/ParseContext.js +1 -5
  7. package/{script → esm}/context/RenderContext.js +17 -47
  8. package/{script → esm}/context/Trail.js +1 -5
  9. package/esm/context/types.js +1 -0
  10. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.js +1 -4
  11. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/ascii85.js +4 -8
  12. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/base32.js +4 -8
  13. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/base58.js +4 -8
  14. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/base64.js +4 -8
  15. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/base64url.js +3 -30
  16. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/hex.js +4 -8
  17. package/esm/deps/jsr.io/@std/encoding/1.0.1/mod.js +22 -0
  18. package/{script → esm}/deps/jsr.io/@std/encoding/1.0.1/varint.js +8 -14
  19. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/assert_path.js +1 -4
  20. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/basename.js +5 -10
  21. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/common.js +1 -4
  22. package/esm/deps/jsr.io/@std/path/1.0.0/_common/constants.js +46 -0
  23. package/esm/deps/jsr.io/@std/path/1.0.0/_common/dirname.js +8 -0
  24. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/format.js +2 -6
  25. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.js +1 -4
  26. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.js +1 -4
  27. package/esm/deps/jsr.io/@std/path/1.0.0/_common/normalize.js +8 -0
  28. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.js +6 -9
  29. package/esm/deps/jsr.io/@std/path/1.0.0/_common/relative.js +9 -0
  30. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.js +1 -4
  31. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.js +1 -4
  32. package/esm/deps/jsr.io/@std/path/1.0.0/_os.js +14 -0
  33. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/basename.js +7 -10
  34. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/common.js +4 -7
  35. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/constants.js +4 -7
  36. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/dirname.js +5 -8
  37. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/extname.js +5 -8
  38. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/format.js +5 -8
  39. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/from_file_url.js +5 -8
  40. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.js +7 -10
  41. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/is_absolute.js +5 -8
  42. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/is_glob.js +1 -4
  43. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/join.js +5 -8
  44. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/join_globs.js +7 -10
  45. package/esm/deps/jsr.io/@std/path/1.0.0/mod.js +54 -0
  46. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/normalize.js +5 -8
  47. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/normalize_glob.js +7 -10
  48. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/parse.js +5 -8
  49. package/esm/deps/jsr.io/@std/path/1.0.0/posix/_util.js +8 -0
  50. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/basename.js +8 -11
  51. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/constants.js +3 -6
  52. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/dirname.js +8 -11
  53. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/extname.js +7 -10
  54. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/format.js +4 -7
  55. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.js +3 -6
  56. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.js +3 -6
  57. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.js +5 -8
  58. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/join.js +5 -8
  59. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/join_globs.js +7 -10
  60. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/normalize.js +8 -11
  61. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.js +6 -9
  62. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/parse.js +10 -13
  63. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/relative.js +14 -17
  64. package/esm/deps/jsr.io/@std/path/1.0.0/posix/resolve.js +59 -0
  65. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.js +5 -8
  66. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.js +1 -4
  67. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/relative.js +5 -8
  68. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/resolve.js +7 -10
  69. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/to_file_url.js +5 -8
  70. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.js +7 -10
  71. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/types.js +1 -2
  72. package/esm/deps/jsr.io/@std/path/1.0.0/windows/_util.js +15 -0
  73. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/basename.js +11 -14
  74. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/constants.js +3 -6
  75. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/dirname.js +17 -20
  76. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/extname.js +9 -12
  77. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/format.js +4 -7
  78. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.js +3 -6
  79. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.js +3 -6
  80. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.js +9 -12
  81. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/join.js +10 -13
  82. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/join_globs.js +7 -10
  83. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/normalize.js +17 -20
  84. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.js +6 -9
  85. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/parse.js +16 -19
  86. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/relative.js +16 -19
  87. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/resolve.js +17 -43
  88. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.js +5 -8
  89. package/{script → esm}/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.js +11 -14
  90. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +10 -36
  91. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +2 -6
  92. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_error.js +1 -5
  93. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +9 -36
  94. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +2 -6
  95. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_mark.js +3 -7
  96. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_state.js +3 -7
  97. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +2 -5
  98. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +4 -7
  99. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +5 -8
  100. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +2 -5
  101. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +4 -7
  102. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +2 -5
  103. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +2 -5
  104. package/esm/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +20 -0
  105. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +2 -5
  106. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +2 -5
  107. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +2 -5
  108. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +2 -5
  109. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +2 -5
  110. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +2 -5
  111. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +2 -5
  112. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +2 -5
  113. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +2 -5
  114. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/_utils.js +15 -32
  115. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/mod.js +4 -20
  116. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/parse.js +5 -9
  117. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +4 -7
  118. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +15 -0
  119. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +6 -9
  120. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +4 -7
  121. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +6 -9
  122. package/esm/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +10 -0
  123. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/schema.js +3 -7
  124. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/stringify.js +3 -6
  125. package/{script → esm}/deps/jsr.io/@std/yaml/0.215.0/type.js +1 -5
  126. package/{script → esm}/dsl/ContentSettings.js +1 -5
  127. package/{script → esm}/dsl/Definition.js +4 -8
  128. package/{script → esm}/dsl/GeneratedValueList.js +3 -7
  129. package/{script → esm}/dsl/Identifier.js +8 -12
  130. package/{script → esm}/dsl/Import.js +2 -7
  131. package/esm/dsl/ModelCreator.js +1 -0
  132. package/{script → esm}/dsl/ModelDriver.js +14 -18
  133. package/esm/dsl/OperationCreator.js +1 -0
  134. package/{script → esm}/dsl/OperationDriver.js +11 -15
  135. package/esm/dsl/Stringable.js +1 -0
  136. package/{script → esm}/dsl/ValueBase.js +1 -5
  137. package/{script → esm}/dsl/base.js +5 -13
  138. package/esm/dsl/constants.js +1 -0
  139. package/{script → esm}/dsl/withConfig.js +9 -15
  140. package/esm/generate/generate.js +47 -0
  141. package/esm/generate/generateModels.js +29 -0
  142. package/esm/generate/generateOperations.js +35 -0
  143. package/{script → esm}/helpers/logStatus.js +2 -7
  144. package/esm/helpers/naming.js +25 -0
  145. package/esm/helpers/refFns.js +24 -0
  146. package/esm/helpers/strings.js +6 -0
  147. package/{script → esm}/helpers/verifyType.js +1 -4
  148. package/esm/mod.js +61 -0
  149. package/{script → esm}/oas/array/Array.js +2 -6
  150. package/esm/oas/array/array-types.js +17 -0
  151. package/esm/oas/array/toArray.js +20 -0
  152. package/{script → esm}/oas/boolean/Boolean.js +2 -6
  153. package/esm/oas/boolean/boolean-types.js +8 -0
  154. package/esm/oas/boolean/toBoolean.js +10 -0
  155. package/{script → esm}/oas/components/Components.js +2 -6
  156. package/esm/oas/components/toComponentsV3.js +44 -0
  157. package/esm/oas/contact/contact-types.js +7 -0
  158. package/{script → esm}/oas/discriminator/Discriminator.js +2 -6
  159. package/esm/oas/discriminator/discriminator-types.js +6 -0
  160. package/esm/oas/discriminator/toDiscriminatorV3.js +11 -0
  161. package/{script → esm}/oas/document/Document.js +2 -6
  162. package/esm/oas/document/toDocumentV3.js +24 -0
  163. package/{script → esm}/oas/example/Example.js +2 -6
  164. package/esm/oas/example/example-types.js +9 -0
  165. package/esm/oas/example/toExamplesV3.js +45 -0
  166. package/{script → esm}/oas/header/Header.js +2 -6
  167. package/esm/oas/header/toHeadersV3.js +42 -0
  168. package/{script → esm}/oas/info/Info.js +2 -6
  169. package/{script → esm}/oas/info/toInfoV3.js +3 -7
  170. package/{script → esm}/oas/integer/Integer.js +2 -6
  171. package/esm/oas/integer/integer-types.js +18 -0
  172. package/esm/oas/integer/toInteger.js +13 -0
  173. package/{script → esm}/oas/intersection/Intersection.js +2 -6
  174. package/esm/oas/intersection/intersection-types.js +12 -0
  175. package/esm/oas/intersection/toIntersection.js +22 -0
  176. package/esm/oas/license/license-types.js +7 -0
  177. package/esm/oas/markdown/markdown-types.js +2 -0
  178. package/{script → esm}/oas/mediaType/MediaType.js +2 -6
  179. package/esm/oas/mediaType/mediaType-types.js +12 -0
  180. package/esm/oas/mediaType/toMediaTypeItemV3.js +37 -0
  181. package/esm/oas/null/null-types.js +8 -0
  182. package/{script → esm}/oas/number/Number.js +2 -6
  183. package/esm/oas/number/number-types.js +14 -0
  184. package/esm/oas/number/toNumber.js +10 -0
  185. package/{script → esm}/oas/object/Object.js +4 -8
  186. package/esm/oas/object/object-types.js +27 -0
  187. package/esm/oas/object/toAdditionalPropertiesV3.js +14 -0
  188. package/esm/oas/object/toObject.js +23 -0
  189. package/{script → esm}/oas/operation/Operation.js +2 -6
  190. package/{script → esm}/oas/operation/toOperationsV3.js +13 -18
  191. package/{script → esm}/oas/parameter/Parameter.js +2 -6
  192. package/esm/oas/parameter/parameter-types.js +38 -0
  193. package/{script → esm}/oas/parameter/toParameterV3.js +22 -28
  194. package/{script → esm}/oas/pathItem/PathItem.js +2 -6
  195. package/esm/oas/pathItem/toPathItemV3.js +15 -0
  196. package/{script → esm}/oas/ref/Ref.js +6 -10
  197. package/esm/oas/ref/ref-types.js +54 -0
  198. package/esm/oas/ref/toRefV31.js +11 -0
  199. package/{script → esm}/oas/requestBody/RequestBody.js +2 -6
  200. package/esm/oas/requestBody/toRequestBodiesV3.js +46 -0
  201. package/{script → esm}/oas/response/Response.js +2 -6
  202. package/esm/oas/response/toResponseV3.js +35 -0
  203. package/esm/oas/schema/Schema.js +1 -0
  204. package/esm/oas/schema/schema-types.js +23 -0
  205. package/esm/oas/schema/toSchemasV3.js +60 -0
  206. package/{script → esm}/oas/string/String.js +2 -6
  207. package/esm/oas/string/string-types.js +29 -0
  208. package/esm/oas/string/toString.js +11 -0
  209. package/{script → esm}/oas/tag/Tag.js +2 -6
  210. package/esm/oas/tag/toTagsV3.js +14 -0
  211. package/{script → esm}/oas/union/Union.js +2 -6
  212. package/esm/oas/union/toUnion.js +22 -0
  213. package/esm/oas/union/union-types.js +12 -0
  214. package/{script → esm}/oas/unknown/Unknown.js +2 -6
  215. package/esm/oas/unknown/toUnknown.js +9 -0
  216. package/esm/oas/unknown/unknown-types.js +8 -0
  217. package/{script → esm}/oas/void/Void.js +4 -8
  218. package/{script → esm}/oas-elements/OasBase.js +1 -5
  219. package/esm/package.json +3 -0
  220. package/esm/parse/parse.js +16 -0
  221. package/{script → esm}/schemas/client.js +2 -4
  222. package/{script → esm}/server/createServer.js +24 -51
  223. package/esm/types/Brand.js +1 -0
  224. package/{script → esm}/types/CustomValue.js +3 -8
  225. package/esm/types/GeneratedValue.js +1 -0
  226. package/{script → esm}/types/GenerationType.js +1 -2
  227. package/esm/types/GeneratorKeys.js +13 -0
  228. package/esm/types/Method.js +31 -0
  229. package/esm/types/Modifiers.js +1 -0
  230. package/esm/types/RefName.js +1 -0
  231. package/esm/types/Settings.js +42 -0
  232. package/esm/types/TypeSystem.js +1 -0
  233. package/esm/types/prettierConfig.js +46 -0
  234. package/{script → esm}/typescript/EntityType.js +3 -7
  235. package/{script → esm}/typescript/FunctionParameter.js +10 -17
  236. package/{script → esm}/typescript/ReactRouterPathParams.js +2 -6
  237. package/esm/typescript/identifiers.js +7 -0
  238. package/esm/typescript/keyValues.js +11 -0
  239. package/{script → esm}/typescript/toDestructuredObject.js +1 -5
  240. package/{script → esm}/typescript/toOperationArg.js +7 -14
  241. package/esm/typescript/toOperationResponse.js +17 -0
  242. package/esm/typescript/toParamsObject.js +12 -0
  243. package/esm/typescript/toPathTemplate.js +3 -0
  244. package/esm/typescript/withDescription.js +3 -0
  245. package/package.json +8 -8
  246. package/script/context/types.js +0 -2
  247. package/script/deps/jsr.io/@std/encoding/1.0.1/mod.js +0 -38
  248. package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.js +0 -49
  249. package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.js +0 -11
  250. package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.js +0 -11
  251. package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.js +0 -12
  252. package/script/deps/jsr.io/@std/path/1.0.0/_os.js +0 -40
  253. package/script/deps/jsr.io/@std/path/1.0.0/mod.js +0 -70
  254. package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.js +0 -11
  255. package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.js +0 -85
  256. package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.js +0 -20
  257. package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -39
  258. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -18
  259. package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -18
  260. package/script/dsl/ModelCreator.js +0 -2
  261. package/script/dsl/OperationCreator.js +0 -2
  262. package/script/dsl/Stringable.js +0 -2
  263. package/script/dsl/constants.js +0 -4
  264. package/script/generate/generate.js +0 -75
  265. package/script/generate/generateModels.js +0 -56
  266. package/script/generate/generateOperations.js +0 -62
  267. package/script/helpers/naming.js +0 -33
  268. package/script/helpers/refFns.js +0 -30
  269. package/script/helpers/strings.js +0 -11
  270. package/script/mod.js +0 -77
  271. package/script/oas/array/array-types.js +0 -20
  272. package/script/oas/array/toArray.js +0 -24
  273. package/script/oas/boolean/boolean-types.js +0 -11
  274. package/script/oas/boolean/toBoolean.js +0 -14
  275. package/script/oas/components/toComponentsV3.js +0 -48
  276. package/script/oas/contact/contact-types.js +0 -10
  277. package/script/oas/discriminator/discriminator-types.js +0 -9
  278. package/script/oas/discriminator/toDiscriminatorV3.js +0 -15
  279. package/script/oas/document/toDocumentV3.js +0 -28
  280. package/script/oas/example/example-types.js +0 -12
  281. package/script/oas/example/toExamplesV3.js +0 -51
  282. package/script/oas/header/toHeadersV3.js +0 -46
  283. package/script/oas/integer/integer-types.js +0 -21
  284. package/script/oas/integer/toInteger.js +0 -17
  285. package/script/oas/intersection/intersection-types.js +0 -15
  286. package/script/oas/intersection/toIntersection.js +0 -26
  287. package/script/oas/license/license-types.js +0 -10
  288. package/script/oas/markdown/markdown-types.js +0 -5
  289. package/script/oas/mediaType/mediaType-types.js +0 -15
  290. package/script/oas/mediaType/toMediaTypeItemV3.js +0 -43
  291. package/script/oas/null/null-types.js +0 -11
  292. package/script/oas/number/number-types.js +0 -17
  293. package/script/oas/number/toNumber.js +0 -14
  294. package/script/oas/object/object-types.js +0 -30
  295. package/script/oas/object/toAdditionalPropertiesV3.js +0 -18
  296. package/script/oas/object/toObject.js +0 -27
  297. package/script/oas/parameter/parameter-types.js +0 -41
  298. package/script/oas/pathItem/toPathItemV3.js +0 -19
  299. package/script/oas/ref/ref-types.js +0 -57
  300. package/script/oas/ref/toRefV31.js +0 -15
  301. package/script/oas/requestBody/toRequestBodiesV3.js +0 -51
  302. package/script/oas/response/toResponseV3.js +0 -41
  303. package/script/oas/schema/Schema.js +0 -2
  304. package/script/oas/schema/schema-types.js +0 -26
  305. package/script/oas/schema/toSchemasV3.js +0 -67
  306. package/script/oas/string/string-types.js +0 -32
  307. package/script/oas/string/toString.js +0 -15
  308. package/script/oas/tag/toTagsV3.js +0 -18
  309. package/script/oas/union/toUnion.js +0 -26
  310. package/script/oas/union/union-types.js +0 -15
  311. package/script/oas/unknown/toUnknown.js +0 -13
  312. package/script/oas/unknown/unknown-types.js +0 -11
  313. package/script/package.json +0 -3
  314. package/script/parse/parse.js +0 -20
  315. package/script/types/Brand.js +0 -2
  316. package/script/types/GeneratedValue.js +0 -2
  317. package/script/types/GeneratorKeys.js +0 -19
  318. package/script/types/Method.js +0 -34
  319. package/script/types/Modifiers.js +0 -2
  320. package/script/types/RefName.js +0 -2
  321. package/script/types/Settings.js +0 -45
  322. package/script/types/TypeSystem.js +0 -2
  323. package/script/types/prettierConfig.js +0 -49
  324. package/script/typescript/identifiers.js +0 -12
  325. package/script/typescript/keyValues.js +0 -15
  326. package/script/typescript/toOperationResponse.js +0 -21
  327. package/script/typescript/toParamsObject.js +0 -16
  328. package/script/typescript/toPathTemplate.js +0 -7
  329. package/script/typescript/withDescription.js +0 -7
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.globToRegExp = globToRegExp;
6
- const _os_js_1 = require("./_os.js");
7
- const glob_to_regexp_js_1 = require("./posix/glob_to_regexp.js");
8
- const glob_to_regexp_js_2 = require("./windows/glob_to_regexp.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
5
+ import { globToRegExp as windowsGlobToRegExp, } from "./windows/glob_to_regexp.js";
9
6
  /**
10
7
  * Converts a glob string to a regular expression.
11
8
  *
@@ -79,8 +76,8 @@ const glob_to_regexp_js_2 = require("./windows/glob_to_regexp.js");
79
76
  * @param options Conversion options.
80
77
  * @returns The regular expression equivalent to the glob.
81
78
  */
82
- function globToRegExp(glob, options = {}) {
83
- return _os_js_1.isWindows
84
- ? (0, glob_to_regexp_js_2.globToRegExp)(glob, options)
85
- : (0, glob_to_regexp_js_1.globToRegExp)(glob, options);
79
+ export function globToRegExp(glob, options = {}) {
80
+ return isWindows
81
+ ? windowsGlobToRegExp(glob, options)
82
+ : posixGlobToRegExp(glob, options);
86
83
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isAbsolute = isAbsolute;
6
- const _os_js_1 = require("./_os.js");
7
- const is_absolute_js_1 = require("./posix/is_absolute.js");
8
- const is_absolute_js_2 = require("./windows/is_absolute.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
5
+ import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
9
6
  /**
10
7
  * Verifies whether provided path is absolute.
11
8
  *
@@ -26,6 +23,6 @@ const is_absolute_js_2 = require("./windows/is_absolute.js");
26
23
  * @param path Path to be verified as absolute.
27
24
  * @returns `true` if path is absolute, `false` otherwise
28
25
  */
29
- function isAbsolute(path) {
30
- return _os_js_1.isWindows ? (0, is_absolute_js_2.isAbsolute)(path) : (0, is_absolute_js_1.isAbsolute)(path);
26
+ export function isAbsolute(path) {
27
+ return isWindows ? windowsIsAbsolute(path) : posixIsAbsolute(path);
31
28
  }
@@ -1,8 +1,5 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isGlob = isGlob;
6
3
  /**
7
4
  * Test whether the given string is a glob.
8
5
  *
@@ -18,7 +15,7 @@ exports.isGlob = isGlob;
18
15
  * @param str String to test.
19
16
  * @returns `true` if the given string is a glob, otherwise `false`
20
17
  */
21
- function isGlob(str) {
18
+ export function isGlob(str) {
22
19
  const chars = { "{": "}", "(": ")", "[": "]" };
23
20
  const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
24
21
  if (str === "") {
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.join = join;
6
- const _os_js_1 = require("./_os.js");
7
- const join_js_1 = require("./posix/join.js");
8
- const join_js_2 = require("./windows/join.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { join as posixJoin } from "./posix/join.js";
5
+ import { join as windowsJoin } from "./windows/join.js";
9
6
  /**
10
7
  * Joins a sequence of paths, then normalizes the resulting path.
11
8
  *
@@ -24,6 +21,6 @@ const join_js_2 = require("./windows/join.js");
24
21
  * @param paths Paths to be joined and normalized.
25
22
  * @returns The joined and normalized path.
26
23
  */
27
- function join(...paths) {
28
- return _os_js_1.isWindows ? (0, join_js_2.join)(...paths) : (0, join_js_1.join)(...paths);
24
+ export function join(...paths) {
25
+ return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
29
26
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.joinGlobs = joinGlobs;
6
- const _os_js_1 = require("./_os.js");
7
- const join_globs_js_1 = require("./posix/join_globs.js");
8
- const join_globs_js_2 = require("./windows/join_globs.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
5
+ import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
9
6
  /**
10
7
  * Joins a sequence of globs, then normalizes the resulting glob.
11
8
  *
@@ -30,8 +27,8 @@ const join_globs_js_2 = require("./windows/join_globs.js");
30
27
  * @param options Glob options.
31
28
  * @returns The joined and normalized glob string.
32
29
  */
33
- function joinGlobs(globs, options = {}) {
34
- return _os_js_1.isWindows
35
- ? (0, join_globs_js_2.joinGlobs)(globs, options)
36
- : (0, join_globs_js_1.joinGlobs)(globs, options);
30
+ export function joinGlobs(globs, options = {}) {
31
+ return isWindows
32
+ ? windowsJoinGlobs(globs, options)
33
+ : posixJoinGlobs(globs, options);
37
34
  }
@@ -0,0 +1,54 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright the Browserify authors. MIT License.
3
+ // Ported mostly from https://github.com/browserify/path-browserify/
4
+ // This module is browser compatible.
5
+ /**
6
+ * Utilities for working with OS-specific file paths.
7
+ *
8
+ * Functions from this module will automatically switch to support the path style
9
+ * of the current OS, either `windows` for Microsoft Windows, or `posix` for
10
+ * every other operating system, eg. Linux, MacOS, BSD etc.
11
+ *
12
+ * To use functions for a specific path style regardless of the current OS
13
+ * import the modules from the platform sub directory instead.
14
+ *
15
+ * Example, for POSIX:
16
+ *
17
+ * ```ts
18
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
19
+ * import { assertEquals } from "@std/assert";
20
+ *
21
+ * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
22
+ * ```
23
+ *
24
+ * Or, for Windows:
25
+ *
26
+ * ```ts
27
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
28
+ * import { assertEquals } from "@std/assert";
29
+ *
30
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
31
+ * ```
32
+ *
33
+ * @module
34
+ */
35
+ export * from "./basename.js";
36
+ export * from "./constants.js";
37
+ export * from "./dirname.js";
38
+ export * from "./extname.js";
39
+ export * from "./format.js";
40
+ export * from "./from_file_url.js";
41
+ export * from "./is_absolute.js";
42
+ export * from "./join.js";
43
+ export * from "./normalize.js";
44
+ export * from "./parse.js";
45
+ export * from "./relative.js";
46
+ export * from "./resolve.js";
47
+ export * from "./to_file_url.js";
48
+ export * from "./to_namespaced_path.js";
49
+ export * from "./common.js";
50
+ export * from "./types.js";
51
+ export * from "./glob_to_regexp.js";
52
+ export * from "./is_glob.js";
53
+ export * from "./join_globs.js";
54
+ export * from "./normalize_glob.js";
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalize = normalize;
6
- const _os_js_1 = require("./_os.js");
7
- const normalize_js_1 = require("./posix/normalize.js");
8
- const normalize_js_2 = require("./windows/normalize.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { normalize as posixNormalize } from "./posix/normalize.js";
5
+ import { normalize as windowsNormalize } from "./windows/normalize.js";
9
6
  /**
10
7
  * Normalize the path, resolving `'..'` and `'.'` segments.
11
8
  *
@@ -28,6 +25,6 @@ const normalize_js_2 = require("./windows/normalize.js");
28
25
  * @param path Path to be normalized
29
26
  * @returns The normalized path.
30
27
  */
31
- function normalize(path) {
32
- return _os_js_1.isWindows ? (0, normalize_js_2.normalize)(path) : (0, normalize_js_1.normalize)(path);
28
+ export function normalize(path) {
29
+ return isWindows ? windowsNormalize(path) : posixNormalize(path);
33
30
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalizeGlob = normalizeGlob;
6
- const _os_js_1 = require("./_os.js");
7
- const normalize_glob_js_1 = require("./posix/normalize_glob.js");
8
- const normalize_glob_js_2 = require("./windows/normalize_glob.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
5
+ import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
9
6
  /**
10
7
  * Normalizes a glob string.
11
8
  *
@@ -31,8 +28,8 @@ const normalize_glob_js_2 = require("./windows/normalize_glob.js");
31
28
  * @param options Glob options.
32
29
  * @returns The normalized glob string.
33
30
  */
34
- function normalizeGlob(glob, options = {}) {
35
- return _os_js_1.isWindows
36
- ? (0, normalize_glob_js_2.normalizeGlob)(glob, options)
37
- : (0, normalize_glob_js_1.normalizeGlob)(glob, options);
31
+ export function normalizeGlob(glob, options = {}) {
32
+ return isWindows
33
+ ? windowsNormalizeGlob(glob, options)
34
+ : posixNormalizeGlob(glob, options);
38
35
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.parse = parse;
6
- const _os_js_1 = require("./_os.js");
7
- const parse_js_1 = require("./posix/parse.js");
8
- const parse_js_2 = require("./windows/parse.js");
3
+ import { isWindows } from "./_os.js";
4
+ import { parse as posixParse } from "./posix/parse.js";
5
+ import { parse as windowsParse } from "./windows/parse.js";
9
6
  /**
10
7
  * Return an object containing the parsed components of the path.
11
8
  *
@@ -37,6 +34,6 @@ const parse_js_2 = require("./windows/parse.js");
37
34
  * @param path Path to process
38
35
  * @returns An object with the parsed path components.
39
36
  */
40
- function parse(path) {
41
- return _os_js_1.isWindows ? (0, parse_js_2.parse)(path) : (0, parse_js_1.parse)(path);
37
+ export function parse(path) {
38
+ return isWindows ? windowsParse(path) : posixParse(path);
42
39
  }
@@ -0,0 +1,8 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright the Browserify authors. MIT License.
3
+ // Ported from https://github.com/browserify/path-browserify/
4
+ // This module is browser compatible.
5
+ import { CHAR_FORWARD_SLASH } from "../_common/constants.js";
6
+ export function isPosixPathSeparator(code) {
7
+ return code === CHAR_FORWARD_SLASH;
8
+ }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.basename = basename;
6
- const basename_js_1 = require("../_common/basename.js");
7
- const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
8
- const _util_js_1 = require("./_util.js");
3
+ import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
+ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
9
6
  /**
10
7
  * Return the last portion of a `path`.
11
8
  * Trailing directory separators are ignored, and optional suffix is removed.
@@ -24,9 +21,9 @@ const _util_js_1 = require("./_util.js");
24
21
  * @param suffix The suffix to remove from extracted name.
25
22
  * @returns The extracted name.
26
23
  */
27
- function basename(path, suffix = "") {
28
- (0, basename_js_1.assertArgs)(path, suffix);
29
- const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPosixPathSeparator);
30
- const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPosixPathSeparator);
31
- return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
24
+ export function basename(path, suffix = "") {
25
+ assertArgs(path, suffix);
26
+ const lastSegment = lastPathSegment(path, isPosixPathSeparator);
27
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
28
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
32
29
  }
@@ -1,17 +1,14 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.SEPARATOR_PATTERN = exports.SEPARATOR = exports.DELIMITER = void 0;
6
3
  /**
7
4
  * The character used to separate entries in the PATH environment variable.
8
5
  */
9
- exports.DELIMITER = ":";
6
+ export const DELIMITER = ":";
10
7
  /**
11
8
  * The character used to separate components of a file path.
12
9
  */
13
- exports.SEPARATOR = "/";
10
+ export const SEPARATOR = "/";
14
11
  /**
15
12
  * A regular expression that matches one or more path separators.
16
13
  */
17
- exports.SEPARATOR_PATTERN = /\/+/;
14
+ export const SEPARATOR_PATTERN = /\/+/;
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.dirname = dirname;
6
- const dirname_js_1 = require("../_common/dirname.js");
7
- const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
8
- const _util_js_1 = require("./_util.js");
3
+ import { assertArg } from "../_common/dirname.js";
4
+ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
9
6
  /**
10
7
  * Return the directory path of a `path`.
11
8
  *
@@ -21,12 +18,12 @@ const _util_js_1 = require("./_util.js");
21
18
  * @param path The path to get the directory from.
22
19
  * @returns The directory path.
23
20
  */
24
- function dirname(path) {
25
- (0, dirname_js_1.assertArg)(path);
21
+ export function dirname(path) {
22
+ assertArg(path);
26
23
  let end = -1;
27
24
  let matchedNonSeparator = false;
28
25
  for (let i = path.length - 1; i >= 1; --i) {
29
- if ((0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(i))) {
26
+ if (isPosixPathSeparator(path.charCodeAt(i))) {
30
27
  if (matchedNonSeparator) {
31
28
  end = i;
32
29
  break;
@@ -44,7 +41,7 @@ function dirname(path) {
44
41
  // - no slash path
45
42
  // "foo" => "."
46
43
  if (end === -1) {
47
- return (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0)) ? "/" : ".";
44
+ return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
48
45
  }
49
- return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
46
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
50
47
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.extname = extname;
6
- const constants_js_1 = require("../_common/constants.js");
7
- const assert_path_js_1 = require("../_common/assert_path.js");
8
- const _util_js_1 = require("./_util.js");
3
+ import { CHAR_DOT } from "../_common/constants.js";
4
+ import { assertPath } from "../_common/assert_path.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
9
6
  /**
10
7
  * Return the extension of the `path` with leading period.
11
8
  *
@@ -22,8 +19,8 @@ const _util_js_1 = require("./_util.js");
22
19
  * @param path The path to get the extension from.
23
20
  * @returns The extension (ex. for `file.ts` returns `.ts`).
24
21
  */
25
- function extname(path) {
26
- (0, assert_path_js_1.assertPath)(path);
22
+ export function extname(path) {
23
+ assertPath(path);
27
24
  let startDot = -1;
28
25
  let startPart = 0;
29
26
  let end = -1;
@@ -33,7 +30,7 @@ function extname(path) {
33
30
  let preDotState = 0;
34
31
  for (let i = path.length - 1; i >= 0; --i) {
35
32
  const code = path.charCodeAt(i);
36
- if ((0, _util_js_1.isPosixPathSeparator)(code)) {
33
+ if (isPosixPathSeparator(code)) {
37
34
  // If we reached a path separator that was not part of a set of path
38
35
  // separators at the end of the string, stop now
39
36
  if (!matchedSlash) {
@@ -48,7 +45,7 @@ function extname(path) {
48
45
  matchedSlash = false;
49
46
  end = i + 1;
50
47
  }
51
- if (code === constants_js_1.CHAR_DOT) {
48
+ if (code === CHAR_DOT) {
52
49
  // If this is our first dot, mark it as the start of our extension
53
50
  if (startDot === -1)
54
51
  startDot = i;
@@ -1,9 +1,6 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.format = format;
6
- const format_js_1 = require("../_common/format.js");
3
+ import { _format, assertArg } from "../_common/format.js";
7
4
  /**
8
5
  * Generate a path from `ParsedPath` object.
9
6
  *
@@ -25,7 +22,7 @@ const format_js_1 = require("../_common/format.js");
25
22
  * @param pathObject The path object to format.
26
23
  * @returns The formatted path.
27
24
  */
28
- function format(pathObject) {
29
- (0, format_js_1.assertArg)(pathObject);
30
- return (0, format_js_1._format)("/", pathObject);
25
+ export function format(pathObject) {
26
+ assertArg(pathObject);
27
+ return _format("/", pathObject);
31
28
  }
@@ -1,9 +1,6 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.fromFileUrl = fromFileUrl;
6
- const from_file_url_js_1 = require("../_common/from_file_url.js");
3
+ import { assertArg } from "../_common/from_file_url.js";
7
4
  /**
8
5
  * Converts a file URL to a path string.
9
6
  *
@@ -18,7 +15,7 @@ const from_file_url_js_1 = require("../_common/from_file_url.js");
18
15
  * @param url The file URL to convert.
19
16
  * @returns The path string.
20
17
  */
21
- function fromFileUrl(url) {
22
- url = (0, from_file_url_js_1.assertArg)(url);
18
+ export function fromFileUrl(url) {
19
+ url = assertArg(url);
23
20
  return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
24
21
  }
@@ -1,9 +1,6 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.globToRegExp = globToRegExp;
6
- const glob_to_reg_exp_js_1 = require("../_common/glob_to_reg_exp.js");
3
+ import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
7
4
  const constants = {
8
5
  sep: "/+",
9
6
  sepMaybe: "/*",
@@ -80,6 +77,6 @@ const constants = {
80
77
  * @param options Conversion options.
81
78
  * @returns The regular expression equivalent to the glob.
82
79
  */
83
- function globToRegExp(glob, options = {}) {
84
- return (0, glob_to_reg_exp_js_1._globToRegExp)(constants, glob, options);
80
+ export function globToRegExp(glob, options = {}) {
81
+ return _globToRegExp(constants, glob, options);
85
82
  }
@@ -1,10 +1,7 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.isAbsolute = isAbsolute;
6
- const assert_path_js_1 = require("../_common/assert_path.js");
7
- const _util_js_1 = require("./_util.js");
3
+ import { assertPath } from "../_common/assert_path.js";
4
+ import { isPosixPathSeparator } from "./_util.js";
8
5
  /**
9
6
  * Verifies whether provided path is absolute.
10
7
  *
@@ -20,7 +17,7 @@ const _util_js_1 = require("./_util.js");
20
17
  * @param path The path to verify.
21
18
  * @returns Whether the path is absolute.
22
19
  */
23
- function isAbsolute(path) {
24
- (0, assert_path_js_1.assertPath)(path);
25
- return path.length > 0 && (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
20
+ export function isAbsolute(path) {
21
+ assertPath(path);
22
+ return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
26
23
  }
@@ -1,10 +1,7 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.join = join;
6
- const assert_path_js_1 = require("../_common/assert_path.js");
7
- const normalize_js_1 = require("./normalize.js");
3
+ import { assertPath } from "../_common/assert_path.js";
4
+ import { normalize } from "./normalize.js";
8
5
  /**
9
6
  * Join all given a sequence of `paths`,then normalizes the resulting path.
10
7
  *
@@ -20,10 +17,10 @@ const normalize_js_1 = require("./normalize.js");
20
17
  * @param paths The paths to join.
21
18
  * @returns The joined path.
22
19
  */
23
- function join(...paths) {
20
+ export function join(...paths) {
24
21
  if (paths.length === 0)
25
22
  return ".";
26
- paths.forEach((path) => (0, assert_path_js_1.assertPath)(path));
23
+ paths.forEach((path) => assertPath(path));
27
24
  const joined = paths.filter((path) => path.length > 0).join("/");
28
- return joined === "" ? "." : (0, normalize_js_1.normalize)(joined);
25
+ return joined === "" ? "." : normalize(joined);
29
26
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.joinGlobs = joinGlobs;
6
- const join_js_1 = require("./join.js");
7
- const constants_js_1 = require("./constants.js");
8
- const normalize_glob_js_1 = require("./normalize_glob.js");
3
+ import { join } from "./join.js";
4
+ import { SEPARATOR } from "./constants.js";
5
+ import { normalizeGlob } from "./normalize_glob.js";
9
6
  /**
10
7
  * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
11
8
  *
@@ -22,9 +19,9 @@ const normalize_glob_js_1 = require("./normalize_glob.js");
22
19
  * @param options The options to use.
23
20
  * @returns The joined path.
24
21
  */
25
- function joinGlobs(globs, { extended = true, globstar = false } = {}) {
22
+ export function joinGlobs(globs, { extended = true, globstar = false } = {}) {
26
23
  if (!globstar || globs.length === 0) {
27
- return (0, join_js_1.join)(...globs);
24
+ return join(...globs);
28
25
  }
29
26
  let joined;
30
27
  for (const glob of globs) {
@@ -33,10 +30,10 @@ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
33
30
  if (!joined)
34
31
  joined = path;
35
32
  else
36
- joined += `${constants_js_1.SEPARATOR}${path}`;
33
+ joined += `${SEPARATOR}${path}`;
37
34
  }
38
35
  }
39
36
  if (!joined)
40
37
  return ".";
41
- return (0, normalize_glob_js_1.normalizeGlob)(joined, { extended, globstar });
38
+ return normalizeGlob(joined, { extended, globstar });
42
39
  }
@@ -1,11 +1,8 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalize = normalize;
6
- const normalize_js_1 = require("../_common/normalize.js");
7
- const normalize_string_js_1 = require("../_common/normalize_string.js");
8
- const _util_js_1 = require("./_util.js");
3
+ import { assertArg } from "../_common/normalize.js";
4
+ import { normalizeString } from "../_common/normalize_string.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
9
6
  /**
10
7
  * Normalize the `path`, resolving `'..'` and `'.'` segments.
11
8
  * Note that resolving these segments does not necessarily mean that all will be eliminated.
@@ -23,12 +20,12 @@ const _util_js_1 = require("./_util.js");
23
20
  * @param path The path to normalize.
24
21
  * @returns The normalized path.
25
22
  */
26
- function normalize(path) {
27
- (0, normalize_js_1.assertArg)(path);
28
- const isAbsolute = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0));
29
- const trailingSeparator = (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(path.length - 1));
23
+ export function normalize(path) {
24
+ assertArg(path);
25
+ const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
26
+ const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
30
27
  // Normalize the path
31
- path = (0, normalize_string_js_1.normalizeString)(path, !isAbsolute, "/", _util_js_1.isPosixPathSeparator);
28
+ path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator);
32
29
  if (path.length === 0 && !isAbsolute)
33
30
  path = ".";
34
31
  if (path.length > 0 && trailingSeparator)
@@ -1,10 +1,7 @@
1
- "use strict";
2
1
  // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
2
  // This module is browser compatible.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.normalizeGlob = normalizeGlob;
6
- const normalize_js_1 = require("./normalize.js");
7
- const constants_js_1 = require("./constants.js");
3
+ import { normalize } from "./normalize.js";
4
+ import { SEPARATOR_PATTERN } from "./constants.js";
8
5
  /**
9
6
  * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
10
7
  *
@@ -21,14 +18,14 @@ const constants_js_1 = require("./constants.js");
21
18
  * @param options The options to use.
22
19
  * @returns The normalized path.
23
20
  */
24
- function normalizeGlob(glob, { globstar = false } = {}) {
21
+ export function normalizeGlob(glob, { globstar = false } = {}) {
25
22
  if (glob.match(/\0/g)) {
26
23
  throw new Error(`Glob contains invalid characters: "${glob}"`);
27
24
  }
28
25
  if (!globstar) {
29
- return (0, normalize_js_1.normalize)(glob);
26
+ return normalize(glob);
30
27
  }
31
- const s = constants_js_1.SEPARATOR_PATTERN.source;
28
+ const s = SEPARATOR_PATTERN.source;
32
29
  const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
33
- return (0, normalize_js_1.normalize)(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
30
+ return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
34
31
  }