@bemoje/cli 0.0.9 → 0.0.11

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 (458) hide show
  1. package/cjs/arg/ArgumentBuilder.js +2 -2
  2. package/cjs/arg/ArgumentBuilder.js.map +1 -1
  3. package/cjs/arg/ArgumentValidatorSelector.js +2 -2
  4. package/cjs/arg/ArgumentValidatorSelector.js.map +1 -1
  5. package/cjs/cmd/CommandBuilder.js +77 -34
  6. package/cjs/cmd/CommandBuilder.js.map +1 -1
  7. package/cjs/cmd/CommandBuilderMetaData.js +2 -2
  8. package/cjs/cmd/CommandBuilderMetaData.js.map +1 -1
  9. package/cjs/core/OutputManager.js +4 -4
  10. package/cjs/core/OutputManager.js.map +1 -1
  11. package/cjs/core/ParserSelector.js +11 -11
  12. package/cjs/core/ParserSelector.js.map +1 -1
  13. package/cjs/core/ValidatorSelector.js +11 -11
  14. package/cjs/core/ValidatorSelector.js.map +1 -1
  15. package/cjs/db/AbstractJsonFileSection.js +2 -3
  16. package/cjs/db/AbstractJsonFileSection.js.map +1 -1
  17. package/cjs/db/ConfigSection.js +3 -4
  18. package/cjs/db/ConfigSection.js.map +1 -1
  19. package/cjs/db/JsonFile.js +5 -6
  20. package/cjs/db/JsonFile.js.map +1 -1
  21. package/cjs/db/PresetsSection.js +2 -2
  22. package/cjs/db/PresetsSection.js.map +1 -1
  23. package/cjs/index.js +0 -77
  24. package/cjs/index.js.map +1 -1
  25. package/cjs/opt/OptionBuilder.js +2 -2
  26. package/cjs/opt/OptionBuilder.js.map +1 -1
  27. package/cjs/opt/OptionHelpers.js +5 -5
  28. package/cjs/opt/OptionHelpers.js.map +1 -1
  29. package/esm/arg/ArgumentBuilder.js +1 -1
  30. package/esm/arg/ArgumentBuilder.js.map +1 -1
  31. package/esm/arg/ArgumentValidatorSelector.js +1 -1
  32. package/esm/arg/ArgumentValidatorSelector.js.map +1 -1
  33. package/esm/cmd/CommandBuilder.js +59 -16
  34. package/esm/cmd/CommandBuilder.js.map +1 -1
  35. package/esm/cmd/CommandBuilderMetaData.js +1 -1
  36. package/esm/cmd/CommandBuilderMetaData.js.map +1 -1
  37. package/esm/core/OutputManager.js +1 -1
  38. package/esm/core/OutputManager.js.map +1 -1
  39. package/esm/core/ParserSelector.js +4 -4
  40. package/esm/core/ParserSelector.js.map +1 -1
  41. package/esm/core/ValidatorSelector.js +4 -4
  42. package/esm/core/ValidatorSelector.js.map +1 -1
  43. package/esm/db/AbstractJsonFileSection.js +1 -2
  44. package/esm/db/AbstractJsonFileSection.js.map +1 -1
  45. package/esm/db/ConfigSection.js +1 -2
  46. package/esm/db/ConfigSection.js.map +1 -1
  47. package/esm/db/JsonFile.js +1 -2
  48. package/esm/db/JsonFile.js.map +1 -1
  49. package/esm/db/PresetsSection.js +1 -1
  50. package/esm/db/PresetsSection.js.map +1 -1
  51. package/esm/index.js +0 -77
  52. package/esm/index.js.map +1 -1
  53. package/esm/opt/OptionBuilder.js +1 -1
  54. package/esm/opt/OptionBuilder.js.map +1 -1
  55. package/esm/opt/OptionHelpers.js +2 -2
  56. package/esm/opt/OptionHelpers.js.map +1 -1
  57. package/package.json +2 -1
  58. package/types/arg/ArgumentParserSelector.d.ts +2 -2
  59. package/types/arg/ArgumentValidatorSelector.d.ts +1 -1
  60. package/types/cmd/CommandBuilder.d.ts +38 -4
  61. package/types/cmd/CommandBuilderMetaData.d.ts +3 -3
  62. package/types/core/OutputManager.d.ts +2 -2
  63. package/types/core/ParserSelector.d.ts +2 -2
  64. package/types/core/ValidatorSelector.d.ts +2 -2
  65. package/types/db/AbstractJsonFileSection.d.ts +2 -3
  66. package/types/db/AppDataSection.d.ts +1 -1
  67. package/types/db/ConfigSection.d.ts +1 -3
  68. package/types/db/JsonFile.d.ts +1 -1
  69. package/types/index.d.ts +0 -77
  70. package/types/opt/OptionArgumentParserSelector.d.ts +1 -1
  71. package/types/opt/OptionArgumentValidatorSelector.d.ts +1 -1
  72. package/types/types/IConfig.d.ts +3 -3
  73. package/types/types/IPreset.d.ts +1 -1
  74. package/cjs/cmd/asdas.js +0 -27
  75. package/cjs/cmd/asdas.js.map +0 -1
  76. package/cjs/util/array/arrLast.js +0 -21
  77. package/cjs/util/array/arrLast.js.map +0 -1
  78. package/cjs/util/array/arrSome.js +0 -26
  79. package/cjs/util/array/arrSome.js.map +0 -1
  80. package/cjs/util/array/types/ArrayPredicate.js +0 -3
  81. package/cjs/util/array/types/ArrayPredicate.js.map +0 -1
  82. package/cjs/util/db/JsonDB.js +0 -145
  83. package/cjs/util/db/JsonDB.js.map +0 -1
  84. package/cjs/util/errors/ErrorParser.js +0 -164
  85. package/cjs/util/errors/ErrorParser.js.map +0 -1
  86. package/cjs/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js +0 -3
  87. package/cjs/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js.map +0 -1
  88. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js +0 -32
  89. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js.map +0 -1
  90. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js +0 -25
  91. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js.map +0 -1
  92. package/cjs/util/fs/readFile/readFileSafeSync.js +0 -28
  93. package/cjs/util/fs/readFile/readFileSafeSync.js.map +0 -1
  94. package/cjs/util/fs/readFile/readFileSync.js +0 -20
  95. package/cjs/util/fs/readFile/readFileSync.js.map +0 -1
  96. package/cjs/util/fs/readJsonFile/readJsonFileSafeSync.js +0 -24
  97. package/cjs/util/fs/readJsonFile/readJsonFileSafeSync.js.map +0 -1
  98. package/cjs/util/fs/removeFile/removeFile.js +0 -6
  99. package/cjs/util/fs/removeFile/removeFile.js.map +0 -1
  100. package/cjs/util/fs/tempFile/tempFileSync.js +0 -28
  101. package/cjs/util/fs/tempFile/tempFileSync.js.map +0 -1
  102. package/cjs/util/fs/types/IReadJsonFileOptions.js +0 -3
  103. package/cjs/util/fs/types/IReadJsonFileOptions.js.map +0 -1
  104. package/cjs/util/fs/writeFile/writeFileSafeSync.js +0 -6
  105. package/cjs/util/fs/writeFile/writeFileSafeSync.js.map +0 -1
  106. package/cjs/util/fs/writeFile/writeFileSync.js +0 -6
  107. package/cjs/util/fs/writeFile/writeFileSync.js.map +0 -1
  108. package/cjs/util/fs/writeJsonFile/writeJsonFileSafe.js +0 -6
  109. package/cjs/util/fs/writeJsonFile/writeJsonFileSafe.js.map +0 -1
  110. package/cjs/util/function/MethodDisabler.js +0 -94
  111. package/cjs/util/function/MethodDisabler.js.map +0 -1
  112. package/cjs/util/function/funSetName.js +0 -21
  113. package/cjs/util/function/funSetName.js.map +0 -1
  114. package/cjs/util/node/execInherit.js +0 -19
  115. package/cjs/util/node/execInherit.js.map +0 -1
  116. package/cjs/util/node/formatTableForTerminal.js +0 -21
  117. package/cjs/util/node/formatTableForTerminal.js.map +0 -1
  118. package/cjs/util/object/arrAssign.js +0 -6
  119. package/cjs/util/object/arrAssign.js.map +0 -1
  120. package/cjs/util/object/createArrayMerger.js +0 -20
  121. package/cjs/util/object/createArrayMerger.js.map +0 -1
  122. package/cjs/util/object/createObjectMerger.js +0 -20
  123. package/cjs/util/object/createObjectMerger.js.map +0 -1
  124. package/cjs/util/object/objAssign.js +0 -6
  125. package/cjs/util/object/objAssign.js.map +0 -1
  126. package/cjs/util/object/objUpdatePropertyDescriptors.js +0 -28
  127. package/cjs/util/object/objUpdatePropertyDescriptors.js.map +0 -1
  128. package/cjs/util/object/realizeLazyProperty.js +0 -14
  129. package/cjs/util/object/realizeLazyProperty.js.map +0 -1
  130. package/cjs/util/object/setNonEnumerable.js +0 -25
  131. package/cjs/util/object/setNonEnumerable.js.map +0 -1
  132. package/cjs/util/os/defaultOpenInEditorCommand.js +0 -18
  133. package/cjs/util/os/defaultOpenInEditorCommand.js.map +0 -1
  134. package/cjs/util/os/isOSX.js +0 -13
  135. package/cjs/util/os/isOSX.js.map +0 -1
  136. package/cjs/util/os/isVsCodeInstalled.js +0 -19
  137. package/cjs/util/os/isVsCodeInstalled.js.map +0 -1
  138. package/cjs/util/os/isWindows.js +0 -16
  139. package/cjs/util/os/isWindows.js.map +0 -1
  140. package/cjs/util/path/getTempDataPath.js +0 -20
  141. package/cjs/util/path/getTempDataPath.js.map +0 -1
  142. package/cjs/util/regex/regexEscapeString.js +0 -18
  143. package/cjs/util/regex/regexEscapeString.js.map +0 -1
  144. package/cjs/util/string/strEnsureStartsWith.js +0 -19
  145. package/cjs/util/string/strEnsureStartsWith.js.map +0 -1
  146. package/cjs/util/string/strFirstCharToUpperCase.js +0 -16
  147. package/cjs/util/string/strFirstCharToUpperCase.js.map +0 -1
  148. package/cjs/util/string/strIsLowerCase.js +0 -18
  149. package/cjs/util/string/strIsLowerCase.js.map +0 -1
  150. package/cjs/util/string/strIsUpperCase.js +0 -18
  151. package/cjs/util/string/strIsUpperCase.js.map +0 -1
  152. package/cjs/util/string/strSplitCamelCase.js +0 -55
  153. package/cjs/util/string/strSplitCamelCase.js.map +0 -1
  154. package/cjs/util/string-parsers/createBooleanParser.js +0 -21
  155. package/cjs/util/string-parsers/createBooleanParser.js.map +0 -1
  156. package/cjs/util/string-parsers/createTypedListParser.js +0 -22
  157. package/cjs/util/string-parsers/createTypedListParser.js.map +0 -1
  158. package/cjs/util/string-parsers/parseBoolean.js +0 -15
  159. package/cjs/util/string-parsers/parseBoolean.js.map +0 -1
  160. package/cjs/util/string-parsers/parseInteger.js +0 -17
  161. package/cjs/util/string-parsers/parseInteger.js.map +0 -1
  162. package/cjs/util/string-parsers/parseNumber.js +0 -13
  163. package/cjs/util/string-parsers/parseNumber.js.map +0 -1
  164. package/cjs/util/string-parsers/parseString.js +0 -8
  165. package/cjs/util/string-parsers/parseString.js.map +0 -1
  166. package/cjs/util/types/Any.js +0 -3
  167. package/cjs/util/types/Any.js.map +0 -1
  168. package/cjs/util/types/DeepArray.js +0 -3
  169. package/cjs/util/types/DeepArray.js.map +0 -1
  170. package/cjs/util/types/DeepObject.js +0 -3
  171. package/cjs/util/types/DeepObject.js.map +0 -1
  172. package/cjs/util/types/JsonArray.js +0 -3
  173. package/cjs/util/types/JsonArray.js.map +0 -1
  174. package/cjs/util/types/JsonDefinedPrimitive.js +0 -6
  175. package/cjs/util/types/JsonDefinedPrimitive.js.map +0 -1
  176. package/cjs/util/types/JsonObject.js +0 -3
  177. package/cjs/util/types/JsonObject.js.map +0 -1
  178. package/cjs/util/types/JsonRawPrimitive.js +0 -3
  179. package/cjs/util/types/JsonRawPrimitive.js.map +0 -1
  180. package/cjs/util/types/JsonValue.js +0 -3
  181. package/cjs/util/types/JsonValue.js.map +0 -1
  182. package/cjs/util/types/ObjectKey.js +0 -3
  183. package/cjs/util/types/ObjectKey.js.map +0 -1
  184. package/cjs/util/types/TConstructor.js +0 -3
  185. package/cjs/util/types/TConstructor.js.map +0 -1
  186. package/cjs/util/types/TFunction.js +0 -3
  187. package/cjs/util/types/TFunction.js.map +0 -1
  188. package/cjs/util/types/TFunctionNoNew.js +0 -3
  189. package/cjs/util/types/TFunctionNoNew.js.map +0 -1
  190. package/cjs/util/types/TPlainObject.js +0 -3
  191. package/cjs/util/types/TPlainObject.js.map +0 -1
  192. package/cjs/util/types/TPrimitive.js +0 -3
  193. package/cjs/util/types/TPrimitive.js.map +0 -1
  194. package/cjs/util/types/TStringParser.js +0 -3
  195. package/cjs/util/types/TStringParser.js.map +0 -1
  196. package/cjs/util/types/TValidator.js +0 -3
  197. package/cjs/util/types/TValidator.js.map +0 -1
  198. package/cjs/util/validation/createTypedArrayValidator.js +0 -26
  199. package/cjs/util/validation/createTypedArrayValidator.js.map +0 -1
  200. package/cjs/util/validation/ensureThat.js +0 -12
  201. package/cjs/util/validation/ensureThat.js.map +0 -1
  202. package/cjs/util/validation/isArray.js +0 -5
  203. package/cjs/util/validation/isArray.js.map +0 -1
  204. package/cjs/util/validation/isBoolean.js +0 -8
  205. package/cjs/util/validation/isBoolean.js.map +0 -1
  206. package/cjs/util/validation/isFunction.js +0 -17
  207. package/cjs/util/validation/isFunction.js.map +0 -1
  208. package/cjs/util/validation/isNamedFunction.js +0 -11
  209. package/cjs/util/validation/isNamedFunction.js.map +0 -1
  210. package/cjs/util/validation/isNamedFunctionArray.js +0 -9
  211. package/cjs/util/validation/isNamedFunctionArray.js.map +0 -1
  212. package/cjs/util/validation/isObject.js +0 -22
  213. package/cjs/util/validation/isObject.js.map +0 -1
  214. package/cjs/util/validation/isPlainObject.js +0 -19
  215. package/cjs/util/validation/isPlainObject.js.map +0 -1
  216. package/cjs/util/validation/isPrimitive.js +0 -18
  217. package/cjs/util/validation/isPrimitive.js.map +0 -1
  218. package/cjs/util/validation/isString.js +0 -8
  219. package/cjs/util/validation/isString.js.map +0 -1
  220. package/cjs/util/validation/isStringArray.js +0 -12
  221. package/cjs/util/validation/isStringArray.js.map +0 -1
  222. package/cjs/util/validation/isStringWithNoSpacesOrDashes.js +0 -9
  223. package/cjs/util/validation/isStringWithNoSpacesOrDashes.js.map +0 -1
  224. package/cjs/util/validation/numbers/isInteger.js +0 -17
  225. package/cjs/util/validation/numbers/isInteger.js.map +0 -1
  226. package/cjs/util/validation/numbers/isValidNumber.js +0 -22
  227. package/cjs/util/validation/numbers/isValidNumber.js.map +0 -1
  228. package/esm/cmd/asdas.js +0 -25
  229. package/esm/cmd/asdas.js.map +0 -1
  230. package/esm/util/array/arrLast.js +0 -17
  231. package/esm/util/array/arrLast.js.map +0 -1
  232. package/esm/util/array/arrSome.js +0 -22
  233. package/esm/util/array/arrSome.js.map +0 -1
  234. package/esm/util/array/types/ArrayPredicate.js +0 -2
  235. package/esm/util/array/types/ArrayPredicate.js.map +0 -1
  236. package/esm/util/db/JsonDB.js +0 -141
  237. package/esm/util/db/JsonDB.js.map +0 -1
  238. package/esm/util/errors/ErrorParser.js +0 -154
  239. package/esm/util/errors/ErrorParser.js.map +0 -1
  240. package/esm/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js +0 -2
  241. package/esm/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js.map +0 -1
  242. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js +0 -28
  243. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js.map +0 -1
  244. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js +0 -21
  245. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js.map +0 -1
  246. package/esm/util/fs/readFile/readFileSafeSync.js +0 -21
  247. package/esm/util/fs/readFile/readFileSafeSync.js.map +0 -1
  248. package/esm/util/fs/readFile/readFileSync.js +0 -13
  249. package/esm/util/fs/readFile/readFileSync.js.map +0 -1
  250. package/esm/util/fs/readJsonFile/readJsonFileSafeSync.js +0 -17
  251. package/esm/util/fs/readJsonFile/readJsonFileSafeSync.js.map +0 -1
  252. package/esm/util/fs/removeFile/removeFile.js +0 -2
  253. package/esm/util/fs/removeFile/removeFile.js.map +0 -1
  254. package/esm/util/fs/tempFile/tempFileSync.js +0 -21
  255. package/esm/util/fs/tempFile/tempFileSync.js.map +0 -1
  256. package/esm/util/fs/types/IReadJsonFileOptions.js +0 -2
  257. package/esm/util/fs/types/IReadJsonFileOptions.js.map +0 -1
  258. package/esm/util/fs/writeFile/writeFileSafeSync.js +0 -2
  259. package/esm/util/fs/writeFile/writeFileSafeSync.js.map +0 -1
  260. package/esm/util/fs/writeFile/writeFileSync.js +0 -2
  261. package/esm/util/fs/writeFile/writeFileSync.js.map +0 -1
  262. package/esm/util/fs/writeJsonFile/writeJsonFileSafe.js +0 -2
  263. package/esm/util/fs/writeJsonFile/writeJsonFileSafe.js.map +0 -1
  264. package/esm/util/function/MethodDisabler.js +0 -90
  265. package/esm/util/function/MethodDisabler.js.map +0 -1
  266. package/esm/util/function/funSetName.js +0 -17
  267. package/esm/util/function/funSetName.js.map +0 -1
  268. package/esm/util/node/execInherit.js +0 -15
  269. package/esm/util/node/execInherit.js.map +0 -1
  270. package/esm/util/node/formatTableForTerminal.js +0 -14
  271. package/esm/util/node/formatTableForTerminal.js.map +0 -1
  272. package/esm/util/object/arrAssign.js +0 -3
  273. package/esm/util/object/arrAssign.js.map +0 -1
  274. package/esm/util/object/createArrayMerger.js +0 -16
  275. package/esm/util/object/createArrayMerger.js.map +0 -1
  276. package/esm/util/object/createObjectMerger.js +0 -16
  277. package/esm/util/object/createObjectMerger.js.map +0 -1
  278. package/esm/util/object/objAssign.js +0 -3
  279. package/esm/util/object/objAssign.js.map +0 -1
  280. package/esm/util/object/objUpdatePropertyDescriptors.js +0 -24
  281. package/esm/util/object/objUpdatePropertyDescriptors.js.map +0 -1
  282. package/esm/util/object/realizeLazyProperty.js +0 -10
  283. package/esm/util/object/realizeLazyProperty.js.map +0 -1
  284. package/esm/util/object/setNonEnumerable.js +0 -21
  285. package/esm/util/object/setNonEnumerable.js.map +0 -1
  286. package/esm/util/os/defaultOpenInEditorCommand.js +0 -14
  287. package/esm/util/os/defaultOpenInEditorCommand.js.map +0 -1
  288. package/esm/util/os/isOSX.js +0 -9
  289. package/esm/util/os/isOSX.js.map +0 -1
  290. package/esm/util/os/isVsCodeInstalled.js +0 -15
  291. package/esm/util/os/isVsCodeInstalled.js.map +0 -1
  292. package/esm/util/os/isWindows.js +0 -12
  293. package/esm/util/os/isWindows.js.map +0 -1
  294. package/esm/util/path/getTempDataPath.js +0 -13
  295. package/esm/util/path/getTempDataPath.js.map +0 -1
  296. package/esm/util/regex/regexEscapeString.js +0 -14
  297. package/esm/util/regex/regexEscapeString.js.map +0 -1
  298. package/esm/util/string/strEnsureStartsWith.js +0 -15
  299. package/esm/util/string/strEnsureStartsWith.js.map +0 -1
  300. package/esm/util/string/strFirstCharToUpperCase.js +0 -12
  301. package/esm/util/string/strFirstCharToUpperCase.js.map +0 -1
  302. package/esm/util/string/strIsLowerCase.js +0 -14
  303. package/esm/util/string/strIsLowerCase.js.map +0 -1
  304. package/esm/util/string/strIsUpperCase.js +0 -14
  305. package/esm/util/string/strIsUpperCase.js.map +0 -1
  306. package/esm/util/string/strSplitCamelCase.js +0 -51
  307. package/esm/util/string/strSplitCamelCase.js.map +0 -1
  308. package/esm/util/string-parsers/createBooleanParser.js +0 -17
  309. package/esm/util/string-parsers/createBooleanParser.js.map +0 -1
  310. package/esm/util/string-parsers/createTypedListParser.js +0 -18
  311. package/esm/util/string-parsers/createTypedListParser.js.map +0 -1
  312. package/esm/util/string-parsers/parseBoolean.js +0 -12
  313. package/esm/util/string-parsers/parseBoolean.js.map +0 -1
  314. package/esm/util/string-parsers/parseInteger.js +0 -13
  315. package/esm/util/string-parsers/parseInteger.js.map +0 -1
  316. package/esm/util/string-parsers/parseNumber.js +0 -9
  317. package/esm/util/string-parsers/parseNumber.js.map +0 -1
  318. package/esm/util/string-parsers/parseString.js +0 -4
  319. package/esm/util/string-parsers/parseString.js.map +0 -1
  320. package/esm/util/types/Any.js +0 -2
  321. package/esm/util/types/Any.js.map +0 -1
  322. package/esm/util/types/DeepArray.js +0 -2
  323. package/esm/util/types/DeepArray.js.map +0 -1
  324. package/esm/util/types/DeepObject.js +0 -2
  325. package/esm/util/types/DeepObject.js.map +0 -1
  326. package/esm/util/types/JsonArray.js +0 -2
  327. package/esm/util/types/JsonArray.js.map +0 -1
  328. package/esm/util/types/JsonDefinedPrimitive.js +0 -5
  329. package/esm/util/types/JsonDefinedPrimitive.js.map +0 -1
  330. package/esm/util/types/JsonObject.js +0 -2
  331. package/esm/util/types/JsonObject.js.map +0 -1
  332. package/esm/util/types/JsonRawPrimitive.js +0 -2
  333. package/esm/util/types/JsonRawPrimitive.js.map +0 -1
  334. package/esm/util/types/JsonValue.js +0 -2
  335. package/esm/util/types/JsonValue.js.map +0 -1
  336. package/esm/util/types/ObjectKey.js +0 -2
  337. package/esm/util/types/ObjectKey.js.map +0 -1
  338. package/esm/util/types/TConstructor.js +0 -2
  339. package/esm/util/types/TConstructor.js.map +0 -1
  340. package/esm/util/types/TFunction.js +0 -2
  341. package/esm/util/types/TFunction.js.map +0 -1
  342. package/esm/util/types/TFunctionNoNew.js +0 -2
  343. package/esm/util/types/TFunctionNoNew.js.map +0 -1
  344. package/esm/util/types/TPlainObject.js +0 -2
  345. package/esm/util/types/TPlainObject.js.map +0 -1
  346. package/esm/util/types/TPrimitive.js +0 -2
  347. package/esm/util/types/TPrimitive.js.map +0 -1
  348. package/esm/util/types/TStringParser.js +0 -2
  349. package/esm/util/types/TStringParser.js.map +0 -1
  350. package/esm/util/types/TValidator.js +0 -2
  351. package/esm/util/types/TValidator.js.map +0 -1
  352. package/esm/util/validation/createTypedArrayValidator.js +0 -22
  353. package/esm/util/validation/createTypedArrayValidator.js.map +0 -1
  354. package/esm/util/validation/ensureThat.js +0 -8
  355. package/esm/util/validation/ensureThat.js.map +0 -1
  356. package/esm/util/validation/isArray.js +0 -2
  357. package/esm/util/validation/isArray.js.map +0 -1
  358. package/esm/util/validation/isBoolean.js +0 -4
  359. package/esm/util/validation/isBoolean.js.map +0 -1
  360. package/esm/util/validation/isFunction.js +0 -13
  361. package/esm/util/validation/isFunction.js.map +0 -1
  362. package/esm/util/validation/isNamedFunction.js +0 -7
  363. package/esm/util/validation/isNamedFunction.js.map +0 -1
  364. package/esm/util/validation/isNamedFunctionArray.js +0 -5
  365. package/esm/util/validation/isNamedFunctionArray.js.map +0 -1
  366. package/esm/util/validation/isObject.js +0 -18
  367. package/esm/util/validation/isObject.js.map +0 -1
  368. package/esm/util/validation/isPlainObject.js +0 -15
  369. package/esm/util/validation/isPlainObject.js.map +0 -1
  370. package/esm/util/validation/isPrimitive.js +0 -14
  371. package/esm/util/validation/isPrimitive.js.map +0 -1
  372. package/esm/util/validation/isString.js +0 -4
  373. package/esm/util/validation/isString.js.map +0 -1
  374. package/esm/util/validation/isStringArray.js +0 -8
  375. package/esm/util/validation/isStringArray.js.map +0 -1
  376. package/esm/util/validation/isStringWithNoSpacesOrDashes.js +0 -5
  377. package/esm/util/validation/isStringWithNoSpacesOrDashes.js.map +0 -1
  378. package/esm/util/validation/numbers/isInteger.js +0 -14
  379. package/esm/util/validation/numbers/isInteger.js.map +0 -1
  380. package/esm/util/validation/numbers/isValidNumber.js +0 -18
  381. package/esm/util/validation/numbers/isValidNumber.js.map +0 -1
  382. package/types/cmd/asdas.d.ts +0 -6
  383. package/types/util/array/arrLast.d.ts +0 -12
  384. package/types/util/array/arrSome.d.ts +0 -15
  385. package/types/util/array/types/ArrayPredicate.d.ts +0 -10
  386. package/types/util/db/JsonDB.d.ts +0 -65
  387. package/types/util/errors/ErrorParser.d.ts +0 -15
  388. package/types/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.d.ts +0 -15
  389. package/types/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.d.ts +0 -9
  390. package/types/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.d.ts +0 -13
  391. package/types/util/fs/readFile/readFileSafeSync.d.ts +0 -13
  392. package/types/util/fs/readFile/readFileSync.d.ts +0 -10
  393. package/types/util/fs/readJsonFile/readJsonFileSafeSync.d.ts +0 -9
  394. package/types/util/fs/removeFile/removeFile.d.ts +0 -1
  395. package/types/util/fs/tempFile/tempFileSync.d.ts +0 -7
  396. package/types/util/fs/types/IReadJsonFileOptions.d.ts +0 -1
  397. package/types/util/fs/writeFile/writeFileSafeSync.d.ts +0 -1
  398. package/types/util/fs/writeFile/writeFileSync.d.ts +0 -1
  399. package/types/util/fs/writeJsonFile/writeJsonFileSafe.d.ts +0 -1
  400. package/types/util/function/MethodDisabler.d.ts +0 -43
  401. package/types/util/function/funSetName.d.ts +0 -13
  402. package/types/util/node/execInherit.d.ts +0 -1
  403. package/types/util/node/formatTableForTerminal.d.ts +0 -1
  404. package/types/util/object/arrAssign.d.ts +0 -1
  405. package/types/util/object/createArrayMerger.d.ts +0 -4
  406. package/types/util/object/createObjectMerger.d.ts +0 -5
  407. package/types/util/object/objAssign.d.ts +0 -1
  408. package/types/util/object/objUpdatePropertyDescriptors.d.ts +0 -16
  409. package/types/util/object/realizeLazyProperty.d.ts +0 -1
  410. package/types/util/object/setNonEnumerable.d.ts +0 -15
  411. package/types/util/os/defaultOpenInEditorCommand.d.ts +0 -5
  412. package/types/util/os/isOSX.d.ts +0 -6
  413. package/types/util/os/isVsCodeInstalled.d.ts +0 -5
  414. package/types/util/os/isWindows.d.ts +0 -8
  415. package/types/util/path/getTempDataPath.d.ts +0 -6
  416. package/types/util/regex/regexEscapeString.d.ts +0 -11
  417. package/types/util/string/strEnsureStartsWith.d.ts +0 -12
  418. package/types/util/string/strFirstCharToUpperCase.d.ts +0 -9
  419. package/types/util/string/strIsLowerCase.d.ts +0 -11
  420. package/types/util/string/strIsUpperCase.d.ts +0 -11
  421. package/types/util/string/strSplitCamelCase.d.ts +0 -11
  422. package/types/util/string-parsers/createBooleanParser.d.ts +0 -7
  423. package/types/util/string-parsers/createTypedListParser.d.ts +0 -11
  424. package/types/util/string-parsers/parseBoolean.d.ts +0 -10
  425. package/types/util/string-parsers/parseInteger.d.ts +0 -1
  426. package/types/util/string-parsers/parseNumber.d.ts +0 -1
  427. package/types/util/string-parsers/parseString.d.ts +0 -1
  428. package/types/util/types/Any.d.ts +0 -1
  429. package/types/util/types/DeepArray.d.ts +0 -10
  430. package/types/util/types/DeepObject.d.ts +0 -14
  431. package/types/util/types/JsonArray.d.ts +0 -6
  432. package/types/util/types/JsonDefinedPrimitive.d.ts +0 -4
  433. package/types/util/types/JsonObject.d.ts +0 -6
  434. package/types/util/types/JsonRawPrimitive.d.ts +0 -5
  435. package/types/util/types/JsonValue.d.ts +0 -7
  436. package/types/util/types/ObjectKey.d.ts +0 -1
  437. package/types/util/types/TConstructor.d.ts +0 -5
  438. package/types/util/types/TFunction.d.ts +0 -4
  439. package/types/util/types/TFunctionNoNew.d.ts +0 -2
  440. package/types/util/types/TPlainObject.d.ts +0 -2
  441. package/types/util/types/TPrimitive.d.ts +0 -1
  442. package/types/util/types/TStringParser.d.ts +0 -1
  443. package/types/util/types/TValidator.d.ts +0 -2
  444. package/types/util/validation/createTypedArrayValidator.d.ts +0 -9
  445. package/types/util/validation/ensureThat.d.ts +0 -6
  446. package/types/util/validation/isArray.d.ts +0 -1
  447. package/types/util/validation/isBoolean.d.ts +0 -1
  448. package/types/util/validation/isFunction.d.ts +0 -11
  449. package/types/util/validation/isNamedFunction.d.ts +0 -5
  450. package/types/util/validation/isNamedFunctionArray.d.ts +0 -1
  451. package/types/util/validation/isObject.d.ts +0 -15
  452. package/types/util/validation/isPlainObject.d.ts +0 -6
  453. package/types/util/validation/isPrimitive.d.ts +0 -12
  454. package/types/util/validation/isString.d.ts +0 -1
  455. package/types/util/validation/isStringArray.d.ts +0 -4
  456. package/types/util/validation/isStringWithNoSpacesOrDashes.d.ts +0 -1
  457. package/types/util/validation/numbers/isInteger.d.ts +0 -13
  458. package/types/util/validation/numbers/isValidNumber.d.ts +0 -15
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isBoolean = void 0;
4
- function isBoolean(value) {
5
- return typeof value === 'boolean';
6
- }
7
- exports.isBoolean = isBoolean;
8
- //# sourceMappingURL=isBoolean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBoolean.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isBoolean.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS,CAAC,KAAc;IACtC,OAAO,OAAO,KAAK,KAAK,SAAS,CAAA;AACnC,CAAC;AAFD,8BAEC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isFunction = void 0;
4
- /**
5
- * Checks if the given value is a function.
6
- *
7
- * @example ```ts
8
- * isFunction(class {}); //=> true
9
- * isFunction(function () {}); //=> true
10
- * isFunction(() => {}); //=> true
11
- * ```
12
- */
13
- function isFunction(value) {
14
- return typeof value === 'function' && value !== Function.prototype;
15
- }
16
- exports.isFunction = isFunction;
17
- //# sourceMappingURL=isFunction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isFunction.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;GAQG;AACH,SAAgB,UAAU,CAAC,KAAc;IACvC,OAAO,OAAO,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,QAAQ,CAAC,SAAS,CAAA;AACpE,CAAC;AAFD,gCAEC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNamedFunction = void 0;
4
- /**
5
- * Checks if the provided value is a named function.
6
- */
7
- function isNamedFunction(func) {
8
- return typeof func === 'function' && !!func.name;
9
- }
10
- exports.isNamedFunction = isNamedFunction;
11
- //# sourceMappingURL=isNamedFunction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNamedFunction.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isNamedFunction.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAa;IAC3C,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;AAClD,CAAC;AAFD,0CAEC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNamedFunctionArray = void 0;
4
- const isNamedFunction_1 = require("./isNamedFunction");
5
- function isNamedFunctionArray(array) {
6
- return Array.isArray(array) && array.every(isNamedFunction_1.isNamedFunction);
7
- }
8
- exports.isNamedFunctionArray = isNamedFunctionArray;
9
- //# sourceMappingURL=isNamedFunctionArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNamedFunctionArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isNamedFunctionArray.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,SAAgB,oBAAoB,CAAC,KAAc;IACjD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,iCAAe,CAAC,CAAA;AAC7D,CAAC;AAFD,oDAEC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isObject = void 0;
4
- /**
5
- * Checks if the provided value is an object (null, arrays and functions not included).
6
- * @template T - The type of the value to check.
7
- * @param value The value to check.
8
- * @returns A boolean indicating whether the provided value is an object.
9
- * @example ```ts
10
- * isObject({});;
11
- * //=> true
12
- * isObject([1]);;
13
- * //=> false
14
- * isObject(123);;
15
- * //=> false
16
- * ```
17
- */
18
- function isObject(value) {
19
- return value != null && typeof value === 'object' && !Array.isArray(value);
20
- }
21
- exports.isObject = isObject;
22
- //# sourceMappingURL=isObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isObject.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,SAAgB,QAAQ,CAAC,KAAc;IACrC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC5E,CAAC;AAFD,4BAEC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPlainObject = void 0;
4
- /**
5
- * Checks if the provided value is a plain object, i.e. an object created by the native base `Object` constructor.
6
- */
7
- function isPlainObject(value) {
8
- if (Object.prototype.toString.call(value) !== '[object Object]')
9
- return false;
10
- if (!value?.constructor)
11
- return true;
12
- if (Object.prototype.toString.call(value.constructor.prototype) !== '[object Object]')
13
- return false;
14
- if (!Object.prototype.hasOwnProperty.call(value.constructor.prototype, 'isPrototypeOf'))
15
- return false;
16
- return true;
17
- }
18
- exports.isPlainObject = isPlainObject;
19
- //# sourceMappingURL=isPlainObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPlainObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isPlainObject.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,aAAa,CAC3B,KAAc;IAEd,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,iBAAiB;QAAE,OAAO,KAAK,CAAA;IAC7E,IAAI,CAAC,KAAK,EAAE,WAAW;QAAE,OAAO,IAAI,CAAA;IACpC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,iBAAiB;QAAE,OAAO,KAAK,CAAA;IACnG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,eAAe,CAAC;QAAE,OAAO,KAAK,CAAA;IACrG,OAAO,IAAI,CAAA;AACb,CAAC;AARD,sCAQC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPrimitive = void 0;
4
- /**
5
- * Checks if the provided value is a primitive type (null, undefined, bigint, boolean, number, string or symbol).
6
- * @param value The value to check.
7
- * @returns A boolean indicating whether the provided value is a primitive type.
8
- * @example
9
- * isPrimitive(123);
10
- * //=> true
11
- * isPrimitive({});
12
- * //=> false
13
- */
14
- function isPrimitive(value) {
15
- return (typeof value !== 'object' && typeof value !== 'function') || value === null;
16
- }
17
- exports.isPrimitive = isPrimitive;
18
- //# sourceMappingURL=isPrimitive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPrimitive.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isPrimitive.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;GASG;AACH,SAAgB,WAAW,CAAC,KAAc;IACxC,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,IAAI,KAAK,KAAK,IAAI,CAAA;AACrF,CAAC;AAFD,kCAEC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isString = void 0;
4
- function isString(value) {
5
- return typeof value === 'string';
6
- }
7
- exports.isString = isString;
8
- //# sourceMappingURL=isString.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isString.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isString.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAA;AAClC,CAAC;AAFD,4BAEC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isStringArray = void 0;
4
- const isString_1 = require("./isString");
5
- /**
6
- * Determine whether the input is a string array.
7
- */
8
- function isStringArray(value) {
9
- return Array.isArray(value) && value.every((v) => (0, isString_1.isString)(v));
10
- }
11
- exports.isStringArray = isStringArray;
12
- //# sourceMappingURL=isStringArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStringArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isStringArray.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAErC;;GAEG;AACH,SAAgB,aAAa,CAAC,KAAc;IAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mBAAQ,EAAC,CAAC,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,sCAEC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isStringWithNoSpacesOrDashes = void 0;
4
- const isString_1 = require("./isString");
5
- function isStringWithNoSpacesOrDashes(value) {
6
- return (0, isString_1.isString)(value) && /^[^\s-]+$/i.test(value);
7
- }
8
- exports.isStringWithNoSpacesOrDashes = isStringWithNoSpacesOrDashes;
9
- //# sourceMappingURL=isStringWithNoSpacesOrDashes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStringWithNoSpacesOrDashes.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isStringWithNoSpacesOrDashes.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAErC,SAAgB,4BAA4B,CAAC,KAAc;IACzD,OAAO,IAAA,mBAAQ,EAAC,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpD,CAAC;AAFD,oEAEC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInteger = void 0;
4
- /**
5
- * Checks if the provided number is an integer.
6
- * @remarks This function uses the built-in `Number.isInteger` method.
7
- * @param int The number to check.
8
- * @returns A boolean indicating whether the provided number is an integer.
9
- * @example ```ts
10
- * isInteger(5);
11
- * //=> true
12
- * isInteger(5.5);
13
- * //=> false
14
- * ```
15
- */
16
- exports.isInteger = Number.isInteger;
17
- //# sourceMappingURL=isInteger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isInteger.js","sourceRoot":"","sources":["../../../../../../../packages/cli/src/util/validation/numbers/isInteger.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACU,QAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidNumber = void 0;
4
- /**
5
- * Checks if the provided value is a valid number.
6
- * @remarks This function checks if the provided value is a finite number and not NaN.
7
- * @param number The value to check.
8
- * @returns A boolean indicating whether the provided value is a valid number.
9
- * @example ```ts
10
- * isValidNumber(123);
11
- * //=> true
12
- * isValidNumber(NaN);
13
- * //=> false
14
- * isValidNumber(Infinity);
15
- * //=> false
16
- * ```
17
- */
18
- function isValidNumber(number) {
19
- return isFinite(number) && !isNaN(number);
20
- }
21
- exports.isValidNumber = isValidNumber;
22
- //# sourceMappingURL=isValidNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValidNumber.js","sourceRoot":"","sources":["../../../../../../../packages/cli/src/util/validation/numbers/isValidNumber.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAC3C,CAAC;AAFD,sCAEC"}
package/esm/cmd/asdas.js DELETED
@@ -1,25 +0,0 @@
1
- // export type MappedTypeWithNewProperties<T> = {
2
- // [K in keyof T]: T[K]
3
- // }
4
- import { CommandBuilder } from './CommandBuilder';
5
- const args = [() => 1, () => '1', () => true];
6
- const opts = { a: () => 1, b: () => '1', c: () => true };
7
- const cli = new CommandBuilder('test', (c) => {
8
- c.argument('[int]', (a) => {
9
- a.parser.integer();
10
- });
11
- c.argument('[str]', (a) => {
12
- a.parser.string();
13
- });
14
- c.option('--opt1 <value>', (o) => {
15
- o.parser.string();
16
- });
17
- c.option('--opt1 <value>', (o) => {
18
- o.parser.integer();
19
- });
20
- c.action((int, str, opts) => {
21
- const parsers = cli.meta.argParsers;
22
- console.log({ int, str, opts });
23
- });
24
- });
25
- //# sourceMappingURL=asdas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"asdas.js","sourceRoot":"","sources":["../../../../../packages/cli/src/cmd/asdas.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,yBAAyB;AACzB,IAAI;AAEJ,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAUjD,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;AAC7C,MAAM,IAAI,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAA;AAMxD,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE;IAC3C,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACxB,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC,CAAC,CAAA;IACF,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACxB,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE;QAC/B,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE;QAC/B,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC,CAAC,CAAA;IACF,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC1B,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;QAEnC,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IACjC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Returns the last element of an array.
3
- * Throws an error if the array is empty.
4
- * @template T The type of elements in the array.
5
- * @param array The array to get the last element from.
6
- * @returns The last element of the array.
7
- * @throws If the array is empty.
8
- * @example const numbers = [1, 2, 3, 4, 5];
9
- * const lastNumber = arrLast(numbers);
10
- * //=> 5
11
- */
12
- export function arrLast(array) {
13
- if (!array.length)
14
- throw new Error('Cannot get last element of empty array.');
15
- return array[array.length - 1];
16
- }
17
- //# sourceMappingURL=arrLast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrLast.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/array/arrLast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,OAAO,CAAI,KAAU;IACnC,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAC7E,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAChC,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Checks if at least one element in the array satisfies the provided predicate.
3
- * @param predicate The predicate function to apply to each element.
4
- * @template T The type of elements in the input array.
5
- * @returns Returns `true` if at least one element in the array passes the test implemented by the provided function, otherwise `false`.
6
- * @param input The array to check.
7
- * @example ```ts
8
- * const numbers = [1, 2, 3, 4, 5];
9
- * const isEven = (num) => num % 2 === 0;
10
- * arrSome(numbers, isEven);
11
- * //=> true
12
- * ```
13
- */
14
- export function arrSome(input, predicate) {
15
- for (let i = 0, len = input.length; i < len; i++) {
16
- if (predicate(input[i], i, input) === true) {
17
- return true;
18
- }
19
- }
20
- return false;
21
- }
22
- //# sourceMappingURL=arrSome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrSome.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/array/arrSome.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,OAAO,CAAI,KAAe,EAAE,SAA4B;IACtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAChD,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE;YAC1C,OAAO,IAAI,CAAA;SACZ;KACF;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ArrayPredicate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArrayPredicate.js","sourceRoot":"","sources":["../../../../../../../packages/cli/src/util/array/types/ArrayPredicate.ts"],"names":[],"mappings":""}
@@ -1,141 +0,0 @@
1
- import { ensureThat } from '../validation/ensureThat';
2
- import { isObject } from '../validation/isObject';
3
- import { readJsonFileSafeSync } from '../fs/readJsonFile/readJsonFileSafeSync';
4
- import { writeJsonFileSafe } from '../fs/writeJsonFile/writeJsonFileSafe';
5
- /**
6
- * Represents a simple JSON file database.
7
- */
8
- export class JsonDB {
9
- filepath;
10
- indents;
11
- /**
12
- * The data stored in the JSON database.
13
- */
14
- data;
15
- /**
16
- * Creates a new instance of the JsonDB class.
17
- * @param filepath - The filepath where the data file is stored or to be stored.
18
- */
19
- constructor(filepath, indents = 0) {
20
- this.filepath = filepath;
21
- this.indents = indents;
22
- this.data = readJsonFileSafeSync(this.filepath) ?? {};
23
- }
24
- /**
25
- * Saves the data to the JSON file.
26
- */
27
- async save(indents = this.indents) {
28
- return await writeJsonFileSafe(this.filepath, this.data, { spaces: indents });
29
- }
30
- /**
31
- * Sets the filepath of the JSON file.
32
- * @param filepath - The new filepath.
33
- */
34
- setFilepath(filepath, save = true) {
35
- if (this.filepath === filepath)
36
- return;
37
- this.filepath = filepath;
38
- if (save)
39
- this.save();
40
- }
41
- /**
42
- * Sets a value in the JSON database.
43
- * @param prefix - Object path prefix as dot-separated keys.
44
- * @param value - The value to set.
45
- * @param save - Whether to save the data to the JSON file.
46
- */
47
- set(prefix, value = {}, save = true) {
48
- if (!prefix) {
49
- this.data = ensureThat(value, isObject);
50
- }
51
- else {
52
- const keys = prefix.split('.');
53
- const lastKey = keys.pop();
54
- let node = this.data;
55
- for (const key of keys) {
56
- if (!Object.hasOwn(node, key)) {
57
- node[key] = {};
58
- }
59
- node = node[key];
60
- }
61
- node[lastKey] = this.cloneDeep(value);
62
- }
63
- if (save)
64
- this.save();
65
- }
66
- /**
67
- * Gets a value from the JSON database.
68
- * @param prefix - Object path prefix as dot-separated keys.
69
- * @returns The value associated with the key.
70
- * @throws An error if no entry is found at the specified key.
71
- */
72
- get(prefix) {
73
- const value = this.getSafe(prefix);
74
- if (value === undefined)
75
- throw new Error(`No entry at '${prefix}'`);
76
- return this.cloneDeep(value);
77
- }
78
- /**
79
- * Gets a value from the JSON database safely.
80
- * @param prefix - Object path prefix as dot-separated keys.
81
- * @returns The value associated with the key, or undefined if no entry is found.
82
- */
83
- getSafe(prefix) {
84
- if (!prefix)
85
- return this.cloneDeep(this.data);
86
- const keys = prefix.split('.');
87
- let node = this.data;
88
- for (const key of keys) {
89
- if (!Object.hasOwn(node, key)) {
90
- return undefined;
91
- }
92
- node = node[key];
93
- }
94
- return this.cloneDeep(node);
95
- }
96
- /**
97
- * Checks if a key exists in the JSON database.
98
- * @param prefix - Object path prefix as dot-separated keys.
99
- * @returns True if the key exists, false otherwise.
100
- */
101
- has(prefix) {
102
- if (!prefix)
103
- return true;
104
- return this.getSafe(prefix) !== undefined;
105
- }
106
- /**
107
- * Deletes a value from the JSON database.
108
- * @param prefix - Object path prefix as dot-separated keys.
109
- * @param save - Whether to save the data to the JSON file.
110
- */
111
- delete(prefix, save = true) {
112
- if (!prefix) {
113
- this.data = {};
114
- }
115
- else {
116
- const keys = prefix.split('.');
117
- const lastKey = keys.pop();
118
- let node = this.data;
119
- for (const key of keys) {
120
- if (!Object.hasOwn(node, key)) {
121
- return;
122
- }
123
- node = node[key];
124
- }
125
- delete node[lastKey];
126
- }
127
- if (save)
128
- this.save();
129
- }
130
- /**
131
- * Creates a deep clone of an object.
132
- * @param obj - The object to clone.
133
- * @returns The cloned object.
134
- */
135
- cloneDeep(obj) {
136
- if (typeof obj !== 'object')
137
- return obj;
138
- return JSON.parse(JSON.stringify(obj));
139
- }
140
- }
141
- //# sourceMappingURL=JsonDB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonDB.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/db/JsonDB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAEzE;;GAEG;AACH,MAAM,OAAO,MAAM;IAUK;IAA4B;IATlD;;OAEG;IACO,IAAI,CAAY;IAE1B;;;OAGG;IACH,YAAsB,QAAgB,EAAY,UAAU,CAAC;QAAvC,aAAQ,GAAR,QAAQ,CAAQ;QAAY,YAAO,GAAP,OAAO,CAAI;QAC3D,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;IACvD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO;QAC/B,OAAO,MAAM,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;IAC/E,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,QAAgB,EAAE,IAAI,GAAG,IAAI;QACvC,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ;YAAE,OAAM;QACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,EAAE,CAAA;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,MAA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@@ -1,154 +0,0 @@
1
- import colors from 'ansi-colors';
2
- import path from 'path';
3
- import { isPlainObject } from '../validation/isPlainObject';
4
- import { isPrimitive } from '../validation/isPrimitive';
5
- import { regexEscapeString } from '../regex/regexEscapeString';
6
- export class ErrorParser {
7
- error;
8
- constructor(error) {
9
- this.error = error instanceof Error ? error : new Error(String(error));
10
- }
11
- get name() {
12
- return this.error.name;
13
- }
14
- get message() {
15
- return this.error.message;
16
- }
17
- get stack() {
18
- return this.error.stack || '';
19
- }
20
- summary() {
21
- return this.name + ': ' + this.message;
22
- }
23
- parseStackFrames() {
24
- return errParseStack(this.stack);
25
- }
26
- prettyStack(parsedStackFrames) {
27
- return errPrettyStack(this.error, parsedStackFrames);
28
- }
29
- toObject() {
30
- return errToObject(this.error);
31
- }
32
- toJSON() {
33
- return this.toObject();
34
- }
35
- }
36
- export function errPrettyStack(error, parsedStackFrames) {
37
- const frames = parsedStackFrames ?? errParseStack(error.stack || '');
38
- // width of the first column = the longest frame.cell string
39
- const offset = 2 + frames.reduce((acc, frame) => Math.max(acc, frame[0].length), 0);
40
- // type and message
41
- const result = [
42
- colors.bold(colors.red(error.name)) +
43
- ': ' +
44
- ' '.repeat(Math.max(0, offset - error.name.length)) +
45
- colors.red(error.message),
46
- ];
47
- // stack trace
48
- result.push(colors.yellow('stack') + ':');
49
- result.push(frames
50
- .map((frame) => {
51
- const [call, file] = frame;
52
- let s = ' ';
53
- let fp;
54
- if (file.startsWith('node:')) {
55
- s += colors.gray(call);
56
- fp = colors.gray(file);
57
- }
58
- else if (file.includes('node_modules')) {
59
- s += call;
60
- const base = path.basename(file.split(':')[0]);
61
- fp = file.replace(base, colors.yellow(base));
62
- }
63
- else {
64
- s += call;
65
- const base = path.basename(file.split(':')[0]);
66
- fp = file.replace(base, colors.red(base));
67
- }
68
- s += ' '.repeat(offset - call.length);
69
- s += fp;
70
- return s;
71
- })
72
- .join('\n'));
73
- // other properties
74
- const ignore = ['name', 'message', 'frames', 'stack'];
75
- const keys = Object.getOwnPropertyNames(error).filter((key) => !ignore.includes(key));
76
- for (const k of keys) {
77
- if (typeof k === 'symbol')
78
- continue;
79
- const key = k;
80
- let s = colors.yellow(key.toString()) + ': ';
81
- if (isPlainObject(error[key])) {
82
- const json = JSON.stringify(error[key], null, 2);
83
- if (json.length < 350) {
84
- s += JSON.stringify(error[key], null, 2)
85
- .split('\n')
86
- .map((line) => {
87
- const arr = line.split('": ');
88
- arr[0] = colors.gray(arr[0].replace('"', ''));
89
- return arr.join(': ');
90
- })
91
- .join('\n');
92
- }
93
- else {
94
- s += JSON.stringify(error[key]);
95
- }
96
- }
97
- else if (isPrimitive(error[key])) {
98
- s += String(error[key]);
99
- }
100
- else if (error[key] != null && typeof error[key] === 'object') {
101
- s += error[key].toString();
102
- }
103
- else {
104
- s += JSON.stringify(error[key]);
105
- }
106
- result.push(s.trim());
107
- }
108
- return '\n' + result.join('\n') + '\n';
109
- }
110
- export function errParseStack(stack) {
111
- if (!stack)
112
- return [];
113
- const nodeRe = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
114
- const recwd = new RegExp('^' + regexEscapeString(process.cwd() + path.sep), 'i');
115
- const frames = [];
116
- for (const line of stack.split('\n')) {
117
- const parts = nodeRe.exec(line);
118
- if (!parts)
119
- continue;
120
- frames.push([
121
- parts[1] || '<unknown>',
122
- `${(parts[2] || '').replace(recwd, '').replace(/\\\\?/g, '/')}:${+parts[3]}:${parts[4] ? +parts[4] : null}`,
123
- ]);
124
- }
125
- return frames;
126
- }
127
- export function errToObject(error) {
128
- const own = Object.getOwnPropertyNames(error).filter((key) => typeof key === 'string');
129
- const keys = new Set(['name', 'message', 'frames', ...own]);
130
- keys.delete('stack');
131
- const entries = Array.from(keys)
132
- .filter((key) => error[key] !== undefined)
133
- .map((key) => [key, error[key]]);
134
- return Object.fromEntries(entries);
135
- }
136
- // try {
137
- // throw new TypeError('wow ok oops')
138
- // } catch (error) {
139
- // const err = new ErrorParser(error)
140
- // console.log('----------------------')
141
- // console.log({
142
- // name: err.name,
143
- // message: err.message,
144
- // summary: err.summary,
145
- // })
146
- // console.log('----------------------')
147
- // console.log(err.stack)
148
- // console.log('----------------------')
149
- // console.log(err.prettyStack())
150
- // console.log('----------------------')
151
- // console.log(err.toObject())
152
- // console.log('----------------------')
153
- // }
154
- //# sourceMappingURL=ErrorParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorParser.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/errors/ErrorParser.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAE9D,MAAM,OAAO,WAAW;IACb,KAAK,CAAO;IAErB,YAAY,KAAc;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IACxE,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA;IACxB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAA;IAC3B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAA;IAC/B,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAA;IACxC,CAAC;IAED,gBAAgB;QACd,OAAO,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAClC,C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