@lakutata/core 1.0.59 → 3.0.0-beta.0

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 (1493) hide show
  1. package/README.md +173 -23
  2. package/THIRD_PARTY_NOTICES.md +320 -0
  3. package/dist/cjs/components/ConsoleLogger.d.ts +62 -0
  4. package/dist/cjs/components/ConsoleLogger.js +99 -0
  5. package/dist/cjs/constants/DIMetadataKey.d.ts +10 -0
  6. package/dist/cjs/constants/DIMetadataKey.js +13 -0
  7. package/dist/cjs/constants/DTOMetadataKey.d.ts +5 -0
  8. package/dist/cjs/constants/DTOMetadataKey.js +8 -0
  9. package/dist/cjs/decorators/asst/After.d.ts +29 -0
  10. package/dist/cjs/decorators/asst/After.js +33 -0
  11. package/dist/cjs/decorators/asst/Before.d.ts +28 -0
  12. package/dist/cjs/decorators/asst/Before.js +32 -0
  13. package/dist/cjs/decorators/di/Autoload.d.ts +33 -0
  14. package/dist/cjs/decorators/di/Autoload.js +37 -0
  15. package/dist/cjs/decorators/di/Configurable.d.ts +51 -0
  16. package/dist/cjs/decorators/di/Configurable.js +60 -0
  17. package/dist/cjs/decorators/di/Inject.d.ts +85 -0
  18. package/dist/cjs/decorators/di/Inject.js +36 -0
  19. package/dist/cjs/decorators/di/Lifetime.d.ts +94 -0
  20. package/dist/cjs/decorators/di/Lifetime.js +106 -0
  21. package/dist/cjs/decorators/dto/Accept.d.ts +38 -0
  22. package/dist/cjs/decorators/dto/Accept.js +41 -0
  23. package/dist/cjs/decorators/dto/Expect.d.ts +38 -0
  24. package/dist/cjs/decorators/dto/Expect.js +41 -0
  25. package/dist/cjs/decorators/dto/IndexSignature.d.ts +30 -0
  26. package/dist/cjs/decorators/dto/IndexSignature.js +33 -0
  27. package/dist/cjs/decorators/dto/Return.d.ts +39 -0
  28. package/dist/cjs/decorators/dto/Return.js +42 -0
  29. package/dist/cjs/dto/PaginationResultDTO.d.ts +33 -0
  30. package/dist/cjs/dto/PaginationResultDTO.js +50 -0
  31. package/dist/cjs/dto/PaginationSearchDTO.d.ts +33 -0
  32. package/dist/cjs/dto/PaginationSearchDTO.js +45 -0
  33. package/dist/cjs/dto/Paginator.d.ts +54 -0
  34. package/dist/cjs/dto/Paginator.js +53 -0
  35. package/dist/cjs/exceptions/DestroyRuntimeContainerException.d.ts +10 -0
  36. package/dist/cjs/exceptions/DestroyRuntimeContainerException.js +17 -0
  37. package/dist/cjs/exceptions/InvalidActionPatternDepthException.d.ts +8 -0
  38. package/dist/cjs/exceptions/InvalidActionPatternDepthException.js +15 -0
  39. package/dist/cjs/exceptions/InvalidAssistantFunctionTypeException.d.ts +9 -0
  40. package/dist/cjs/exceptions/InvalidAssistantFunctionTypeException.js +16 -0
  41. package/dist/cjs/exceptions/InvalidObjectTypeException.d.ts +9 -0
  42. package/dist/cjs/exceptions/InvalidObjectTypeException.js +16 -0
  43. package/dist/cjs/exceptions/MethodNotFoundException.d.ts +8 -0
  44. package/dist/cjs/exceptions/MethodNotFoundException.js +15 -0
  45. package/dist/cjs/exceptions/ObjectDestroyedException.d.ts +9 -0
  46. package/dist/cjs/exceptions/ObjectDestroyedException.js +16 -0
  47. package/dist/cjs/exceptions/alias/AliasExistsException.d.ts +8 -0
  48. package/dist/cjs/exceptions/alias/AliasExistsException.js +15 -0
  49. package/dist/cjs/exceptions/alias/AliasNotFoundException.d.ts +8 -0
  50. package/dist/cjs/exceptions/alias/AliasNotFoundException.js +15 -0
  51. package/dist/cjs/exceptions/alias/InvalidAliasNameException.d.ts +8 -0
  52. package/dist/cjs/exceptions/alias/InvalidAliasNameException.js +15 -0
  53. package/dist/cjs/exceptions/di/DependencyInjectionException.d.ts +9 -0
  54. package/dist/cjs/exceptions/di/DependencyInjectionException.js +16 -0
  55. package/dist/cjs/exceptions/di/InvalidObjectOptionsException.d.ts +9 -0
  56. package/dist/cjs/exceptions/di/InvalidObjectOptionsException.js +16 -0
  57. package/dist/cjs/exceptions/di/LifetimeLockedException.d.ts +9 -0
  58. package/dist/cjs/exceptions/di/LifetimeLockedException.js +16 -0
  59. package/dist/cjs/exceptions/di/OverridableObjectTargetConfigNotFoundException.d.ts +9 -0
  60. package/dist/cjs/exceptions/di/OverridableObjectTargetConfigNotFoundException.js +16 -0
  61. package/dist/cjs/exceptions/dto/InvalidMethodAcceptException.d.ts +9 -0
  62. package/dist/cjs/exceptions/dto/InvalidMethodAcceptException.js +16 -0
  63. package/dist/cjs/exceptions/dto/InvalidMethodReturnException.d.ts +9 -0
  64. package/dist/cjs/exceptions/dto/InvalidMethodReturnException.js +16 -0
  65. package/dist/cjs/exceptions/dto/InvalidValueException.d.ts +11 -0
  66. package/dist/cjs/exceptions/dto/InvalidValueException.js +18 -0
  67. package/dist/cjs/exports/ASSTDecorators.d.ts +3 -0
  68. package/dist/cjs/exports/ASSTDecorators.js +11 -0
  69. package/dist/cjs/exports/Core.d.ts +93 -0
  70. package/dist/cjs/exports/Core.js +127 -0
  71. package/dist/cjs/exports/DIDecorators.d.ts +5 -0
  72. package/dist/cjs/exports/DIDecorators.js +18 -0
  73. package/dist/cjs/exports/DTODecorators.d.ts +6 -0
  74. package/dist/cjs/exports/DTODecorators.js +17 -0
  75. package/dist/cjs/exports/DTOs.d.ts +17 -0
  76. package/dist/cjs/exports/DTOs.js +35 -0
  77. package/dist/cjs/exports/LoggerComponent.d.ts +3 -0
  78. package/dist/cjs/exports/LoggerComponent.js +22 -0
  79. package/dist/cjs/interfaces/IBaseObjectConstructor.d.ts +10 -0
  80. package/dist/cjs/interfaces/IBaseObjectConstructor.js +2 -0
  81. package/dist/cjs/interfaces/IConstructor.d.ts +6 -0
  82. package/dist/cjs/interfaces/IConstructor.js +2 -0
  83. package/dist/cjs/interfaces/ILogger.d.ts +35 -0
  84. package/dist/cjs/interfaces/ILogger.js +2 -0
  85. package/dist/cjs/lib/app/Application.d.ts +346 -0
  86. package/dist/cjs/lib/app/Application.js +613 -0
  87. package/dist/cjs/lib/app/ApplicationConfigLoader.d.ts +17 -0
  88. package/dist/cjs/lib/app/ApplicationConfigLoader.js +30 -0
  89. package/dist/cjs/lib/app/MigrationCommand.d.ts +31 -0
  90. package/dist/cjs/lib/app/MigrationCommand.js +31 -0
  91. package/dist/cjs/lib/base/BaseObject.d.ts +343 -0
  92. package/dist/cjs/lib/base/BaseObject.js +608 -0
  93. package/dist/cjs/lib/base/EventEmitter.d.ts +37 -0
  94. package/dist/cjs/lib/base/EventEmitter.js +152 -0
  95. package/dist/cjs/lib/base/async-constructor/Append.d.ts +1 -0
  96. package/dist/cjs/lib/base/async-constructor/Append.js +21 -0
  97. package/dist/cjs/lib/base/async-constructor/AsyncConstructor.d.ts +3 -0
  98. package/dist/cjs/lib/base/async-constructor/AsyncConstructor.js +11 -0
  99. package/dist/cjs/lib/base/internal/ApplicationLaunch.d.ts +16 -0
  100. package/dist/cjs/lib/base/internal/ApplicationLaunch.js +58 -0
  101. package/dist/cjs/lib/base/internal/ConfigurableRecordsInjection.d.ts +47 -0
  102. package/dist/cjs/lib/base/internal/ConfigurableRecordsInjection.js +85 -0
  103. package/dist/cjs/lib/base/internal/EventEmitter2.d.ts +184 -0
  104. package/dist/cjs/lib/base/internal/EventEmitter2.js +715 -0
  105. package/dist/cjs/lib/base/internal/MemberDeclarations.d.ts +23 -0
  106. package/dist/cjs/lib/base/internal/MemberDeclarations.js +45 -0
  107. package/dist/cjs/lib/base/internal/MethodAssistantFunction.d.ts +20 -0
  108. package/dist/cjs/lib/base/internal/MethodAssistantFunction.js +110 -0
  109. package/dist/cjs/lib/base/internal/ModuleConfigLoader.d.ts +46 -0
  110. package/dist/cjs/lib/base/internal/ModuleConfigLoader.js +113 -0
  111. package/dist/cjs/lib/base/internal/ModuleInitialization.d.ts +5 -0
  112. package/dist/cjs/lib/base/internal/ModuleInitialization.js +8 -0
  113. package/dist/cjs/lib/base/internal/ObjectConfiguration.d.ts +29 -0
  114. package/dist/cjs/lib/base/internal/ObjectConfiguration.js +41 -0
  115. package/dist/cjs/lib/base/internal/ObjectContainer.d.ts +15 -0
  116. package/dist/cjs/lib/base/internal/ObjectContainer.js +23 -0
  117. package/dist/cjs/lib/base/internal/ObjectInjection.d.ts +43 -0
  118. package/dist/cjs/lib/base/internal/ObjectInjection.js +60 -0
  119. package/dist/cjs/lib/base/internal/ObjectOptionsCheck.d.ts +12 -0
  120. package/dist/cjs/lib/base/internal/ObjectOptionsCheck.js +70 -0
  121. package/dist/cjs/lib/base/internal/ObjectStartup.d.ts +31 -0
  122. package/dist/cjs/lib/base/internal/ObjectStartup.js +75 -0
  123. package/dist/cjs/lib/base/internal/ObjectType.d.ts +37 -0
  124. package/dist/cjs/lib/base/internal/ObjectType.js +75 -0
  125. package/dist/cjs/lib/core/Alias.d.ts +48 -0
  126. package/dist/cjs/lib/core/Alias.js +100 -0
  127. package/dist/cjs/lib/core/Component.d.ts +267 -0
  128. package/dist/cjs/lib/core/Component.js +362 -0
  129. package/dist/cjs/lib/core/Container.d.ts +341 -0
  130. package/dist/cjs/lib/core/Container.js +667 -0
  131. package/dist/cjs/lib/core/Module.d.ts +165 -0
  132. package/dist/cjs/lib/core/Module.js +268 -0
  133. package/dist/cjs/lib/core/Provider.d.ts +52 -0
  134. package/dist/cjs/lib/core/Provider.js +57 -0
  135. package/dist/cjs/lib/dto/CachedSchema.d.ts +7 -0
  136. package/dist/cjs/lib/dto/CachedSchema.js +2 -0
  137. package/dist/cjs/lib/dto/DTO.d.ts +278 -0
  138. package/dist/cjs/lib/dto/DTO.js +461 -0
  139. package/dist/cjs/lib/dto/DataValidator.d.ts +166 -0
  140. package/dist/cjs/lib/dto/DataValidator.js +247 -0
  141. package/dist/cjs/lib/dto/FlexibleDTO.d.ts +23 -0
  142. package/dist/cjs/lib/dto/FlexibleDTO.js +36 -0
  143. package/dist/cjs/lib/dto/MethodValidation.d.ts +44 -0
  144. package/dist/cjs/lib/dto/MethodValidation.js +141 -0
  145. package/dist/cjs/lib/dto/ObjectSchemaValidation.d.ts +86 -0
  146. package/dist/cjs/lib/dto/ObjectSchemaValidation.js +181 -0
  147. package/dist/cjs/lib/dto/internal/CronValidator.d.ts +8 -0
  148. package/dist/cjs/lib/dto/internal/CronValidator.js +128 -0
  149. package/dist/cjs/lib/foundation/BasicInfo.d.ts +46 -0
  150. package/dist/cjs/lib/foundation/BasicInfo.js +115 -0
  151. package/dist/cjs/lib/foundation/EndProcess.d.ts +14 -0
  152. package/dist/cjs/lib/foundation/EndProcess.js +30 -0
  153. package/dist/cjs/lib/foundation/Exception.d.ts +88 -0
  154. package/dist/cjs/lib/foundation/Exception.js +165 -0
  155. package/dist/cjs/lib/foundation/LifecycleErrorReporter.d.ts +26 -0
  156. package/dist/cjs/lib/foundation/LifecycleErrorReporter.js +64 -0
  157. package/dist/cjs/lib/foundation/Packaging.d.ts +29 -0
  158. package/dist/cjs/lib/foundation/Packaging.js +42 -0
  159. package/dist/cjs/lib/foundation/ThrowWarning.d.ts +6 -0
  160. package/dist/cjs/lib/foundation/ThrowWarning.js +16 -0
  161. package/dist/cjs/lib/helpers/internal/WithCause.d.ts +6 -0
  162. package/dist/cjs/lib/helpers/internal/WithCause.js +12 -0
  163. package/dist/cjs/lib/ioc/ConstructorSymbol.d.ts +3 -0
  164. package/dist/cjs/lib/ioc/ConstructorSymbol.js +21 -0
  165. package/dist/cjs/lib/ioc/DependencyInjectionContainer.d.ts +178 -0
  166. package/dist/cjs/lib/ioc/DependencyInjectionContainer.js +445 -0
  167. package/dist/cjs/lib/ioc/Errors.d.ts +59 -0
  168. package/dist/cjs/lib/ioc/Errors.js +115 -0
  169. package/dist/cjs/lib/ioc/Lifetime.d.ts +12 -0
  170. package/dist/cjs/lib/ioc/Lifetime.js +31 -0
  171. package/dist/cjs/lib/ioc/ListModules.d.ts +42 -0
  172. package/dist/cjs/lib/ioc/ListModules.js +104 -0
  173. package/dist/cjs/lib/ioc/LoadModuleNative.d.ts +1 -0
  174. package/dist/cjs/lib/ioc/LoadModuleNative.js +41 -0
  175. package/dist/cjs/lib/ioc/LoadModules.d.ts +49 -0
  176. package/dist/cjs/lib/ioc/LoadModules.js +167 -0
  177. package/dist/cjs/lib/ioc/ObjectLifetime.d.ts +22 -0
  178. package/dist/cjs/lib/ioc/ObjectLifetime.js +39 -0
  179. package/dist/cjs/lib/ioc/ObjectWeakRefs.d.ts +19 -0
  180. package/dist/cjs/lib/ioc/ObjectWeakRefs.js +47 -0
  181. package/dist/cjs/lib/ioc/Resolvers.d.ts +136 -0
  182. package/dist/cjs/lib/ioc/Resolvers.js +248 -0
  183. package/dist/cjs/lib/ioc/Utils.d.ts +33 -0
  184. package/dist/cjs/lib/ioc/Utils.js +73 -0
  185. package/dist/cjs/lib/validation/JsonSchema.d.ts +127 -0
  186. package/dist/cjs/lib/validation/JsonSchema.js +85 -0
  187. package/dist/cjs/lib/validation/VLD.d.ts +275 -0
  188. package/dist/cjs/lib/validation/VLD.js +216 -0
  189. package/dist/cjs/lib/validation/ValidationLanguage.d.ts +42 -0
  190. package/dist/cjs/lib/validation/ValidationLanguage.js +55 -0
  191. package/dist/cjs/lib/validation/ValidationMessages.d.ts +92 -0
  192. package/dist/cjs/lib/validation/ValidationMessages.js +192 -0
  193. package/dist/cjs/lib/validation/engine/address/decode.d.ts +8 -0
  194. package/dist/cjs/lib/validation/engine/address/decode.js +104 -0
  195. package/dist/cjs/lib/validation/engine/address/domain.d.ts +74 -0
  196. package/dist/cjs/lib/validation/engine/address/domain.js +181 -0
  197. package/dist/cjs/lib/validation/engine/address/email.d.ts +27 -0
  198. package/dist/cjs/lib/validation/engine/address/email.js +182 -0
  199. package/dist/cjs/lib/validation/engine/address/errors.d.ts +48 -0
  200. package/dist/cjs/lib/validation/engine/address/errors.js +31 -0
  201. package/dist/cjs/lib/validation/engine/address/index.d.ts +9 -0
  202. package/dist/cjs/lib/validation/engine/address/index.js +30 -0
  203. package/dist/cjs/lib/validation/engine/address/ip.d.ts +35 -0
  204. package/dist/cjs/lib/validation/engine/address/ip.js +49 -0
  205. package/dist/cjs/lib/validation/engine/address/uri.d.ts +55 -0
  206. package/dist/cjs/lib/validation/engine/address/uri.js +218 -0
  207. package/dist/cjs/lib/validation/engine/expression/index.d.ts +70 -0
  208. package/dist/cjs/lib/validation/engine/expression/index.js +356 -0
  209. package/dist/cjs/lib/validation/engine/json-schema/combinations.d.ts +11 -0
  210. package/dist/cjs/lib/validation/engine/json-schema/combinations.js +33 -0
  211. package/dist/cjs/lib/validation/engine/json-schema/helpers.d.ts +76 -0
  212. package/dist/cjs/lib/validation/engine/json-schema/helpers.js +380 -0
  213. package/dist/cjs/lib/validation/engine/json-schema/import.d.ts +56 -0
  214. package/dist/cjs/lib/validation/engine/json-schema/import.js +872 -0
  215. package/dist/cjs/lib/validation/engine/json-schema/index.d.ts +20 -0
  216. package/dist/cjs/lib/validation/engine/json-schema/index.js +45 -0
  217. package/dist/cjs/lib/validation/engine/json-schema/model.d.ts +124 -0
  218. package/dist/cjs/lib/validation/engine/json-schema/model.js +5 -0
  219. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-2020-12.d.ts +9 -0
  220. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-2020-12.js +56 -0
  221. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-draft-04.d.ts +17 -0
  222. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-draft-04.js +93 -0
  223. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-draft-2019-09.d.ts +13 -0
  224. package/dist/cjs/lib/validation/engine/json-schema/parsers/json-draft-2019-09.js +69 -0
  225. package/dist/cjs/lib/validation/engine/json-schema/parsers/json.d.ts +245 -0
  226. package/dist/cjs/lib/validation/engine/json-schema/parsers/json.js +1497 -0
  227. package/dist/cjs/lib/validation/engine/json-schema/parsers/open-api-3.1.d.ts +13 -0
  228. package/dist/cjs/lib/validation/engine/json-schema/parsers/open-api-3.1.js +71 -0
  229. package/dist/cjs/lib/validation/engine/json-schema/parsers/open-api.d.ts +24 -0
  230. package/dist/cjs/lib/validation/engine/json-schema/parsers/open-api.js +207 -0
  231. package/dist/cjs/lib/validation/engine/location/index.d.ts +18 -0
  232. package/dist/cjs/lib/validation/engine/location/index.js +23 -0
  233. package/dist/cjs/lib/validation/engine/schema/annotate.d.ts +13 -0
  234. package/dist/cjs/lib/validation/engine/schema/annotate.js +162 -0
  235. package/dist/cjs/lib/validation/engine/schema/assert.d.ts +25 -0
  236. package/dist/cjs/lib/validation/engine/schema/assert.js +66 -0
  237. package/dist/cjs/lib/validation/engine/schema/base.d.ts +194 -0
  238. package/dist/cjs/lib/validation/engine/schema/base.js +834 -0
  239. package/dist/cjs/lib/validation/engine/schema/cache.d.ts +41 -0
  240. package/dist/cjs/lib/validation/engine/schema/cache.js +131 -0
  241. package/dist/cjs/lib/validation/engine/schema/common.d.ts +79 -0
  242. package/dist/cjs/lib/validation/engine/schema/common.js +220 -0
  243. package/dist/cjs/lib/validation/engine/schema/compile.d.ts +81 -0
  244. package/dist/cjs/lib/validation/engine/schema/compile.js +242 -0
  245. package/dist/cjs/lib/validation/engine/schema/errors.d.ts +94 -0
  246. package/dist/cjs/lib/validation/engine/schema/errors.js +230 -0
  247. package/dist/cjs/lib/validation/engine/schema/extend.d.ts +122 -0
  248. package/dist/cjs/lib/validation/engine/schema/extend.js +235 -0
  249. package/dist/cjs/lib/validation/engine/schema/extensions/bigint.d.ts +33 -0
  250. package/dist/cjs/lib/validation/engine/schema/extensions/bigint.js +175 -0
  251. package/dist/cjs/lib/validation/engine/schema/fastpath.d.ts +35 -0
  252. package/dist/cjs/lib/validation/engine/schema/fastpath.js +661 -0
  253. package/dist/cjs/lib/validation/engine/schema/formats.d.ts +8 -0
  254. package/dist/cjs/lib/validation/engine/schema/formats.js +105 -0
  255. package/dist/cjs/lib/validation/engine/schema/index.d.ts +95 -0
  256. package/dist/cjs/lib/validation/engine/schema/index.js +237 -0
  257. package/dist/cjs/lib/validation/engine/schema/lazy.d.ts +21 -0
  258. package/dist/cjs/lib/validation/engine/schema/lazy.js +8 -0
  259. package/dist/cjs/lib/validation/engine/schema/manifest.d.ts +52 -0
  260. package/dist/cjs/lib/validation/engine/schema/manifest.js +364 -0
  261. package/dist/cjs/lib/validation/engine/schema/messages.d.ts +37 -0
  262. package/dist/cjs/lib/validation/engine/schema/messages.js +136 -0
  263. package/dist/cjs/lib/validation/engine/schema/model.d.ts +196 -0
  264. package/dist/cjs/lib/validation/engine/schema/model.js +2 -0
  265. package/dist/cjs/lib/validation/engine/schema/modify.d.ts +58 -0
  266. package/dist/cjs/lib/validation/engine/schema/modify.js +223 -0
  267. package/dist/cjs/lib/validation/engine/schema/ref.d.ts +116 -0
  268. package/dist/cjs/lib/validation/engine/schema/ref.js +318 -0
  269. package/dist/cjs/lib/validation/engine/schema/schemas.d.ts +6 -0
  270. package/dist/cjs/lib/validation/engine/schema/schemas.js +268 -0
  271. package/dist/cjs/lib/validation/engine/schema/state.d.ts +48 -0
  272. package/dist/cjs/lib/validation/engine/schema/state.js +148 -0
  273. package/dist/cjs/lib/validation/engine/schema/template.d.ts +72 -0
  274. package/dist/cjs/lib/validation/engine/schema/template.js +331 -0
  275. package/dist/cjs/lib/validation/engine/schema/trace.d.ts +121 -0
  276. package/dist/cjs/lib/validation/engine/schema/trace.js +280 -0
  277. package/dist/cjs/lib/validation/engine/schema/types/alternatives.d.ts +36 -0
  278. package/dist/cjs/lib/validation/engine/schema/types/alternatives.js +332 -0
  279. package/dist/cjs/lib/validation/engine/schema/types/any.d.ts +37 -0
  280. package/dist/cjs/lib/validation/engine/schema/types/any.js +198 -0
  281. package/dist/cjs/lib/validation/engine/schema/types/array.d.ts +46 -0
  282. package/dist/cjs/lib/validation/engine/schema/types/array.js +668 -0
  283. package/dist/cjs/lib/validation/engine/schema/types/binary.d.ts +20 -0
  284. package/dist/cjs/lib/validation/engine/schema/types/binary.js +116 -0
  285. package/dist/cjs/lib/validation/engine/schema/types/boolean.d.ts +29 -0
  286. package/dist/cjs/lib/validation/engine/schema/types/boolean.js +142 -0
  287. package/dist/cjs/lib/validation/engine/schema/types/date.d.ts +27 -0
  288. package/dist/cjs/lib/validation/engine/schema/types/date.js +197 -0
  289. package/dist/cjs/lib/validation/engine/schema/types/function.d.ts +12 -0
  290. package/dist/cjs/lib/validation/engine/schema/types/function.js +68 -0
  291. package/dist/cjs/lib/validation/engine/schema/types/keys.d.ts +119 -0
  292. package/dist/cjs/lib/validation/engine/schema/types/keys.js +911 -0
  293. package/dist/cjs/lib/validation/engine/schema/types/link.d.ts +21 -0
  294. package/dist/cjs/lib/validation/engine/schema/types/link.js +160 -0
  295. package/dist/cjs/lib/validation/engine/schema/types/number.d.ts +46 -0
  296. package/dist/cjs/lib/validation/engine/schema/types/number.js +385 -0
  297. package/dist/cjs/lib/validation/engine/schema/types/object.d.ts +10 -0
  298. package/dist/cjs/lib/validation/engine/schema/types/object.js +21 -0
  299. package/dist/cjs/lib/validation/engine/schema/types/string.d.ts +115 -0
  300. package/dist/cjs/lib/validation/engine/schema/types/string.js +767 -0
  301. package/dist/cjs/lib/validation/engine/schema/types/symbol.d.ts +23 -0
  302. package/dist/cjs/lib/validation/engine/schema/types/symbol.js +75 -0
  303. package/dist/cjs/lib/validation/engine/schema/validator.d.ts +114 -0
  304. package/dist/cjs/lib/validation/engine/schema/validator.js +680 -0
  305. package/dist/cjs/lib/validation/engine/schema/values.d.ts +51 -0
  306. package/dist/cjs/lib/validation/engine/schema/values.js +201 -0
  307. package/dist/cjs/lib/validation/engine/sorter/index.d.ts +54 -0
  308. package/dist/cjs/lib/validation/engine/sorter/index.js +180 -0
  309. package/dist/cjs/lib/validation/engine/tlds/index.d.ts +1 -0
  310. package/dist/cjs/lib/validation/engine/tlds/index.js +8 -0
  311. package/dist/cjs/lib/validation/engine/tlds/tlds.d.ts +4 -0
  312. package/dist/cjs/lib/validation/engine/tlds/tlds.js +1448 -0
  313. package/dist/cjs/lib/validation/engine/utils/applyToDefaults.d.ts +17 -0
  314. package/dist/cjs/lib/validation/engine/utils/applyToDefaults.js +89 -0
  315. package/dist/cjs/lib/validation/engine/utils/assert.d.ts +6 -0
  316. package/dist/cjs/lib/validation/engine/utils/assert.js +23 -0
  317. package/dist/cjs/lib/validation/engine/utils/assertError.d.ts +10 -0
  318. package/dist/cjs/lib/validation/engine/utils/assertError.js +18 -0
  319. package/dist/cjs/lib/validation/engine/utils/clone.d.ts +25 -0
  320. package/dist/cjs/lib/validation/engine/utils/clone.js +160 -0
  321. package/dist/cjs/lib/validation/engine/utils/deepEqual.d.ts +29 -0
  322. package/dist/cjs/lib/validation/engine/utils/deepEqual.js +265 -0
  323. package/dist/cjs/lib/validation/engine/utils/escapeHtml.d.ts +8 -0
  324. package/dist/cjs/lib/validation/engine/utils/escapeHtml.js +62 -0
  325. package/dist/cjs/lib/validation/engine/utils/escapeRegex.d.ts +8 -0
  326. package/dist/cjs/lib/validation/engine/utils/escapeRegex.js +13 -0
  327. package/dist/cjs/lib/validation/engine/utils/ignore.d.ts +8 -0
  328. package/dist/cjs/lib/validation/engine/utils/ignore.js +12 -0
  329. package/dist/cjs/lib/validation/engine/utils/index.d.ts +16 -0
  330. package/dist/cjs/lib/validation/engine/utils/index.js +34 -0
  331. package/dist/cjs/lib/validation/engine/utils/merge.d.ts +21 -0
  332. package/dist/cjs/lib/validation/engine/utils/merge.js +67 -0
  333. package/dist/cjs/lib/validation/engine/utils/reach.d.ts +30 -0
  334. package/dist/cjs/lib/validation/engine/utils/reach.js +62 -0
  335. package/dist/cjs/lib/validation/engine/utils/stringify.d.ts +8 -0
  336. package/dist/cjs/lib/validation/engine/utils/stringify.js +18 -0
  337. package/dist/cjs/lib/validation/engine/utils/types.d.ts +26 -0
  338. package/dist/cjs/lib/validation/engine/utils/types.js +51 -0
  339. package/dist/cjs/lib/validation/engine/utils/utils.d.ts +24 -0
  340. package/dist/cjs/lib/validation/engine/utils/utils.js +22 -0
  341. package/dist/cjs/lib/validation/exceptions/SchemaConversionException.d.ts +7 -0
  342. package/dist/cjs/lib/validation/exceptions/SchemaConversionException.js +14 -0
  343. package/dist/cjs/lib/validation/exceptions/SchemaDefinitionException.d.ts +7 -0
  344. package/dist/cjs/lib/validation/exceptions/SchemaDefinitionException.js +14 -0
  345. package/dist/cjs/lib/validation/exceptions/SchemaException.d.ts +6 -0
  346. package/dist/cjs/lib/validation/exceptions/SchemaException.js +10 -0
  347. package/dist/cjs/lib/validation/exceptions/SchemaValidationException.d.ts +36 -0
  348. package/dist/cjs/lib/validation/exceptions/SchemaValidationException.js +43 -0
  349. package/dist/cjs/lib/validation/interfaces/AlternativesSchema.d.ts +45 -0
  350. package/dist/cjs/lib/validation/interfaces/AlternativesSchema.js +2 -0
  351. package/dist/cjs/lib/validation/interfaces/AnySchema.d.ts +399 -0
  352. package/dist/cjs/lib/validation/interfaces/AnySchema.js +2 -0
  353. package/dist/cjs/lib/validation/interfaces/ArraySchema.d.ts +106 -0
  354. package/dist/cjs/lib/validation/interfaces/ArraySchema.js +2 -0
  355. package/dist/cjs/lib/validation/interfaces/ArraySortOptions.d.ts +8 -0
  356. package/dist/cjs/lib/validation/interfaces/ArraySortOptions.js +2 -0
  357. package/dist/cjs/lib/validation/interfaces/ArrayUniqueOptions.d.ts +9 -0
  358. package/dist/cjs/lib/validation/interfaces/ArrayUniqueOptions.js +2 -0
  359. package/dist/cjs/lib/validation/interfaces/Base64Options.d.ts +9 -0
  360. package/dist/cjs/lib/validation/interfaces/Base64Options.js +2 -0
  361. package/dist/cjs/lib/validation/interfaces/BaseValidationOptions.d.ts +97 -0
  362. package/dist/cjs/lib/validation/interfaces/BaseValidationOptions.js +2 -0
  363. package/dist/cjs/lib/validation/interfaces/BigIntSchema.d.ts +67 -0
  364. package/dist/cjs/lib/validation/interfaces/BigIntSchema.js +2 -0
  365. package/dist/cjs/lib/validation/interfaces/BinarySchema.d.ts +33 -0
  366. package/dist/cjs/lib/validation/interfaces/BinarySchema.js +2 -0
  367. package/dist/cjs/lib/validation/interfaces/BooleanSchema.d.ts +29 -0
  368. package/dist/cjs/lib/validation/interfaces/BooleanSchema.js +2 -0
  369. package/dist/cjs/lib/validation/interfaces/Cache.d.ts +14 -0
  370. package/dist/cjs/lib/validation/interfaces/Cache.js +2 -0
  371. package/dist/cjs/lib/validation/interfaces/CacheConfiguration.d.ts +15 -0
  372. package/dist/cjs/lib/validation/interfaces/CacheConfiguration.js +2 -0
  373. package/dist/cjs/lib/validation/interfaces/CompileOptions.d.ts +9 -0
  374. package/dist/cjs/lib/validation/interfaces/CompileOptions.js +2 -0
  375. package/dist/cjs/lib/validation/interfaces/Context.d.ts +9 -0
  376. package/dist/cjs/lib/validation/interfaces/Context.js +2 -0
  377. package/dist/cjs/lib/validation/interfaces/CustomHelpers.d.ts +15 -0
  378. package/dist/cjs/lib/validation/interfaces/CustomHelpers.js +2 -0
  379. package/dist/cjs/lib/validation/interfaces/DataUriOptions.d.ts +8 -0
  380. package/dist/cjs/lib/validation/interfaces/DataUriOptions.js +2 -0
  381. package/dist/cjs/lib/validation/interfaces/DateSchema.d.ts +48 -0
  382. package/dist/cjs/lib/validation/interfaces/DateSchema.js +2 -0
  383. package/dist/cjs/lib/validation/interfaces/DependencyOptions.d.ts +9 -0
  384. package/dist/cjs/lib/validation/interfaces/DependencyOptions.js +2 -0
  385. package/dist/cjs/lib/validation/interfaces/Description.d.ts +20 -0
  386. package/dist/cjs/lib/validation/interfaces/Description.js +2 -0
  387. package/dist/cjs/lib/validation/interfaces/DomainOptions.d.ts +33 -0
  388. package/dist/cjs/lib/validation/interfaces/DomainOptions.js +2 -0
  389. package/dist/cjs/lib/validation/interfaces/EmailOptions.d.ts +51 -0
  390. package/dist/cjs/lib/validation/interfaces/EmailOptions.js +2 -0
  391. package/dist/cjs/lib/validation/interfaces/ErrorFormattingOptions.d.ts +60 -0
  392. package/dist/cjs/lib/validation/interfaces/ErrorFormattingOptions.js +2 -0
  393. package/dist/cjs/lib/validation/interfaces/ErrorReport.d.ts +14 -0
  394. package/dist/cjs/lib/validation/interfaces/ErrorReport.js +2 -0
  395. package/dist/cjs/lib/validation/interfaces/ErrorValidationOptions.d.ts +5 -0
  396. package/dist/cjs/lib/validation/interfaces/ErrorValidationOptions.js +2 -0
  397. package/dist/cjs/lib/validation/interfaces/Extension.d.ts +100 -0
  398. package/dist/cjs/lib/validation/interfaces/Extension.js +2 -0
  399. package/dist/cjs/lib/validation/interfaces/ExtensionFlag.d.ts +4 -0
  400. package/dist/cjs/lib/validation/interfaces/ExtensionFlag.js +2 -0
  401. package/dist/cjs/lib/validation/interfaces/ExternalHelpers.d.ts +16 -0
  402. package/dist/cjs/lib/validation/interfaces/ExternalHelpers.js +2 -0
  403. package/dist/cjs/lib/validation/interfaces/FunctionSchema.d.ts +31 -0
  404. package/dist/cjs/lib/validation/interfaces/FunctionSchema.js +2 -0
  405. package/dist/cjs/lib/validation/interfaces/GuidOptions.d.ts +6 -0
  406. package/dist/cjs/lib/validation/interfaces/GuidOptions.js +2 -0
  407. package/dist/cjs/lib/validation/interfaces/HexOptions.d.ts +16 -0
  408. package/dist/cjs/lib/validation/interfaces/HexOptions.js +2 -0
  409. package/dist/cjs/lib/validation/interfaces/HierarchySeparatorOptions.d.ts +7 -0
  410. package/dist/cjs/lib/validation/interfaces/HierarchySeparatorOptions.js +2 -0
  411. package/dist/cjs/lib/validation/interfaces/IpOptions.d.ts +11 -0
  412. package/dist/cjs/lib/validation/interfaces/IpOptions.js +2 -0
  413. package/dist/cjs/lib/validation/interfaces/LanguageMessageTemplate.d.ts +4 -0
  414. package/dist/cjs/lib/validation/interfaces/LanguageMessageTemplate.js +2 -0
  415. package/dist/cjs/lib/validation/interfaces/LinkSchema.d.ts +26 -0
  416. package/dist/cjs/lib/validation/interfaces/LinkSchema.js +2 -0
  417. package/dist/cjs/lib/validation/interfaces/NumberSchema.d.ts +134 -0
  418. package/dist/cjs/lib/validation/interfaces/NumberSchema.js +2 -0
  419. package/dist/cjs/lib/validation/interfaces/ObjectPatternOptions.d.ts +6 -0
  420. package/dist/cjs/lib/validation/interfaces/ObjectPatternOptions.js +2 -0
  421. package/dist/cjs/lib/validation/interfaces/ObjectSchema.d.ts +173 -0
  422. package/dist/cjs/lib/validation/interfaces/ObjectSchema.js +2 -0
  423. package/dist/cjs/lib/validation/interfaces/Reference.d.ts +38 -0
  424. package/dist/cjs/lib/validation/interfaces/Reference.js +2 -0
  425. package/dist/cjs/lib/validation/interfaces/ReferenceOptions.d.ts +59 -0
  426. package/dist/cjs/lib/validation/interfaces/ReferenceOptions.js +2 -0
  427. package/dist/cjs/lib/validation/interfaces/RenameOptions.d.ts +26 -0
  428. package/dist/cjs/lib/validation/interfaces/RenameOptions.js +2 -0
  429. package/dist/cjs/lib/validation/interfaces/RuleOptions.d.ts +22 -0
  430. package/dist/cjs/lib/validation/interfaces/RuleOptions.js +2 -0
  431. package/dist/cjs/lib/validation/interfaces/SchemaInternals.d.ts +103 -0
  432. package/dist/cjs/lib/validation/interfaces/SchemaInternals.js +2 -0
  433. package/dist/cjs/lib/validation/interfaces/State.d.ts +8 -0
  434. package/dist/cjs/lib/validation/interfaces/State.js +2 -0
  435. package/dist/cjs/lib/validation/interfaces/StringRegexOptions.d.ts +12 -0
  436. package/dist/cjs/lib/validation/interfaces/StringRegexOptions.js +2 -0
  437. package/dist/cjs/lib/validation/interfaces/StringSchema.d.ts +220 -0
  438. package/dist/cjs/lib/validation/interfaces/StringSchema.js +2 -0
  439. package/dist/cjs/lib/validation/interfaces/SwitchCases.d.ts +11 -0
  440. package/dist/cjs/lib/validation/interfaces/SwitchCases.js +2 -0
  441. package/dist/cjs/lib/validation/interfaces/SwitchDefault.d.ts +8 -0
  442. package/dist/cjs/lib/validation/interfaces/SwitchDefault.js +2 -0
  443. package/dist/cjs/lib/validation/interfaces/SymbolSchema.d.ts +16 -0
  444. package/dist/cjs/lib/validation/interfaces/SymbolSchema.js +2 -0
  445. package/dist/cjs/lib/validation/interfaces/TopLevelDomainOptions.d.ts +12 -0
  446. package/dist/cjs/lib/validation/interfaces/TopLevelDomainOptions.js +2 -0
  447. package/dist/cjs/lib/validation/interfaces/UriOptions.d.ts +31 -0
  448. package/dist/cjs/lib/validation/interfaces/UriOptions.js +2 -0
  449. package/dist/cjs/lib/validation/interfaces/ValidationErrorItem.d.ts +7 -0
  450. package/dist/cjs/lib/validation/interfaces/ValidationErrorItem.js +2 -0
  451. package/dist/cjs/lib/validation/interfaces/ValidationOptions.d.ts +21 -0
  452. package/dist/cjs/lib/validation/interfaces/ValidationOptions.js +2 -0
  453. package/dist/cjs/lib/validation/interfaces/WhenOptions.d.ts +30 -0
  454. package/dist/cjs/lib/validation/interfaces/WhenOptions.js +2 -0
  455. package/dist/cjs/lib/validation/interfaces/WhenSchemaOptions.d.ts +11 -0
  456. package/dist/cjs/lib/validation/interfaces/WhenSchemaOptions.js +2 -0
  457. package/dist/cjs/lib/validation/messages/ar.d.ts +5 -0
  458. package/dist/cjs/lib/validation/messages/ar.js +145 -0
  459. package/dist/cjs/lib/validation/messages/de.d.ts +5 -0
  460. package/dist/cjs/lib/validation/messages/de.js +145 -0
  461. package/dist/cjs/lib/validation/messages/es.d.ts +5 -0
  462. package/dist/cjs/lib/validation/messages/es.js +145 -0
  463. package/dist/cjs/lib/validation/messages/fr.d.ts +5 -0
  464. package/dist/cjs/lib/validation/messages/fr.js +145 -0
  465. package/dist/cjs/lib/validation/messages/hi.d.ts +5 -0
  466. package/dist/cjs/lib/validation/messages/hi.js +145 -0
  467. package/dist/cjs/lib/validation/messages/id.d.ts +5 -0
  468. package/dist/cjs/lib/validation/messages/id.js +145 -0
  469. package/dist/cjs/lib/validation/messages/it.d.ts +5 -0
  470. package/dist/cjs/lib/validation/messages/it.js +145 -0
  471. package/dist/cjs/lib/validation/messages/ja.d.ts +5 -0
  472. package/dist/cjs/lib/validation/messages/ja.js +145 -0
  473. package/dist/cjs/lib/validation/messages/ko.d.ts +5 -0
  474. package/dist/cjs/lib/validation/messages/ko.js +145 -0
  475. package/dist/cjs/lib/validation/messages/nl.d.ts +5 -0
  476. package/dist/cjs/lib/validation/messages/nl.js +145 -0
  477. package/dist/cjs/lib/validation/messages/pl.d.ts +5 -0
  478. package/dist/cjs/lib/validation/messages/pl.js +145 -0
  479. package/dist/cjs/lib/validation/messages/pt-BR.d.ts +5 -0
  480. package/dist/cjs/lib/validation/messages/pt-BR.js +145 -0
  481. package/dist/cjs/lib/validation/messages/ru.d.ts +5 -0
  482. package/dist/cjs/lib/validation/messages/ru.js +145 -0
  483. package/dist/cjs/lib/validation/messages/th.d.ts +5 -0
  484. package/dist/cjs/lib/validation/messages/th.js +145 -0
  485. package/dist/cjs/lib/validation/messages/tr.d.ts +5 -0
  486. package/dist/cjs/lib/validation/messages/tr.js +145 -0
  487. package/dist/cjs/lib/validation/messages/uk.d.ts +5 -0
  488. package/dist/cjs/lib/validation/messages/uk.js +145 -0
  489. package/dist/cjs/lib/validation/messages/vi.d.ts +5 -0
  490. package/dist/cjs/lib/validation/messages/vi.js +145 -0
  491. package/dist/cjs/lib/validation/messages/zh-CN.d.ts +5 -0
  492. package/dist/cjs/lib/validation/messages/zh-CN.js +145 -0
  493. package/dist/cjs/lib/validation/messages/zh-TW.d.ts +5 -0
  494. package/dist/cjs/lib/validation/messages/zh-TW.js +145 -0
  495. package/dist/cjs/lib/validation/types/BasicType.d.ts +4 -0
  496. package/dist/cjs/lib/validation/types/BasicType.js +2 -0
  497. package/dist/cjs/lib/validation/types/ComparatorFunction.d.ts +4 -0
  498. package/dist/cjs/lib/validation/types/ComparatorFunction.js +2 -0
  499. package/dist/cjs/lib/validation/types/CustomValidator.d.ts +9 -0
  500. package/dist/cjs/lib/validation/types/CustomValidator.js +2 -0
  501. package/dist/cjs/lib/validation/types/ExtensionBoundSchema.d.ts +2 -0
  502. package/dist/cjs/lib/validation/types/ExtensionBoundSchema.js +2 -0
  503. package/dist/cjs/lib/validation/types/ExternalValidationFunction.d.ts +8 -0
  504. package/dist/cjs/lib/validation/types/ExternalValidationFunction.js +2 -0
  505. package/dist/cjs/lib/validation/types/IsNonPrimitiveSubsetUnion.d.ts +3 -0
  506. package/dist/cjs/lib/validation/types/IsNonPrimitiveSubsetUnion.js +2 -0
  507. package/dist/cjs/lib/validation/types/IsPrimitiveSubset.d.ts +3 -0
  508. package/dist/cjs/lib/validation/types/IsPrimitiveSubset.js +2 -0
  509. package/dist/cjs/lib/validation/types/IsUnion.d.ts +1 -0
  510. package/dist/cjs/lib/validation/types/IsUnion.js +2 -0
  511. package/dist/cjs/lib/validation/types/LanguageMessages.d.ts +5 -0
  512. package/dist/cjs/lib/validation/types/LanguageMessages.js +2 -0
  513. package/dist/cjs/lib/validation/types/NoNestedArrays.d.ts +5 -0
  514. package/dist/cjs/lib/validation/types/NoNestedArrays.js +2 -0
  515. package/dist/cjs/lib/validation/types/NullableType.d.ts +1 -0
  516. package/dist/cjs/lib/validation/types/NullableType.js +2 -0
  517. package/dist/cjs/lib/validation/types/ObjectPropertiesSchema.d.ts +12 -0
  518. package/dist/cjs/lib/validation/types/ObjectPropertiesSchema.js +2 -0
  519. package/dist/cjs/lib/validation/types/PartialSchemaMap.d.ts +4 -0
  520. package/dist/cjs/lib/validation/types/PartialSchemaMap.js +2 -0
  521. package/dist/cjs/lib/validation/types/PresenceMode.d.ts +4 -0
  522. package/dist/cjs/lib/validation/types/PresenceMode.js +2 -0
  523. package/dist/cjs/lib/validation/types/Primitives.d.ts +4 -0
  524. package/dist/cjs/lib/validation/types/Primitives.js +2 -0
  525. package/dist/cjs/lib/validation/types/Schema.d.ts +17 -0
  526. package/dist/cjs/lib/validation/types/Schema.js +2 -0
  527. package/dist/cjs/lib/validation/types/SchemaFunction.d.ts +6 -0
  528. package/dist/cjs/lib/validation/types/SchemaFunction.js +2 -0
  529. package/dist/cjs/lib/validation/types/SchemaLike.d.ts +6 -0
  530. package/dist/cjs/lib/validation/types/SchemaLike.js +2 -0
  531. package/dist/cjs/lib/validation/types/SchemaLikeWithoutArray.d.ts +7 -0
  532. package/dist/cjs/lib/validation/types/SchemaLikeWithoutArray.js +2 -0
  533. package/dist/cjs/lib/validation/types/SchemaMap.d.ts +7 -0
  534. package/dist/cjs/lib/validation/types/SchemaMap.js +2 -0
  535. package/dist/cjs/lib/validation/types/StrictSchemaMap.d.ts +4 -0
  536. package/dist/cjs/lib/validation/types/StrictSchemaMap.js +2 -0
  537. package/dist/cjs/lib/validation/types/Types.d.ts +4 -0
  538. package/dist/cjs/lib/validation/types/Types.js +2 -0
  539. package/dist/cjs/lib/validation/types/UnwrapSchemaLikeWithoutArray.d.ts +5 -0
  540. package/dist/cjs/lib/validation/types/UnwrapSchemaLikeWithoutArray.js +2 -0
  541. package/dist/cjs/lib/validation/types/ValidationErrorFunction.d.ts +7 -0
  542. package/dist/cjs/lib/validation/types/ValidationErrorFunction.js +2 -0
  543. package/dist/cjs/options/ApplicationOptions.d.ts +60 -0
  544. package/dist/cjs/options/ApplicationOptions.js +75 -0
  545. package/dist/cjs/options/LoadAnonymousObjectOptions.d.ts +33 -0
  546. package/dist/cjs/options/LoadAnonymousObjectOptions.js +51 -0
  547. package/dist/cjs/options/LoadNamedObjectOptions.d.ts +29 -0
  548. package/dist/cjs/options/LoadNamedObjectOptions.js +42 -0
  549. package/dist/cjs/options/LoadObjectOptions.d.ts +30 -0
  550. package/dist/cjs/options/LoadObjectOptions.js +53 -0
  551. package/dist/cjs/options/ModuleLoadObjectsOptions.d.ts +44 -0
  552. package/dist/cjs/options/ModuleLoadObjectsOptions.js +61 -0
  553. package/dist/cjs/options/ModuleOptions.d.ts +74 -0
  554. package/dist/cjs/options/ModuleOptions.js +86 -0
  555. package/dist/cjs/options/OverridableNamedObjectOptions.d.ts +26 -0
  556. package/dist/cjs/options/OverridableNamedObjectOptions.js +37 -0
  557. package/dist/cjs/options/OverridableObjectOptions.d.ts +34 -0
  558. package/dist/cjs/options/OverridableObjectOptions.js +52 -0
  559. package/dist/cjs/package.json +1 -0
  560. package/dist/cjs/types/ActionPattern.d.ts +6 -0
  561. package/dist/cjs/types/ActionPattern.js +2 -0
  562. package/dist/cjs/types/ApplicationExitReason.d.ts +13 -0
  563. package/dist/cjs/types/ApplicationExitReason.js +2 -0
  564. package/dist/cjs/types/ClassDecorator.d.ts +6 -0
  565. package/dist/cjs/types/ClassDecorator.js +2 -0
  566. package/dist/cjs/types/ComponentOptions.d.ts +20 -0
  567. package/dist/cjs/types/ComponentOptions.js +2 -0
  568. package/dist/cjs/types/CronOptions.d.ts +25 -0
  569. package/dist/cjs/types/CronOptions.js +2 -0
  570. package/dist/cjs/types/JSONSchema.d.ts +284 -0
  571. package/dist/cjs/types/JSONSchema.js +2 -0
  572. package/dist/cjs/types/MethodDecorator.d.ts +5 -0
  573. package/dist/cjs/types/MethodDecorator.js +2 -0
  574. package/dist/cjs/types/ModuleOptions.d.ts +20 -0
  575. package/dist/cjs/types/ModuleOptions.js +2 -0
  576. package/dist/cjs/types/ObjectOptions.d.ts +20 -0
  577. package/dist/cjs/types/ObjectOptions.js +2 -0
  578. package/dist/cjs/types/PaginationMeta.d.ts +21 -0
  579. package/dist/cjs/types/PaginationMeta.js +2 -0
  580. package/dist/cjs/types/ParameterDecorator.d.ts +5 -0
  581. package/dist/cjs/types/ParameterDecorator.js +2 -0
  582. package/dist/cjs/types/PropertyDecorator.d.ts +4 -0
  583. package/dist/cjs/types/PropertyDecorator.js +2 -0
  584. package/dist/cjs/types/ProviderOptions.d.ts +20 -0
  585. package/dist/cjs/types/ProviderOptions.js +2 -0
  586. package/dist/esm/components/ConsoleLogger.js +96 -0
  587. package/dist/esm/constants/DIMetadataKey.js +10 -0
  588. package/dist/esm/constants/DTOMetadataKey.js +5 -0
  589. package/dist/esm/decorators/asst/After.js +30 -0
  590. package/dist/esm/decorators/asst/Before.js +29 -0
  591. package/dist/esm/decorators/di/Autoload.js +34 -0
  592. package/dist/esm/decorators/di/Configurable.js +57 -0
  593. package/dist/esm/decorators/di/Inject.js +33 -0
  594. package/dist/esm/decorators/di/Lifetime.js +100 -0
  595. package/dist/esm/decorators/dto/Accept.js +38 -0
  596. package/dist/esm/decorators/dto/Expect.js +38 -0
  597. package/dist/esm/decorators/dto/IndexSignature.js +30 -0
  598. package/dist/esm/decorators/dto/Return.js +39 -0
  599. package/dist/esm/dto/PaginationResultDTO.js +46 -0
  600. package/dist/esm/dto/PaginationSearchDTO.js +41 -0
  601. package/dist/esm/dto/Paginator.js +50 -0
  602. package/dist/esm/exceptions/DestroyRuntimeContainerException.js +13 -0
  603. package/dist/esm/exceptions/InvalidActionPatternDepthException.js +11 -0
  604. package/dist/esm/exceptions/InvalidAssistantFunctionTypeException.js +12 -0
  605. package/dist/esm/exceptions/InvalidObjectTypeException.js +12 -0
  606. package/dist/esm/exceptions/MethodNotFoundException.js +11 -0
  607. package/dist/esm/exceptions/ObjectDestroyedException.js +12 -0
  608. package/dist/esm/exceptions/alias/AliasExistsException.js +11 -0
  609. package/dist/esm/exceptions/alias/AliasNotFoundException.js +11 -0
  610. package/dist/esm/exceptions/alias/InvalidAliasNameException.js +11 -0
  611. package/dist/esm/exceptions/di/DependencyInjectionException.js +12 -0
  612. package/dist/esm/exceptions/di/InvalidObjectOptionsException.js +12 -0
  613. package/dist/esm/exceptions/di/LifetimeLockedException.js +12 -0
  614. package/dist/esm/exceptions/di/OverridableObjectTargetConfigNotFoundException.js +12 -0
  615. package/dist/esm/exceptions/dto/InvalidMethodAcceptException.js +12 -0
  616. package/dist/esm/exceptions/dto/InvalidMethodReturnException.js +12 -0
  617. package/dist/esm/exceptions/dto/InvalidValueException.js +14 -0
  618. package/dist/esm/exports/ASSTDecorators.js +3 -0
  619. package/dist/esm/exports/Core.js +64 -0
  620. package/dist/esm/exports/DIDecorators.js +5 -0
  621. package/dist/esm/exports/DTODecorators.js +6 -0
  622. package/dist/esm/exports/DTOs.js +16 -0
  623. package/dist/esm/exports/LoggerComponent.js +3 -0
  624. package/dist/esm/interfaces/IBaseObjectConstructor.js +1 -0
  625. package/dist/esm/interfaces/IConstructor.js +1 -0
  626. package/dist/esm/interfaces/ILogger.js +1 -0
  627. package/dist/esm/lib/app/Application.js +606 -0
  628. package/dist/esm/lib/app/ApplicationConfigLoader.js +26 -0
  629. package/dist/esm/lib/app/MigrationCommand.js +28 -0
  630. package/dist/esm/lib/base/BaseObject.js +605 -0
  631. package/dist/esm/lib/base/EventEmitter.js +147 -0
  632. package/dist/esm/lib/base/async-constructor/Append.js +18 -0
  633. package/dist/esm/lib/base/async-constructor/AsyncConstructor.js +7 -0
  634. package/dist/esm/lib/base/internal/ApplicationLaunch.js +53 -0
  635. package/dist/esm/lib/base/internal/ConfigurableRecordsInjection.js +76 -0
  636. package/dist/esm/lib/base/internal/EventEmitter2.js +711 -0
  637. package/dist/esm/lib/base/internal/MemberDeclarations.js +40 -0
  638. package/dist/esm/lib/base/internal/MethodAssistantFunction.js +106 -0
  639. package/dist/esm/lib/base/internal/ModuleConfigLoader.js +109 -0
  640. package/dist/esm/lib/base/internal/ModuleInitialization.js +5 -0
  641. package/dist/esm/lib/base/internal/ObjectConfiguration.js +36 -0
  642. package/dist/esm/lib/base/internal/ObjectContainer.js +19 -0
  643. package/dist/esm/lib/base/internal/ObjectInjection.js +53 -0
  644. package/dist/esm/lib/base/internal/ObjectOptionsCheck.js +67 -0
  645. package/dist/esm/lib/base/internal/ObjectStartup.js +69 -0
  646. package/dist/esm/lib/base/internal/ObjectType.js +68 -0
  647. package/dist/esm/lib/core/Alias.js +93 -0
  648. package/dist/esm/lib/core/Component.js +359 -0
  649. package/dist/esm/lib/core/Container.js +629 -0
  650. package/dist/esm/lib/core/Module.js +265 -0
  651. package/dist/esm/lib/core/Provider.js +54 -0
  652. package/dist/esm/lib/dto/CachedSchema.js +1 -0
  653. package/dist/esm/lib/dto/DTO.js +458 -0
  654. package/dist/esm/lib/dto/DataValidator.js +243 -0
  655. package/dist/esm/lib/dto/FlexibleDTO.js +33 -0
  656. package/dist/esm/lib/dto/MethodValidation.js +136 -0
  657. package/dist/esm/lib/dto/ObjectSchemaValidation.js +167 -0
  658. package/dist/esm/lib/dto/internal/CronValidator.js +125 -0
  659. package/dist/esm/lib/foundation/BasicInfo.js +106 -0
  660. package/dist/esm/lib/foundation/EndProcess.js +26 -0
  661. package/dist/esm/lib/foundation/Exception.js +160 -0
  662. package/dist/esm/lib/foundation/LifecycleErrorReporter.js +59 -0
  663. package/dist/esm/lib/foundation/Packaging.js +38 -0
  664. package/dist/esm/lib/foundation/ThrowWarning.js +13 -0
  665. package/dist/esm/lib/helpers/internal/WithCause.js +9 -0
  666. package/dist/esm/lib/ioc/ConstructorSymbol.js +17 -0
  667. package/dist/esm/lib/ioc/DependencyInjectionContainer.js +409 -0
  668. package/dist/esm/lib/ioc/Errors.js +108 -0
  669. package/dist/esm/lib/ioc/Lifetime.js +27 -0
  670. package/dist/esm/lib/ioc/ListModules.js +68 -0
  671. package/dist/esm/lib/ioc/LoadModuleNative.js +5 -0
  672. package/dist/esm/lib/ioc/LoadModules.js +164 -0
  673. package/dist/esm/lib/ioc/ObjectLifetime.js +34 -0
  674. package/dist/esm/lib/ioc/ObjectWeakRefs.js +42 -0
  675. package/dist/esm/lib/ioc/Resolvers.js +242 -0
  676. package/dist/esm/lib/ioc/Utils.js +65 -0
  677. package/dist/esm/lib/validation/JsonSchema.js +81 -0
  678. package/dist/esm/lib/validation/VLD.js +210 -0
  679. package/dist/esm/lib/validation/ValidationLanguage.js +51 -0
  680. package/dist/esm/lib/validation/ValidationMessages.js +151 -0
  681. package/dist/esm/lib/validation/engine/address/decode.js +101 -0
  682. package/dist/esm/lib/validation/engine/address/domain.js +143 -0
  683. package/dist/esm/lib/validation/engine/address/email.js +145 -0
  684. package/dist/esm/lib/validation/engine/address/errors.js +27 -0
  685. package/dist/esm/lib/validation/engine/address/index.js +9 -0
  686. package/dist/esm/lib/validation/engine/address/ip.js +46 -0
  687. package/dist/esm/lib/validation/engine/address/uri.js +214 -0
  688. package/dist/esm/lib/validation/engine/expression/index.js +352 -0
  689. package/dist/esm/lib/validation/engine/json-schema/combinations.js +30 -0
  690. package/dist/esm/lib/validation/engine/json-schema/helpers.js +366 -0
  691. package/dist/esm/lib/validation/engine/json-schema/import.js +865 -0
  692. package/dist/esm/lib/validation/engine/json-schema/index.js +36 -0
  693. package/dist/esm/lib/validation/engine/json-schema/model.js +4 -0
  694. package/dist/esm/lib/validation/engine/json-schema/parsers/json-2020-12.js +19 -0
  695. package/dist/esm/lib/validation/engine/json-schema/parsers/json-draft-04.js +56 -0
  696. package/dist/esm/lib/validation/engine/json-schema/parsers/json-draft-2019-09.js +32 -0
  697. package/dist/esm/lib/validation/engine/json-schema/parsers/json.js +1460 -0
  698. package/dist/esm/lib/validation/engine/json-schema/parsers/open-api-3.1.js +34 -0
  699. package/dist/esm/lib/validation/engine/json-schema/parsers/open-api.js +169 -0
  700. package/dist/esm/lib/validation/engine/location/index.js +20 -0
  701. package/dist/esm/lib/validation/engine/schema/annotate.js +126 -0
  702. package/dist/esm/lib/validation/engine/schema/assert.js +60 -0
  703. package/dist/esm/lib/validation/engine/schema/base.js +797 -0
  704. package/dist/esm/lib/validation/engine/schema/cache.js +94 -0
  705. package/dist/esm/lib/validation/engine/schema/common.js +203 -0
  706. package/dist/esm/lib/validation/engine/schema/compile.js +203 -0
  707. package/dist/esm/lib/validation/engine/schema/errors.js +189 -0
  708. package/dist/esm/lib/validation/engine/schema/extend.js +199 -0
  709. package/dist/esm/lib/validation/engine/schema/extensions/bigint.js +170 -0
  710. package/dist/esm/lib/validation/engine/schema/fastpath.js +622 -0
  711. package/dist/esm/lib/validation/engine/schema/formats.js +102 -0
  712. package/dist/esm/lib/validation/engine/schema/index.js +199 -0
  713. package/dist/esm/lib/validation/engine/schema/lazy.js +5 -0
  714. package/dist/esm/lib/validation/engine/schema/manifest.js +325 -0
  715. package/dist/esm/lib/validation/engine/schema/messages.js +131 -0
  716. package/dist/esm/lib/validation/engine/schema/model.js +1 -0
  717. package/dist/esm/lib/validation/engine/schema/modify.js +186 -0
  718. package/dist/esm/lib/validation/engine/schema/ref.js +277 -0
  719. package/dist/esm/lib/validation/engine/schema/schemas.js +262 -0
  720. package/dist/esm/lib/validation/engine/schema/state.js +110 -0
  721. package/dist/esm/lib/validation/engine/schema/template.js +294 -0
  722. package/dist/esm/lib/validation/engine/schema/trace.js +240 -0
  723. package/dist/esm/lib/validation/engine/schema/types/alternatives.js +294 -0
  724. package/dist/esm/lib/validation/engine/schema/types/any.js +160 -0
  725. package/dist/esm/lib/validation/engine/schema/types/array.js +630 -0
  726. package/dist/esm/lib/validation/engine/schema/types/binary.js +78 -0
  727. package/dist/esm/lib/validation/engine/schema/types/boolean.js +104 -0
  728. package/dist/esm/lib/validation/engine/schema/types/date.js +159 -0
  729. package/dist/esm/lib/validation/engine/schema/types/function.js +63 -0
  730. package/dist/esm/lib/validation/engine/schema/types/keys.js +873 -0
  731. package/dist/esm/lib/validation/engine/schema/types/link.js +122 -0
  732. package/dist/esm/lib/validation/engine/schema/types/number.js +346 -0
  733. package/dist/esm/lib/validation/engine/schema/types/object.js +16 -0
  734. package/dist/esm/lib/validation/engine/schema/types/string.js +728 -0
  735. package/dist/esm/lib/validation/engine/schema/types/symbol.js +70 -0
  736. package/dist/esm/lib/validation/engine/schema/validator.js +638 -0
  737. package/dist/esm/lib/validation/engine/schema/values.js +164 -0
  738. package/dist/esm/lib/validation/engine/sorter/index.js +176 -0
  739. package/dist/esm/lib/validation/engine/tlds/index.js +5 -0
  740. package/dist/esm/lib/validation/engine/tlds/tlds.js +1445 -0
  741. package/dist/esm/lib/validation/engine/utils/applyToDefaults.js +86 -0
  742. package/dist/esm/lib/validation/engine/utils/assert.js +20 -0
  743. package/dist/esm/lib/validation/engine/utils/assertError.js +14 -0
  744. package/dist/esm/lib/validation/engine/utils/clone.js +157 -0
  745. package/dist/esm/lib/validation/engine/utils/deepEqual.js +262 -0
  746. package/dist/esm/lib/validation/engine/utils/escapeHtml.js +59 -0
  747. package/dist/esm/lib/validation/engine/utils/escapeRegex.js +10 -0
  748. package/dist/esm/lib/validation/engine/utils/ignore.js +9 -0
  749. package/dist/esm/lib/validation/engine/utils/index.js +16 -0
  750. package/dist/esm/lib/validation/engine/utils/merge.js +64 -0
  751. package/dist/esm/lib/validation/engine/utils/reach.js +59 -0
  752. package/dist/esm/lib/validation/engine/utils/stringify.js +15 -0
  753. package/dist/esm/lib/validation/engine/utils/types.js +47 -0
  754. package/dist/esm/lib/validation/engine/utils/utils.js +18 -0
  755. package/dist/esm/lib/validation/exceptions/SchemaConversionException.js +10 -0
  756. package/dist/esm/lib/validation/exceptions/SchemaDefinitionException.js +10 -0
  757. package/dist/esm/lib/validation/exceptions/SchemaException.js +6 -0
  758. package/dist/esm/lib/validation/exceptions/SchemaValidationException.js +39 -0
  759. package/dist/esm/lib/validation/interfaces/AlternativesSchema.js +1 -0
  760. package/dist/esm/lib/validation/interfaces/AnySchema.js +1 -0
  761. package/dist/esm/lib/validation/interfaces/ArraySchema.js +1 -0
  762. package/dist/esm/lib/validation/interfaces/ArraySortOptions.js +1 -0
  763. package/dist/esm/lib/validation/interfaces/ArrayUniqueOptions.js +1 -0
  764. package/dist/esm/lib/validation/interfaces/Base64Options.js +1 -0
  765. package/dist/esm/lib/validation/interfaces/BaseValidationOptions.js +1 -0
  766. package/dist/esm/lib/validation/interfaces/BigIntSchema.js +1 -0
  767. package/dist/esm/lib/validation/interfaces/BinarySchema.js +1 -0
  768. package/dist/esm/lib/validation/interfaces/BooleanSchema.js +1 -0
  769. package/dist/esm/lib/validation/interfaces/Cache.js +1 -0
  770. package/dist/esm/lib/validation/interfaces/CacheConfiguration.js +1 -0
  771. package/dist/esm/lib/validation/interfaces/CompileOptions.js +1 -0
  772. package/dist/esm/lib/validation/interfaces/Context.js +1 -0
  773. package/dist/esm/lib/validation/interfaces/CustomHelpers.js +1 -0
  774. package/dist/esm/lib/validation/interfaces/DataUriOptions.js +1 -0
  775. package/dist/esm/lib/validation/interfaces/DateSchema.js +1 -0
  776. package/dist/esm/lib/validation/interfaces/DependencyOptions.js +1 -0
  777. package/dist/esm/lib/validation/interfaces/Description.js +1 -0
  778. package/dist/esm/lib/validation/interfaces/DomainOptions.js +1 -0
  779. package/dist/esm/lib/validation/interfaces/EmailOptions.js +1 -0
  780. package/dist/esm/lib/validation/interfaces/ErrorFormattingOptions.js +1 -0
  781. package/dist/esm/lib/validation/interfaces/ErrorReport.js +1 -0
  782. package/dist/esm/lib/validation/interfaces/ErrorValidationOptions.js +1 -0
  783. package/dist/esm/lib/validation/interfaces/Extension.js +1 -0
  784. package/dist/esm/lib/validation/interfaces/ExtensionFlag.js +1 -0
  785. package/dist/esm/lib/validation/interfaces/ExternalHelpers.js +1 -0
  786. package/dist/esm/lib/validation/interfaces/FunctionSchema.js +1 -0
  787. package/dist/esm/lib/validation/interfaces/GuidOptions.js +1 -0
  788. package/dist/esm/lib/validation/interfaces/HexOptions.js +1 -0
  789. package/dist/esm/lib/validation/interfaces/HierarchySeparatorOptions.js +1 -0
  790. package/dist/esm/lib/validation/interfaces/IpOptions.js +1 -0
  791. package/dist/esm/lib/validation/interfaces/LanguageMessageTemplate.js +1 -0
  792. package/dist/esm/lib/validation/interfaces/LinkSchema.js +1 -0
  793. package/dist/esm/lib/validation/interfaces/NumberSchema.js +1 -0
  794. package/dist/esm/lib/validation/interfaces/ObjectPatternOptions.js +1 -0
  795. package/dist/esm/lib/validation/interfaces/ObjectSchema.js +1 -0
  796. package/dist/esm/lib/validation/interfaces/Reference.js +1 -0
  797. package/dist/esm/lib/validation/interfaces/ReferenceOptions.js +1 -0
  798. package/dist/esm/lib/validation/interfaces/RenameOptions.js +1 -0
  799. package/dist/esm/lib/validation/interfaces/RuleOptions.js +1 -0
  800. package/dist/esm/lib/validation/interfaces/SchemaInternals.js +1 -0
  801. package/dist/esm/lib/validation/interfaces/State.js +1 -0
  802. package/dist/esm/lib/validation/interfaces/StringRegexOptions.js +1 -0
  803. package/dist/esm/lib/validation/interfaces/StringSchema.js +1 -0
  804. package/dist/esm/lib/validation/interfaces/SwitchCases.js +1 -0
  805. package/dist/esm/lib/validation/interfaces/SwitchDefault.js +1 -0
  806. package/dist/esm/lib/validation/interfaces/SymbolSchema.js +1 -0
  807. package/dist/esm/lib/validation/interfaces/TopLevelDomainOptions.js +1 -0
  808. package/dist/esm/lib/validation/interfaces/UriOptions.js +1 -0
  809. package/dist/esm/lib/validation/interfaces/ValidationErrorItem.js +1 -0
  810. package/dist/esm/lib/validation/interfaces/ValidationOptions.js +1 -0
  811. package/dist/esm/lib/validation/interfaces/WhenOptions.js +1 -0
  812. package/dist/esm/lib/validation/interfaces/WhenSchemaOptions.js +1 -0
  813. package/dist/esm/lib/validation/messages/ar.js +143 -0
  814. package/dist/esm/lib/validation/messages/de.js +143 -0
  815. package/dist/esm/lib/validation/messages/es.js +143 -0
  816. package/dist/esm/lib/validation/messages/fr.js +143 -0
  817. package/dist/esm/lib/validation/messages/hi.js +143 -0
  818. package/dist/esm/lib/validation/messages/id.js +143 -0
  819. package/dist/esm/lib/validation/messages/it.js +143 -0
  820. package/dist/esm/lib/validation/messages/ja.js +143 -0
  821. package/dist/esm/lib/validation/messages/ko.js +143 -0
  822. package/dist/esm/lib/validation/messages/nl.js +143 -0
  823. package/dist/esm/lib/validation/messages/pl.js +143 -0
  824. package/dist/esm/lib/validation/messages/pt-BR.js +143 -0
  825. package/dist/esm/lib/validation/messages/ru.js +143 -0
  826. package/dist/esm/lib/validation/messages/th.js +143 -0
  827. package/dist/esm/lib/validation/messages/tr.js +143 -0
  828. package/dist/esm/lib/validation/messages/uk.js +143 -0
  829. package/dist/esm/lib/validation/messages/vi.js +143 -0
  830. package/dist/esm/lib/validation/messages/zh-CN.js +143 -0
  831. package/dist/esm/lib/validation/messages/zh-TW.js +143 -0
  832. package/dist/esm/lib/validation/types/BasicType.js +1 -0
  833. package/dist/esm/lib/validation/types/ComparatorFunction.js +1 -0
  834. package/dist/esm/lib/validation/types/CustomValidator.js +1 -0
  835. package/dist/esm/lib/validation/types/ExtensionBoundSchema.js +1 -0
  836. package/dist/esm/lib/validation/types/ExternalValidationFunction.js +1 -0
  837. package/dist/esm/lib/validation/types/IsNonPrimitiveSubsetUnion.js +1 -0
  838. package/dist/esm/lib/validation/types/IsPrimitiveSubset.js +1 -0
  839. package/dist/esm/lib/validation/types/IsUnion.js +1 -0
  840. package/dist/esm/lib/validation/types/LanguageMessages.js +1 -0
  841. package/dist/esm/lib/validation/types/NoNestedArrays.js +1 -0
  842. package/dist/esm/lib/validation/types/NullableType.js +1 -0
  843. package/dist/esm/lib/validation/types/ObjectPropertiesSchema.js +1 -0
  844. package/dist/esm/lib/validation/types/PartialSchemaMap.js +1 -0
  845. package/dist/esm/lib/validation/types/PresenceMode.js +1 -0
  846. package/dist/esm/lib/validation/types/Primitives.js +1 -0
  847. package/dist/esm/lib/validation/types/Schema.js +1 -0
  848. package/dist/esm/lib/validation/types/SchemaFunction.js +1 -0
  849. package/dist/esm/lib/validation/types/SchemaLike.js +1 -0
  850. package/dist/esm/lib/validation/types/SchemaLikeWithoutArray.js +1 -0
  851. package/dist/esm/lib/validation/types/SchemaMap.js +1 -0
  852. package/dist/esm/lib/validation/types/StrictSchemaMap.js +1 -0
  853. package/dist/esm/lib/validation/types/Types.js +1 -0
  854. package/dist/esm/lib/validation/types/UnwrapSchemaLikeWithoutArray.js +1 -0
  855. package/dist/esm/lib/validation/types/ValidationErrorFunction.js +1 -0
  856. package/dist/esm/options/ApplicationOptions.js +71 -0
  857. package/dist/esm/options/LoadAnonymousObjectOptions.js +48 -0
  858. package/dist/esm/options/LoadNamedObjectOptions.js +39 -0
  859. package/dist/esm/options/LoadObjectOptions.js +50 -0
  860. package/dist/esm/options/ModuleLoadObjectsOptions.js +57 -0
  861. package/dist/esm/options/ModuleOptions.js +82 -0
  862. package/dist/esm/options/OverridableNamedObjectOptions.js +34 -0
  863. package/dist/esm/options/OverridableObjectOptions.js +49 -0
  864. package/dist/esm/types/ActionPattern.js +1 -0
  865. package/dist/esm/types/ApplicationExitReason.js +1 -0
  866. package/dist/esm/types/ClassDecorator.js +1 -0
  867. package/dist/esm/types/ComponentOptions.js +1 -0
  868. package/dist/esm/types/CronOptions.js +1 -0
  869. package/dist/esm/types/JSONSchema.js +1 -0
  870. package/dist/esm/types/MethodDecorator.js +1 -0
  871. package/dist/esm/types/ModuleOptions.js +1 -0
  872. package/dist/esm/types/ObjectOptions.js +1 -0
  873. package/dist/esm/types/PaginationMeta.js +1 -0
  874. package/dist/esm/types/ParameterDecorator.js +1 -0
  875. package/dist/esm/types/PropertyDecorator.js +1 -0
  876. package/dist/esm/types/ProviderOptions.js +1 -0
  877. package/dist/types/components/ConsoleLogger.d.ts +62 -0
  878. package/dist/types/constants/DIMetadataKey.d.ts +10 -0
  879. package/dist/types/constants/DTOMetadataKey.d.ts +5 -0
  880. package/dist/types/decorators/asst/After.d.ts +29 -0
  881. package/dist/types/decorators/asst/Before.d.ts +28 -0
  882. package/dist/types/decorators/di/Autoload.d.ts +33 -0
  883. package/dist/types/decorators/di/Configurable.d.ts +51 -0
  884. package/dist/types/decorators/di/Inject.d.ts +85 -0
  885. package/dist/types/decorators/di/Lifetime.d.ts +94 -0
  886. package/dist/types/decorators/dto/Accept.d.ts +38 -0
  887. package/dist/types/decorators/dto/Expect.d.ts +38 -0
  888. package/dist/types/decorators/dto/IndexSignature.d.ts +30 -0
  889. package/dist/types/decorators/dto/Return.d.ts +39 -0
  890. package/dist/types/dto/PaginationResultDTO.d.ts +33 -0
  891. package/dist/types/dto/PaginationSearchDTO.d.ts +33 -0
  892. package/dist/types/dto/Paginator.d.ts +54 -0
  893. package/dist/types/exceptions/DestroyRuntimeContainerException.d.ts +10 -0
  894. package/dist/types/exceptions/InvalidActionPatternDepthException.d.ts +8 -0
  895. package/dist/types/exceptions/InvalidAssistantFunctionTypeException.d.ts +9 -0
  896. package/dist/types/exceptions/InvalidObjectTypeException.d.ts +9 -0
  897. package/dist/types/exceptions/MethodNotFoundException.d.ts +8 -0
  898. package/dist/types/exceptions/ObjectDestroyedException.d.ts +9 -0
  899. package/dist/types/exceptions/alias/AliasExistsException.d.ts +8 -0
  900. package/dist/types/exceptions/alias/AliasNotFoundException.d.ts +8 -0
  901. package/dist/types/exceptions/alias/InvalidAliasNameException.d.ts +8 -0
  902. package/dist/types/exceptions/di/DependencyInjectionException.d.ts +9 -0
  903. package/dist/types/exceptions/di/InvalidObjectOptionsException.d.ts +9 -0
  904. package/dist/types/exceptions/di/LifetimeLockedException.d.ts +9 -0
  905. package/dist/types/exceptions/di/OverridableObjectTargetConfigNotFoundException.d.ts +9 -0
  906. package/dist/types/exceptions/dto/InvalidMethodAcceptException.d.ts +9 -0
  907. package/dist/types/exceptions/dto/InvalidMethodReturnException.d.ts +9 -0
  908. package/dist/types/exceptions/dto/InvalidValueException.d.ts +11 -0
  909. package/dist/types/exports/ASSTDecorators.d.ts +3 -0
  910. package/dist/types/exports/Core.d.ts +93 -0
  911. package/dist/types/exports/DIDecorators.d.ts +5 -0
  912. package/dist/types/exports/DTODecorators.d.ts +6 -0
  913. package/dist/types/exports/DTOs.d.ts +17 -0
  914. package/dist/types/exports/LoggerComponent.d.ts +3 -0
  915. package/dist/types/interfaces/IBaseObjectConstructor.d.ts +10 -0
  916. package/dist/types/interfaces/IConstructor.d.ts +6 -0
  917. package/dist/types/interfaces/ILogger.d.ts +35 -0
  918. package/dist/types/lib/app/Application.d.ts +346 -0
  919. package/dist/types/lib/app/ApplicationConfigLoader.d.ts +17 -0
  920. package/dist/types/lib/app/MigrationCommand.d.ts +31 -0
  921. package/dist/types/lib/base/BaseObject.d.ts +343 -0
  922. package/dist/types/lib/base/EventEmitter.d.ts +37 -0
  923. package/dist/types/lib/base/async-constructor/Append.d.ts +1 -0
  924. package/dist/types/lib/base/async-constructor/AsyncConstructor.d.ts +3 -0
  925. package/dist/types/lib/base/internal/ApplicationLaunch.d.ts +16 -0
  926. package/dist/types/lib/base/internal/ConfigurableRecordsInjection.d.ts +47 -0
  927. package/dist/types/lib/base/internal/EventEmitter2.d.ts +184 -0
  928. package/dist/types/lib/base/internal/MemberDeclarations.d.ts +23 -0
  929. package/dist/types/lib/base/internal/MethodAssistantFunction.d.ts +20 -0
  930. package/dist/types/lib/base/internal/ModuleConfigLoader.d.ts +46 -0
  931. package/dist/types/lib/base/internal/ModuleInitialization.d.ts +5 -0
  932. package/dist/types/lib/base/internal/ObjectConfiguration.d.ts +29 -0
  933. package/dist/types/lib/base/internal/ObjectContainer.d.ts +15 -0
  934. package/dist/types/lib/base/internal/ObjectInjection.d.ts +43 -0
  935. package/dist/types/lib/base/internal/ObjectOptionsCheck.d.ts +12 -0
  936. package/dist/types/lib/base/internal/ObjectStartup.d.ts +31 -0
  937. package/dist/types/lib/base/internal/ObjectType.d.ts +37 -0
  938. package/dist/types/lib/core/Alias.d.ts +48 -0
  939. package/dist/types/lib/core/Component.d.ts +267 -0
  940. package/dist/types/lib/core/Container.d.ts +341 -0
  941. package/dist/types/lib/core/Module.d.ts +165 -0
  942. package/dist/types/lib/core/Provider.d.ts +52 -0
  943. package/dist/types/lib/dto/CachedSchema.d.ts +7 -0
  944. package/dist/types/lib/dto/DTO.d.ts +278 -0
  945. package/dist/types/lib/dto/DataValidator.d.ts +166 -0
  946. package/dist/types/lib/dto/FlexibleDTO.d.ts +23 -0
  947. package/dist/types/lib/dto/MethodValidation.d.ts +44 -0
  948. package/dist/types/lib/dto/ObjectSchemaValidation.d.ts +86 -0
  949. package/dist/types/lib/dto/internal/CronValidator.d.ts +8 -0
  950. package/dist/types/lib/foundation/BasicInfo.d.ts +46 -0
  951. package/dist/types/lib/foundation/EndProcess.d.ts +14 -0
  952. package/dist/types/lib/foundation/Exception.d.ts +88 -0
  953. package/dist/types/lib/foundation/LifecycleErrorReporter.d.ts +26 -0
  954. package/dist/types/lib/foundation/Packaging.d.ts +29 -0
  955. package/dist/types/lib/foundation/ThrowWarning.d.ts +6 -0
  956. package/dist/types/lib/helpers/internal/WithCause.d.ts +6 -0
  957. package/dist/types/lib/ioc/ConstructorSymbol.d.ts +3 -0
  958. package/dist/types/lib/ioc/DependencyInjectionContainer.d.ts +178 -0
  959. package/dist/types/lib/ioc/Errors.d.ts +59 -0
  960. package/dist/types/lib/ioc/Lifetime.d.ts +12 -0
  961. package/dist/types/lib/ioc/ListModules.d.ts +42 -0
  962. package/dist/types/lib/ioc/LoadModuleNative.d.ts +1 -0
  963. package/dist/types/lib/ioc/LoadModules.d.ts +49 -0
  964. package/dist/types/lib/ioc/ObjectLifetime.d.ts +22 -0
  965. package/dist/types/lib/ioc/ObjectWeakRefs.d.ts +19 -0
  966. package/dist/types/lib/ioc/Resolvers.d.ts +136 -0
  967. package/dist/types/lib/ioc/Utils.d.ts +33 -0
  968. package/dist/types/lib/validation/JsonSchema.d.ts +127 -0
  969. package/dist/types/lib/validation/VLD.d.ts +275 -0
  970. package/dist/types/lib/validation/ValidationLanguage.d.ts +42 -0
  971. package/dist/types/lib/validation/ValidationMessages.d.ts +92 -0
  972. package/dist/types/lib/validation/engine/address/decode.d.ts +8 -0
  973. package/dist/types/lib/validation/engine/address/domain.d.ts +74 -0
  974. package/dist/types/lib/validation/engine/address/email.d.ts +27 -0
  975. package/dist/types/lib/validation/engine/address/errors.d.ts +48 -0
  976. package/dist/types/lib/validation/engine/address/index.d.ts +9 -0
  977. package/dist/types/lib/validation/engine/address/ip.d.ts +35 -0
  978. package/dist/types/lib/validation/engine/address/uri.d.ts +55 -0
  979. package/dist/types/lib/validation/engine/expression/index.d.ts +70 -0
  980. package/dist/types/lib/validation/engine/json-schema/combinations.d.ts +11 -0
  981. package/dist/types/lib/validation/engine/json-schema/helpers.d.ts +76 -0
  982. package/dist/types/lib/validation/engine/json-schema/import.d.ts +56 -0
  983. package/dist/types/lib/validation/engine/json-schema/index.d.ts +20 -0
  984. package/dist/types/lib/validation/engine/json-schema/model.d.ts +124 -0
  985. package/dist/types/lib/validation/engine/json-schema/parsers/json-2020-12.d.ts +9 -0
  986. package/dist/types/lib/validation/engine/json-schema/parsers/json-draft-04.d.ts +17 -0
  987. package/dist/types/lib/validation/engine/json-schema/parsers/json-draft-2019-09.d.ts +13 -0
  988. package/dist/types/lib/validation/engine/json-schema/parsers/json.d.ts +245 -0
  989. package/dist/types/lib/validation/engine/json-schema/parsers/open-api-3.1.d.ts +13 -0
  990. package/dist/types/lib/validation/engine/json-schema/parsers/open-api.d.ts +24 -0
  991. package/dist/types/lib/validation/engine/location/index.d.ts +18 -0
  992. package/dist/types/lib/validation/engine/schema/annotate.d.ts +13 -0
  993. package/dist/types/lib/validation/engine/schema/assert.d.ts +25 -0
  994. package/dist/types/lib/validation/engine/schema/base.d.ts +194 -0
  995. package/dist/types/lib/validation/engine/schema/cache.d.ts +41 -0
  996. package/dist/types/lib/validation/engine/schema/common.d.ts +79 -0
  997. package/dist/types/lib/validation/engine/schema/compile.d.ts +81 -0
  998. package/dist/types/lib/validation/engine/schema/errors.d.ts +94 -0
  999. package/dist/types/lib/validation/engine/schema/extend.d.ts +122 -0
  1000. package/dist/types/lib/validation/engine/schema/extensions/bigint.d.ts +33 -0
  1001. package/dist/types/lib/validation/engine/schema/fastpath.d.ts +35 -0
  1002. package/dist/types/lib/validation/engine/schema/formats.d.ts +8 -0
  1003. package/dist/types/lib/validation/engine/schema/index.d.ts +95 -0
  1004. package/dist/types/lib/validation/engine/schema/lazy.d.ts +21 -0
  1005. package/dist/types/lib/validation/engine/schema/manifest.d.ts +52 -0
  1006. package/dist/types/lib/validation/engine/schema/messages.d.ts +37 -0
  1007. package/dist/types/lib/validation/engine/schema/model.d.ts +196 -0
  1008. package/dist/types/lib/validation/engine/schema/modify.d.ts +58 -0
  1009. package/dist/types/lib/validation/engine/schema/ref.d.ts +116 -0
  1010. package/dist/types/lib/validation/engine/schema/schemas.d.ts +6 -0
  1011. package/dist/types/lib/validation/engine/schema/state.d.ts +48 -0
  1012. package/dist/types/lib/validation/engine/schema/template.d.ts +72 -0
  1013. package/dist/types/lib/validation/engine/schema/trace.d.ts +121 -0
  1014. package/dist/types/lib/validation/engine/schema/types/alternatives.d.ts +36 -0
  1015. package/dist/types/lib/validation/engine/schema/types/any.d.ts +37 -0
  1016. package/dist/types/lib/validation/engine/schema/types/array.d.ts +46 -0
  1017. package/dist/types/lib/validation/engine/schema/types/binary.d.ts +20 -0
  1018. package/dist/types/lib/validation/engine/schema/types/boolean.d.ts +29 -0
  1019. package/dist/types/lib/validation/engine/schema/types/date.d.ts +27 -0
  1020. package/dist/types/lib/validation/engine/schema/types/function.d.ts +12 -0
  1021. package/dist/types/lib/validation/engine/schema/types/keys.d.ts +119 -0
  1022. package/dist/types/lib/validation/engine/schema/types/link.d.ts +21 -0
  1023. package/dist/types/lib/validation/engine/schema/types/number.d.ts +46 -0
  1024. package/dist/types/lib/validation/engine/schema/types/object.d.ts +10 -0
  1025. package/dist/types/lib/validation/engine/schema/types/string.d.ts +115 -0
  1026. package/dist/types/lib/validation/engine/schema/types/symbol.d.ts +23 -0
  1027. package/dist/types/lib/validation/engine/schema/validator.d.ts +114 -0
  1028. package/dist/types/lib/validation/engine/schema/values.d.ts +51 -0
  1029. package/dist/types/lib/validation/engine/sorter/index.d.ts +54 -0
  1030. package/dist/types/lib/validation/engine/tlds/index.d.ts +1 -0
  1031. package/dist/types/lib/validation/engine/tlds/tlds.d.ts +4 -0
  1032. package/dist/types/lib/validation/engine/utils/applyToDefaults.d.ts +17 -0
  1033. package/dist/types/lib/validation/engine/utils/assert.d.ts +6 -0
  1034. package/dist/types/lib/validation/engine/utils/assertError.d.ts +10 -0
  1035. package/dist/types/lib/validation/engine/utils/clone.d.ts +25 -0
  1036. package/dist/types/lib/validation/engine/utils/deepEqual.d.ts +29 -0
  1037. package/dist/types/lib/validation/engine/utils/escapeHtml.d.ts +8 -0
  1038. package/dist/types/lib/validation/engine/utils/escapeRegex.d.ts +8 -0
  1039. package/dist/types/lib/validation/engine/utils/ignore.d.ts +8 -0
  1040. package/dist/types/lib/validation/engine/utils/index.d.ts +16 -0
  1041. package/dist/types/lib/validation/engine/utils/merge.d.ts +21 -0
  1042. package/dist/types/lib/validation/engine/utils/reach.d.ts +30 -0
  1043. package/dist/types/lib/validation/engine/utils/stringify.d.ts +8 -0
  1044. package/dist/types/lib/validation/engine/utils/types.d.ts +26 -0
  1045. package/dist/types/lib/validation/engine/utils/utils.d.ts +24 -0
  1046. package/dist/types/lib/validation/exceptions/SchemaConversionException.d.ts +7 -0
  1047. package/dist/types/lib/validation/exceptions/SchemaDefinitionException.d.ts +7 -0
  1048. package/dist/types/lib/validation/exceptions/SchemaException.d.ts +6 -0
  1049. package/dist/types/lib/validation/exceptions/SchemaValidationException.d.ts +36 -0
  1050. package/dist/types/lib/validation/interfaces/AlternativesSchema.d.ts +45 -0
  1051. package/dist/types/lib/validation/interfaces/AnySchema.d.ts +399 -0
  1052. package/dist/types/lib/validation/interfaces/ArraySchema.d.ts +106 -0
  1053. package/dist/types/lib/validation/interfaces/ArraySortOptions.d.ts +8 -0
  1054. package/dist/types/lib/validation/interfaces/ArrayUniqueOptions.d.ts +9 -0
  1055. package/dist/types/lib/validation/interfaces/Base64Options.d.ts +9 -0
  1056. package/dist/types/lib/validation/interfaces/BaseValidationOptions.d.ts +97 -0
  1057. package/dist/types/lib/validation/interfaces/BigIntSchema.d.ts +67 -0
  1058. package/dist/types/lib/validation/interfaces/BinarySchema.d.ts +33 -0
  1059. package/dist/types/lib/validation/interfaces/BooleanSchema.d.ts +29 -0
  1060. package/dist/types/lib/validation/interfaces/Cache.d.ts +14 -0
  1061. package/dist/types/lib/validation/interfaces/CacheConfiguration.d.ts +15 -0
  1062. package/dist/types/lib/validation/interfaces/CompileOptions.d.ts +9 -0
  1063. package/dist/types/lib/validation/interfaces/Context.d.ts +9 -0
  1064. package/dist/types/lib/validation/interfaces/CustomHelpers.d.ts +15 -0
  1065. package/dist/types/lib/validation/interfaces/DataUriOptions.d.ts +8 -0
  1066. package/dist/types/lib/validation/interfaces/DateSchema.d.ts +48 -0
  1067. package/dist/types/lib/validation/interfaces/DependencyOptions.d.ts +9 -0
  1068. package/dist/types/lib/validation/interfaces/Description.d.ts +20 -0
  1069. package/dist/types/lib/validation/interfaces/DomainOptions.d.ts +33 -0
  1070. package/dist/types/lib/validation/interfaces/EmailOptions.d.ts +51 -0
  1071. package/dist/types/lib/validation/interfaces/ErrorFormattingOptions.d.ts +60 -0
  1072. package/dist/types/lib/validation/interfaces/ErrorReport.d.ts +14 -0
  1073. package/dist/types/lib/validation/interfaces/ErrorValidationOptions.d.ts +5 -0
  1074. package/dist/types/lib/validation/interfaces/Extension.d.ts +100 -0
  1075. package/dist/types/lib/validation/interfaces/ExtensionFlag.d.ts +4 -0
  1076. package/dist/types/lib/validation/interfaces/ExternalHelpers.d.ts +16 -0
  1077. package/dist/types/lib/validation/interfaces/FunctionSchema.d.ts +31 -0
  1078. package/dist/types/lib/validation/interfaces/GuidOptions.d.ts +6 -0
  1079. package/dist/types/lib/validation/interfaces/HexOptions.d.ts +16 -0
  1080. package/dist/types/lib/validation/interfaces/HierarchySeparatorOptions.d.ts +7 -0
  1081. package/dist/types/lib/validation/interfaces/IpOptions.d.ts +11 -0
  1082. package/dist/types/lib/validation/interfaces/LanguageMessageTemplate.d.ts +4 -0
  1083. package/dist/types/lib/validation/interfaces/LinkSchema.d.ts +26 -0
  1084. package/dist/types/lib/validation/interfaces/NumberSchema.d.ts +134 -0
  1085. package/dist/types/lib/validation/interfaces/ObjectPatternOptions.d.ts +6 -0
  1086. package/dist/types/lib/validation/interfaces/ObjectSchema.d.ts +173 -0
  1087. package/dist/types/lib/validation/interfaces/Reference.d.ts +38 -0
  1088. package/dist/types/lib/validation/interfaces/ReferenceOptions.d.ts +59 -0
  1089. package/dist/types/lib/validation/interfaces/RenameOptions.d.ts +26 -0
  1090. package/dist/types/lib/validation/interfaces/RuleOptions.d.ts +22 -0
  1091. package/dist/types/lib/validation/interfaces/SchemaInternals.d.ts +103 -0
  1092. package/dist/types/lib/validation/interfaces/State.d.ts +8 -0
  1093. package/dist/types/lib/validation/interfaces/StringRegexOptions.d.ts +12 -0
  1094. package/dist/types/lib/validation/interfaces/StringSchema.d.ts +220 -0
  1095. package/dist/types/lib/validation/interfaces/SwitchCases.d.ts +11 -0
  1096. package/dist/types/lib/validation/interfaces/SwitchDefault.d.ts +8 -0
  1097. package/dist/types/lib/validation/interfaces/SymbolSchema.d.ts +16 -0
  1098. package/dist/types/lib/validation/interfaces/TopLevelDomainOptions.d.ts +12 -0
  1099. package/dist/types/lib/validation/interfaces/UriOptions.d.ts +31 -0
  1100. package/dist/types/lib/validation/interfaces/ValidationErrorItem.d.ts +7 -0
  1101. package/dist/types/lib/validation/interfaces/ValidationOptions.d.ts +21 -0
  1102. package/dist/types/lib/validation/interfaces/WhenOptions.d.ts +30 -0
  1103. package/dist/types/lib/validation/interfaces/WhenSchemaOptions.d.ts +11 -0
  1104. package/dist/types/lib/validation/messages/ar.d.ts +5 -0
  1105. package/dist/types/lib/validation/messages/de.d.ts +5 -0
  1106. package/dist/types/lib/validation/messages/es.d.ts +5 -0
  1107. package/dist/types/lib/validation/messages/fr.d.ts +5 -0
  1108. package/dist/types/lib/validation/messages/hi.d.ts +5 -0
  1109. package/dist/types/lib/validation/messages/id.d.ts +5 -0
  1110. package/dist/types/lib/validation/messages/it.d.ts +5 -0
  1111. package/dist/types/lib/validation/messages/ja.d.ts +5 -0
  1112. package/dist/types/lib/validation/messages/ko.d.ts +5 -0
  1113. package/dist/types/lib/validation/messages/nl.d.ts +5 -0
  1114. package/dist/types/lib/validation/messages/pl.d.ts +5 -0
  1115. package/dist/types/lib/validation/messages/pt-BR.d.ts +5 -0
  1116. package/dist/types/lib/validation/messages/ru.d.ts +5 -0
  1117. package/dist/types/lib/validation/messages/th.d.ts +5 -0
  1118. package/dist/types/lib/validation/messages/tr.d.ts +5 -0
  1119. package/dist/types/lib/validation/messages/uk.d.ts +5 -0
  1120. package/dist/types/lib/validation/messages/vi.d.ts +5 -0
  1121. package/dist/types/lib/validation/messages/zh-CN.d.ts +5 -0
  1122. package/dist/types/lib/validation/messages/zh-TW.d.ts +5 -0
  1123. package/dist/types/lib/validation/types/BasicType.d.ts +4 -0
  1124. package/dist/types/lib/validation/types/ComparatorFunction.d.ts +4 -0
  1125. package/dist/types/lib/validation/types/CustomValidator.d.ts +9 -0
  1126. package/dist/types/lib/validation/types/ExtensionBoundSchema.d.ts +2 -0
  1127. package/dist/types/lib/validation/types/ExternalValidationFunction.d.ts +8 -0
  1128. package/dist/types/lib/validation/types/IsNonPrimitiveSubsetUnion.d.ts +3 -0
  1129. package/dist/types/lib/validation/types/IsPrimitiveSubset.d.ts +3 -0
  1130. package/dist/types/lib/validation/types/IsUnion.d.ts +1 -0
  1131. package/dist/types/lib/validation/types/LanguageMessages.d.ts +5 -0
  1132. package/dist/types/lib/validation/types/NoNestedArrays.d.ts +5 -0
  1133. package/dist/types/lib/validation/types/NullableType.d.ts +1 -0
  1134. package/dist/types/lib/validation/types/ObjectPropertiesSchema.d.ts +12 -0
  1135. package/dist/types/lib/validation/types/PartialSchemaMap.d.ts +4 -0
  1136. package/dist/types/lib/validation/types/PresenceMode.d.ts +4 -0
  1137. package/dist/types/lib/validation/types/Primitives.d.ts +4 -0
  1138. package/dist/types/lib/validation/types/Schema.d.ts +17 -0
  1139. package/dist/types/lib/validation/types/SchemaFunction.d.ts +6 -0
  1140. package/dist/types/lib/validation/types/SchemaLike.d.ts +6 -0
  1141. package/dist/types/lib/validation/types/SchemaLikeWithoutArray.d.ts +7 -0
  1142. package/dist/types/lib/validation/types/SchemaMap.d.ts +7 -0
  1143. package/dist/types/lib/validation/types/StrictSchemaMap.d.ts +4 -0
  1144. package/dist/types/lib/validation/types/Types.d.ts +4 -0
  1145. package/dist/types/lib/validation/types/UnwrapSchemaLikeWithoutArray.d.ts +5 -0
  1146. package/dist/types/lib/validation/types/ValidationErrorFunction.d.ts +7 -0
  1147. package/dist/types/options/ApplicationOptions.d.ts +60 -0
  1148. package/dist/types/options/LoadAnonymousObjectOptions.d.ts +33 -0
  1149. package/dist/types/options/LoadNamedObjectOptions.d.ts +29 -0
  1150. package/dist/types/options/LoadObjectOptions.d.ts +30 -0
  1151. package/dist/types/options/ModuleLoadObjectsOptions.d.ts +44 -0
  1152. package/dist/types/options/ModuleOptions.d.ts +74 -0
  1153. package/dist/types/options/OverridableNamedObjectOptions.d.ts +26 -0
  1154. package/dist/types/options/OverridableObjectOptions.d.ts +34 -0
  1155. package/dist/types/types/ActionPattern.d.ts +6 -0
  1156. package/dist/types/types/ApplicationExitReason.d.ts +13 -0
  1157. package/dist/types/types/ClassDecorator.d.ts +6 -0
  1158. package/dist/types/types/ComponentOptions.d.ts +20 -0
  1159. package/dist/types/types/CronOptions.d.ts +25 -0
  1160. package/dist/types/types/JSONSchema.d.ts +284 -0
  1161. package/dist/types/types/MethodDecorator.d.ts +5 -0
  1162. package/dist/types/types/ModuleOptions.d.ts +20 -0
  1163. package/dist/types/types/ObjectOptions.d.ts +20 -0
  1164. package/dist/types/types/PaginationMeta.d.ts +21 -0
  1165. package/dist/types/types/ParameterDecorator.d.ts +5 -0
  1166. package/dist/types/types/PropertyDecorator.d.ts +4 -0
  1167. package/dist/types/types/ProviderOptions.d.ts +20 -0
  1168. package/package.json +93 -95
  1169. package/tsconfig.base.json +32 -0
  1170. package/.eslintrc.json +0 -47
  1171. package/.idea/codeStyles/Project.xml +0 -41
  1172. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  1173. package/.idea/inspectionProfiles/Project_Default.xml +0 -10
  1174. package/.idea/lakutata-core.iml +0 -13
  1175. package/.idea/modules.xml +0 -8
  1176. package/.idea/vcs.xml +0 -6
  1177. package/LICENSE +0 -21
  1178. package/assets/lakutata-banner.png +0 -0
  1179. package/assets/lakutata_logo.jpg +0 -0
  1180. package/build/Application.d.ts +0 -33
  1181. package/build/Application.js +0 -89
  1182. package/build/Application.js.map +0 -1
  1183. package/build/ApplicationManagement.d.ts +0 -4
  1184. package/build/ApplicationManagement.js +0 -46
  1185. package/build/ApplicationManagement.js.map +0 -1
  1186. package/build/Core.d.ts +0 -46
  1187. package/build/Core.js +0 -80
  1188. package/build/Core.js.map +0 -1
  1189. package/build/base/BaseObject.d.ts +0 -14
  1190. package/build/base/BaseObject.js +0 -114
  1191. package/build/base/BaseObject.js.map +0 -1
  1192. package/build/base/Container.d.ts +0 -43
  1193. package/build/base/Container.js +0 -269
  1194. package/build/base/Container.js.map +0 -1
  1195. package/build/base/MetadataReader.d.ts +0 -6
  1196. package/build/base/MetadataReader.js +0 -14
  1197. package/build/base/MetadataReader.js.map +0 -1
  1198. package/build/base/Plugin.d.ts +0 -4
  1199. package/build/base/Plugin.js +0 -10
  1200. package/build/base/Plugin.js.map +0 -1
  1201. package/build/base/ValidatorClass.d.ts +0 -305
  1202. package/build/base/ValidatorClass.js +0 -514
  1203. package/build/base/ValidatorClass.js.map +0 -1
  1204. package/build/base/abstracts/Component.d.ts +0 -4
  1205. package/build/base/abstracts/Component.js +0 -8
  1206. package/build/base/abstracts/Component.js.map +0 -1
  1207. package/build/base/abstracts/Exception.d.ts +0 -11
  1208. package/build/base/abstracts/Exception.js +0 -55
  1209. package/build/base/abstracts/Exception.js.map +0 -1
  1210. package/build/base/abstracts/Module.d.ts +0 -88
  1211. package/build/base/abstracts/Module.js +0 -390
  1212. package/build/base/abstracts/Module.js.map +0 -1
  1213. package/build/base/abstracts/Workflow.d.ts +0 -9
  1214. package/build/base/abstracts/Workflow.js +0 -17
  1215. package/build/base/abstracts/Workflow.js.map +0 -1
  1216. package/build/base/process/Process.d.ts +0 -6
  1217. package/build/base/process/Process.js +0 -15
  1218. package/build/base/process/Process.js.map +0 -1
  1219. package/build/base/process/ProcessManager.d.ts +0 -10
  1220. package/build/base/process/ProcessManager.js +0 -34
  1221. package/build/base/process/ProcessManager.js.map +0 -1
  1222. package/build/base/thread/Thread.d.ts +0 -6
  1223. package/build/base/thread/Thread.js +0 -14
  1224. package/build/base/thread/Thread.js.map +0 -1
  1225. package/build/base/thread/ThreadManager.d.ts +0 -10
  1226. package/build/base/thread/ThreadManager.js +0 -34
  1227. package/build/base/thread/ThreadManager.js.map +0 -1
  1228. package/build/constants/MetadataKeys.d.ts +0 -2
  1229. package/build/constants/MetadataKeys.js +0 -6
  1230. package/build/constants/MetadataKeys.js.map +0 -1
  1231. package/build/decorators/DependencyInjection.d.ts +0 -3
  1232. package/build/decorators/DependencyInjection.js +0 -18
  1233. package/build/decorators/DependencyInjection.js.map +0 -1
  1234. package/build/decorators/MethodValidation.d.ts +0 -9
  1235. package/build/decorators/MethodValidation.js +0 -75
  1236. package/build/decorators/MethodValidation.js.map +0 -1
  1237. package/build/exceptions/ComponentNotFoundException.d.ts +0 -6
  1238. package/build/exceptions/ComponentNotFoundException.js +0 -17
  1239. package/build/exceptions/ComponentNotFoundException.js.map +0 -1
  1240. package/build/exceptions/CryptoException.d.ts +0 -5
  1241. package/build/exceptions/CryptoException.js +0 -12
  1242. package/build/exceptions/CryptoException.js.map +0 -1
  1243. package/build/exceptions/FatalException.d.ts +0 -5
  1244. package/build/exceptions/FatalException.js +0 -12
  1245. package/build/exceptions/FatalException.js.map +0 -1
  1246. package/build/exceptions/HttpRequestException.d.ts +0 -6
  1247. package/build/exceptions/HttpRequestException.js +0 -20
  1248. package/build/exceptions/HttpRequestException.js.map +0 -1
  1249. package/build/exceptions/InvalidMethodAcceptException.d.ts +0 -5
  1250. package/build/exceptions/InvalidMethodAcceptException.js +0 -12
  1251. package/build/exceptions/InvalidMethodAcceptException.js.map +0 -1
  1252. package/build/exceptions/InvalidMethodReturnException.d.ts +0 -5
  1253. package/build/exceptions/InvalidMethodReturnException.js +0 -12
  1254. package/build/exceptions/InvalidMethodReturnException.js.map +0 -1
  1255. package/build/exceptions/ModuleNotFoundException.d.ts +0 -6
  1256. package/build/exceptions/ModuleNotFoundException.js +0 -17
  1257. package/build/exceptions/ModuleNotFoundException.js.map +0 -1
  1258. package/build/exceptions/ProcessException.d.ts +0 -5
  1259. package/build/exceptions/ProcessException.js +0 -12
  1260. package/build/exceptions/ProcessException.js.map +0 -1
  1261. package/build/exceptions/ThreadException.d.ts +0 -5
  1262. package/build/exceptions/ThreadException.js +0 -12
  1263. package/build/exceptions/ThreadException.js.map +0 -1
  1264. package/build/exceptions/TimeoutException.d.ts +0 -5
  1265. package/build/exceptions/TimeoutException.js +0 -12
  1266. package/build/exceptions/TimeoutException.js.map +0 -1
  1267. package/build/exceptions/ValidationException.d.ts +0 -5
  1268. package/build/exceptions/ValidationException.js +0 -12
  1269. package/build/exceptions/ValidationException.js.map +0 -1
  1270. package/build/interfaces/IApplicationConfig.d.ts +0 -20
  1271. package/build/interfaces/IApplicationConfig.js +0 -3
  1272. package/build/interfaces/IApplicationConfig.js.map +0 -1
  1273. package/build/interfaces/IComponentsConfig.d.ts +0 -8
  1274. package/build/interfaces/IComponentsConfig.js +0 -3
  1275. package/build/interfaces/IComponentsConfig.js.map +0 -1
  1276. package/build/interfaces/IConstructor.d.ts +0 -4
  1277. package/build/interfaces/IConstructor.js +0 -3
  1278. package/build/interfaces/IConstructor.js.map +0 -1
  1279. package/build/interfaces/IModulesConfig.d.ts +0 -17
  1280. package/build/interfaces/IModulesConfig.js +0 -3
  1281. package/build/interfaces/IModulesConfig.js.map +0 -1
  1282. package/build/interfaces/IProcessConstructor.d.ts +0 -5
  1283. package/build/interfaces/IProcessConstructor.js +0 -3
  1284. package/build/interfaces/IProcessConstructor.js.map +0 -1
  1285. package/build/interfaces/IThreadConstructor.d.ts +0 -5
  1286. package/build/interfaces/IThreadConstructor.js +0 -3
  1287. package/build/interfaces/IThreadConstructor.js.map +0 -1
  1288. package/build/interfaces/ShellJsInterfaces.d.ts +0 -162
  1289. package/build/interfaces/ShellJsInterfaces.js +0 -3
  1290. package/build/interfaces/ShellJsInterfaces.js.map +0 -1
  1291. package/build/lib/minified/ShellJs.d.ts +0 -2
  1292. package/build/lib/minified/ShellJs.js +0 -3699
  1293. package/build/lib/minified/ShellJs.js.map +0 -1
  1294. package/build/lib/multipleRunner/constants/Channel.d.ts +0 -5
  1295. package/build/lib/multipleRunner/constants/Channel.js +0 -9
  1296. package/build/lib/multipleRunner/constants/Channel.js.map +0 -1
  1297. package/build/lib/multipleRunner/constants/MetadataKey.d.ts +0 -2
  1298. package/build/lib/multipleRunner/constants/MetadataKey.js +0 -6
  1299. package/build/lib/multipleRunner/constants/MetadataKey.js.map +0 -1
  1300. package/build/lib/multipleRunner/containers/ContainerVolume.d.ts +0 -4
  1301. package/build/lib/multipleRunner/containers/ContainerVolume.js +0 -85
  1302. package/build/lib/multipleRunner/containers/ContainerVolume.js.map +0 -1
  1303. package/build/lib/multipleRunner/definitions/interfaces/ClassConstructor.d.ts +0 -3
  1304. package/build/lib/multipleRunner/definitions/interfaces/ClassConstructor.js +0 -3
  1305. package/build/lib/multipleRunner/definitions/interfaces/ClassConstructor.js.map +0 -1
  1306. package/build/lib/multipleRunner/definitions/interfaces/MultipleRunnerBaseClassConstructor.d.ts +0 -4
  1307. package/build/lib/multipleRunner/definitions/interfaces/MultipleRunnerBaseClassConstructor.js +0 -3
  1308. package/build/lib/multipleRunner/definitions/interfaces/MultipleRunnerBaseClassConstructor.js.map +0 -1
  1309. package/build/lib/multipleRunner/definitions/interfaces/ProcessClassConstructor.d.ts +0 -7
  1310. package/build/lib/multipleRunner/definitions/interfaces/ProcessClassConstructor.js +0 -3
  1311. package/build/lib/multipleRunner/definitions/interfaces/ProcessClassConstructor.js.map +0 -1
  1312. package/build/lib/multipleRunner/definitions/interfaces/ProxyClass.d.ts +0 -3
  1313. package/build/lib/multipleRunner/definitions/interfaces/ProxyClass.js +0 -3
  1314. package/build/lib/multipleRunner/definitions/interfaces/ProxyClass.js.map +0 -1
  1315. package/build/lib/multipleRunner/definitions/interfaces/ThreadClassConstructor.d.ts +0 -7
  1316. package/build/lib/multipleRunner/definitions/interfaces/ThreadClassConstructor.js +0 -3
  1317. package/build/lib/multipleRunner/definitions/interfaces/ThreadClassConstructor.js.map +0 -1
  1318. package/build/lib/multipleRunner/lib/Process.d.ts +0 -5
  1319. package/build/lib/multipleRunner/lib/Process.js +0 -45
  1320. package/build/lib/multipleRunner/lib/Process.js.map +0 -1
  1321. package/build/lib/multipleRunner/lib/Thread.d.ts +0 -5
  1322. package/build/lib/multipleRunner/lib/Thread.js +0 -52
  1323. package/build/lib/multipleRunner/lib/Thread.js.map +0 -1
  1324. package/build/lib/multipleRunner/lib/bridges/BaseBridge.d.ts +0 -32
  1325. package/build/lib/multipleRunner/lib/bridges/BaseBridge.js +0 -107
  1326. package/build/lib/multipleRunner/lib/bridges/BaseBridge.js.map +0 -1
  1327. package/build/lib/multipleRunner/lib/bridges/ProcessBridge.d.ts +0 -5
  1328. package/build/lib/multipleRunner/lib/bridges/ProcessBridge.js +0 -23
  1329. package/build/lib/multipleRunner/lib/bridges/ProcessBridge.js.map +0 -1
  1330. package/build/lib/multipleRunner/lib/bridges/ThreadBridge.d.ts +0 -5
  1331. package/build/lib/multipleRunner/lib/bridges/ThreadBridge.js +0 -22
  1332. package/build/lib/multipleRunner/lib/bridges/ThreadBridge.js.map +0 -1
  1333. package/build/lib/multipleRunner/lib/cores/GenerateExecArgv.d.ts +0 -2
  1334. package/build/lib/multipleRunner/lib/cores/GenerateExecArgv.js +0 -35
  1335. package/build/lib/multipleRunner/lib/cores/GenerateExecArgv.js.map +0 -1
  1336. package/build/lib/multipleRunner/lib/cores/IsElectron.d.ts +0 -1
  1337. package/build/lib/multipleRunner/lib/cores/IsElectron.js +0 -8
  1338. package/build/lib/multipleRunner/lib/cores/IsElectron.js.map +0 -1
  1339. package/build/lib/multipleRunner/lib/cores/ProcessClass.d.ts +0 -5
  1340. package/build/lib/multipleRunner/lib/cores/ProcessClass.js +0 -12
  1341. package/build/lib/multipleRunner/lib/cores/ProcessClass.js.map +0 -1
  1342. package/build/lib/multipleRunner/lib/cores/ThreadClass.d.ts +0 -5
  1343. package/build/lib/multipleRunner/lib/cores/ThreadClass.js +0 -12
  1344. package/build/lib/multipleRunner/lib/cores/ThreadClass.js.map +0 -1
  1345. package/build/lib/multipleRunner/lib/cores/UniParentBridgeHandler.d.ts +0 -2
  1346. package/build/lib/multipleRunner/lib/cores/UniParentBridgeHandler.js +0 -104
  1347. package/build/lib/multipleRunner/lib/cores/UniParentBridgeHandler.js.map +0 -1
  1348. package/build/lib/multipleRunner/lib/prototypes/MultipleRunnerBaseClass.d.ts +0 -17
  1349. package/build/lib/multipleRunner/lib/prototypes/MultipleRunnerBaseClass.js +0 -57
  1350. package/build/lib/multipleRunner/lib/prototypes/MultipleRunnerBaseClass.js.map +0 -1
  1351. package/build/plugins/Crypto.d.ts +0 -18
  1352. package/build/plugins/Crypto.js +0 -131
  1353. package/build/plugins/Crypto.js.map +0 -1
  1354. package/build/plugins/Formatter.d.ts +0 -19
  1355. package/build/plugins/Formatter.js +0 -53
  1356. package/build/plugins/Formatter.js.map +0 -1
  1357. package/build/plugins/HttpRequest.d.ts +0 -45
  1358. package/build/plugins/HttpRequest.js +0 -171
  1359. package/build/plugins/HttpRequest.js.map +0 -1
  1360. package/build/plugins/JSON.d.ts +0 -10
  1361. package/build/plugins/JSON.js +0 -71
  1362. package/build/plugins/JSON.js.map +0 -1
  1363. package/build/plugins/Logger.d.ts +0 -25
  1364. package/build/plugins/Logger.js +0 -112
  1365. package/build/plugins/Logger.js.map +0 -1
  1366. package/build/plugins/MessagePack.d.ts +0 -12
  1367. package/build/plugins/MessagePack.js +0 -20
  1368. package/build/plugins/MessagePack.js.map +0 -1
  1369. package/build/plugins/Security.d.ts +0 -32
  1370. package/build/plugins/Security.js +0 -153
  1371. package/build/plugins/Security.js.map +0 -1
  1372. package/build/plugins/Shell.d.ts +0 -39
  1373. package/build/plugins/Shell.js +0 -58
  1374. package/build/plugins/Shell.js.map +0 -1
  1375. package/build/types/TPluginsConfig.d.ts +0 -7
  1376. package/build/types/TPluginsConfig.js +0 -3
  1377. package/build/types/TPluginsConfig.js.map +0 -1
  1378. package/build/types/TProcessesConfig.d.ts +0 -3
  1379. package/build/types/TProcessesConfig.js +0 -3
  1380. package/build/types/TProcessesConfig.js.map +0 -1
  1381. package/build/types/TThreadsConfig.d.ts +0 -3
  1382. package/build/types/TThreadsConfig.js +0 -3
  1383. package/build/types/TThreadsConfig.js.map +0 -1
  1384. package/build/types/TWorkflowsConfig.d.ts +0 -4
  1385. package/build/types/TWorkflowsConfig.js +0 -3
  1386. package/build/types/TWorkflowsConfig.js.map +0 -1
  1387. package/build/utils/Delay.d.ts +0 -1
  1388. package/build/utils/Delay.js +0 -13
  1389. package/build/utils/Delay.js.map +0 -1
  1390. package/build/utils/Timeout.d.ts +0 -2
  1391. package/build/utils/Timeout.js +0 -27
  1392. package/build/utils/Timeout.js.map +0 -1
  1393. package/build/utils/ValidDataUrl.d.ts +0 -1
  1394. package/build/utils/ValidDataUrl.js +0 -8
  1395. package/build/utils/ValidDataUrl.js.map +0 -1
  1396. package/build/utils/Validator.d.ts +0 -2
  1397. package/build/utils/Validator.js +0 -6
  1398. package/build/utils/Validator.js.map +0 -1
  1399. package/docs/component.md +0 -1
  1400. package/docs/exception.md +0 -1
  1401. package/docs/faq.md +0 -1
  1402. package/docs/introduction.md +0 -1
  1403. package/docs/module.md +0 -1
  1404. package/docs/plugin.md +0 -1
  1405. package/docs/process.md +0 -1
  1406. package/docs/thread.md +0 -1
  1407. package/docs/utilities.md +0 -1
  1408. package/docs/workflow.md +0 -1
  1409. package/src/Application.ts +0 -178
  1410. package/src/ApplicationManagement.ts +0 -48
  1411. package/src/Core.ts +0 -83
  1412. package/src/base/BaseObject.ts +0 -146
  1413. package/src/base/Container.ts +0 -375
  1414. package/src/base/MetadataReader.ts +0 -12
  1415. package/src/base/Plugin.ts +0 -11
  1416. package/src/base/ValidatorClass.ts +0 -707
  1417. package/src/base/abstracts/Component.ts +0 -5
  1418. package/src/base/abstracts/Exception.ts +0 -64
  1419. package/src/base/abstracts/Module.ts +0 -528
  1420. package/src/base/abstracts/Workflow.ts +0 -35
  1421. package/src/base/process/Process.ts +0 -23
  1422. package/src/base/process/ProcessManager.ts +0 -54
  1423. package/src/base/thread/Thread.ts +0 -23
  1424. package/src/base/thread/ThreadManager.ts +0 -54
  1425. package/src/constants/MetadataKeys.ts +0 -2
  1426. package/src/decorators/DependencyInjection.ts +0 -17
  1427. package/src/decorators/MethodValidation.ts +0 -80
  1428. package/src/exceptions/ComponentNotFoundException.ts +0 -12
  1429. package/src/exceptions/CryptoException.ts +0 -6
  1430. package/src/exceptions/FatalException.ts +0 -6
  1431. package/src/exceptions/HttpRequestException.ts +0 -15
  1432. package/src/exceptions/InvalidMethodAcceptException.ts +0 -6
  1433. package/src/exceptions/InvalidMethodReturnException.ts +0 -6
  1434. package/src/exceptions/ModuleNotFoundException.ts +0 -12
  1435. package/src/exceptions/ProcessException.ts +0 -6
  1436. package/src/exceptions/ThreadException.ts +0 -6
  1437. package/src/exceptions/TimeoutException.ts +0 -6
  1438. package/src/exceptions/ValidationException.ts +0 -6
  1439. package/src/interfaces/IApplicationConfig.ts +0 -21
  1440. package/src/interfaces/IComponentsConfig.ts +0 -9
  1441. package/src/interfaces/IConstructor.ts +0 -5
  1442. package/src/interfaces/IModulesConfig.ts +0 -18
  1443. package/src/interfaces/IProcessConstructor.ts +0 -6
  1444. package/src/interfaces/IThreadConstructor.ts +0 -6
  1445. package/src/interfaces/ShellJsInterfaces.ts +0 -858
  1446. package/src/lib/minified/ShellJs.js +0 -1
  1447. package/src/lib/multipleRunner/constants/Channel.ts +0 -5
  1448. package/src/lib/multipleRunner/constants/MetadataKey.ts +0 -2
  1449. package/src/lib/multipleRunner/containers/ContainerVolume.ts +0 -83
  1450. package/src/lib/multipleRunner/definitions/interfaces/ClassConstructor.ts +0 -3
  1451. package/src/lib/multipleRunner/definitions/interfaces/MultipleRunnerBaseClassConstructor.ts +0 -5
  1452. package/src/lib/multipleRunner/definitions/interfaces/ProcessClassConstructor.ts +0 -10
  1453. package/src/lib/multipleRunner/definitions/interfaces/ProxyClass.ts +0 -3
  1454. package/src/lib/multipleRunner/definitions/interfaces/ThreadClassConstructor.ts +0 -10
  1455. package/src/lib/multipleRunner/lib/Process.ts +0 -45
  1456. package/src/lib/multipleRunner/lib/Thread.ts +0 -52
  1457. package/src/lib/multipleRunner/lib/bridges/BaseBridge.ts +0 -118
  1458. package/src/lib/multipleRunner/lib/bridges/ProcessBridge.ts +0 -22
  1459. package/src/lib/multipleRunner/lib/bridges/ThreadBridge.ts +0 -20
  1460. package/src/lib/multipleRunner/lib/cores/GenerateExecArgv.ts +0 -28
  1461. package/src/lib/multipleRunner/lib/cores/IsElectron.ts +0 -3
  1462. package/src/lib/multipleRunner/lib/cores/ProcessClass.ts +0 -8
  1463. package/src/lib/multipleRunner/lib/cores/ThreadClass.ts +0 -8
  1464. package/src/lib/multipleRunner/lib/cores/UniParentBridgeHandler.ts +0 -97
  1465. package/src/lib/multipleRunner/lib/prototypes/MultipleRunnerBaseClass.ts +0 -70
  1466. package/src/plugins/Crypto.ts +0 -140
  1467. package/src/plugins/Formatter.ts +0 -83
  1468. package/src/plugins/HttpRequest.ts +0 -241
  1469. package/src/plugins/JSON.ts +0 -77
  1470. package/src/plugins/Logger.ts +0 -154
  1471. package/src/plugins/MessagePack.ts +0 -30
  1472. package/src/plugins/Security.ts +0 -273
  1473. package/src/plugins/Shell.ts +0 -371
  1474. package/src/tests/Main.spec.ts +0 -175
  1475. package/src/tests/components/TestComponent1.ts +0 -11
  1476. package/src/tests/exceptions/TestException.ts +0 -6
  1477. package/src/tests/modules/Test1.ts +0 -88
  1478. package/src/tests/modules/Test2.ts +0 -65
  1479. package/src/tests/modules/Test3.ts +0 -54
  1480. package/src/tests/modules/Test4.ts +0 -28
  1481. package/src/tests/plugins/TestPlugin1.ts +0 -22
  1482. package/src/tests/processes/TestProcess.ts +0 -11
  1483. package/src/tests/threads/TestThread.ts +0 -13
  1484. package/src/tests/workflows/TestWorkflow.ts +0 -7
  1485. package/src/types/TPluginsConfig.ts +0 -5
  1486. package/src/types/TProcessesConfig.ts +0 -4
  1487. package/src/types/TThreadsConfig.ts +0 -4
  1488. package/src/types/TWorkflowsConfig.ts +0 -6
  1489. package/src/utils/Delay.ts +0 -14
  1490. package/src/utils/Timeout.ts +0 -27
  1491. package/src/utils/ValidDataUrl.ts +0 -8
  1492. package/src/utils/Validator.ts +0 -3
  1493. package/tsconfig.json +0 -35
@@ -1,3699 +0,0 @@
1
- "use strict";
2
- (() => { var e = { 6099: e => { e.exports = ["cat", "cd", "chmod", "cp", "dirs", "echo", "exec", "find", "grep", "head", "ln", "ls", "mkdir", "mv", "pwd", "rm", "sed", "set", "sort", "tail", "tempdir", "test", "to", "toEnd", "touch", "uniq", "which"]; }, 3819: e => {
3
- "use strict";
4
- e.exports = balanced;
5
- function balanced(e, r, t) { if (e instanceof RegExp)
6
- e = maybeMatch(e, t); if (r instanceof RegExp)
7
- r = maybeMatch(r, t); var n = range(e, r, t); return n && { start: n[0], end: n[1], pre: t.slice(0, n[0]), body: t.slice(n[0] + e.length, n[1]), post: t.slice(n[1] + r.length) }; }
8
- function maybeMatch(e, r) { var t = r.match(e); return t ? t[0] : null; }
9
- balanced.range = range;
10
- function range(e, r, t) { var n, i, s, o, a; var c = t.indexOf(e); var l = t.indexOf(r, c + 1); var u = c; if (c >= 0 && l > 0) {
11
- if (e === r) {
12
- return [c, l];
13
- }
14
- n = [];
15
- s = t.length;
16
- while (u >= 0 && !a) {
17
- if (u == c) {
18
- n.push(u);
19
- c = t.indexOf(e, u + 1);
20
- }
21
- else if (n.length == 1) {
22
- a = [n.pop(), l];
23
- }
24
- else {
25
- i = n.pop();
26
- if (i < s) {
27
- s = i;
28
- o = l;
29
- }
30
- l = t.indexOf(r, u + 1);
31
- }
32
- u = c < l && c >= 0 ? c : l;
33
- }
34
- if (n.length) {
35
- a = [s, o];
36
- }
37
- } return a; }
38
- }, 1190: (e, r, t) => { var n = t(78); var i = t(3819); e.exports = expandTop; var s = "\0SLASH" + Math.random() + "\0"; var o = "\0OPEN" + Math.random() + "\0"; var a = "\0CLOSE" + Math.random() + "\0"; var c = "\0COMMA" + Math.random() + "\0"; var l = "\0PERIOD" + Math.random() + "\0"; function numeric(e) { return parseInt(e, 10) == e ? parseInt(e, 10) : e.charCodeAt(0); } function escapeBraces(e) { return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l); } function unescapeBraces(e) { return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join("."); } function parseCommaParts(e) { if (!e)
39
- return [""]; var r = []; var t = i("{", "}", e); if (!t)
40
- return e.split(","); var n = t.pre; var s = t.body; var o = t.post; var a = n.split(","); a[a.length - 1] += "{" + s + "}"; var c = parseCommaParts(o); if (o.length) {
41
- a[a.length - 1] += c.shift();
42
- a.push.apply(a, c);
43
- } r.push.apply(r, a); return r; } function expandTop(e) { if (!e)
44
- return []; if (e.substr(0, 2) === "{}") {
45
- e = "\\{\\}" + e.substr(2);
46
- } return expand(escapeBraces(e), true).map(unescapeBraces); } function identity(e) { return e; } function embrace(e) { return "{" + e + "}"; } function isPadded(e) { return /^-?0\d/.test(e); } function lte(e, r) { return e <= r; } function gte(e, r) { return e >= r; } function expand(e, r) { var t = []; var s = i("{", "}", e); if (!s || /\$$/.test(s.pre))
47
- return [e]; var o = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body); var c = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body); var l = o || c; var u = s.body.indexOf(",") >= 0; if (!l && !u) {
48
- if (s.post.match(/,.*\}/)) {
49
- e = s.pre + "{" + s.body + a + s.post;
50
- return expand(e);
51
- }
52
- return [e];
53
- } var p; if (l) {
54
- p = s.body.split(/\.\./);
55
- }
56
- else {
57
- p = parseCommaParts(s.body);
58
- if (p.length === 1) {
59
- p = expand(p[0], false).map(embrace);
60
- if (p.length === 1) {
61
- var h = s.post.length ? expand(s.post, false) : [""];
62
- return h.map((function (e) { return s.pre + p[0] + e; }));
63
- }
64
- }
65
- } var d = s.pre; var h = s.post.length ? expand(s.post, false) : [""]; var v; if (l) {
66
- var m = numeric(p[0]);
67
- var y = numeric(p[1]);
68
- var g = Math.max(p[0].length, p[1].length);
69
- var b = p.length == 3 ? Math.abs(numeric(p[2])) : 1;
70
- var w = lte;
71
- var S = y < m;
72
- if (S) {
73
- b *= -1;
74
- w = gte;
75
- }
76
- var x = p.some(isPadded);
77
- v = [];
78
- for (var _ = m; w(_, y); _ += b) {
79
- var k;
80
- if (c) {
81
- k = String.fromCharCode(_);
82
- if (k === "\\")
83
- k = "";
84
- }
85
- else {
86
- k = String(_);
87
- if (x) {
88
- var O = g - k.length;
89
- if (O > 0) {
90
- var j = new Array(O + 1).join("0");
91
- if (_ < 0)
92
- k = "-" + j + k.slice(1);
93
- else
94
- k = j + k;
95
- }
96
- }
97
- }
98
- v.push(k);
99
- }
100
- }
101
- else {
102
- v = n(p, (function (e) { return expand(e, false); }));
103
- } for (var C = 0; C < v.length; C++) {
104
- for (var R = 0; R < h.length; R++) {
105
- var L = d + v[C] + h[R];
106
- if (!r || l || L)
107
- t.push(L);
108
- }
109
- } return t; } }, 78: e => { e.exports = function (e, t) { var n = []; for (var i = 0; i < e.length; i++) {
110
- var s = t(e[i], i);
111
- if (r(s))
112
- n.push.apply(n, s);
113
- else
114
- n.push(s);
115
- } return n; }; var r = Array.isArray || function (e) { return Object.prototype.toString.call(e) === "[object Array]"; }; }, 5775: (e, r, t) => {
116
- "use strict";
117
- const n = t(2081);
118
- const i = t(4810);
119
- const s = t(8496);
120
- function spawn(e, r, t) { const o = i(e, r, t); const a = n.spawn(o.command, o.args, o.options); s.hookChildProcess(a, o); return a; }
121
- function spawnSync(e, r, t) { const o = i(e, r, t); const a = n.spawnSync(o.command, o.args, o.options); a.error = a.error || s.verifyENOENTSync(a.status, o); return a; }
122
- e.exports = spawn;
123
- e.exports.spawn = spawn;
124
- e.exports.sync = spawnSync;
125
- e.exports._parse = i;
126
- e.exports._enoent = s;
127
- }, 8496: e => {
128
- "use strict";
129
- const r = process.platform === "win32";
130
- function notFoundError(e, r) { return Object.assign(new Error(`${r} ${e.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${r} ${e.command}`, path: e.command, spawnargs: e.args }); }
131
- function hookChildProcess(e, t) { if (!r) {
132
- return;
133
- } const n = e.emit; e.emit = function (r, i) { if (r === "exit") {
134
- const r = verifyENOENT(i, t, "spawn");
135
- if (r) {
136
- return n.call(e, "error", r);
137
- }
138
- } return n.apply(e, arguments); }; }
139
- function verifyENOENT(e, t) { if (r && e === 1 && !t.file) {
140
- return notFoundError(t.original, "spawn");
141
- } return null; }
142
- function verifyENOENTSync(e, t) { if (r && e === 1 && !t.file) {
143
- return notFoundError(t.original, "spawnSync");
144
- } return null; }
145
- e.exports = { hookChildProcess: hookChildProcess, verifyENOENT: verifyENOENT, verifyENOENTSync: verifyENOENTSync, notFoundError: notFoundError };
146
- }, 4810: (e, r, t) => {
147
- "use strict";
148
- const n = t(1017);
149
- const i = t(5526);
150
- const s = t(1463);
151
- const o = t(7358);
152
- const a = t(6409);
153
- const c = t(2774);
154
- const l = process.platform === "win32";
155
- const u = /\.(?:com|exe)$/i;
156
- const p = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
157
- const h = i((() => c.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true))) || false;
158
- function detectShebang(e) { e.file = s(e); const r = e.file && a(e.file); if (r) {
159
- e.args.unshift(e.file);
160
- e.command = r;
161
- return s(e);
162
- } return e.file; }
163
- function parseNonShell(e) { if (!l) {
164
- return e;
165
- } const r = detectShebang(e); const t = !u.test(r); if (e.options.forceShell || t) {
166
- const t = p.test(r);
167
- e.command = n.normalize(e.command);
168
- e.command = o.command(e.command);
169
- e.args = e.args.map((e => o.argument(e, t)));
170
- const i = [e.command].concat(e.args).join(" ");
171
- e.args = ["/d", "/s", "/c", `"${i}"`];
172
- e.command = process.env.comspec || "cmd.exe";
173
- e.options.windowsVerbatimArguments = true;
174
- } return e; }
175
- function parseShell(e) { if (h) {
176
- return e;
177
- } const r = [e.command].concat(e.args).join(" "); if (l) {
178
- e.command = typeof e.options.shell === "string" ? e.options.shell : process.env.comspec || "cmd.exe";
179
- e.args = ["/d", "/s", "/c", `"${r}"`];
180
- e.options.windowsVerbatimArguments = true;
181
- }
182
- else {
183
- if (typeof e.options.shell === "string") {
184
- e.command = e.options.shell;
185
- }
186
- else if (process.platform === "android") {
187
- e.command = "/system/bin/sh";
188
- }
189
- else {
190
- e.command = "/bin/sh";
191
- }
192
- e.args = ["-c", r];
193
- } return e; }
194
- function parse(e, r, t) { if (r && !Array.isArray(r)) {
195
- t = r;
196
- r = null;
197
- } r = r ? r.slice(0) : []; t = Object.assign({}, t); const n = { command: e, args: r, options: t, file: undefined, original: { command: e, args: r } }; return t.shell ? parseShell(n) : parseNonShell(n); }
198
- e.exports = parse;
199
- }, 7358: e => {
200
- "use strict";
201
- const r = /([()\][%!^"`<>&|;, *?])/g;
202
- function escapeCommand(e) { e = e.replace(r, "^$1"); return e; }
203
- function escapeArgument(e, t) { e = `${e}`; e = e.replace(/(\\*)"/g, '$1$1\\"'); e = e.replace(/(\\*)$/, "$1$1"); e = `"${e}"`; e = e.replace(r, "^$1"); if (t) {
204
- e = e.replace(r, "^$1");
205
- } return e; }
206
- e.exports.command = escapeCommand;
207
- e.exports.argument = escapeArgument;
208
- }, 6409: (e, r, t) => {
209
- "use strict";
210
- const n = t(7147);
211
- const i = t(8701);
212
- function readShebang(e) { const r = 150; let t; if (Buffer.alloc) {
213
- t = Buffer.alloc(r);
214
- }
215
- else {
216
- t = new Buffer(r);
217
- t.fill(0);
218
- } let s; try {
219
- s = n.openSync(e, "r");
220
- n.readSync(s, t, 0, r, 0);
221
- n.closeSync(s);
222
- }
223
- catch (e) { } return i(t.toString()); }
224
- e.exports = readShebang;
225
- }, 1463: (e, r, t) => {
226
- "use strict";
227
- const n = t(1017);
228
- const i = t(6446);
229
- const s = t(5200)();
230
- function resolveCommandAttempt(e, r) { const t = process.cwd(); const o = e.options.cwd != null; if (o) {
231
- try {
232
- process.chdir(e.options.cwd);
233
- }
234
- catch (e) { }
235
- } let a; try {
236
- a = i.sync(e.command, { path: (e.options.env || process.env)[s], pathExt: r ? n.delimiter : undefined });
237
- }
238
- catch (e) { }
239
- finally {
240
- process.chdir(t);
241
- } if (a) {
242
- a = n.resolve(o ? e.options.cwd : "", a);
243
- } return a; }
244
- function resolveCommand(e) { return resolveCommandAttempt(e) || resolveCommandAttempt(e, true); }
245
- e.exports = resolveCommand;
246
- }, 2774: (e, r) => { r = e.exports = SemVer; var t; if (typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
247
- t = function () { var e = Array.prototype.slice.call(arguments, 0); e.unshift("SEMVER"); console.log.apply(console, e); };
248
- }
249
- else {
250
- t = function () { };
251
- } r.SEMVER_SPEC_VERSION = "2.0.0"; var n = 256; var i = Number.MAX_SAFE_INTEGER || 9007199254740991; var s = 16; var o = r.re = []; var a = r.src = []; var c = 0; var l = c++; a[l] = "0|[1-9]\\d*"; var u = c++; a[u] = "[0-9]+"; var p = c++; a[p] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; var h = c++; a[h] = "(" + a[l] + ")\\." + "(" + a[l] + ")\\." + "(" + a[l] + ")"; var d = c++; a[d] = "(" + a[u] + ")\\." + "(" + a[u] + ")\\." + "(" + a[u] + ")"; var v = c++; a[v] = "(?:" + a[l] + "|" + a[p] + ")"; var m = c++; a[m] = "(?:" + a[u] + "|" + a[p] + ")"; var y = c++; a[y] = "(?:-(" + a[v] + "(?:\\." + a[v] + ")*))"; var g = c++; a[g] = "(?:-?(" + a[m] + "(?:\\." + a[m] + ")*))"; var b = c++; a[b] = "[0-9A-Za-z-]+"; var w = c++; a[w] = "(?:\\+(" + a[b] + "(?:\\." + a[b] + ")*))"; var S = c++; var x = "v?" + a[h] + a[y] + "?" + a[w] + "?"; a[S] = "^" + x + "$"; var _ = "[v=\\s]*" + a[d] + a[g] + "?" + a[w] + "?"; var k = c++; a[k] = "^" + _ + "$"; var O = c++; a[O] = "((?:<|>)?=?)"; var j = c++; a[j] = a[u] + "|x|X|\\*"; var C = c++; a[C] = a[l] + "|x|X|\\*"; var R = c++; a[R] = "[v=\\s]*(" + a[C] + ")" + "(?:\\.(" + a[C] + ")" + "(?:\\.(" + a[C] + ")" + "(?:" + a[y] + ")?" + a[w] + "?" + ")?)?"; var L = c++; a[L] = "[v=\\s]*(" + a[j] + ")" + "(?:\\.(" + a[j] + ")" + "(?:\\.(" + a[j] + ")" + "(?:" + a[g] + ")?" + a[w] + "?" + ")?)?"; var I = c++; a[I] = "^" + a[O] + "\\s*" + a[R] + "$"; var A = c++; a[A] = "^" + a[O] + "\\s*" + a[L] + "$"; var P = c++; a[P] = "(?:^|[^\\d])" + "(\\d{1," + s + "})" + "(?:\\.(\\d{1," + s + "}))?" + "(?:\\.(\\d{1," + s + "}))?" + "(?:$|[^\\d])"; var T = c++; a[T] = "(?:~>?)"; var N = c++; a[N] = "(\\s*)" + a[T] + "\\s+"; o[N] = new RegExp(a[N], "g"); var D = "$1~"; var G = c++; a[G] = "^" + a[T] + a[R] + "$"; var M = c++; a[M] = "^" + a[T] + a[L] + "$"; var $ = c++; a[$] = "(?:\\^)"; var V = c++; a[V] = "(\\s*)" + a[$] + "\\s+"; o[V] = new RegExp(a[V], "g"); var q = "$1^"; var B = c++; a[B] = "^" + a[$] + a[R] + "$"; var X = c++; a[X] = "^" + a[$] + a[L] + "$"; var U = c++; a[U] = "^" + a[O] + "\\s*(" + _ + ")$|^$"; var W = c++; a[W] = "^" + a[O] + "\\s*(" + x + ")$|^$"; var z = c++; a[z] = "(\\s*)" + a[O] + "\\s*(" + _ + "|" + a[R] + ")"; o[z] = new RegExp(a[z], "g"); var H = "$1$2$3"; var Q = c++; a[Q] = "^\\s*(" + a[R] + ")" + "\\s+-\\s+" + "(" + a[R] + ")" + "\\s*$"; var Y = c++; a[Y] = "^\\s*(" + a[L] + ")" + "\\s+-\\s+" + "(" + a[L] + ")" + "\\s*$"; var K = c++; a[K] = "(<|>)?=?\\s*\\*"; for (var Z = 0; Z < c; Z++) {
252
- t(Z, a[Z]);
253
- if (!o[Z]) {
254
- o[Z] = new RegExp(a[Z]);
255
- }
256
- } r.parse = parse; function parse(e, r) { if (!r || typeof r !== "object") {
257
- r = { loose: !!r, includePrerelease: false };
258
- } if (e instanceof SemVer) {
259
- return e;
260
- } if (typeof e !== "string") {
261
- return null;
262
- } if (e.length > n) {
263
- return null;
264
- } var t = r.loose ? o[k] : o[S]; if (!t.test(e)) {
265
- return null;
266
- } try {
267
- return new SemVer(e, r);
268
- }
269
- catch (e) {
270
- return null;
271
- } } r.valid = valid; function valid(e, r) { var t = parse(e, r); return t ? t.version : null; } r.clean = clean; function clean(e, r) { var t = parse(e.trim().replace(/^[=v]+/, ""), r); return t ? t.version : null; } r.SemVer = SemVer; function SemVer(e, r) { if (!r || typeof r !== "object") {
272
- r = { loose: !!r, includePrerelease: false };
273
- } if (e instanceof SemVer) {
274
- if (e.loose === r.loose) {
275
- return e;
276
- }
277
- else {
278
- e = e.version;
279
- }
280
- }
281
- else if (typeof e !== "string") {
282
- throw new TypeError("Invalid Version: " + e);
283
- } if (e.length > n) {
284
- throw new TypeError("version is longer than " + n + " characters");
285
- } if (!(this instanceof SemVer)) {
286
- return new SemVer(e, r);
287
- } t("SemVer", e, r); this.options = r; this.loose = !!r.loose; var s = e.trim().match(r.loose ? o[k] : o[S]); if (!s) {
288
- throw new TypeError("Invalid Version: " + e);
289
- } this.raw = e; this.major = +s[1]; this.minor = +s[2]; this.patch = +s[3]; if (this.major > i || this.major < 0) {
290
- throw new TypeError("Invalid major version");
291
- } if (this.minor > i || this.minor < 0) {
292
- throw new TypeError("Invalid minor version");
293
- } if (this.patch > i || this.patch < 0) {
294
- throw new TypeError("Invalid patch version");
295
- } if (!s[4]) {
296
- this.prerelease = [];
297
- }
298
- else {
299
- this.prerelease = s[4].split(".").map((function (e) { if (/^[0-9]+$/.test(e)) {
300
- var r = +e;
301
- if (r >= 0 && r < i) {
302
- return r;
303
- }
304
- } return e; }));
305
- } this.build = s[5] ? s[5].split(".") : []; this.format(); } SemVer.prototype.format = function () { this.version = this.major + "." + this.minor + "." + this.patch; if (this.prerelease.length) {
306
- this.version += "-" + this.prerelease.join(".");
307
- } return this.version; }; SemVer.prototype.toString = function () { return this.version; }; SemVer.prototype.compare = function (e) { t("SemVer.compare", this.version, this.options, e); if (!(e instanceof SemVer)) {
308
- e = new SemVer(e, this.options);
309
- } return this.compareMain(e) || this.comparePre(e); }; SemVer.prototype.compareMain = function (e) { if (!(e instanceof SemVer)) {
310
- e = new SemVer(e, this.options);
311
- } return compareIdentifiers(this.major, e.major) || compareIdentifiers(this.minor, e.minor) || compareIdentifiers(this.patch, e.patch); }; SemVer.prototype.comparePre = function (e) { if (!(e instanceof SemVer)) {
312
- e = new SemVer(e, this.options);
313
- } if (this.prerelease.length && !e.prerelease.length) {
314
- return -1;
315
- }
316
- else if (!this.prerelease.length && e.prerelease.length) {
317
- return 1;
318
- }
319
- else if (!this.prerelease.length && !e.prerelease.length) {
320
- return 0;
321
- } var r = 0; do {
322
- var n = this.prerelease[r];
323
- var i = e.prerelease[r];
324
- t("prerelease compare", r, n, i);
325
- if (n === undefined && i === undefined) {
326
- return 0;
327
- }
328
- else if (i === undefined) {
329
- return 1;
330
- }
331
- else if (n === undefined) {
332
- return -1;
333
- }
334
- else if (n === i) {
335
- continue;
336
- }
337
- else {
338
- return compareIdentifiers(n, i);
339
- }
340
- } while (++r); }; SemVer.prototype.inc = function (e, r) { switch (e) {
341
- case "premajor":
342
- this.prerelease.length = 0;
343
- this.patch = 0;
344
- this.minor = 0;
345
- this.major++;
346
- this.inc("pre", r);
347
- break;
348
- case "preminor":
349
- this.prerelease.length = 0;
350
- this.patch = 0;
351
- this.minor++;
352
- this.inc("pre", r);
353
- break;
354
- case "prepatch":
355
- this.prerelease.length = 0;
356
- this.inc("patch", r);
357
- this.inc("pre", r);
358
- break;
359
- case "prerelease":
360
- if (this.prerelease.length === 0) {
361
- this.inc("patch", r);
362
- }
363
- this.inc("pre", r);
364
- break;
365
- case "major":
366
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
367
- this.major++;
368
- }
369
- this.minor = 0;
370
- this.patch = 0;
371
- this.prerelease = [];
372
- break;
373
- case "minor":
374
- if (this.patch !== 0 || this.prerelease.length === 0) {
375
- this.minor++;
376
- }
377
- this.patch = 0;
378
- this.prerelease = [];
379
- break;
380
- case "patch":
381
- if (this.prerelease.length === 0) {
382
- this.patch++;
383
- }
384
- this.prerelease = [];
385
- break;
386
- case "pre":
387
- if (this.prerelease.length === 0) {
388
- this.prerelease = [0];
389
- }
390
- else {
391
- var t = this.prerelease.length;
392
- while (--t >= 0) {
393
- if (typeof this.prerelease[t] === "number") {
394
- this.prerelease[t]++;
395
- t = -2;
396
- }
397
- }
398
- if (t === -1) {
399
- this.prerelease.push(0);
400
- }
401
- }
402
- if (r) {
403
- if (this.prerelease[0] === r) {
404
- if (isNaN(this.prerelease[1])) {
405
- this.prerelease = [r, 0];
406
- }
407
- }
408
- else {
409
- this.prerelease = [r, 0];
410
- }
411
- }
412
- break;
413
- default: throw new Error("invalid increment argument: " + e);
414
- } this.format(); this.raw = this.version; return this; }; r.inc = inc; function inc(e, r, t, n) { if (typeof t === "string") {
415
- n = t;
416
- t = undefined;
417
- } try {
418
- return new SemVer(e, t).inc(r, n).version;
419
- }
420
- catch (e) {
421
- return null;
422
- } } r.diff = diff; function diff(e, r) { if (eq(e, r)) {
423
- return null;
424
- }
425
- else {
426
- var t = parse(e);
427
- var n = parse(r);
428
- var i = "";
429
- if (t.prerelease.length || n.prerelease.length) {
430
- i = "pre";
431
- var s = "prerelease";
432
- }
433
- for (var o in t) {
434
- if (o === "major" || o === "minor" || o === "patch") {
435
- if (t[o] !== n[o]) {
436
- return i + o;
437
- }
438
- }
439
- }
440
- return s;
441
- } } r.compareIdentifiers = compareIdentifiers; var J = /^[0-9]+$/; function compareIdentifiers(e, r) { var t = J.test(e); var n = J.test(r); if (t && n) {
442
- e = +e;
443
- r = +r;
444
- } return e === r ? 0 : t && !n ? -1 : n && !t ? 1 : e < r ? -1 : 1; } r.rcompareIdentifiers = rcompareIdentifiers; function rcompareIdentifiers(e, r) { return compareIdentifiers(r, e); } r.major = major; function major(e, r) { return new SemVer(e, r).major; } r.minor = minor; function minor(e, r) { return new SemVer(e, r).minor; } r.patch = patch; function patch(e, r) { return new SemVer(e, r).patch; } r.compare = compare; function compare(e, r, t) { return new SemVer(e, t).compare(new SemVer(r, t)); } r.compareLoose = compareLoose; function compareLoose(e, r) { return compare(e, r, true); } r.rcompare = rcompare; function rcompare(e, r, t) { return compare(r, e, t); } r.sort = sort; function sort(e, t) { return e.sort((function (e, n) { return r.compare(e, n, t); })); } r.rsort = rsort; function rsort(e, t) { return e.sort((function (e, n) { return r.rcompare(e, n, t); })); } r.gt = gt; function gt(e, r, t) { return compare(e, r, t) > 0; } r.lt = lt; function lt(e, r, t) { return compare(e, r, t) < 0; } r.eq = eq; function eq(e, r, t) { return compare(e, r, t) === 0; } r.neq = neq; function neq(e, r, t) { return compare(e, r, t) !== 0; } r.gte = gte; function gte(e, r, t) { return compare(e, r, t) >= 0; } r.lte = lte; function lte(e, r, t) { return compare(e, r, t) <= 0; } r.cmp = cmp; function cmp(e, r, t, n) { switch (r) {
445
- case "===":
446
- if (typeof e === "object")
447
- e = e.version;
448
- if (typeof t === "object")
449
- t = t.version;
450
- return e === t;
451
- case "!==":
452
- if (typeof e === "object")
453
- e = e.version;
454
- if (typeof t === "object")
455
- t = t.version;
456
- return e !== t;
457
- case "":
458
- case "=":
459
- case "==": return eq(e, t, n);
460
- case "!=": return neq(e, t, n);
461
- case ">": return gt(e, t, n);
462
- case ">=": return gte(e, t, n);
463
- case "<": return lt(e, t, n);
464
- case "<=": return lte(e, t, n);
465
- default: throw new TypeError("Invalid operator: " + r);
466
- } } r.Comparator = Comparator; function Comparator(e, r) { if (!r || typeof r !== "object") {
467
- r = { loose: !!r, includePrerelease: false };
468
- } if (e instanceof Comparator) {
469
- if (e.loose === !!r.loose) {
470
- return e;
471
- }
472
- else {
473
- e = e.value;
474
- }
475
- } if (!(this instanceof Comparator)) {
476
- return new Comparator(e, r);
477
- } t("comparator", e, r); this.options = r; this.loose = !!r.loose; this.parse(e); if (this.semver === ee) {
478
- this.value = "";
479
- }
480
- else {
481
- this.value = this.operator + this.semver.version;
482
- } t("comp", this); } var ee = {}; Comparator.prototype.parse = function (e) { var r = this.options.loose ? o[U] : o[W]; var t = e.match(r); if (!t) {
483
- throw new TypeError("Invalid comparator: " + e);
484
- } this.operator = t[1]; if (this.operator === "=") {
485
- this.operator = "";
486
- } if (!t[2]) {
487
- this.semver = ee;
488
- }
489
- else {
490
- this.semver = new SemVer(t[2], this.options.loose);
491
- } }; Comparator.prototype.toString = function () { return this.value; }; Comparator.prototype.test = function (e) { t("Comparator.test", e, this.options.loose); if (this.semver === ee) {
492
- return true;
493
- } if (typeof e === "string") {
494
- e = new SemVer(e, this.options);
495
- } return cmp(e, this.operator, this.semver, this.options); }; Comparator.prototype.intersects = function (e, r) { if (!(e instanceof Comparator)) {
496
- throw new TypeError("a Comparator is required");
497
- } if (!r || typeof r !== "object") {
498
- r = { loose: !!r, includePrerelease: false };
499
- } var t; if (this.operator === "") {
500
- t = new Range(e.value, r);
501
- return satisfies(this.value, t, r);
502
- }
503
- else if (e.operator === "") {
504
- t = new Range(this.value, r);
505
- return satisfies(e.semver, t, r);
506
- } var n = (this.operator === ">=" || this.operator === ">") && (e.operator === ">=" || e.operator === ">"); var i = (this.operator === "<=" || this.operator === "<") && (e.operator === "<=" || e.operator === "<"); var s = this.semver.version === e.semver.version; var o = (this.operator === ">=" || this.operator === "<=") && (e.operator === ">=" || e.operator === "<="); var a = cmp(this.semver, "<", e.semver, r) && ((this.operator === ">=" || this.operator === ">") && (e.operator === "<=" || e.operator === "<")); var c = cmp(this.semver, ">", e.semver, r) && ((this.operator === "<=" || this.operator === "<") && (e.operator === ">=" || e.operator === ">")); return n || i || s && o || a || c; }; r.Range = Range; function Range(e, r) { if (!r || typeof r !== "object") {
507
- r = { loose: !!r, includePrerelease: false };
508
- } if (e instanceof Range) {
509
- if (e.loose === !!r.loose && e.includePrerelease === !!r.includePrerelease) {
510
- return e;
511
- }
512
- else {
513
- return new Range(e.raw, r);
514
- }
515
- } if (e instanceof Comparator) {
516
- return new Range(e.value, r);
517
- } if (!(this instanceof Range)) {
518
- return new Range(e, r);
519
- } this.options = r; this.loose = !!r.loose; this.includePrerelease = !!r.includePrerelease; this.raw = e; this.set = e.split(/\s*\|\|\s*/).map((function (e) { return this.parseRange(e.trim()); }), this).filter((function (e) { return e.length; })); if (!this.set.length) {
520
- throw new TypeError("Invalid SemVer Range: " + e);
521
- } this.format(); } Range.prototype.format = function () { this.range = this.set.map((function (e) { return e.join(" ").trim(); })).join("||").trim(); return this.range; }; Range.prototype.toString = function () { return this.range; }; Range.prototype.parseRange = function (e) { var r = this.options.loose; e = e.trim(); var n = r ? o[Y] : o[Q]; e = e.replace(n, hyphenReplace); t("hyphen replace", e); e = e.replace(o[z], H); t("comparator trim", e, o[z]); e = e.replace(o[N], D); e = e.replace(o[V], q); e = e.split(/\s+/).join(" "); var i = r ? o[U] : o[W]; var s = e.split(" ").map((function (e) { return parseComparator(e, this.options); }), this).join(" ").split(/\s+/); if (this.options.loose) {
522
- s = s.filter((function (e) { return !!e.match(i); }));
523
- } s = s.map((function (e) { return new Comparator(e, this.options); }), this); return s; }; Range.prototype.intersects = function (e, r) { if (!(e instanceof Range)) {
524
- throw new TypeError("a Range is required");
525
- } return this.set.some((function (t) { return t.every((function (t) { return e.set.some((function (e) { return e.every((function (e) { return t.intersects(e, r); })); })); })); })); }; r.toComparators = toComparators; function toComparators(e, r) { return new Range(e, r).set.map((function (e) { return e.map((function (e) { return e.value; })).join(" ").trim().split(" "); })); } function parseComparator(e, r) { t("comp", e, r); e = replaceCarets(e, r); t("caret", e); e = replaceTildes(e, r); t("tildes", e); e = replaceXRanges(e, r); t("xrange", e); e = replaceStars(e, r); t("stars", e); return e; } function isX(e) { return !e || e.toLowerCase() === "x" || e === "*"; } function replaceTildes(e, r) { return e.trim().split(/\s+/).map((function (e) { return replaceTilde(e, r); })).join(" "); } function replaceTilde(e, r) { var n = r.loose ? o[M] : o[G]; return e.replace(n, (function (r, n, i, s, o) { t("tilde", e, r, n, i, s, o); var a; if (isX(n)) {
526
- a = "";
527
- }
528
- else if (isX(i)) {
529
- a = ">=" + n + ".0.0 <" + (+n + 1) + ".0.0";
530
- }
531
- else if (isX(s)) {
532
- a = ">=" + n + "." + i + ".0 <" + n + "." + (+i + 1) + ".0";
533
- }
534
- else if (o) {
535
- t("replaceTilde pr", o);
536
- a = ">=" + n + "." + i + "." + s + "-" + o + " <" + n + "." + (+i + 1) + ".0";
537
- }
538
- else {
539
- a = ">=" + n + "." + i + "." + s + " <" + n + "." + (+i + 1) + ".0";
540
- } t("tilde return", a); return a; })); } function replaceCarets(e, r) { return e.trim().split(/\s+/).map((function (e) { return replaceCaret(e, r); })).join(" "); } function replaceCaret(e, r) { t("caret", e, r); var n = r.loose ? o[X] : o[B]; return e.replace(n, (function (r, n, i, s, o) { t("caret", e, r, n, i, s, o); var a; if (isX(n)) {
541
- a = "";
542
- }
543
- else if (isX(i)) {
544
- a = ">=" + n + ".0.0 <" + (+n + 1) + ".0.0";
545
- }
546
- else if (isX(s)) {
547
- if (n === "0") {
548
- a = ">=" + n + "." + i + ".0 <" + n + "." + (+i + 1) + ".0";
549
- }
550
- else {
551
- a = ">=" + n + "." + i + ".0 <" + (+n + 1) + ".0.0";
552
- }
553
- }
554
- else if (o) {
555
- t("replaceCaret pr", o);
556
- if (n === "0") {
557
- if (i === "0") {
558
- a = ">=" + n + "." + i + "." + s + "-" + o + " <" + n + "." + i + "." + (+s + 1);
559
- }
560
- else {
561
- a = ">=" + n + "." + i + "." + s + "-" + o + " <" + n + "." + (+i + 1) + ".0";
562
- }
563
- }
564
- else {
565
- a = ">=" + n + "." + i + "." + s + "-" + o + " <" + (+n + 1) + ".0.0";
566
- }
567
- }
568
- else {
569
- t("no pr");
570
- if (n === "0") {
571
- if (i === "0") {
572
- a = ">=" + n + "." + i + "." + s + " <" + n + "." + i + "." + (+s + 1);
573
- }
574
- else {
575
- a = ">=" + n + "." + i + "." + s + " <" + n + "." + (+i + 1) + ".0";
576
- }
577
- }
578
- else {
579
- a = ">=" + n + "." + i + "." + s + " <" + (+n + 1) + ".0.0";
580
- }
581
- } t("caret return", a); return a; })); } function replaceXRanges(e, r) { t("replaceXRanges", e, r); return e.split(/\s+/).map((function (e) { return replaceXRange(e, r); })).join(" "); } function replaceXRange(e, r) { e = e.trim(); var n = r.loose ? o[A] : o[I]; return e.replace(n, (function (r, n, i, s, o, a) { t("xRange", e, r, n, i, s, o, a); var c = isX(i); var l = c || isX(s); var u = l || isX(o); var p = u; if (n === "=" && p) {
582
- n = "";
583
- } if (c) {
584
- if (n === ">" || n === "<") {
585
- r = "<0.0.0";
586
- }
587
- else {
588
- r = "*";
589
- }
590
- }
591
- else if (n && p) {
592
- if (l) {
593
- s = 0;
594
- }
595
- o = 0;
596
- if (n === ">") {
597
- n = ">=";
598
- if (l) {
599
- i = +i + 1;
600
- s = 0;
601
- o = 0;
602
- }
603
- else {
604
- s = +s + 1;
605
- o = 0;
606
- }
607
- }
608
- else if (n === "<=") {
609
- n = "<";
610
- if (l) {
611
- i = +i + 1;
612
- }
613
- else {
614
- s = +s + 1;
615
- }
616
- }
617
- r = n + i + "." + s + "." + o;
618
- }
619
- else if (l) {
620
- r = ">=" + i + ".0.0 <" + (+i + 1) + ".0.0";
621
- }
622
- else if (u) {
623
- r = ">=" + i + "." + s + ".0 <" + i + "." + (+s + 1) + ".0";
624
- } t("xRange return", r); return r; })); } function replaceStars(e, r) { t("replaceStars", e, r); return e.trim().replace(o[K], ""); } function hyphenReplace(e, r, t, n, i, s, o, a, c, l, u, p, h) { if (isX(t)) {
625
- r = "";
626
- }
627
- else if (isX(n)) {
628
- r = ">=" + t + ".0.0";
629
- }
630
- else if (isX(i)) {
631
- r = ">=" + t + "." + n + ".0";
632
- }
633
- else {
634
- r = ">=" + r;
635
- } if (isX(c)) {
636
- a = "";
637
- }
638
- else if (isX(l)) {
639
- a = "<" + (+c + 1) + ".0.0";
640
- }
641
- else if (isX(u)) {
642
- a = "<" + c + "." + (+l + 1) + ".0";
643
- }
644
- else if (p) {
645
- a = "<=" + c + "." + l + "." + u + "-" + p;
646
- }
647
- else {
648
- a = "<=" + a;
649
- } return (r + " " + a).trim(); } Range.prototype.test = function (e) { if (!e) {
650
- return false;
651
- } if (typeof e === "string") {
652
- e = new SemVer(e, this.options);
653
- } for (var r = 0; r < this.set.length; r++) {
654
- if (testSet(this.set[r], e, this.options)) {
655
- return true;
656
- }
657
- } return false; }; function testSet(e, r, n) { for (var i = 0; i < e.length; i++) {
658
- if (!e[i].test(r)) {
659
- return false;
660
- }
661
- } if (r.prerelease.length && !n.includePrerelease) {
662
- for (i = 0; i < e.length; i++) {
663
- t(e[i].semver);
664
- if (e[i].semver === ee) {
665
- continue;
666
- }
667
- if (e[i].semver.prerelease.length > 0) {
668
- var s = e[i].semver;
669
- if (s.major === r.major && s.minor === r.minor && s.patch === r.patch) {
670
- return true;
671
- }
672
- }
673
- }
674
- return false;
675
- } return true; } r.satisfies = satisfies; function satisfies(e, r, t) { try {
676
- r = new Range(r, t);
677
- }
678
- catch (e) {
679
- return false;
680
- } return r.test(e); } r.maxSatisfying = maxSatisfying; function maxSatisfying(e, r, t) { var n = null; var i = null; try {
681
- var s = new Range(r, t);
682
- }
683
- catch (e) {
684
- return null;
685
- } e.forEach((function (e) { if (s.test(e)) {
686
- if (!n || i.compare(e) === -1) {
687
- n = e;
688
- i = new SemVer(n, t);
689
- }
690
- } })); return n; } r.minSatisfying = minSatisfying; function minSatisfying(e, r, t) { var n = null; var i = null; try {
691
- var s = new Range(r, t);
692
- }
693
- catch (e) {
694
- return null;
695
- } e.forEach((function (e) { if (s.test(e)) {
696
- if (!n || i.compare(e) === 1) {
697
- n = e;
698
- i = new SemVer(n, t);
699
- }
700
- } })); return n; } r.minVersion = minVersion; function minVersion(e, r) { e = new Range(e, r); var t = new SemVer("0.0.0"); if (e.test(t)) {
701
- return t;
702
- } t = new SemVer("0.0.0-0"); if (e.test(t)) {
703
- return t;
704
- } t = null; for (var n = 0; n < e.set.length; ++n) {
705
- var i = e.set[n];
706
- i.forEach((function (e) { var r = new SemVer(e.semver.version); switch (e.operator) {
707
- case ">":
708
- if (r.prerelease.length === 0) {
709
- r.patch++;
710
- }
711
- else {
712
- r.prerelease.push(0);
713
- }
714
- r.raw = r.format();
715
- case "":
716
- case ">=":
717
- if (!t || gt(t, r)) {
718
- t = r;
719
- }
720
- break;
721
- case "<":
722
- case "<=": break;
723
- default: throw new Error("Unexpected operation: " + e.operator);
724
- } }));
725
- } if (t && e.test(t)) {
726
- return t;
727
- } return null; } r.validRange = validRange; function validRange(e, r) { try {
728
- return new Range(e, r).range || "*";
729
- }
730
- catch (e) {
731
- return null;
732
- } } r.ltr = ltr; function ltr(e, r, t) { return outside(e, r, "<", t); } r.gtr = gtr; function gtr(e, r, t) { return outside(e, r, ">", t); } r.outside = outside; function outside(e, r, t, n) { e = new SemVer(e, n); r = new Range(r, n); var i, s, o, a, c; switch (t) {
733
- case ">":
734
- i = gt;
735
- s = lte;
736
- o = lt;
737
- a = ">";
738
- c = ">=";
739
- break;
740
- case "<":
741
- i = lt;
742
- s = gte;
743
- o = gt;
744
- a = "<";
745
- c = "<=";
746
- break;
747
- default: throw new TypeError('Must provide a hilo val of "<" or ">"');
748
- } if (satisfies(e, r, n)) {
749
- return false;
750
- } for (var l = 0; l < r.set.length; ++l) {
751
- var u = r.set[l];
752
- var p = null;
753
- var h = null;
754
- u.forEach((function (e) { if (e.semver === ee) {
755
- e = new Comparator(">=0.0.0");
756
- } p = p || e; h = h || e; if (i(e.semver, p.semver, n)) {
757
- p = e;
758
- }
759
- else if (o(e.semver, h.semver, n)) {
760
- h = e;
761
- } }));
762
- if (p.operator === a || p.operator === c) {
763
- return false;
764
- }
765
- if ((!h.operator || h.operator === a) && s(e, h.semver)) {
766
- return false;
767
- }
768
- else if (h.operator === c && o(e, h.semver)) {
769
- return false;
770
- }
771
- } return true; } r.prerelease = prerelease; function prerelease(e, r) { var t = parse(e, r); return t && t.prerelease.length ? t.prerelease : null; } r.intersects = intersects; function intersects(e, r, t) { e = new Range(e, t); r = new Range(r, t); return e.intersects(r); } r.coerce = coerce; function coerce(e) { if (e instanceof SemVer) {
772
- return e;
773
- } if (typeof e !== "string") {
774
- return null;
775
- } var r = e.match(o[P]); if (r == null) {
776
- return null;
777
- } return parse(r[1] + "." + (r[2] || "0") + "." + (r[3] || "0")); } }, 7242: (e, r, t) => { var n = t(8666); var noop = function () { }; var isRequest = function (e) { return e.setHeader && typeof e.abort === "function"; }; var isChildProcess = function (e) { return e.stdio && Array.isArray(e.stdio) && e.stdio.length === 3; }; var eos = function (e, r, t) { if (typeof r === "function")
778
- return eos(e, null, r); if (!r)
779
- r = {}; t = n(t || noop); var i = e._writableState; var s = e._readableState; var o = r.readable || r.readable !== false && e.readable; var a = r.writable || r.writable !== false && e.writable; var c = false; var onlegacyfinish = function () { if (!e.writable)
780
- onfinish(); }; var onfinish = function () { a = false; if (!o)
781
- t.call(e); }; var onend = function () { o = false; if (!a)
782
- t.call(e); }; var onexit = function (r) { t.call(e, r ? new Error("exited with error code: " + r) : null); }; var onerror = function (r) { t.call(e, r); }; var onclose = function () { process.nextTick(onclosenexttick); }; var onclosenexttick = function () { if (c)
783
- return; if (o && !(s && (s.ended && !s.destroyed)))
784
- return t.call(e, new Error("premature close")); if (a && !(i && (i.ended && !i.destroyed)))
785
- return t.call(e, new Error("premature close")); }; var onrequest = function () { e.req.on("finish", onfinish); }; if (isRequest(e)) {
786
- e.on("complete", onfinish);
787
- e.on("abort", onclose);
788
- if (e.req)
789
- onrequest();
790
- else
791
- e.on("request", onrequest);
792
- }
793
- else if (a && !i) {
794
- e.on("end", onlegacyfinish);
795
- e.on("close", onlegacyfinish);
796
- } if (isChildProcess(e))
797
- e.on("exit", onexit); e.on("end", onend); e.on("finish", onfinish); if (r.error !== false)
798
- e.on("error", onerror); e.on("close", onclose); return function () { c = true; e.removeListener("complete", onfinish); e.removeListener("abort", onclose); e.removeListener("request", onrequest); if (e.req)
799
- e.req.removeListener("finish", onfinish); e.removeListener("end", onlegacyfinish); e.removeListener("close", onlegacyfinish); e.removeListener("finish", onfinish); e.removeListener("exit", onexit); e.removeListener("end", onend); e.removeListener("error", onerror); e.removeListener("close", onclose); }; }; e.exports = eos; }, 1910: (e, r, t) => {
800
- "use strict";
801
- const n = t(1017);
802
- const i = t(2081);
803
- const s = t(5775);
804
- const o = t(8226);
805
- const a = t(1513);
806
- const c = t(6425);
807
- const l = t(152);
808
- const u = t(732);
809
- const p = t(3056);
810
- const h = t(8546);
811
- const d = t(6464);
812
- const v = 1e3 * 1e3 * 10;
813
- function handleArgs(e, r, t) { let i; t = Object.assign({ extendEnv: true, env: {} }, t); if (t.extendEnv) {
814
- t.env = Object.assign({}, process.env, t.env);
815
- } if (t.__winShell === true) {
816
- delete t.__winShell;
817
- i = { command: e, args: r, options: t, file: e, original: { cmd: e, args: r } };
818
- }
819
- else {
820
- i = s._parse(e, r, t);
821
- } t = Object.assign({ maxBuffer: v, buffer: true, stripEof: true, preferLocal: true, localDir: i.options.cwd || process.cwd(), encoding: "utf8", reject: true, cleanup: true }, i.options); t.stdio = d(t); if (t.preferLocal) {
822
- t.env = a.env(Object.assign({}, t, { cwd: t.localDir }));
823
- } if (t.detached) {
824
- t.cleanup = false;
825
- } if (process.platform === "win32" && n.basename(i.command) === "cmd.exe") {
826
- i.args.unshift("/q");
827
- } return { cmd: i.command, args: i.args, opts: t, parsed: i }; }
828
- function handleInput(e, r) { if (r === null || r === undefined) {
829
- return;
830
- } if (c(r)) {
831
- r.pipe(e.stdin);
832
- }
833
- else {
834
- e.stdin.end(r);
835
- } }
836
- function handleOutput(e, r) { if (r && e.stripEof) {
837
- r = o(r);
838
- } return r; }
839
- function handleShell(e, r, t) { let n = "/bin/sh"; let i = ["-c", r]; t = Object.assign({}, t); if (process.platform === "win32") {
840
- t.__winShell = true;
841
- n = process.env.comspec || "cmd.exe";
842
- i = ["/s", "/c", `"${r}"`];
843
- t.windowsVerbatimArguments = true;
844
- } if (t.shell) {
845
- n = t.shell;
846
- delete t.shell;
847
- } return e(n, i, t); }
848
- function getStream(e, r, { encoding: t, buffer: n, maxBuffer: i }) { if (!e[r]) {
849
- return null;
850
- } let s; if (!n) {
851
- s = new Promise(((t, n) => { e[r].once("end", t).once("error", n); }));
852
- }
853
- else if (t) {
854
- s = l(e[r], { encoding: t, maxBuffer: i });
855
- }
856
- else {
857
- s = l.buffer(e[r], { maxBuffer: i });
858
- } return s.catch((e => { e.stream = r; e.message = `${r} ${e.message}`; throw e; })); }
859
- function makeError(e, r) { const { stdout: t, stderr: n } = e; let i = e.error; const { code: s, signal: o } = e; const { parsed: a, joinedCmd: c } = r; const l = r.timedOut || false; if (!i) {
860
- let e = "";
861
- if (Array.isArray(a.opts.stdio)) {
862
- if (a.opts.stdio[2] !== "inherit") {
863
- e += e.length > 0 ? n : `\n${n}`;
864
- }
865
- if (a.opts.stdio[1] !== "inherit") {
866
- e += `\n${t}`;
867
- }
868
- }
869
- else if (a.opts.stdio !== "inherit") {
870
- e = `\n${n}${t}`;
871
- }
872
- i = new Error(`Command failed: ${c}${e}`);
873
- i.code = s < 0 ? h(s) : s;
874
- } i.stdout = t; i.stderr = n; i.failed = true; i.signal = o || null; i.cmd = c; i.timedOut = l; return i; }
875
- function joinCmd(e, r) { let t = e; if (Array.isArray(r) && r.length > 0) {
876
- t += " " + r.join(" ");
877
- } return t; }
878
- e.exports = (e, r, t) => { const n = handleArgs(e, r, t); const { encoding: o, buffer: a, maxBuffer: c } = n.opts; const l = joinCmd(e, r); let h; try {
879
- h = i.spawn(n.cmd, n.args, n.opts);
880
- }
881
- catch (e) {
882
- return Promise.reject(e);
883
- } let d; if (n.opts.cleanup) {
884
- d = p((() => { h.kill(); }));
885
- } let v = null; let m = false; const cleanup = () => { if (v) {
886
- clearTimeout(v);
887
- v = null;
888
- } if (d) {
889
- d();
890
- } }; if (n.opts.timeout > 0) {
891
- v = setTimeout((() => { v = null; m = true; h.kill(n.opts.killSignal); }), n.opts.timeout);
892
- } const y = new Promise((e => { h.on("exit", ((r, t) => { cleanup(); e({ code: r, signal: t }); })); h.on("error", (r => { cleanup(); e({ error: r }); })); if (h.stdin) {
893
- h.stdin.on("error", (r => { cleanup(); e({ error: r }); }));
894
- } })); function destroy() { if (h.stdout) {
895
- h.stdout.destroy();
896
- } if (h.stderr) {
897
- h.stderr.destroy();
898
- } } const handlePromise = () => u(Promise.all([y, getStream(h, "stdout", { encoding: o, buffer: a, maxBuffer: c }), getStream(h, "stderr", { encoding: o, buffer: a, maxBuffer: c })]).then((e => { const r = e[0]; r.stdout = e[1]; r.stderr = e[2]; if (r.error || r.code !== 0 || r.signal !== null) {
899
- const e = makeError(r, { joinedCmd: l, parsed: n, timedOut: m });
900
- e.killed = e.killed || h.killed;
901
- if (!n.opts.reject) {
902
- return e;
903
- }
904
- throw e;
905
- } return { stdout: handleOutput(n.opts, r.stdout), stderr: handleOutput(n.opts, r.stderr), code: 0, failed: false, killed: false, signal: null, cmd: l, timedOut: false }; })), destroy); s._enoent.hookChildProcess(h, n.parsed); handleInput(h, n.opts.input); h.then = (e, r) => handlePromise().then(e, r); h.catch = e => handlePromise().catch(e); return h; };
906
- e.exports.stdout = (...r) => e.exports(...r).then((e => e.stdout));
907
- e.exports.stderr = (...r) => e.exports(...r).then((e => e.stderr));
908
- e.exports.shell = (r, t) => handleShell(e.exports, r, t);
909
- e.exports.sync = (e, r, t) => { const n = handleArgs(e, r, t); const s = joinCmd(e, r); if (c(n.opts.input)) {
910
- throw new TypeError("The `input` option cannot be a stream in sync mode");
911
- } const o = i.spawnSync(n.cmd, n.args, n.opts); o.code = o.status; if (o.error || o.status !== 0 || o.signal !== null) {
912
- const e = makeError(o, { joinedCmd: s, parsed: n });
913
- if (!n.opts.reject) {
914
- return e;
915
- }
916
- throw e;
917
- } return { stdout: handleOutput(n.opts, o.stdout), stderr: handleOutput(n.opts, o.stderr), code: 0, failed: false, signal: null, cmd: s, timedOut: false }; };
918
- e.exports.shellSync = (r, t) => handleShell(e.exports.sync, r, t);
919
- }, 8546: (e, r, t) => {
920
- "use strict";
921
- const n = t(3837);
922
- let i;
923
- if (typeof n.getSystemErrorName === "function") {
924
- e.exports = n.getSystemErrorName;
925
- }
926
- else {
927
- try {
928
- i = process.binding("uv");
929
- if (typeof i.errname !== "function") {
930
- throw new TypeError("uv.errname is not a function");
931
- }
932
- }
933
- catch (e) {
934
- console.error("execa/lib/errname: unable to establish process.binding('uv')", e);
935
- i = null;
936
- }
937
- e.exports = e => errname(i, e);
938
- }
939
- e.exports.__test__ = errname;
940
- function errname(e, r) { if (e) {
941
- return e.errname(r);
942
- } if (!(r < 0)) {
943
- throw new Error("err >= 0");
944
- } return `Unknown system error ${r}`; }
945
- }, 6464: e => {
946
- "use strict";
947
- const r = ["stdin", "stdout", "stderr"];
948
- const hasAlias = e => r.some((r => Boolean(e[r])));
949
- e.exports = e => { if (!e) {
950
- return null;
951
- } if (e.stdio && hasAlias(e)) {
952
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map((e => `\`${e}\``)).join(", ")}`);
953
- } if (typeof e.stdio === "string") {
954
- return e.stdio;
955
- } const t = e.stdio || []; if (!Array.isArray(t)) {
956
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
957
- } const n = []; const i = Math.max(t.length, r.length); for (let s = 0; s < i; s++) {
958
- let i = null;
959
- if (t[s] !== undefined) {
960
- i = t[s];
961
- }
962
- else if (e[r[s]] !== undefined) {
963
- i = e[r[s]];
964
- }
965
- n[s] = i;
966
- } return n; };
967
- }, 2229: (e, r, t) => { e.exports = realpath; realpath.realpath = realpath; realpath.sync = realpathSync; realpath.realpathSync = realpathSync; realpath.monkeypatch = monkeypatch; realpath.unmonkeypatch = unmonkeypatch; var n = t(7147); var i = n.realpath; var s = n.realpathSync; var o = process.version; var a = /^v[0-5]\./.test(o); var c = t(6035); function newError(e) { return e && e.syscall === "realpath" && (e.code === "ELOOP" || e.code === "ENOMEM" || e.code === "ENAMETOOLONG"); } function realpath(e, r, t) { if (a) {
968
- return i(e, r, t);
969
- } if (typeof r === "function") {
970
- t = r;
971
- r = null;
972
- } i(e, r, (function (n, i) { if (newError(n)) {
973
- c.realpath(e, r, t);
974
- }
975
- else {
976
- t(n, i);
977
- } })); } function realpathSync(e, r) { if (a) {
978
- return s(e, r);
979
- } try {
980
- return s(e, r);
981
- }
982
- catch (t) {
983
- if (newError(t)) {
984
- return c.realpathSync(e, r);
985
- }
986
- else {
987
- throw t;
988
- }
989
- } } function monkeypatch() { n.realpath = realpath; n.realpathSync = realpathSync; } function unmonkeypatch() { n.realpath = i; n.realpathSync = s; } }, 6035: (e, r, t) => { var n = t(1017); var i = process.platform === "win32"; var s = t(7147); var o = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); function rethrow() { var e; if (o) {
990
- var r = new Error;
991
- e = debugCallback;
992
- }
993
- else
994
- e = missingCallback; return e; function debugCallback(e) { if (e) {
995
- r.message = e.message;
996
- e = r;
997
- missingCallback(e);
998
- } } function missingCallback(e) { if (e) {
999
- if (process.throwDeprecation)
1000
- throw e;
1001
- else if (!process.noDeprecation) {
1002
- var r = "fs: missing callback " + (e.stack || e.message);
1003
- if (process.traceDeprecation)
1004
- console.trace(r);
1005
- else
1006
- console.error(r);
1007
- }
1008
- } } } function maybeCallback(e) { return typeof e === "function" ? e : rethrow(); } var a = n.normalize; if (i) {
1009
- var c = /(.*?)(?:[\/\\]+|$)/g;
1010
- }
1011
- else {
1012
- var c = /(.*?)(?:[\/]+|$)/g;
1013
- } if (i) {
1014
- var l = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
1015
- }
1016
- else {
1017
- var l = /^[\/]*/;
1018
- } r.realpathSync = function realpathSync(e, r) { e = n.resolve(e); if (r && Object.prototype.hasOwnProperty.call(r, e)) {
1019
- return r[e];
1020
- } var t = e, o = {}, a = {}; var u; var p; var h; var d; start(); function start() { var r = l.exec(e); u = r[0].length; p = r[0]; h = r[0]; d = ""; if (i && !a[h]) {
1021
- s.lstatSync(h);
1022
- a[h] = true;
1023
- } } while (u < e.length) {
1024
- c.lastIndex = u;
1025
- var v = c.exec(e);
1026
- d = p;
1027
- p += v[0];
1028
- h = d + v[1];
1029
- u = c.lastIndex;
1030
- if (a[h] || r && r[h] === h) {
1031
- continue;
1032
- }
1033
- var m;
1034
- if (r && Object.prototype.hasOwnProperty.call(r, h)) {
1035
- m = r[h];
1036
- }
1037
- else {
1038
- var y = s.lstatSync(h);
1039
- if (!y.isSymbolicLink()) {
1040
- a[h] = true;
1041
- if (r)
1042
- r[h] = h;
1043
- continue;
1044
- }
1045
- var g = null;
1046
- if (!i) {
1047
- var b = y.dev.toString(32) + ":" + y.ino.toString(32);
1048
- if (o.hasOwnProperty(b)) {
1049
- g = o[b];
1050
- }
1051
- }
1052
- if (g === null) {
1053
- s.statSync(h);
1054
- g = s.readlinkSync(h);
1055
- }
1056
- m = n.resolve(d, g);
1057
- if (r)
1058
- r[h] = m;
1059
- if (!i)
1060
- o[b] = g;
1061
- }
1062
- e = n.resolve(m, e.slice(u));
1063
- start();
1064
- } if (r)
1065
- r[t] = e; return e; }; r.realpath = function realpath(e, r, t) { if (typeof t !== "function") {
1066
- t = maybeCallback(r);
1067
- r = null;
1068
- } e = n.resolve(e); if (r && Object.prototype.hasOwnProperty.call(r, e)) {
1069
- return process.nextTick(t.bind(null, null, r[e]));
1070
- } var o = e, a = {}, u = {}; var p; var h; var d; var v; start(); function start() { var r = l.exec(e); p = r[0].length; h = r[0]; d = r[0]; v = ""; if (i && !u[d]) {
1071
- s.lstat(d, (function (e) { if (e)
1072
- return t(e); u[d] = true; LOOP(); }));
1073
- }
1074
- else {
1075
- process.nextTick(LOOP);
1076
- } } function LOOP() { if (p >= e.length) {
1077
- if (r)
1078
- r[o] = e;
1079
- return t(null, e);
1080
- } c.lastIndex = p; var n = c.exec(e); v = h; h += n[0]; d = v + n[1]; p = c.lastIndex; if (u[d] || r && r[d] === d) {
1081
- return process.nextTick(LOOP);
1082
- } if (r && Object.prototype.hasOwnProperty.call(r, d)) {
1083
- return gotResolvedLink(r[d]);
1084
- } return s.lstat(d, gotStat); } function gotStat(e, n) { if (e)
1085
- return t(e); if (!n.isSymbolicLink()) {
1086
- u[d] = true;
1087
- if (r)
1088
- r[d] = d;
1089
- return process.nextTick(LOOP);
1090
- } if (!i) {
1091
- var o = n.dev.toString(32) + ":" + n.ino.toString(32);
1092
- if (a.hasOwnProperty(o)) {
1093
- return gotTarget(null, a[o], d);
1094
- }
1095
- } s.stat(d, (function (e) { if (e)
1096
- return t(e); s.readlink(d, (function (e, r) { if (!i)
1097
- a[o] = r; gotTarget(e, r); })); })); } function gotTarget(e, i, s) { if (e)
1098
- return t(e); var o = n.resolve(v, i); if (r)
1099
- r[s] = o; gotResolvedLink(o); } function gotResolvedLink(r) { e = n.resolve(r, e.slice(p)); start(); } }; }, 1191: (e, r, t) => {
1100
- "use strict";
1101
- const { PassThrough: n } = t(2781);
1102
- e.exports = e => { e = Object.assign({}, e); const { array: r } = e; let { encoding: t } = e; const i = t === "buffer"; let s = false; if (r) {
1103
- s = !(t || i);
1104
- }
1105
- else {
1106
- t = t || "utf8";
1107
- } if (i) {
1108
- t = null;
1109
- } let o = 0; const a = []; const c = new n({ objectMode: s }); if (t) {
1110
- c.setEncoding(t);
1111
- } c.on("data", (e => { a.push(e); if (s) {
1112
- o = a.length;
1113
- }
1114
- else {
1115
- o += e.length;
1116
- } })); c.getBufferedValue = () => { if (r) {
1117
- return a;
1118
- } return i ? Buffer.concat(a, o) : a.join(""); }; c.getBufferedLength = () => o; return c; };
1119
- }, 152: (e, r, t) => {
1120
- "use strict";
1121
- const n = t(1410);
1122
- const i = t(1191);
1123
- class MaxBufferError extends Error {
1124
- constructor() { super("maxBuffer exceeded"); this.name = "MaxBufferError"; }
1125
- }
1126
- function getStream(e, r) { if (!e) {
1127
- return Promise.reject(new Error("Expected a stream"));
1128
- } r = Object.assign({ maxBuffer: Infinity }, r); const { maxBuffer: t } = r; let s; return new Promise(((o, a) => { const rejectPromise = e => { if (e) {
1129
- e.bufferedData = s.getBufferedValue();
1130
- } a(e); }; s = n(e, i(r), (e => { if (e) {
1131
- rejectPromise(e);
1132
- return;
1133
- } o(); })); s.on("data", (() => { if (s.getBufferedLength() > t) {
1134
- rejectPromise(new MaxBufferError);
1135
- } })); })).then((() => s.getBufferedValue())); }
1136
- e.exports = getStream;
1137
- e.exports.buffer = (e, r) => getStream(e, Object.assign({}, r, { encoding: "buffer" }));
1138
- e.exports.array = (e, r) => getStream(e, Object.assign({}, r, { array: true }));
1139
- e.exports.MaxBufferError = MaxBufferError;
1140
- }, 20: (e, r, t) => { r.setopts = setopts; r.ownProp = ownProp; r.makeAbs = makeAbs; r.finish = finish; r.mark = mark; r.isIgnored = isIgnored; r.childrenIgnored = childrenIgnored; function ownProp(e, r) { return Object.prototype.hasOwnProperty.call(e, r); } var n = t(7147); var i = t(1017); var s = t(6930); var o = t(4257); var a = s.Minimatch; function alphasort(e, r) { return e.localeCompare(r, "en"); } function setupIgnores(e, r) { e.ignore = r.ignore || []; if (!Array.isArray(e.ignore))
1141
- e.ignore = [e.ignore]; if (e.ignore.length) {
1142
- e.ignore = e.ignore.map(ignoreMap);
1143
- } } function ignoreMap(e) { var r = null; if (e.slice(-3) === "/**") {
1144
- var t = e.replace(/(\/\*\*)+$/, "");
1145
- r = new a(t, { dot: true });
1146
- } return { matcher: new a(e, { dot: true }), gmatcher: r }; } function setopts(e, r, t) { if (!t)
1147
- t = {}; if (t.matchBase && -1 === r.indexOf("/")) {
1148
- if (t.noglobstar) {
1149
- throw new Error("base matching requires globstar");
1150
- }
1151
- r = "**/" + r;
1152
- } e.silent = !!t.silent; e.pattern = r; e.strict = t.strict !== false; e.realpath = !!t.realpath; e.realpathCache = t.realpathCache || Object.create(null); e.follow = !!t.follow; e.dot = !!t.dot; e.mark = !!t.mark; e.nodir = !!t.nodir; if (e.nodir)
1153
- e.mark = true; e.sync = !!t.sync; e.nounique = !!t.nounique; e.nonull = !!t.nonull; e.nosort = !!t.nosort; e.nocase = !!t.nocase; e.stat = !!t.stat; e.noprocess = !!t.noprocess; e.absolute = !!t.absolute; e.fs = t.fs || n; e.maxLength = t.maxLength || Infinity; e.cache = t.cache || Object.create(null); e.statCache = t.statCache || Object.create(null); e.symlinks = t.symlinks || Object.create(null); setupIgnores(e, t); e.changedCwd = false; var s = process.cwd(); if (!ownProp(t, "cwd"))
1154
- e.cwd = s;
1155
- else {
1156
- e.cwd = i.resolve(t.cwd);
1157
- e.changedCwd = e.cwd !== s;
1158
- } e.root = t.root || i.resolve(e.cwd, "/"); e.root = i.resolve(e.root); if (process.platform === "win32")
1159
- e.root = e.root.replace(/\\/g, "/"); e.cwdAbs = o(e.cwd) ? e.cwd : makeAbs(e, e.cwd); if (process.platform === "win32")
1160
- e.cwdAbs = e.cwdAbs.replace(/\\/g, "/"); e.nomount = !!t.nomount; t.nonegate = true; t.nocomment = true; e.minimatch = new a(r, t); e.options = e.minimatch.options; } function finish(e) { var r = e.nounique; var t = r ? [] : Object.create(null); for (var n = 0, i = e.matches.length; n < i; n++) {
1161
- var s = e.matches[n];
1162
- if (!s || Object.keys(s).length === 0) {
1163
- if (e.nonull) {
1164
- var o = e.minimatch.globSet[n];
1165
- if (r)
1166
- t.push(o);
1167
- else
1168
- t[o] = true;
1169
- }
1170
- }
1171
- else {
1172
- var a = Object.keys(s);
1173
- if (r)
1174
- t.push.apply(t, a);
1175
- else
1176
- a.forEach((function (e) { t[e] = true; }));
1177
- }
1178
- } if (!r)
1179
- t = Object.keys(t); if (!e.nosort)
1180
- t = t.sort(alphasort); if (e.mark) {
1181
- for (var n = 0; n < t.length; n++) {
1182
- t[n] = e._mark(t[n]);
1183
- }
1184
- if (e.nodir) {
1185
- t = t.filter((function (r) { var t = !/\/$/.test(r); var n = e.cache[r] || e.cache[makeAbs(e, r)]; if (t && n)
1186
- t = n !== "DIR" && !Array.isArray(n); return t; }));
1187
- }
1188
- } if (e.ignore.length)
1189
- t = t.filter((function (r) { return !isIgnored(e, r); })); e.found = t; } function mark(e, r) { var t = makeAbs(e, r); var n = e.cache[t]; var i = r; if (n) {
1190
- var s = n === "DIR" || Array.isArray(n);
1191
- var o = r.slice(-1) === "/";
1192
- if (s && !o)
1193
- i += "/";
1194
- else if (!s && o)
1195
- i = i.slice(0, -1);
1196
- if (i !== r) {
1197
- var a = makeAbs(e, i);
1198
- e.statCache[a] = e.statCache[t];
1199
- e.cache[a] = e.cache[t];
1200
- }
1201
- } return i; } function makeAbs(e, r) { var t = r; if (r.charAt(0) === "/") {
1202
- t = i.join(e.root, r);
1203
- }
1204
- else if (o(r) || r === "") {
1205
- t = r;
1206
- }
1207
- else if (e.changedCwd) {
1208
- t = i.resolve(e.cwd, r);
1209
- }
1210
- else {
1211
- t = i.resolve(r);
1212
- } if (process.platform === "win32")
1213
- t = t.replace(/\\/g, "/"); return t; } function isIgnored(e, r) { if (!e.ignore.length)
1214
- return false; return e.ignore.some((function (e) { return e.matcher.match(r) || !!(e.gmatcher && e.gmatcher.match(r)); })); } function childrenIgnored(e, r) { if (!e.ignore.length)
1215
- return false; return e.ignore.some((function (e) { return !!(e.gmatcher && e.gmatcher.match(r)); })); } }, 7545: (e, r, t) => { e.exports = glob; var n = t(2229); var i = t(6930); var s = i.Minimatch; var o = t(2150); var a = t(2361).EventEmitter; var c = t(1017); var l = t(9491); var u = t(4257); var p = t(28); var h = t(20); var d = h.setopts; var v = h.ownProp; var m = t(5867); var y = t(3837); var g = h.childrenIgnored; var b = h.isIgnored; var w = t(8666); function glob(e, r, t) { if (typeof r === "function")
1216
- t = r, r = {}; if (!r)
1217
- r = {}; if (r.sync) {
1218
- if (t)
1219
- throw new TypeError("callback provided to sync glob");
1220
- return p(e, r);
1221
- } return new Glob(e, r, t); } glob.sync = p; var S = glob.GlobSync = p.GlobSync; glob.glob = glob; function extend(e, r) { if (r === null || typeof r !== "object") {
1222
- return e;
1223
- } var t = Object.keys(r); var n = t.length; while (n--) {
1224
- e[t[n]] = r[t[n]];
1225
- } return e; } glob.hasMagic = function (e, r) { var t = extend({}, r); t.noprocess = true; var n = new Glob(e, t); var i = n.minimatch.set; if (!e)
1226
- return false; if (i.length > 1)
1227
- return true; for (var s = 0; s < i[0].length; s++) {
1228
- if (typeof i[0][s] !== "string")
1229
- return true;
1230
- } return false; }; glob.Glob = Glob; o(Glob, a); function Glob(e, r, t) { if (typeof r === "function") {
1231
- t = r;
1232
- r = null;
1233
- } if (r && r.sync) {
1234
- if (t)
1235
- throw new TypeError("callback provided to sync glob");
1236
- return new S(e, r);
1237
- } if (!(this instanceof Glob))
1238
- return new Glob(e, r, t); d(this, e, r); this._didRealPath = false; var n = this.minimatch.set.length; this.matches = new Array(n); if (typeof t === "function") {
1239
- t = w(t);
1240
- this.on("error", t);
1241
- this.on("end", (function (e) { t(null, e); }));
1242
- } var i = this; this._processing = 0; this._emitQueue = []; this._processQueue = []; this.paused = false; if (this.noprocess)
1243
- return this; if (n === 0)
1244
- return done(); var s = true; for (var o = 0; o < n; o++) {
1245
- this._process(this.minimatch.set[o], o, false, done);
1246
- } s = false; function done() { --i._processing; if (i._processing <= 0) {
1247
- if (s) {
1248
- process.nextTick((function () { i._finish(); }));
1249
- }
1250
- else {
1251
- i._finish();
1252
- }
1253
- } } } Glob.prototype._finish = function () { l(this instanceof Glob); if (this.aborted)
1254
- return; if (this.realpath && !this._didRealpath)
1255
- return this._realpath(); h.finish(this); this.emit("end", this.found); }; Glob.prototype._realpath = function () { if (this._didRealpath)
1256
- return; this._didRealpath = true; var e = this.matches.length; if (e === 0)
1257
- return this._finish(); var r = this; for (var t = 0; t < this.matches.length; t++)
1258
- this._realpathSet(t, next); function next() { if (--e === 0)
1259
- r._finish(); } }; Glob.prototype._realpathSet = function (e, r) { var t = this.matches[e]; if (!t)
1260
- return r(); var i = Object.keys(t); var s = this; var o = i.length; if (o === 0)
1261
- return r(); var a = this.matches[e] = Object.create(null); i.forEach((function (t, i) { t = s._makeAbs(t); n.realpath(t, s.realpathCache, (function (n, i) { if (!n)
1262
- a[i] = true;
1263
- else if (n.syscall === "stat")
1264
- a[t] = true;
1265
- else
1266
- s.emit("error", n); if (--o === 0) {
1267
- s.matches[e] = a;
1268
- r();
1269
- } })); })); }; Glob.prototype._mark = function (e) { return h.mark(this, e); }; Glob.prototype._makeAbs = function (e) { return h.makeAbs(this, e); }; Glob.prototype.abort = function () { this.aborted = true; this.emit("abort"); }; Glob.prototype.pause = function () { if (!this.paused) {
1270
- this.paused = true;
1271
- this.emit("pause");
1272
- } }; Glob.prototype.resume = function () { if (this.paused) {
1273
- this.emit("resume");
1274
- this.paused = false;
1275
- if (this._emitQueue.length) {
1276
- var e = this._emitQueue.slice(0);
1277
- this._emitQueue.length = 0;
1278
- for (var r = 0; r < e.length; r++) {
1279
- var t = e[r];
1280
- this._emitMatch(t[0], t[1]);
1281
- }
1282
- }
1283
- if (this._processQueue.length) {
1284
- var n = this._processQueue.slice(0);
1285
- this._processQueue.length = 0;
1286
- for (var r = 0; r < n.length; r++) {
1287
- var i = n[r];
1288
- this._processing--;
1289
- this._process(i[0], i[1], i[2], i[3]);
1290
- }
1291
- }
1292
- } }; Glob.prototype._process = function (e, r, t, n) { l(this instanceof Glob); l(typeof n === "function"); if (this.aborted)
1293
- return; this._processing++; if (this.paused) {
1294
- this._processQueue.push([e, r, t, n]);
1295
- return;
1296
- } var s = 0; while (typeof e[s] === "string") {
1297
- s++;
1298
- } var o; switch (s) {
1299
- case e.length:
1300
- this._processSimple(e.join("/"), r, n);
1301
- return;
1302
- case 0:
1303
- o = null;
1304
- break;
1305
- default:
1306
- o = e.slice(0, s).join("/");
1307
- break;
1308
- } var a = e.slice(s); var c; if (o === null)
1309
- c = ".";
1310
- else if (u(o) || u(e.join("/"))) {
1311
- if (!o || !u(o))
1312
- o = "/" + o;
1313
- c = o;
1314
- }
1315
- else
1316
- c = o; var p = this._makeAbs(c); if (g(this, c))
1317
- return n(); var h = a[0] === i.GLOBSTAR; if (h)
1318
- this._processGlobStar(o, c, p, a, r, t, n);
1319
- else
1320
- this._processReaddir(o, c, p, a, r, t, n); }; Glob.prototype._processReaddir = function (e, r, t, n, i, s, o) { var a = this; this._readdir(t, s, (function (c, l) { return a._processReaddir2(e, r, t, n, i, s, l, o); })); }; Glob.prototype._processReaddir2 = function (e, r, t, n, i, s, o, a) { if (!o)
1321
- return a(); var l = n[0]; var u = !!this.minimatch.negate; var p = l._glob; var h = this.dot || p.charAt(0) === "."; var d = []; for (var v = 0; v < o.length; v++) {
1322
- var m = o[v];
1323
- if (m.charAt(0) !== "." || h) {
1324
- var y;
1325
- if (u && !e) {
1326
- y = !m.match(l);
1327
- }
1328
- else {
1329
- y = m.match(l);
1330
- }
1331
- if (y)
1332
- d.push(m);
1333
- }
1334
- } var g = d.length; if (g === 0)
1335
- return a(); if (n.length === 1 && !this.mark && !this.stat) {
1336
- if (!this.matches[i])
1337
- this.matches[i] = Object.create(null);
1338
- for (var v = 0; v < g; v++) {
1339
- var m = d[v];
1340
- if (e) {
1341
- if (e !== "/")
1342
- m = e + "/" + m;
1343
- else
1344
- m = e + m;
1345
- }
1346
- if (m.charAt(0) === "/" && !this.nomount) {
1347
- m = c.join(this.root, m);
1348
- }
1349
- this._emitMatch(i, m);
1350
- }
1351
- return a();
1352
- } n.shift(); for (var v = 0; v < g; v++) {
1353
- var m = d[v];
1354
- var b;
1355
- if (e) {
1356
- if (e !== "/")
1357
- m = e + "/" + m;
1358
- else
1359
- m = e + m;
1360
- }
1361
- this._process([m].concat(n), i, s, a);
1362
- } a(); }; Glob.prototype._emitMatch = function (e, r) { if (this.aborted)
1363
- return; if (b(this, r))
1364
- return; if (this.paused) {
1365
- this._emitQueue.push([e, r]);
1366
- return;
1367
- } var t = u(r) ? r : this._makeAbs(r); if (this.mark)
1368
- r = this._mark(r); if (this.absolute)
1369
- r = t; if (this.matches[e][r])
1370
- return; if (this.nodir) {
1371
- var n = this.cache[t];
1372
- if (n === "DIR" || Array.isArray(n))
1373
- return;
1374
- } this.matches[e][r] = true; var i = this.statCache[t]; if (i)
1375
- this.emit("stat", r, i); this.emit("match", r); }; Glob.prototype._readdirInGlobStar = function (e, r) { if (this.aborted)
1376
- return; if (this.follow)
1377
- return this._readdir(e, false, r); var t = "lstat\0" + e; var n = this; var i = m(t, lstatcb_); if (i)
1378
- n.fs.lstat(e, i); function lstatcb_(t, i) { if (t && t.code === "ENOENT")
1379
- return r(); var s = i && i.isSymbolicLink(); n.symlinks[e] = s; if (!s && i && !i.isDirectory()) {
1380
- n.cache[e] = "FILE";
1381
- r();
1382
- }
1383
- else
1384
- n._readdir(e, false, r); } }; Glob.prototype._readdir = function (e, r, t) { if (this.aborted)
1385
- return; t = m("readdir\0" + e + "\0" + r, t); if (!t)
1386
- return; if (r && !v(this.symlinks, e))
1387
- return this._readdirInGlobStar(e, t); if (v(this.cache, e)) {
1388
- var n = this.cache[e];
1389
- if (!n || n === "FILE")
1390
- return t();
1391
- if (Array.isArray(n))
1392
- return t(null, n);
1393
- } var i = this; i.fs.readdir(e, readdirCb(this, e, t)); }; function readdirCb(e, r, t) { return function (n, i) { if (n)
1394
- e._readdirError(r, n, t);
1395
- else
1396
- e._readdirEntries(r, i, t); }; } Glob.prototype._readdirEntries = function (e, r, t) { if (this.aborted)
1397
- return; if (!this.mark && !this.stat) {
1398
- for (var n = 0; n < r.length; n++) {
1399
- var i = r[n];
1400
- if (e === "/")
1401
- i = e + i;
1402
- else
1403
- i = e + "/" + i;
1404
- this.cache[i] = true;
1405
- }
1406
- } this.cache[e] = r; return t(null, r); }; Glob.prototype._readdirError = function (e, r, t) { if (this.aborted)
1407
- return; switch (r.code) {
1408
- case "ENOTSUP":
1409
- case "ENOTDIR":
1410
- var n = this._makeAbs(e);
1411
- this.cache[n] = "FILE";
1412
- if (n === this.cwdAbs) {
1413
- var i = new Error(r.code + " invalid cwd " + this.cwd);
1414
- i.path = this.cwd;
1415
- i.code = r.code;
1416
- this.emit("error", i);
1417
- this.abort();
1418
- }
1419
- break;
1420
- case "ENOENT":
1421
- case "ELOOP":
1422
- case "ENAMETOOLONG":
1423
- case "UNKNOWN":
1424
- this.cache[this._makeAbs(e)] = false;
1425
- break;
1426
- default:
1427
- this.cache[this._makeAbs(e)] = false;
1428
- if (this.strict) {
1429
- this.emit("error", r);
1430
- this.abort();
1431
- }
1432
- if (!this.silent)
1433
- console.error("glob error", r);
1434
- break;
1435
- } return t(); }; Glob.prototype._processGlobStar = function (e, r, t, n, i, s, o) { var a = this; this._readdir(t, s, (function (c, l) { a._processGlobStar2(e, r, t, n, i, s, l, o); })); }; Glob.prototype._processGlobStar2 = function (e, r, t, n, i, s, o, a) { if (!o)
1436
- return a(); var c = n.slice(1); var l = e ? [e] : []; var u = l.concat(c); this._process(u, i, false, a); var p = this.symlinks[t]; var h = o.length; if (p && s)
1437
- return a(); for (var d = 0; d < h; d++) {
1438
- var v = o[d];
1439
- if (v.charAt(0) === "." && !this.dot)
1440
- continue;
1441
- var m = l.concat(o[d], c);
1442
- this._process(m, i, true, a);
1443
- var y = l.concat(o[d], n);
1444
- this._process(y, i, true, a);
1445
- } a(); }; Glob.prototype._processSimple = function (e, r, t) { var n = this; this._stat(e, (function (i, s) { n._processSimple2(e, r, i, s, t); })); }; Glob.prototype._processSimple2 = function (e, r, t, n, i) { if (!this.matches[r])
1446
- this.matches[r] = Object.create(null); if (!n)
1447
- return i(); if (e && u(e) && !this.nomount) {
1448
- var s = /[\/\\]$/.test(e);
1449
- if (e.charAt(0) === "/") {
1450
- e = c.join(this.root, e);
1451
- }
1452
- else {
1453
- e = c.resolve(this.root, e);
1454
- if (s)
1455
- e += "/";
1456
- }
1457
- } if (process.platform === "win32")
1458
- e = e.replace(/\\/g, "/"); this._emitMatch(r, e); i(); }; Glob.prototype._stat = function (e, r) { var t = this._makeAbs(e); var n = e.slice(-1) === "/"; if (e.length > this.maxLength)
1459
- return r(); if (!this.stat && v(this.cache, t)) {
1460
- var i = this.cache[t];
1461
- if (Array.isArray(i))
1462
- i = "DIR";
1463
- if (!n || i === "DIR")
1464
- return r(null, i);
1465
- if (n && i === "FILE")
1466
- return r();
1467
- } var s; var o = this.statCache[t]; if (o !== undefined) {
1468
- if (o === false)
1469
- return r(null, o);
1470
- else {
1471
- var a = o.isDirectory() ? "DIR" : "FILE";
1472
- if (n && a === "FILE")
1473
- return r();
1474
- else
1475
- return r(null, a, o);
1476
- }
1477
- } var c = this; var l = m("stat\0" + t, lstatcb_); if (l)
1478
- c.fs.lstat(t, l); function lstatcb_(n, i) { if (i && i.isSymbolicLink()) {
1479
- return c.fs.stat(t, (function (n, s) { if (n)
1480
- c._stat2(e, t, null, i, r);
1481
- else
1482
- c._stat2(e, t, n, s, r); }));
1483
- }
1484
- else {
1485
- c._stat2(e, t, n, i, r);
1486
- } } }; Glob.prototype._stat2 = function (e, r, t, n, i) { if (t && (t.code === "ENOENT" || t.code === "ENOTDIR")) {
1487
- this.statCache[r] = false;
1488
- return i();
1489
- } var s = e.slice(-1) === "/"; this.statCache[r] = n; if (r.slice(-1) === "/" && n && !n.isDirectory())
1490
- return i(null, false, n); var o = true; if (n)
1491
- o = n.isDirectory() ? "DIR" : "FILE"; this.cache[r] = this.cache[r] || o; if (s && o === "FILE")
1492
- return i(); return i(null, o, n); }; }, 28: (e, r, t) => { e.exports = globSync; globSync.GlobSync = GlobSync; var n = t(2229); var i = t(6930); var s = i.Minimatch; var o = t(7545).Glob; var a = t(3837); var c = t(1017); var l = t(9491); var u = t(4257); var p = t(20); var h = p.setopts; var d = p.ownProp; var v = p.childrenIgnored; var m = p.isIgnored; function globSync(e, r) { if (typeof r === "function" || arguments.length === 3)
1493
- throw new TypeError("callback provided to sync glob\n" + "See: https://github.com/isaacs/node-glob/issues/167"); return new GlobSync(e, r).found; } function GlobSync(e, r) { if (!e)
1494
- throw new Error("must provide pattern"); if (typeof r === "function" || arguments.length === 3)
1495
- throw new TypeError("callback provided to sync glob\n" + "See: https://github.com/isaacs/node-glob/issues/167"); if (!(this instanceof GlobSync))
1496
- return new GlobSync(e, r); h(this, e, r); if (this.noprocess)
1497
- return this; var t = this.minimatch.set.length; this.matches = new Array(t); for (var n = 0; n < t; n++) {
1498
- this._process(this.minimatch.set[n], n, false);
1499
- } this._finish(); } GlobSync.prototype._finish = function () { l(this instanceof GlobSync); if (this.realpath) {
1500
- var e = this;
1501
- this.matches.forEach((function (r, t) { var i = e.matches[t] = Object.create(null); for (var s in r) {
1502
- try {
1503
- s = e._makeAbs(s);
1504
- var o = n.realpathSync(s, e.realpathCache);
1505
- i[o] = true;
1506
- }
1507
- catch (r) {
1508
- if (r.syscall === "stat")
1509
- i[e._makeAbs(s)] = true;
1510
- else
1511
- throw r;
1512
- }
1513
- } }));
1514
- } p.finish(this); }; GlobSync.prototype._process = function (e, r, t) { l(this instanceof GlobSync); var n = 0; while (typeof e[n] === "string") {
1515
- n++;
1516
- } var s; switch (n) {
1517
- case e.length:
1518
- this._processSimple(e.join("/"), r);
1519
- return;
1520
- case 0:
1521
- s = null;
1522
- break;
1523
- default:
1524
- s = e.slice(0, n).join("/");
1525
- break;
1526
- } var o = e.slice(n); var a; if (s === null)
1527
- a = ".";
1528
- else if (u(s) || u(e.join("/"))) {
1529
- if (!s || !u(s))
1530
- s = "/" + s;
1531
- a = s;
1532
- }
1533
- else
1534
- a = s; var c = this._makeAbs(a); if (v(this, a))
1535
- return; var p = o[0] === i.GLOBSTAR; if (p)
1536
- this._processGlobStar(s, a, c, o, r, t);
1537
- else
1538
- this._processReaddir(s, a, c, o, r, t); }; GlobSync.prototype._processReaddir = function (e, r, t, n, i, s) { var o = this._readdir(t, s); if (!o)
1539
- return; var a = n[0]; var l = !!this.minimatch.negate; var u = a._glob; var p = this.dot || u.charAt(0) === "."; var h = []; for (var d = 0; d < o.length; d++) {
1540
- var v = o[d];
1541
- if (v.charAt(0) !== "." || p) {
1542
- var m;
1543
- if (l && !e) {
1544
- m = !v.match(a);
1545
- }
1546
- else {
1547
- m = v.match(a);
1548
- }
1549
- if (m)
1550
- h.push(v);
1551
- }
1552
- } var y = h.length; if (y === 0)
1553
- return; if (n.length === 1 && !this.mark && !this.stat) {
1554
- if (!this.matches[i])
1555
- this.matches[i] = Object.create(null);
1556
- for (var d = 0; d < y; d++) {
1557
- var v = h[d];
1558
- if (e) {
1559
- if (e.slice(-1) !== "/")
1560
- v = e + "/" + v;
1561
- else
1562
- v = e + v;
1563
- }
1564
- if (v.charAt(0) === "/" && !this.nomount) {
1565
- v = c.join(this.root, v);
1566
- }
1567
- this._emitMatch(i, v);
1568
- }
1569
- return;
1570
- } n.shift(); for (var d = 0; d < y; d++) {
1571
- var v = h[d];
1572
- var g;
1573
- if (e)
1574
- g = [e, v];
1575
- else
1576
- g = [v];
1577
- this._process(g.concat(n), i, s);
1578
- } }; GlobSync.prototype._emitMatch = function (e, r) { if (m(this, r))
1579
- return; var t = this._makeAbs(r); if (this.mark)
1580
- r = this._mark(r); if (this.absolute) {
1581
- r = t;
1582
- } if (this.matches[e][r])
1583
- return; if (this.nodir) {
1584
- var n = this.cache[t];
1585
- if (n === "DIR" || Array.isArray(n))
1586
- return;
1587
- } this.matches[e][r] = true; if (this.stat)
1588
- this._stat(r); }; GlobSync.prototype._readdirInGlobStar = function (e) { if (this.follow)
1589
- return this._readdir(e, false); var r; var t; var n; try {
1590
- t = this.fs.lstatSync(e);
1591
- }
1592
- catch (e) {
1593
- if (e.code === "ENOENT") {
1594
- return null;
1595
- }
1596
- } var i = t && t.isSymbolicLink(); this.symlinks[e] = i; if (!i && t && !t.isDirectory())
1597
- this.cache[e] = "FILE";
1598
- else
1599
- r = this._readdir(e, false); return r; }; GlobSync.prototype._readdir = function (e, r) { var t; if (r && !d(this.symlinks, e))
1600
- return this._readdirInGlobStar(e); if (d(this.cache, e)) {
1601
- var n = this.cache[e];
1602
- if (!n || n === "FILE")
1603
- return null;
1604
- if (Array.isArray(n))
1605
- return n;
1606
- } try {
1607
- return this._readdirEntries(e, this.fs.readdirSync(e));
1608
- }
1609
- catch (r) {
1610
- this._readdirError(e, r);
1611
- return null;
1612
- } }; GlobSync.prototype._readdirEntries = function (e, r) { if (!this.mark && !this.stat) {
1613
- for (var t = 0; t < r.length; t++) {
1614
- var n = r[t];
1615
- if (e === "/")
1616
- n = e + n;
1617
- else
1618
- n = e + "/" + n;
1619
- this.cache[n] = true;
1620
- }
1621
- } this.cache[e] = r; return r; }; GlobSync.prototype._readdirError = function (e, r) { switch (r.code) {
1622
- case "ENOTSUP":
1623
- case "ENOTDIR":
1624
- var t = this._makeAbs(e);
1625
- this.cache[t] = "FILE";
1626
- if (t === this.cwdAbs) {
1627
- var n = new Error(r.code + " invalid cwd " + this.cwd);
1628
- n.path = this.cwd;
1629
- n.code = r.code;
1630
- throw n;
1631
- }
1632
- break;
1633
- case "ENOENT":
1634
- case "ELOOP":
1635
- case "ENAMETOOLONG":
1636
- case "UNKNOWN":
1637
- this.cache[this._makeAbs(e)] = false;
1638
- break;
1639
- default:
1640
- this.cache[this._makeAbs(e)] = false;
1641
- if (this.strict)
1642
- throw r;
1643
- if (!this.silent)
1644
- console.error("glob error", r);
1645
- break;
1646
- } }; GlobSync.prototype._processGlobStar = function (e, r, t, n, i, s) { var o = this._readdir(t, s); if (!o)
1647
- return; var a = n.slice(1); var c = e ? [e] : []; var l = c.concat(a); this._process(l, i, false); var u = o.length; var p = this.symlinks[t]; if (p && s)
1648
- return; for (var h = 0; h < u; h++) {
1649
- var d = o[h];
1650
- if (d.charAt(0) === "." && !this.dot)
1651
- continue;
1652
- var v = c.concat(o[h], a);
1653
- this._process(v, i, true);
1654
- var m = c.concat(o[h], n);
1655
- this._process(m, i, true);
1656
- } }; GlobSync.prototype._processSimple = function (e, r) { var t = this._stat(e); if (!this.matches[r])
1657
- this.matches[r] = Object.create(null); if (!t)
1658
- return; if (e && u(e) && !this.nomount) {
1659
- var n = /[\/\\]$/.test(e);
1660
- if (e.charAt(0) === "/") {
1661
- e = c.join(this.root, e);
1662
- }
1663
- else {
1664
- e = c.resolve(this.root, e);
1665
- if (n)
1666
- e += "/";
1667
- }
1668
- } if (process.platform === "win32")
1669
- e = e.replace(/\\/g, "/"); this._emitMatch(r, e); }; GlobSync.prototype._stat = function (e) { var r = this._makeAbs(e); var t = e.slice(-1) === "/"; if (e.length > this.maxLength)
1670
- return false; if (!this.stat && d(this.cache, r)) {
1671
- var n = this.cache[r];
1672
- if (Array.isArray(n))
1673
- n = "DIR";
1674
- if (!t || n === "DIR")
1675
- return n;
1676
- if (t && n === "FILE")
1677
- return false;
1678
- } var i; var s = this.statCache[r]; if (!s) {
1679
- var o;
1680
- try {
1681
- o = this.fs.lstatSync(r);
1682
- }
1683
- catch (e) {
1684
- if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) {
1685
- this.statCache[r] = false;
1686
- return false;
1687
- }
1688
- }
1689
- if (o && o.isSymbolicLink()) {
1690
- try {
1691
- s = this.fs.statSync(r);
1692
- }
1693
- catch (e) {
1694
- s = o;
1695
- }
1696
- }
1697
- else {
1698
- s = o;
1699
- }
1700
- } this.statCache[r] = s; var n = true; if (s)
1701
- n = s.isDirectory() ? "DIR" : "FILE"; this.cache[r] = this.cache[r] || n; if (t && n === "FILE")
1702
- return false; return n; }; GlobSync.prototype._mark = function (e) { return p.mark(this, e); }; GlobSync.prototype._makeAbs = function (e) { return p.makeAbs(this, e); }; }, 5867: (e, r, t) => { var n = t(9002); var i = Object.create(null); var s = t(8666); e.exports = n(inflight); function inflight(e, r) { if (i[e]) {
1703
- i[e].push(r);
1704
- return null;
1705
- }
1706
- else {
1707
- i[e] = [r];
1708
- return makeres(e);
1709
- } } function makeres(e) { return s((function RES() { var r = i[e]; var t = r.length; var n = slice(arguments); try {
1710
- for (var s = 0; s < t; s++) {
1711
- r[s].apply(null, n);
1712
- }
1713
- }
1714
- finally {
1715
- if (r.length > t) {
1716
- r.splice(0, t);
1717
- process.nextTick((function () { RES.apply(null, n); }));
1718
- }
1719
- else {
1720
- delete i[e];
1721
- }
1722
- } })); } function slice(e) { var r = e.length; var t = []; for (var n = 0; n < r; n++)
1723
- t[n] = e[n]; return t; } }, 2150: (e, r, t) => { try {
1724
- var n = t(3837);
1725
- if (typeof n.inherits !== "function")
1726
- throw "";
1727
- e.exports = n.inherits;
1728
- }
1729
- catch (r) {
1730
- e.exports = t(8531);
1731
- } }, 8531: e => { if (typeof Object.create === "function") {
1732
- e.exports = function inherits(e, r) { if (r) {
1733
- e.super_ = r;
1734
- e.prototype = Object.create(r.prototype, { constructor: { value: e, enumerable: false, writable: true, configurable: true } });
1735
- } };
1736
- }
1737
- else {
1738
- e.exports = function inherits(e, r) { if (r) {
1739
- e.super_ = r;
1740
- var TempCtor = function () { };
1741
- TempCtor.prototype = r.prototype;
1742
- e.prototype = new TempCtor;
1743
- e.prototype.constructor = e;
1744
- } };
1745
- } }, 6425: e => {
1746
- "use strict";
1747
- var r = e.exports = function (e) { return e !== null && typeof e === "object" && typeof e.pipe === "function"; };
1748
- r.writable = function (e) { return r(e) && e.writable !== false && typeof e._write === "function" && typeof e._writableState === "object"; };
1749
- r.readable = function (e) { return r(e) && e.readable !== false && typeof e._read === "function" && typeof e._readableState === "object"; };
1750
- r.duplex = function (e) { return r.writable(e) && r.readable(e); };
1751
- r.transform = function (e) { return r.duplex(e) && typeof e._transform === "function" && typeof e._transformState === "object"; };
1752
- }, 8068: (e, r, t) => { var n = t(7147); var i; if (process.platform === "win32" || global.TESTING_WINDOWS) {
1753
- i = t(2665);
1754
- }
1755
- else {
1756
- i = t(2093);
1757
- } e.exports = isexe; isexe.sync = sync; function isexe(e, r, t) { if (typeof r === "function") {
1758
- t = r;
1759
- r = {};
1760
- } if (!t) {
1761
- if (typeof Promise !== "function") {
1762
- throw new TypeError("callback not provided");
1763
- }
1764
- return new Promise((function (t, n) { isexe(e, r || {}, (function (e, r) { if (e) {
1765
- n(e);
1766
- }
1767
- else {
1768
- t(r);
1769
- } })); }));
1770
- } i(e, r || {}, (function (e, n) { if (e) {
1771
- if (e.code === "EACCES" || r && r.ignoreErrors) {
1772
- e = null;
1773
- n = false;
1774
- }
1775
- } t(e, n); })); } function sync(e, r) { try {
1776
- return i.sync(e, r || {});
1777
- }
1778
- catch (e) {
1779
- if (r && r.ignoreErrors || e.code === "EACCES") {
1780
- return false;
1781
- }
1782
- else {
1783
- throw e;
1784
- }
1785
- } } }, 2093: (e, r, t) => { e.exports = isexe; isexe.sync = sync; var n = t(7147); function isexe(e, r, t) { n.stat(e, (function (e, n) { t(e, e ? false : checkStat(n, r)); })); } function sync(e, r) { return checkStat(n.statSync(e), r); } function checkStat(e, r) { return e.isFile() && checkMode(e, r); } function checkMode(e, r) { var t = e.mode; var n = e.uid; var i = e.gid; var s = r.uid !== undefined ? r.uid : process.getuid && process.getuid(); var o = r.gid !== undefined ? r.gid : process.getgid && process.getgid(); var a = parseInt("100", 8); var c = parseInt("010", 8); var l = parseInt("001", 8); var u = a | c; var p = t & l || t & c && i === o || t & a && n === s || t & u && s === 0; return p; } }, 2665: (e, r, t) => { e.exports = isexe; isexe.sync = sync; var n = t(7147); function checkPathExt(e, r) { var t = r.pathExt !== undefined ? r.pathExt : process.env.PATHEXT; if (!t) {
1786
- return true;
1787
- } t = t.split(";"); if (t.indexOf("") !== -1) {
1788
- return true;
1789
- } for (var n = 0; n < t.length; n++) {
1790
- var i = t[n].toLowerCase();
1791
- if (i && e.substr(-i.length).toLowerCase() === i) {
1792
- return true;
1793
- }
1794
- } return false; } function checkStat(e, r, t) { if (!e.isSymbolicLink() && !e.isFile()) {
1795
- return false;
1796
- } return checkPathExt(r, t); } function isexe(e, r, t) { n.stat(e, (function (n, i) { t(n, n ? false : checkStat(i, e, r)); })); } function sync(e, r) { return checkStat(n.statSync(e), e, r); } }, 6930: (e, r, t) => { e.exports = minimatch; minimatch.Minimatch = Minimatch; var n = { sep: "/" }; try {
1797
- n = t(1017);
1798
- }
1799
- catch (e) { } var i = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var s = t(1190); var o = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } }; var a = "[^/]"; var c = a + "*?"; var l = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; var u = "(?:(?!(?:\\/|^)\\.).)*?"; var p = charSet("().*{}+?[]^$\\!"); function charSet(e) { return e.split("").reduce((function (e, r) { e[r] = true; return e; }), {}); } var h = /\/+/; minimatch.filter = filter; function filter(e, r) { r = r || {}; return function (t, n, i) { return minimatch(t, e, r); }; } function ext(e, r) { e = e || {}; r = r || {}; var t = {}; Object.keys(r).forEach((function (e) { t[e] = r[e]; })); Object.keys(e).forEach((function (r) { t[r] = e[r]; })); return t; } minimatch.defaults = function (e) { if (!e || !Object.keys(e).length)
1800
- return minimatch; var r = minimatch; var t = function minimatch(t, n, i) { return r.minimatch(t, n, ext(e, i)); }; t.Minimatch = function Minimatch(t, n) { return new r.Minimatch(t, ext(e, n)); }; return t; }; Minimatch.defaults = function (e) { if (!e || !Object.keys(e).length)
1801
- return Minimatch; return minimatch.defaults(e).Minimatch; }; function minimatch(e, r, t) { if (typeof r !== "string") {
1802
- throw new TypeError("glob pattern string required");
1803
- } if (!t)
1804
- t = {}; if (!t.nocomment && r.charAt(0) === "#") {
1805
- return false;
1806
- } if (r.trim() === "")
1807
- return e === ""; return new Minimatch(r, t).match(e); } function Minimatch(e, r) { if (!(this instanceof Minimatch)) {
1808
- return new Minimatch(e, r);
1809
- } if (typeof e !== "string") {
1810
- throw new TypeError("glob pattern string required");
1811
- } if (!r)
1812
- r = {}; e = e.trim(); if (n.sep !== "/") {
1813
- e = e.split(n.sep).join("/");
1814
- } this.options = r; this.set = []; this.pattern = e; this.regexp = null; this.negate = false; this.comment = false; this.empty = false; this.make(); } Minimatch.prototype.debug = function () { }; Minimatch.prototype.make = make; function make() { if (this._made)
1815
- return; var e = this.pattern; var r = this.options; if (!r.nocomment && e.charAt(0) === "#") {
1816
- this.comment = true;
1817
- return;
1818
- } if (!e) {
1819
- this.empty = true;
1820
- return;
1821
- } this.parseNegate(); var t = this.globSet = this.braceExpand(); if (r.debug)
1822
- this.debug = console.error; this.debug(this.pattern, t); t = this.globParts = t.map((function (e) { return e.split(h); })); this.debug(this.pattern, t); t = t.map((function (e, r, t) { return e.map(this.parse, this); }), this); this.debug(this.pattern, t); t = t.filter((function (e) { return e.indexOf(false) === -1; })); this.debug(this.pattern, t); this.set = t; } Minimatch.prototype.parseNegate = parseNegate; function parseNegate() { var e = this.pattern; var r = false; var t = this.options; var n = 0; if (t.nonegate)
1823
- return; for (var i = 0, s = e.length; i < s && e.charAt(i) === "!"; i++) {
1824
- r = !r;
1825
- n++;
1826
- } if (n)
1827
- this.pattern = e.substr(n); this.negate = r; } minimatch.braceExpand = function (e, r) { return braceExpand(e, r); }; Minimatch.prototype.braceExpand = braceExpand; function braceExpand(e, r) { if (!r) {
1828
- if (this instanceof Minimatch) {
1829
- r = this.options;
1830
- }
1831
- else {
1832
- r = {};
1833
- }
1834
- } e = typeof e === "undefined" ? this.pattern : e; if (typeof e === "undefined") {
1835
- throw new TypeError("undefined pattern");
1836
- } if (r.nobrace || !e.match(/\{.*\}/)) {
1837
- return [e];
1838
- } return s(e); } Minimatch.prototype.parse = parse; var d = {}; function parse(e, r) { if (e.length > 1024 * 64) {
1839
- throw new TypeError("pattern is too long");
1840
- } var t = this.options; if (!t.noglobstar && e === "**")
1841
- return i; if (e === "")
1842
- return ""; var n = ""; var s = !!t.nocase; var l = false; var u = []; var h = []; var v; var m = false; var y = -1; var g = -1; var b = e.charAt(0) === "." ? "" : t.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; var w = this; function clearStateChar() { if (v) {
1843
- switch (v) {
1844
- case "*":
1845
- n += c;
1846
- s = true;
1847
- break;
1848
- case "?":
1849
- n += a;
1850
- s = true;
1851
- break;
1852
- default:
1853
- n += "\\" + v;
1854
- break;
1855
- }
1856
- w.debug("clearStateChar %j %j", v, n);
1857
- v = false;
1858
- } } for (var S = 0, x = e.length, _; S < x && (_ = e.charAt(S)); S++) {
1859
- this.debug("%s\t%s %s %j", e, S, n, _);
1860
- if (l && p[_]) {
1861
- n += "\\" + _;
1862
- l = false;
1863
- continue;
1864
- }
1865
- switch (_) {
1866
- case "/": return false;
1867
- case "\\":
1868
- clearStateChar();
1869
- l = true;
1870
- continue;
1871
- case "?":
1872
- case "*":
1873
- case "+":
1874
- case "@":
1875
- case "!":
1876
- this.debug("%s\t%s %s %j <-- stateChar", e, S, n, _);
1877
- if (m) {
1878
- this.debug(" in class");
1879
- if (_ === "!" && S === g + 1)
1880
- _ = "^";
1881
- n += _;
1882
- continue;
1883
- }
1884
- w.debug("call clearStateChar %j", v);
1885
- clearStateChar();
1886
- v = _;
1887
- if (t.noext)
1888
- clearStateChar();
1889
- continue;
1890
- case "(":
1891
- if (m) {
1892
- n += "(";
1893
- continue;
1894
- }
1895
- if (!v) {
1896
- n += "\\(";
1897
- continue;
1898
- }
1899
- u.push({ type: v, start: S - 1, reStart: n.length, open: o[v].open, close: o[v].close });
1900
- n += v === "!" ? "(?:(?!(?:" : "(?:";
1901
- this.debug("plType %j %j", v, n);
1902
- v = false;
1903
- continue;
1904
- case ")":
1905
- if (m || !u.length) {
1906
- n += "\\)";
1907
- continue;
1908
- }
1909
- clearStateChar();
1910
- s = true;
1911
- var k = u.pop();
1912
- n += k.close;
1913
- if (k.type === "!") {
1914
- h.push(k);
1915
- }
1916
- k.reEnd = n.length;
1917
- continue;
1918
- case "|":
1919
- if (m || !u.length || l) {
1920
- n += "\\|";
1921
- l = false;
1922
- continue;
1923
- }
1924
- clearStateChar();
1925
- n += "|";
1926
- continue;
1927
- case "[":
1928
- clearStateChar();
1929
- if (m) {
1930
- n += "\\" + _;
1931
- continue;
1932
- }
1933
- m = true;
1934
- g = S;
1935
- y = n.length;
1936
- n += _;
1937
- continue;
1938
- case "]":
1939
- if (S === g + 1 || !m) {
1940
- n += "\\" + _;
1941
- l = false;
1942
- continue;
1943
- }
1944
- if (m) {
1945
- var O = e.substring(g + 1, S);
1946
- try {
1947
- RegExp("[" + O + "]");
1948
- }
1949
- catch (e) {
1950
- var j = this.parse(O, d);
1951
- n = n.substr(0, y) + "\\[" + j[0] + "\\]";
1952
- s = s || j[1];
1953
- m = false;
1954
- continue;
1955
- }
1956
- }
1957
- s = true;
1958
- m = false;
1959
- n += _;
1960
- continue;
1961
- default:
1962
- clearStateChar();
1963
- if (l) {
1964
- l = false;
1965
- }
1966
- else if (p[_] && !(_ === "^" && m)) {
1967
- n += "\\";
1968
- }
1969
- n += _;
1970
- }
1971
- } if (m) {
1972
- O = e.substr(g + 1);
1973
- j = this.parse(O, d);
1974
- n = n.substr(0, y) + "\\[" + j[0];
1975
- s = s || j[1];
1976
- } for (k = u.pop(); k; k = u.pop()) {
1977
- var C = n.slice(k.reStart + k.open.length);
1978
- this.debug("setting tail", n, k);
1979
- C = C.replace(/((?:\\{2}){0,64})(\\?)\|/g, (function (e, r, t) { if (!t) {
1980
- t = "\\";
1981
- } return r + r + t + "|"; }));
1982
- this.debug("tail=%j\n %s", C, C, k, n);
1983
- var R = k.type === "*" ? c : k.type === "?" ? a : "\\" + k.type;
1984
- s = true;
1985
- n = n.slice(0, k.reStart) + R + "\\(" + C;
1986
- } clearStateChar(); if (l) {
1987
- n += "\\\\";
1988
- } var L = false; switch (n.charAt(0)) {
1989
- case ".":
1990
- case "[":
1991
- case "(": L = true;
1992
- } for (var I = h.length - 1; I > -1; I--) {
1993
- var A = h[I];
1994
- var P = n.slice(0, A.reStart);
1995
- var T = n.slice(A.reStart, A.reEnd - 8);
1996
- var N = n.slice(A.reEnd - 8, A.reEnd);
1997
- var D = n.slice(A.reEnd);
1998
- N += D;
1999
- var G = P.split("(").length - 1;
2000
- var M = D;
2001
- for (S = 0; S < G; S++) {
2002
- M = M.replace(/\)[+*?]?/, "");
2003
- }
2004
- D = M;
2005
- var $ = "";
2006
- if (D === "" && r !== d) {
2007
- $ = "$";
2008
- }
2009
- var V = P + T + D + $ + N;
2010
- n = V;
2011
- } if (n !== "" && s) {
2012
- n = "(?=.)" + n;
2013
- } if (L) {
2014
- n = b + n;
2015
- } if (r === d) {
2016
- return [n, s];
2017
- } if (!s) {
2018
- return globUnescape(e);
2019
- } var q = t.nocase ? "i" : ""; try {
2020
- var B = new RegExp("^" + n + "$", q);
2021
- }
2022
- catch (e) {
2023
- return new RegExp("$.");
2024
- } B._glob = e; B._src = n; return B; } minimatch.makeRe = function (e, r) { return new Minimatch(e, r || {}).makeRe(); }; Minimatch.prototype.makeRe = makeRe; function makeRe() { if (this.regexp || this.regexp === false)
2025
- return this.regexp; var e = this.set; if (!e.length) {
2026
- this.regexp = false;
2027
- return this.regexp;
2028
- } var r = this.options; var t = r.noglobstar ? c : r.dot ? l : u; var n = r.nocase ? "i" : ""; var s = e.map((function (e) { return e.map((function (e) { return e === i ? t : typeof e === "string" ? regExpEscape(e) : e._src; })).join("\\/"); })).join("|"); s = "^(?:" + s + ")$"; if (this.negate)
2029
- s = "^(?!" + s + ").*$"; try {
2030
- this.regexp = new RegExp(s, n);
2031
- }
2032
- catch (e) {
2033
- this.regexp = false;
2034
- } return this.regexp; } minimatch.match = function (e, r, t) { t = t || {}; var n = new Minimatch(r, t); e = e.filter((function (e) { return n.match(e); })); if (n.options.nonull && !e.length) {
2035
- e.push(r);
2036
- } return e; }; Minimatch.prototype.match = match; function match(e, r) { this.debug("match", e, this.pattern); if (this.comment)
2037
- return false; if (this.empty)
2038
- return e === ""; if (e === "/" && r)
2039
- return true; var t = this.options; if (n.sep !== "/") {
2040
- e = e.split(n.sep).join("/");
2041
- } e = e.split(h); this.debug(this.pattern, "split", e); var i = this.set; this.debug(this.pattern, "set", i); var s; var o; for (o = e.length - 1; o >= 0; o--) {
2042
- s = e[o];
2043
- if (s)
2044
- break;
2045
- } for (o = 0; o < i.length; o++) {
2046
- var a = i[o];
2047
- var c = e;
2048
- if (t.matchBase && a.length === 1) {
2049
- c = [s];
2050
- }
2051
- var l = this.matchOne(c, a, r);
2052
- if (l) {
2053
- if (t.flipNegate)
2054
- return true;
2055
- return !this.negate;
2056
- }
2057
- } if (t.flipNegate)
2058
- return false; return this.negate; } Minimatch.prototype.matchOne = function (e, r, t) { var n = this.options; this.debug("matchOne", { this: this, file: e, pattern: r }); this.debug("matchOne", e.length, r.length); for (var s = 0, o = 0, a = e.length, c = r.length; s < a && o < c; s++, o++) {
2059
- this.debug("matchOne loop");
2060
- var l = r[o];
2061
- var u = e[s];
2062
- this.debug(r, l, u);
2063
- if (l === false)
2064
- return false;
2065
- if (l === i) {
2066
- this.debug("GLOBSTAR", [r, l, u]);
2067
- var p = s;
2068
- var h = o + 1;
2069
- if (h === c) {
2070
- this.debug("** at the end");
2071
- for (; s < a; s++) {
2072
- if (e[s] === "." || e[s] === ".." || !n.dot && e[s].charAt(0) === ".")
2073
- return false;
2074
- }
2075
- return true;
2076
- }
2077
- while (p < a) {
2078
- var d = e[p];
2079
- this.debug("\nglobstar while", e, p, r, h, d);
2080
- if (this.matchOne(e.slice(p), r.slice(h), t)) {
2081
- this.debug("globstar found match!", p, a, d);
2082
- return true;
2083
- }
2084
- else {
2085
- if (d === "." || d === ".." || !n.dot && d.charAt(0) === ".") {
2086
- this.debug("dot detected!", e, p, r, h);
2087
- break;
2088
- }
2089
- this.debug("globstar swallow a segment, and continue");
2090
- p++;
2091
- }
2092
- }
2093
- if (t) {
2094
- this.debug("\n>>> no match, partial?", e, p, r, h);
2095
- if (p === a)
2096
- return true;
2097
- }
2098
- return false;
2099
- }
2100
- var v;
2101
- if (typeof l === "string") {
2102
- if (n.nocase) {
2103
- v = u.toLowerCase() === l.toLowerCase();
2104
- }
2105
- else {
2106
- v = u === l;
2107
- }
2108
- this.debug("string match", l, u, v);
2109
- }
2110
- else {
2111
- v = u.match(l);
2112
- this.debug("pattern match", l, u, v);
2113
- }
2114
- if (!v)
2115
- return false;
2116
- } if (s === a && o === c) {
2117
- return true;
2118
- }
2119
- else if (s === a) {
2120
- return t;
2121
- }
2122
- else if (o === c) {
2123
- var m = s === a - 1 && e[s] === "";
2124
- return m;
2125
- } throw new Error("wtf?"); }; function globUnescape(e) { return e.replace(/\\(.)/g, "$1"); } function regExpEscape(e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); } }, 5526: e => {
2126
- "use strict";
2127
- e.exports = function (e) { try {
2128
- return e();
2129
- }
2130
- catch (e) { } };
2131
- }, 1513: (e, r, t) => {
2132
- "use strict";
2133
- const n = t(1017);
2134
- const i = t(5200);
2135
- e.exports = e => { e = Object.assign({ cwd: process.cwd(), path: process.env[i()] }, e); let r; let t = n.resolve(e.cwd); const s = []; while (r !== t) {
2136
- s.push(n.join(t, "node_modules/.bin"));
2137
- r = t;
2138
- t = n.resolve(t, "..");
2139
- } s.push(n.dirname(process.execPath)); return s.concat(e.path).join(n.delimiter); };
2140
- e.exports.env = r => { r = Object.assign({ env: process.env }, r); const t = Object.assign({}, r.env); const n = i({ env: t }); r.path = t[n]; t[n] = e.exports(r); return t; };
2141
- }, 8666: (e, r, t) => { var n = t(9002); e.exports = n(once); e.exports.strict = n(onceStrict); once.proto = once((function () { Object.defineProperty(Function.prototype, "once", { value: function () { return once(this); }, configurable: true }); Object.defineProperty(Function.prototype, "onceStrict", { value: function () { return onceStrict(this); }, configurable: true }); })); function once(e) { var f = function () { if (f.called)
2142
- return f.value; f.called = true; return f.value = e.apply(this, arguments); }; f.called = false; return f; } function onceStrict(e) { var f = function () { if (f.called)
2143
- throw new Error(f.onceError); f.called = true; return f.value = e.apply(this, arguments); }; var r = e.name || "Function wrapped with `once`"; f.onceError = r + " shouldn't be called more than once"; f.called = false; return f; } }, 732: e => {
2144
- "use strict";
2145
- e.exports = (e, r) => { r = r || (() => { }); return e.then((e => new Promise((e => { e(r()); })).then((() => e))), (e => new Promise((e => { e(r()); })).then((() => { throw e; })))); };
2146
- }, 4257: e => {
2147
- "use strict";
2148
- function posix(e) { return e.charAt(0) === "/"; }
2149
- function win32(e) { var r = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; var t = r.exec(e); var n = t[1] || ""; var i = Boolean(n && n.charAt(1) !== ":"); return Boolean(t[2] || i); }
2150
- e.exports = process.platform === "win32" ? win32 : posix;
2151
- e.exports.posix = posix;
2152
- e.exports.win32 = win32;
2153
- }, 5200: e => {
2154
- "use strict";
2155
- e.exports = e => { e = e || {}; const r = e.env || process.env; const t = e.platform || process.platform; if (t !== "win32") {
2156
- return "PATH";
2157
- } return Object.keys(r).find((e => e.toUpperCase() === "PATH")) || "Path"; };
2158
- }, 1410: (e, r, t) => { var n = t(8666); var i = t(7242); var s = t(7147); var noop = function () { }; var o = /^v?\.0/.test(process.version); var isFn = function (e) { return typeof e === "function"; }; var isFS = function (e) { if (!o)
2159
- return false; if (!s)
2160
- return false; return (e instanceof (s.ReadStream || noop) || e instanceof (s.WriteStream || noop)) && isFn(e.close); }; var isRequest = function (e) { return e.setHeader && isFn(e.abort); }; var destroyer = function (e, r, t, s) { s = n(s); var o = false; e.on("close", (function () { o = true; })); i(e, { readable: r, writable: t }, (function (e) { if (e)
2161
- return s(e); o = true; s(); })); var a = false; return function (r) { if (o)
2162
- return; if (a)
2163
- return; a = true; if (isFS(e))
2164
- return e.close(noop); if (isRequest(e))
2165
- return e.abort(); if (isFn(e.destroy))
2166
- return e.destroy(); s(r || new Error("stream was destroyed")); }; }; var call = function (e) { e(); }; var pipe = function (e, r) { return e.pipe(r); }; var pump = function () { var e = Array.prototype.slice.call(arguments); var r = isFn(e[e.length - 1] || noop) && e.pop() || noop; if (Array.isArray(e[0]))
2167
- e = e[0]; if (e.length < 2)
2168
- throw new Error("pump requires two streams per minimum"); var t; var n = e.map((function (i, s) { var o = s < e.length - 1; var a = s > 0; return destroyer(i, o, a, (function (e) { if (!t)
2169
- t = e; if (e)
2170
- n.forEach(call); if (o)
2171
- return; n.forEach(call); r(t); })); })); return e.reduce(pipe); }; e.exports = pump; }, 8701: (e, r, t) => {
2172
- "use strict";
2173
- var n = t(9440);
2174
- e.exports = function (e) { var r = e.match(n); if (!r) {
2175
- return null;
2176
- } var t = r[0].replace(/#! ?/, "").split(" "); var i = t[0].split("/").pop(); var s = t[1]; return i === "env" ? s : i + (s ? " " + s : ""); };
2177
- }, 9440: e => {
2178
- "use strict";
2179
- e.exports = /^#!.*/;
2180
- }, 3056: (e, r, t) => { var n = global.process; const processOk = function (e) { return e && typeof e === "object" && typeof e.removeListener === "function" && typeof e.emit === "function" && typeof e.reallyExit === "function" && typeof e.listeners === "function" && typeof e.kill === "function" && typeof e.pid === "number" && typeof e.on === "function"; }; if (!processOk(n)) {
2181
- e.exports = function () { };
2182
- }
2183
- else {
2184
- var i = t(9491);
2185
- var s = t(3791);
2186
- var o = /^win/i.test(n.platform);
2187
- var a = t(2361);
2188
- if (typeof a !== "function") {
2189
- a = a.EventEmitter;
2190
- }
2191
- var c;
2192
- if (n.__signal_exit_emitter__) {
2193
- c = n.__signal_exit_emitter__;
2194
- }
2195
- else {
2196
- c = n.__signal_exit_emitter__ = new a;
2197
- c.count = 0;
2198
- c.emitted = {};
2199
- }
2200
- if (!c.infinite) {
2201
- c.setMaxListeners(Infinity);
2202
- c.infinite = true;
2203
- }
2204
- e.exports = function (e, r) { if (!processOk(global.process)) {
2205
- return;
2206
- } i.equal(typeof e, "function", "a callback must be provided for exit handler"); if (h === false) {
2207
- d();
2208
- } var t = "exit"; if (r && r.alwaysLast) {
2209
- t = "afterexit";
2210
- } var remove = function () { c.removeListener(t, e); if (c.listeners("exit").length === 0 && c.listeners("afterexit").length === 0) {
2211
- l();
2212
- } }; c.on(t, e); return remove; };
2213
- var l = function unload() { if (!h || !processOk(global.process)) {
2214
- return;
2215
- } h = false; s.forEach((function (e) { try {
2216
- n.removeListener(e, p[e]);
2217
- }
2218
- catch (e) { } })); n.emit = y; n.reallyExit = v; c.count -= 1; };
2219
- e.exports.unload = l;
2220
- var u = function emit(e, r, t) { if (c.emitted[e]) {
2221
- return;
2222
- } c.emitted[e] = true; c.emit(e, r, t); };
2223
- var p = {};
2224
- s.forEach((function (e) { p[e] = function listener() { if (!processOk(global.process)) {
2225
- return;
2226
- } var r = n.listeners(e); if (r.length === c.count) {
2227
- l();
2228
- u("exit", null, e);
2229
- u("afterexit", null, e);
2230
- if (o && e === "SIGHUP") {
2231
- e = "SIGINT";
2232
- }
2233
- n.kill(n.pid, e);
2234
- } }; }));
2235
- e.exports.signals = function () { return s; };
2236
- var h = false;
2237
- var d = function load() { if (h || !processOk(global.process)) {
2238
- return;
2239
- } h = true; c.count += 1; s = s.filter((function (e) { try {
2240
- n.on(e, p[e]);
2241
- return true;
2242
- }
2243
- catch (e) {
2244
- return false;
2245
- } })); n.emit = g; n.reallyExit = m; };
2246
- e.exports.load = d;
2247
- var v = n.reallyExit;
2248
- var m = function processReallyExit(e) { if (!processOk(global.process)) {
2249
- return;
2250
- } n.exitCode = e || 0; u("exit", n.exitCode, null); u("afterexit", n.exitCode, null); v.call(n, n.exitCode); };
2251
- var y = n.emit;
2252
- var g = function processEmit(e, r) { if (e === "exit" && processOk(global.process)) {
2253
- if (r !== undefined) {
2254
- n.exitCode = r;
2255
- }
2256
- var t = y.apply(this, arguments);
2257
- u("exit", n.exitCode, null);
2258
- u("afterexit", n.exitCode, null);
2259
- return t;
2260
- }
2261
- else {
2262
- return y.apply(this, arguments);
2263
- } };
2264
- } }, 3791: e => { e.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"]; if (process.platform !== "win32") {
2265
- e.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
2266
- } if (process.platform === "linux") {
2267
- e.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
2268
- } }, 8226: e => {
2269
- "use strict";
2270
- e.exports = function (e) { var r = typeof e === "string" ? "\n" : "\n".charCodeAt(); var t = typeof e === "string" ? "\r" : "\r".charCodeAt(); if (e[e.length - 1] === r) {
2271
- e = e.slice(0, e.length - 1);
2272
- } if (e[e.length - 1] === t) {
2273
- e = e.slice(0, e.length - 1);
2274
- } return e; };
2275
- }, 6446: (e, r, t) => { e.exports = which; which.sync = whichSync; var n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; var i = t(1017); var s = n ? ";" : ":"; var o = t(8068); function getNotFoundError(e) { var r = new Error("not found: " + e); r.code = "ENOENT"; return r; } function getPathInfo(e, r) { var t = r.colon || s; var i = r.path || process.env.PATH || ""; var o = [""]; i = i.split(t); var a = ""; if (n) {
2276
- i.unshift(process.cwd());
2277
- a = r.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM";
2278
- o = a.split(t);
2279
- if (e.indexOf(".") !== -1 && o[0] !== "")
2280
- o.unshift("");
2281
- } if (e.match(/\//) || n && e.match(/\\/))
2282
- i = [""]; return { env: i, ext: o, extExe: a }; } function which(e, r, t) { if (typeof r === "function") {
2283
- t = r;
2284
- r = {};
2285
- } var n = getPathInfo(e, r); var s = n.env; var a = n.ext; var c = n.extExe; var l = []; (function F(n, u) { if (n === u) {
2286
- if (r.all && l.length)
2287
- return t(null, l);
2288
- else
2289
- return t(getNotFoundError(e));
2290
- } var p = s[n]; if (p.charAt(0) === '"' && p.slice(-1) === '"')
2291
- p = p.slice(1, -1); var h = i.join(p, e); if (!p && /^\.[\\\/]/.test(e)) {
2292
- h = e.slice(0, 2) + h;
2293
- } (function E(e, i) { if (e === i)
2294
- return F(n + 1, u); var s = a[e]; o(h + s, { pathExt: c }, (function (n, o) { if (!n && o) {
2295
- if (r.all)
2296
- l.push(h + s);
2297
- else
2298
- return t(null, h + s);
2299
- } return E(e + 1, i); })); })(0, a.length); })(0, s.length); } function whichSync(e, r) { r = r || {}; var t = getPathInfo(e, r); var n = t.env; var s = t.ext; var a = t.extExe; var c = []; for (var l = 0, u = n.length; l < u; l++) {
2300
- var p = n[l];
2301
- if (p.charAt(0) === '"' && p.slice(-1) === '"')
2302
- p = p.slice(1, -1);
2303
- var h = i.join(p, e);
2304
- if (!p && /^\.[\\\/]/.test(e)) {
2305
- h = e.slice(0, 2) + h;
2306
- }
2307
- for (var d = 0, v = s.length; d < v; d++) {
2308
- var m = h + s[d];
2309
- var y;
2310
- try {
2311
- y = o.sync(m, { pathExt: a });
2312
- if (y) {
2313
- if (r.all)
2314
- c.push(m);
2315
- else
2316
- return m;
2317
- }
2318
- }
2319
- catch (e) { }
2320
- }
2321
- } if (r.all && c.length)
2322
- return c; if (r.nothrow)
2323
- return null; throw getNotFoundError(e); } }, 9002: e => { e.exports = wrappy; function wrappy(e, r) { if (e && r)
2324
- return wrappy(e)(r); if (typeof e !== "function")
2325
- throw new TypeError("need wrapper function"); Object.keys(e).forEach((function (r) { wrapper[r] = e[r]; })); return wrapper; function wrapper() { var r = new Array(arguments.length); for (var t = 0; t < r.length; t++) {
2326
- r[t] = arguments[t];
2327
- } var n = e.apply(this, r); var i = r[r.length - 1]; if (typeof n === "function" && n !== i) {
2328
- Object.keys(i).forEach((function (e) { n[e] = i[e]; }));
2329
- } return n; } } }, 1914: (e, r, t) => { function __ncc_wildcard$0(e) { if (e === "cat.js" || e === "cat")
2330
- return t(1665);
2331
- else if (e === "cd.js" || e === "cd")
2332
- return t(5113);
2333
- else if (e === "chmod.js" || e === "chmod")
2334
- return t(9547);
2335
- else if (e === "cmd.js" || e === "cmd")
2336
- return t(7583);
2337
- else if (e === "common.js" || e === "common")
2338
- return t(4963);
2339
- else if (e === "cp.js" || e === "cp")
2340
- return t(7480);
2341
- else if (e === "dirs.js" || e === "dirs")
2342
- return t(4252);
2343
- else if (e === "echo.js" || e === "echo")
2344
- return t(7647);
2345
- else if (e === "error.js" || e === "error")
2346
- return t(717);
2347
- else if (e === "exec-child.js" || e === "exec-child")
2348
- return t(7964);
2349
- else if (e === "exec.js" || e === "exec")
2350
- return t(9866);
2351
- else if (e === "find.js" || e === "find")
2352
- return t(2716);
2353
- else if (e === "grep.js" || e === "grep")
2354
- return t(2743);
2355
- else if (e === "head.js" || e === "head")
2356
- return t(2264);
2357
- else if (e === "ln.js" || e === "ln")
2358
- return t(8976);
2359
- else if (e === "ls.js" || e === "ls")
2360
- return t(3014);
2361
- else if (e === "mkdir.js" || e === "mkdir")
2362
- return t(1343);
2363
- else if (e === "mv.js" || e === "mv")
2364
- return t(3599);
2365
- else if (e === "popd.js" || e === "popd")
2366
- return t(6551);
2367
- else if (e === "pushd.js" || e === "pushd")
2368
- return t(8243);
2369
- else if (e === "pwd.js" || e === "pwd")
2370
- return t(4480);
2371
- else if (e === "rm.js" || e === "rm")
2372
- return t(8994);
2373
- else if (e === "sed.js" || e === "sed")
2374
- return t(8710);
2375
- else if (e === "set.js" || e === "set")
2376
- return t(9058);
2377
- else if (e === "sort.js" || e === "sort")
2378
- return t(989);
2379
- else if (e === "tail.js" || e === "tail")
2380
- return t(4811);
2381
- else if (e === "tempdir.js" || e === "tempdir")
2382
- return t(1076);
2383
- else if (e === "test.js" || e === "test")
2384
- return t(7428);
2385
- else if (e === "to.js" || e === "to")
2386
- return t(4812);
2387
- else if (e === "toEnd.js" || e === "toEnd")
2388
- return t(269);
2389
- else if (e === "touch.js" || e === "touch")
2390
- return t(490);
2391
- else if (e === "uniq.js" || e === "uniq")
2392
- return t(185);
2393
- else if (e === "which.js" || e === "which")
2394
- return t(8947); } var n = t(4963); t(6099).forEach((function (e) { __ncc_wildcard$0(e); })); r.exit = process.exit; r.error = t(717); r.ShellString = n.ShellString; r.env = process.env; r.config = n.config; }, 1665: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("cat", _cat, { canReceivePipe: true, cmdOptions: { n: "number" } }); function _cat(e, r) { var t = n.readFromPipe(); if (!r && !t)
2395
- n.error("no paths given"); r = [].slice.call(arguments, 1); r.forEach((function (e) { if (!i.existsSync(e)) {
2396
- n.error("no such file or directory: " + e);
2397
- }
2398
- else if (n.statFollowLinks(e).isDirectory()) {
2399
- n.error(e + ": Is a directory");
2400
- } t += i.readFileSync(e, "utf8"); })); if (e.number) {
2401
- t = addNumbers(t);
2402
- } return t; } e.exports = _cat; function addNumbers(e) { var r = e.split("\n"); var t = r.pop(); r = r.map((function (e, r) { return numberedLine(r + 1, e); })); if (t.length) {
2403
- t = numberedLine(r.length + 1, t);
2404
- } r.push(t); return r.join("\n"); } function numberedLine(e, r) { var t = (" " + e).slice(-6) + "\t"; return t + r; } }, 5113: (e, r, t) => { var n = t(2037); var i = t(4963); i.register("cd", _cd, {}); function _cd(e, r) { if (!r)
2405
- r = n.homedir(); if (r === "-") {
2406
- if (!process.env.OLDPWD) {
2407
- i.error("could not find previous directory");
2408
- }
2409
- else {
2410
- r = process.env.OLDPWD;
2411
- }
2412
- } try {
2413
- var t = process.cwd();
2414
- process.chdir(r);
2415
- process.env.OLDPWD = t;
2416
- }
2417
- catch (e) {
2418
- var s;
2419
- try {
2420
- i.statFollowLinks(r);
2421
- s = "not a directory: " + r;
2422
- }
2423
- catch (e) {
2424
- s = "no such file or directory: " + r;
2425
- }
2426
- if (s)
2427
- i.error(s);
2428
- } return ""; } e.exports = _cd; }, 9547: (e, r, t) => { var n = t(4963); var i = t(7147); var s = t(1017); var o = function (e) { return { OTHER_EXEC: e.EXEC, OTHER_WRITE: e.WRITE, OTHER_READ: e.READ, GROUP_EXEC: e.EXEC << 3, GROUP_WRITE: e.WRITE << 3, GROUP_READ: e.READ << 3, OWNER_EXEC: e.EXEC << 6, OWNER_WRITE: e.WRITE << 6, OWNER_READ: e.READ << 6, STICKY: parseInt("01000", 8), SETGID: parseInt("02000", 8), SETUID: parseInt("04000", 8), TYPE_MASK: parseInt("0770000", 8) }; }({ EXEC: 1, WRITE: 2, READ: 4 }); n.register("chmod", _chmod, {}); function _chmod(e, r, t) { if (!t) {
2429
- if (e.length > 0 && e.charAt(0) === "-") {
2430
- [].unshift.call(arguments, "");
2431
- }
2432
- else {
2433
- n.error("You must specify a file.");
2434
- }
2435
- } e = n.parseOptions(e, { R: "recursive", c: "changes", v: "verbose" }); t = [].slice.call(arguments, 2); var a; if (e.recursive) {
2436
- a = [];
2437
- t.forEach((function addFile(e) { var r = n.statNoFollowLinks(e); if (!r.isSymbolicLink()) {
2438
- a.push(e);
2439
- if (r.isDirectory()) {
2440
- i.readdirSync(e).forEach((function (r) { addFile(e + "/" + r); }));
2441
- }
2442
- } }));
2443
- }
2444
- else {
2445
- a = t;
2446
- } a.forEach((function innerChmod(t) { t = s.resolve(t); if (!i.existsSync(t)) {
2447
- n.error("File not found: " + t);
2448
- } if (e.recursive && n.statNoFollowLinks(t).isSymbolicLink()) {
2449
- return;
2450
- } var a = n.statFollowLinks(t); var c = a.isDirectory(); var l = a.mode; var u = l & o.TYPE_MASK; var p = l; if (Number.isNaN(parseInt(r, 8))) {
2451
- r.split(",").forEach((function (r) { var s = /([ugoa]*)([=+-])([rwxXst]*)/i; var a = s.exec(r); if (a) {
2452
- var h = a[1];
2453
- var d = a[2];
2454
- var v = a[3];
2455
- var m = h.indexOf("u") !== -1 || h === "a" || h === "";
2456
- var y = h.indexOf("g") !== -1 || h === "a" || h === "";
2457
- var g = h.indexOf("o") !== -1 || h === "a" || h === "";
2458
- var b = v.indexOf("r") !== -1;
2459
- var w = v.indexOf("w") !== -1;
2460
- var S = v.indexOf("x") !== -1;
2461
- var x = v.indexOf("X") !== -1;
2462
- var _ = v.indexOf("t") !== -1;
2463
- var k = v.indexOf("s") !== -1;
2464
- if (x && c) {
2465
- S = true;
2466
- }
2467
- var O = 0;
2468
- if (m) {
2469
- O |= (b ? o.OWNER_READ : 0) + (w ? o.OWNER_WRITE : 0) + (S ? o.OWNER_EXEC : 0) + (k ? o.SETUID : 0);
2470
- }
2471
- if (y) {
2472
- O |= (b ? o.GROUP_READ : 0) + (w ? o.GROUP_WRITE : 0) + (S ? o.GROUP_EXEC : 0) + (k ? o.SETGID : 0);
2473
- }
2474
- if (g) {
2475
- O |= (b ? o.OTHER_READ : 0) + (w ? o.OTHER_WRITE : 0) + (S ? o.OTHER_EXEC : 0);
2476
- }
2477
- if (_) {
2478
- O |= o.STICKY;
2479
- }
2480
- switch (d) {
2481
- case "+":
2482
- p |= O;
2483
- break;
2484
- case "-":
2485
- p &= ~O;
2486
- break;
2487
- case "=":
2488
- p = u + O;
2489
- if (n.statFollowLinks(t).isDirectory()) {
2490
- p |= o.SETUID + o.SETGID & l;
2491
- }
2492
- break;
2493
- default: n.error("Could not recognize operator: `" + d + "`");
2494
- }
2495
- if (e.verbose) {
2496
- console.log(t + " -> " + p.toString(8));
2497
- }
2498
- if (l !== p) {
2499
- if (!e.verbose && e.changes) {
2500
- console.log(t + " -> " + p.toString(8));
2501
- }
2502
- i.chmodSync(t, p);
2503
- l = p;
2504
- }
2505
- }
2506
- else {
2507
- n.error("Invalid symbolic mode change: " + r);
2508
- } }));
2509
- }
2510
- else {
2511
- p = u + parseInt(r, 8);
2512
- if (n.statFollowLinks(t).isDirectory()) {
2513
- p |= o.SETUID + o.SETGID & l;
2514
- }
2515
- i.chmodSync(t, p);
2516
- } })); return ""; } e.exports = _chmod; }, 7583: (e, r, t) => { var n = t(4963); var i = t(1910); var s = 20 * 1024 * 1024; var o = 127; n.register("cmd", _cmd, { cmdOptions: null, globStart: 1, canReceivePipe: true, wrapOutput: true }); function commandNotFound(e) { if (process.platform === "win32") {
2517
- var r = "is not recognized as an internal or external command";
2518
- return e.code && e.stderr.includes(r);
2519
- }
2520
- else {
2521
- return e.code && e.stdout === null && e.stderr === null;
2522
- } } function _cmd(e, r, t, a) { if (!r) {
2523
- n.error("Must specify a non-empty string as a command");
2524
- } t = [].slice.call(arguments, 2); if (t.length === 0) {
2525
- a = {};
2526
- }
2527
- else {
2528
- var c = t.pop();
2529
- if (n.isObject(c)) {
2530
- a = c;
2531
- }
2532
- else {
2533
- a = {};
2534
- t.push(c);
2535
- }
2536
- } var l = n.readFromPipe(); var u = { maxBuffer: s, stripEof: false, reject: false }; var p = { input: l, shell: false }; var h = Object.assign(u, a, p); var d = i.sync(r, t, h); var v; var m; var y; if (commandNotFound(d)) {
2537
- v = "";
2538
- m = "'" + r + "': command not found";
2539
- y = o;
2540
- }
2541
- else {
2542
- v = d.stdout.toString();
2543
- m = d.stderr.toString();
2544
- y = d.code;
2545
- } if (y)
2546
- n.error(m, y, { silent: true, continue: true }); return new n.ShellString(v, m, y); } e.exports = _cmd; }, 4963: (e, r, t) => {
2547
- "use strict";
2548
- var n = t(2037);
2549
- var i = t(7147);
2550
- var s = t(7545);
2551
- var o = t(1914);
2552
- var a = Object.create(o);
2553
- r.extend = Object.assign;
2554
- var c = Boolean(process.versions.electron);
2555
- var l = { fatal: false, globOptions: {}, maxdepth: 255, noglob: false, silent: false, verbose: false, execPath: null, bufLength: 64 * 1024 };
2556
- var u = { reset: function () { Object.assign(this, l); if (!c) {
2557
- this.execPath = process.execPath;
2558
- } }, resetForTesting: function () { this.reset(); this.silent = true; } };
2559
- u.reset();
2560
- r.config = u;
2561
- var p = { error: null, errorCode: 0, currentCmd: "shell.js" };
2562
- r.state = p;
2563
- delete process.env.OLDPWD;
2564
- function isObject(e) { return typeof e === "object" && e !== null; }
2565
- r.isObject = isObject;
2566
- function log() { if (!u.silent) {
2567
- console.error.apply(console, arguments);
2568
- } }
2569
- r.log = log;
2570
- function convertErrorOutput(e) { if (typeof e !== "string") {
2571
- throw new TypeError("input must be a string");
2572
- } return e.replace(/\\/g, "/"); }
2573
- r.convertErrorOutput = convertErrorOutput;
2574
- function CommandError(e) { this.returnValue = e; }
2575
- CommandError.prototype = Object.create(Error.prototype);
2576
- CommandError.prototype.constructor = CommandError;
2577
- r.CommandError = CommandError;
2578
- function error(e, r, t) { if (typeof e !== "string")
2579
- throw new Error("msg must be a string"); var n = { continue: false, code: 1, prefix: p.currentCmd + ": ", silent: false, fatal: u.fatal }; if (typeof r === "number" && isObject(t)) {
2580
- t.code = r;
2581
- }
2582
- else if (isObject(r)) {
2583
- t = r;
2584
- }
2585
- else if (typeof r === "number") {
2586
- t = { code: r };
2587
- }
2588
- else if (typeof r !== "number") {
2589
- t = {};
2590
- } t = Object.assign({}, n, t); if (!p.errorCode)
2591
- p.errorCode = t.code; var i = convertErrorOutput(t.prefix + e); p.error = p.error ? p.error + "\n" : ""; p.error += i; if (t.fatal)
2592
- throw new Error(i); if (e.length > 0 && !t.silent)
2593
- log(i); if (!t.continue) {
2594
- throw new CommandError(new ShellString("", p.error, p.errorCode));
2595
- } }
2596
- r.error = error;
2597
- function ShellString(e, r, t) { var n; if (e instanceof Array) {
2598
- n = e;
2599
- n.stdout = e.join("\n");
2600
- if (e.length > 0)
2601
- n.stdout += "\n";
2602
- }
2603
- else {
2604
- n = new String(e);
2605
- n.stdout = e;
2606
- } n.stderr = r; n.code = t; v.forEach((function (e) { n[e] = a[e].bind(n); })); return n; }
2607
- r.ShellString = ShellString;
2608
- function parseOptions(e, r, t) { t = t || {}; if (typeof e !== "string" && !isObject(e)) {
2609
- throw new TypeError("options must be strings or key-value pairs");
2610
- }
2611
- else if (!isObject(r)) {
2612
- throw new TypeError("parseOptions() internal error: map must be an object");
2613
- }
2614
- else if (!isObject(t)) {
2615
- throw new TypeError("parseOptions() internal error: errorOptions must be object");
2616
- } if (e === "--") {
2617
- return {};
2618
- } var n = {}; Object.keys(r).forEach((function (e) { var t = r[e]; if (t[0] !== "!") {
2619
- n[t] = false;
2620
- } })); if (e === "")
2621
- return n; if (typeof e === "string") {
2622
- if (e[0] !== "-") {
2623
- throw new Error("Options string must start with a '-'");
2624
- }
2625
- var i = e.slice(1).split("");
2626
- i.forEach((function (e) { if (e in r) {
2627
- var i = r[e];
2628
- if (i[0] === "!") {
2629
- n[i.slice(1)] = false;
2630
- }
2631
- else {
2632
- n[i] = true;
2633
- }
2634
- }
2635
- else {
2636
- error("option not recognized: " + e, t);
2637
- } }));
2638
- }
2639
- else {
2640
- Object.keys(e).forEach((function (i) { if (i[0] === "-") {
2641
- var s = i[1];
2642
- if (s in r) {
2643
- var o = r[s];
2644
- n[o] = e[i];
2645
- }
2646
- else {
2647
- error("option not recognized: " + s, t);
2648
- }
2649
- }
2650
- else if (i in n) {
2651
- n[i] = e[i];
2652
- }
2653
- else {
2654
- error("option not recognized: {" + i + ":...}", t);
2655
- } }));
2656
- } return n; }
2657
- r.parseOptions = parseOptions;
2658
- function expand(e) { if (!Array.isArray(e)) {
2659
- throw new TypeError("must be an array");
2660
- } var r = []; e.forEach((function (e) { if (typeof e !== "string") {
2661
- r.push(e);
2662
- }
2663
- else {
2664
- var t;
2665
- try {
2666
- t = s.sync(e, u.globOptions);
2667
- t = t.length > 0 ? t : [e];
2668
- }
2669
- catch (r) {
2670
- t = [e];
2671
- }
2672
- r = r.concat(t);
2673
- } })); return r; }
2674
- r.expand = expand;
2675
- var h = typeof Buffer.alloc === "function" ? function (e) { return Buffer.alloc(e || u.bufLength); } : function (e) { return new Buffer(e || u.bufLength); };
2676
- r.buffer = h;
2677
- function unlinkSync(e) { try {
2678
- i.unlinkSync(e);
2679
- }
2680
- catch (r) {
2681
- if (r.code === "EPERM") {
2682
- i.chmodSync(e, "0666");
2683
- i.unlinkSync(e);
2684
- }
2685
- else {
2686
- throw r;
2687
- }
2688
- } }
2689
- r.unlinkSync = unlinkSync;
2690
- function statFollowLinks() { return i.statSync.apply(i, arguments); }
2691
- r.statFollowLinks = statFollowLinks;
2692
- function statNoFollowLinks() { return i.lstatSync.apply(i, arguments); }
2693
- r.statNoFollowLinks = statNoFollowLinks;
2694
- function randomFileName() { function randomHash(e) { if (e === 1) {
2695
- return parseInt(16 * Math.random(), 10).toString(16);
2696
- } var r = ""; for (var t = 0; t < e; t++) {
2697
- r += randomHash(1);
2698
- } return r; } return "shelljs_" + randomHash(20); }
2699
- r.randomFileName = randomFileName;
2700
- function wrap(e, r, t) { t = t || {}; return function () { var i = null; p.currentCmd = e; p.error = null; p.errorCode = 0; try {
2701
- var s = [].slice.call(arguments, 0);
2702
- if (u.verbose) {
2703
- console.error.apply(console, [e].concat(s));
2704
- }
2705
- p.pipedValue = this && typeof this.stdout === "string" ? this.stdout : "";
2706
- if (t.unix === false) {
2707
- i = r.apply(this, s);
2708
- }
2709
- else {
2710
- if (isObject(s[0]) && s[0].constructor.name === "Object") { }
2711
- else if (s.length === 0 || typeof s[0] !== "string" || s[0].length <= 1 || s[0][0] !== "-") {
2712
- s.unshift("");
2713
- }
2714
- s = s.reduce((function (e, r) { if (Array.isArray(r)) {
2715
- return e.concat(r);
2716
- } e.push(r); return e; }), []);
2717
- s = s.map((function (e) { if (isObject(e) && e.constructor.name === "String") {
2718
- return e.toString();
2719
- } return e; }));
2720
- var o = n.homedir();
2721
- s = s.map((function (e) { if (typeof e === "string" && e.slice(0, 2) === "~/" || e === "~") {
2722
- return e.replace(/^~/, o);
2723
- } return e; }));
2724
- if (!u.noglob && t.allowGlobbing === true) {
2725
- s = s.slice(0, t.globStart).concat(expand(s.slice(t.globStart)));
2726
- }
2727
- try {
2728
- if (isObject(t.cmdOptions)) {
2729
- s[0] = parseOptions(s[0], t.cmdOptions);
2730
- }
2731
- i = r.apply(this, s);
2732
- }
2733
- catch (e) {
2734
- if (e instanceof CommandError) {
2735
- i = e.returnValue;
2736
- }
2737
- else {
2738
- throw e;
2739
- }
2740
- }
2741
- }
2742
- }
2743
- catch (e) {
2744
- if (!p.error) {
2745
- e.name = "ShellJSInternalError";
2746
- throw e;
2747
- }
2748
- if (u.fatal || t.handlesFatalDynamically)
2749
- throw e;
2750
- } if (t.wrapOutput && (typeof i === "string" || Array.isArray(i))) {
2751
- i = new ShellString(i, p.error, p.errorCode);
2752
- } p.currentCmd = "shell.js"; return i; }; }
2753
- r.wrap = wrap;
2754
- function _readFromPipe() { return p.pipedValue; }
2755
- r.readFromPipe = _readFromPipe;
2756
- var d = { allowGlobbing: true, canReceivePipe: false, cmdOptions: null, globStart: 1, handlesFatalDynamically: false, pipeOnly: false, wrapOutput: true, unix: true };
2757
- var v = [];
2758
- function _register(e, r, t) { t = t || {}; Object.keys(t).forEach((function (e) { if (!d.hasOwnProperty(e)) {
2759
- throw new Error("Unknown option '" + e + "'");
2760
- } if (typeof t[e] !== typeof d[e]) {
2761
- throw new TypeError("Unsupported type '" + typeof t[e] + "' for option '" + e + "'");
2762
- } })); t = Object.assign({}, d, t); if (o.hasOwnProperty(e)) {
2763
- throw new Error("Command `" + e + "` already exists");
2764
- } if (t.pipeOnly) {
2765
- t.canReceivePipe = true;
2766
- a[e] = wrap(e, r, t);
2767
- }
2768
- else {
2769
- o[e] = wrap(e, r, t);
2770
- } if (t.canReceivePipe) {
2771
- v.push(e);
2772
- } }
2773
- r.register = _register;
2774
- }, 7480: (e, r, t) => { var n = t(7147); var i = t(1017); var s = t(4963); s.register("cp", _cp, { cmdOptions: { f: "!no_force", n: "no_force", u: "update", R: "recursive", r: "recursive", L: "followsymlink", P: "noFollowsymlink" }, wrapOutput: false }); function copyFileSync(e, r, t) { if (!n.existsSync(e)) {
2775
- s.error("copyFileSync: no such file or directory: " + e);
2776
- } var i = process.platform === "win32"; try {
2777
- if (t.update && s.statFollowLinks(e).mtime < n.statSync(r).mtime) {
2778
- return;
2779
- }
2780
- }
2781
- catch (e) { } if (s.statNoFollowLinks(e).isSymbolicLink() && !t.followsymlink) {
2782
- try {
2783
- s.statNoFollowLinks(r);
2784
- s.unlinkSync(r);
2785
- }
2786
- catch (e) { }
2787
- var o = n.readlinkSync(e);
2788
- n.symlinkSync(o, r, i ? "junction" : null);
2789
- }
2790
- else {
2791
- var a = s.buffer();
2792
- var c = a.length;
2793
- var l = c;
2794
- var u = 0;
2795
- var p = null;
2796
- var h = null;
2797
- try {
2798
- p = n.openSync(e, "r");
2799
- }
2800
- catch (r) {
2801
- s.error("copyFileSync: could not read src file (" + e + ")");
2802
- }
2803
- try {
2804
- h = n.openSync(r, "w");
2805
- }
2806
- catch (e) {
2807
- s.error("copyFileSync: could not write to dest file (code=" + e.code + "):" + r);
2808
- }
2809
- while (l === c) {
2810
- l = n.readSync(p, a, 0, c, u);
2811
- n.writeSync(h, a, 0, l);
2812
- u += l;
2813
- }
2814
- n.closeSync(p);
2815
- n.closeSync(h);
2816
- n.chmodSync(r, s.statFollowLinks(e).mode);
2817
- } } function cpdirSyncRecursive(e, r, t, i) { if (!i)
2818
- i = {}; if (t >= s.config.maxdepth)
2819
- return; t++; var o = process.platform === "win32"; try {
2820
- n.mkdirSync(r);
2821
- }
2822
- catch (e) {
2823
- if (e.code !== "EEXIST")
2824
- throw e;
2825
- } var a = n.readdirSync(e); for (var c = 0; c < a.length; c++) {
2826
- var l = e + "/" + a[c];
2827
- var u = r + "/" + a[c];
2828
- var p = s.statNoFollowLinks(l);
2829
- var h;
2830
- if (i.followsymlink) {
2831
- if (cpcheckcycle(e, l)) {
2832
- console.error("Cycle link found.");
2833
- h = n.readlinkSync(l);
2834
- n.symlinkSync(h, u, o ? "junction" : null);
2835
- continue;
2836
- }
2837
- }
2838
- if (p.isDirectory()) {
2839
- cpdirSyncRecursive(l, u, t, i);
2840
- }
2841
- else if (p.isSymbolicLink() && !i.followsymlink) {
2842
- h = n.readlinkSync(l);
2843
- try {
2844
- s.statNoFollowLinks(u);
2845
- s.unlinkSync(u);
2846
- }
2847
- catch (e) { }
2848
- n.symlinkSync(h, u, o ? "junction" : null);
2849
- }
2850
- else if (p.isSymbolicLink() && i.followsymlink) {
2851
- p = s.statFollowLinks(l);
2852
- if (p.isDirectory()) {
2853
- cpdirSyncRecursive(l, u, t, i);
2854
- }
2855
- else {
2856
- copyFileSync(l, u, i);
2857
- }
2858
- }
2859
- else if (n.existsSync(u) && i.no_force) {
2860
- s.log("skipping existing file: " + a[c]);
2861
- }
2862
- else {
2863
- copyFileSync(l, u, i);
2864
- }
2865
- } var d = s.statFollowLinks(e); n.chmodSync(r, d.mode); } function checkRecentCreated(e, r) { var t = e[r]; return e.slice(0, r).some((function (e) { return i.basename(e) === i.basename(t); })); } function cpcheckcycle(e, r) { var t = s.statNoFollowLinks(r); if (t.isSymbolicLink()) {
2866
- var i = s.statFollowLinks(r);
2867
- if (i.isDirectory()) {
2868
- var o = n.realpathSync(e);
2869
- var a = n.realpathSync(r);
2870
- var c = new RegExp(a);
2871
- if (c.test(o)) {
2872
- return true;
2873
- }
2874
- }
2875
- } return false; } function _cp(e, r, t) { if (e.followsymlink) {
2876
- e.noFollowsymlink = false;
2877
- } if (!e.recursive && !e.noFollowsymlink) {
2878
- e.followsymlink = true;
2879
- } if (arguments.length < 3) {
2880
- s.error("missing <source> and/or <dest>");
2881
- }
2882
- else {
2883
- r = [].slice.call(arguments, 1, arguments.length - 1);
2884
- t = arguments[arguments.length - 1];
2885
- } var o = n.existsSync(t); var a = o && s.statFollowLinks(t); if ((!o || !a.isDirectory()) && r.length > 1) {
2886
- s.error("dest is not a directory (too many sources)");
2887
- } if (o && a.isFile() && e.no_force) {
2888
- return new s.ShellString("", "", 0);
2889
- } r.forEach((function (o, c) { if (!n.existsSync(o)) {
2890
- if (o === "")
2891
- o = "''";
2892
- s.error("no such file or directory: " + o, { continue: true });
2893
- return;
2894
- } var l = s.statFollowLinks(o); if (!e.noFollowsymlink && l.isDirectory()) {
2895
- if (!e.recursive) {
2896
- s.error("omitting directory '" + o + "'", { continue: true });
2897
- }
2898
- else {
2899
- var u = a && a.isDirectory() ? i.join(t, i.basename(o)) : t;
2900
- try {
2901
- s.statFollowLinks(i.dirname(t));
2902
- cpdirSyncRecursive(o, u, 0, { no_force: e.no_force, followsymlink: e.followsymlink, update: e.update });
2903
- }
2904
- catch (e) {
2905
- s.error("cannot create directory '" + t + "': No such file or directory");
2906
- }
2907
- }
2908
- }
2909
- else {
2910
- var p = t;
2911
- if (a && a.isDirectory()) {
2912
- p = i.normalize(t + "/" + i.basename(o));
2913
- }
2914
- var h = n.existsSync(p);
2915
- if (h && checkRecentCreated(r, c)) {
2916
- if (!e.no_force) {
2917
- s.error("will not overwrite just-created '" + p + "' with '" + o + "'", { continue: true });
2918
- }
2919
- return;
2920
- }
2921
- if (h && e.no_force) {
2922
- return;
2923
- }
2924
- if (i.relative(o, p) === "") {
2925
- s.error("'" + p + "' and '" + o + "' are the same file", { continue: true });
2926
- return;
2927
- }
2928
- copyFileSync(o, p, e);
2929
- } })); return new s.ShellString("", s.state.error, s.state.errorCode); } e.exports = _cp; }, 4252: (e, r, t) => { var n = t(4963); var i = t(5113); var s = t(1017); n.register("dirs", _dirs, { wrapOutput: false }); n.register("pushd", _pushd, { wrapOutput: false }); n.register("popd", _popd, { wrapOutput: false }); var o = []; function _isStackIndex(e) { return /^[-+]\d+$/.test(e); } function _parseStackIndex(e) { if (_isStackIndex(e)) {
2930
- if (Math.abs(e) < o.length + 1) {
2931
- return /^-/.test(e) ? Number(e) - 1 : Number(e);
2932
- }
2933
- n.error(e + ": directory stack index out of range");
2934
- }
2935
- else {
2936
- n.error(e + ": invalid number");
2937
- } } function _actualDirStack() { return [process.cwd()].concat(o); } function _pushd(e, r) { if (_isStackIndex(e)) {
2938
- r = e;
2939
- e = "";
2940
- } e = n.parseOptions(e, { n: "no-cd", q: "quiet" }); var t = _actualDirStack(); if (r === "+0") {
2941
- return t;
2942
- }
2943
- else if (!r) {
2944
- if (t.length > 1) {
2945
- t = t.splice(1, 1).concat(t);
2946
- }
2947
- else {
2948
- return n.error("no other directory");
2949
- }
2950
- }
2951
- else if (_isStackIndex(r)) {
2952
- var a = _parseStackIndex(r);
2953
- t = t.slice(a).concat(t.slice(0, a));
2954
- }
2955
- else if (e["no-cd"]) {
2956
- t.splice(1, 0, r);
2957
- }
2958
- else {
2959
- t.unshift(r);
2960
- } if (e["no-cd"]) {
2961
- t = t.slice(1);
2962
- }
2963
- else {
2964
- r = s.resolve(t.shift());
2965
- i("", r);
2966
- } o = t; return _dirs(e.quiet ? "-q" : ""); } r.pushd = _pushd; function _popd(e, r) { if (_isStackIndex(e)) {
2967
- r = e;
2968
- e = "";
2969
- } e = n.parseOptions(e, { n: "no-cd", q: "quiet" }); if (!o.length) {
2970
- return n.error("directory stack empty");
2971
- } r = _parseStackIndex(r || "+0"); if (e["no-cd"] || r > 0 || o.length + r === 0) {
2972
- r = r > 0 ? r - 1 : r;
2973
- o.splice(r, 1);
2974
- }
2975
- else {
2976
- var t = s.resolve(o.shift());
2977
- i("", t);
2978
- } return _dirs(e.quiet ? "-q" : ""); } r.popd = _popd; function _dirs(e, r) { if (_isStackIndex(e)) {
2979
- r = e;
2980
- e = "";
2981
- } e = n.parseOptions(e, { c: "clear", q: "quiet" }); if (e.clear) {
2982
- o = [];
2983
- return o;
2984
- } var t = _actualDirStack(); if (r) {
2985
- r = _parseStackIndex(r);
2986
- if (r < 0) {
2987
- r = t.length + r;
2988
- }
2989
- if (!e.quiet) {
2990
- n.log(t[r]);
2991
- }
2992
- return t[r];
2993
- } if (!e.quiet) {
2994
- n.log(t.join(" "));
2995
- } return t; } r.dirs = _dirs; }, 7647: (e, r, t) => { var n = t(3837).format; var i = t(4963); i.register("echo", _echo, { allowGlobbing: false }); function _echo(e) { var r = [].slice.call(arguments, e ? 0 : 1); var t = {}; try {
2996
- t = i.parseOptions(r[0], { e: "escapes", n: "no_newline" }, { silent: true });
2997
- if (r[0]) {
2998
- r.shift();
2999
- }
3000
- }
3001
- catch (e) {
3002
- i.state.error = null;
3003
- } var s = n.apply(null, r); if (!t.no_newline) {
3004
- s += "\n";
3005
- } process.stdout.write(s); return s; } e.exports = _echo; }, 717: (e, r, t) => { var n = t(4963); function error() { return n.state.error; } e.exports = error; }, 7964: (e, r, t) => { var n = t(2081); var i = t(7147); var s = process.argv[2]; var o = i.readFileSync(s, "utf8"); var a = JSON.parse(o); var c = a.command; var l = a.execOptions; var u = a.pipe; var p = a.stdoutFile; var h = a.stderrFile; function isMaxBufferError(e) { var r = /^.*\bmaxBuffer\b.*exceeded.*$/; if (e instanceof Error && e.message && e.message.match(r)) {
3006
- return true;
3007
- }
3008
- else if (e instanceof RangeError && e.message && e.message.match(r)) {
3009
- return true;
3010
- } return false; } var d = i.createWriteStream(p); var v = i.createWriteStream(h); function appendError(e, r) { v.write(e); process.exitCode = r; } var m = n.exec(c, l, (function (e) { if (!e) {
3011
- process.exitCode = 0;
3012
- }
3013
- else if (isMaxBufferError(e)) {
3014
- appendError("maxBuffer exceeded", 1);
3015
- }
3016
- else if (e.code === undefined && e.message) {
3017
- appendError(e.message, 1);
3018
- }
3019
- else if (e.code === undefined) {
3020
- appendError("Unknown issue", 1);
3021
- }
3022
- else {
3023
- process.exitCode = e.code;
3024
- } })); m.stdout.pipe(d); m.stderr.pipe(v); m.stdout.pipe(process.stdout); m.stderr.pipe(process.stderr); if (u) {
3025
- m.stdin.end(u);
3026
- } }, 9866: (e, r, t) => { var n = t(4963); var i = t(1076).tempDir; var s = t(4480); var o = t(1017); var a = t(7147); var c = t(2081); var l = t(2037); var u = 20 * 1024 * 1024; var p = 1; n.register("exec", _exec, { unix: false, canReceivePipe: true, wrapOutput: false, handlesFatalDynamically: true }); function execSync(e, r, t) { if (!n.config.execPath) {
3027
- try {
3028
- n.error("Unable to find a path to the node binary. Please manually set config.execPath");
3029
- }
3030
- catch (e) {
3031
- if (r.fatal) {
3032
- throw e;
3033
- }
3034
- return;
3035
- }
3036
- } var h = i(); var d = o.join(h, n.randomFileName()); var v = o.join(h, n.randomFileName()); var m = o.join(h, n.randomFileName()); r = n.extend({ silent: n.config.silent, fatal: n.config.fatal, cwd: s().toString(), env: process.env, maxBuffer: u, encoding: "utf8" }, r); if (a.existsSync(d))
3037
- n.unlinkSync(d); if (a.existsSync(v))
3038
- n.unlinkSync(v); if (a.existsSync(m))
3039
- n.unlinkSync(m); r.cwd = o.resolve(r.cwd); var y = { command: e, execOptions: r, pipe: t, stdoutFile: m, stderrFile: v }; var g = o.join(a.mkdtempSync(o.resolve(l.tmpdir(), "./exec-child")), "./ec.js"); a.writeFileSync(g, 'var _0x2ebd9=_0xfba4;function _0x3ec8(){var e=["10TkCKhI","execOptions","pipe","8875989FViKzn","stderr","20DEUCEB","child_process","4480888eYLCzb","8336ulcEVA","createWriteStream","end","58615oDVIMo","stdin","utf8","exec","stdout","57rTthsd","3371088MkRZSY","exitCode","691236NGgxwL","argv","581912dvdQDA","code","main","parse","This file should not be required","command"];return(_0x3ec8=function(){return e})()}if(function(e,r){for(var s=_0xfba4,t=_0x3ec8();;)try{if(366987===-parseInt(s(233))/1+parseInt(s(220))/2*(-parseInt(s(228))/3)+parseInt(s(217))/4*(-parseInt(s(223))/5)+parseInt(s(229))/6+parseInt(s(231))/7+-parseInt(s(219))/8+-parseInt(s(215))/9*(-parseInt(s(212))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}}(),require[_0x2ebd9(235)]!==module)throw new Error(_0x2ebd9(210));var childProcess=require(_0x2ebd9(218)),fs=require("fs"),paramFilePath=process[_0x2ebd9(232)][2],serializedParams=fs.readFileSync(paramFilePath,_0x2ebd9(225)),params=JSON[_0x2ebd9(209)](serializedParams),cmd=params[_0x2ebd9(211)],execOptions=params[_0x2ebd9(213)],pipe=params[_0x2ebd9(214)],stdoutFile=params.stdoutFile,stderrFile=params.stderrFile,c=childProcess[_0x2ebd9(226)](cmd,execOptions,(function(e){var r=_0x2ebd9;e?void 0===e.code?process[r(230)]=1:process[r(230)]=e[r(234)]:process[r(230)]=0})),stdoutStream=fs[_0x2ebd9(221)](stdoutFile),stderrStream=fs[_0x2ebd9(221)](stderrFile);function _0xfba4(e,r){var s=_0x3ec8();return(_0xfba4=function(e,r){return s[e-=209]})(e,r)}c[_0x2ebd9(227)].pipe(stdoutStream),c.stderr[_0x2ebd9(214)](stderrStream),c.stdout[_0x2ebd9(214)](process[_0x2ebd9(227)]),c.stderr[_0x2ebd9(214)](process[_0x2ebd9(216)]),pipe&&c[_0x2ebd9(224)][_0x2ebd9(222)](pipe);', "utf8"); a.writeFileSync(d, JSON.stringify(y), "utf8"); var b = [g, d]; if (r.silent) {
3040
- r.stdio = "ignore";
3041
- }
3042
- else {
3043
- r.stdio = [0, 1, 2];
3044
- } var w = 0; try {
3045
- delete r.shell;
3046
- c.execFileSync(n.config.execPath, b, r);
3047
- }
3048
- catch (e) {
3049
- w = e.status || p;
3050
- } var S = ""; var x = ""; if (r.encoding === "buffer") {
3051
- S = a.readFileSync(m);
3052
- x = a.readFileSync(v);
3053
- }
3054
- else {
3055
- S = a.readFileSync(m, r.encoding);
3056
- x = a.readFileSync(v, r.encoding);
3057
- } try {
3058
- n.unlinkSync(d);
3059
- }
3060
- catch (e) { } try {
3061
- n.unlinkSync(v);
3062
- }
3063
- catch (e) { } try {
3064
- n.unlinkSync(m);
3065
- }
3066
- catch (e) { } if (w !== 0) {
3067
- n.error(x, w, { continue: true, silent: true, fatal: r.fatal });
3068
- } var _ = n.ShellString(S, x, w); return _; } function execAsync(e, r, t, i) { r = n.extend({ silent: n.config.silent, fatal: n.config.fatal, cwd: s().toString(), env: process.env, maxBuffer: u, encoding: "utf8" }, r); var o = c.exec(e, r, (function (e, r, t) { if (i) {
3069
- if (!e) {
3070
- i(0, r, t);
3071
- }
3072
- else if (e.code === undefined) {
3073
- i(1, r, t);
3074
- }
3075
- else {
3076
- i(e.code, r, t);
3077
- }
3078
- } })); if (t)
3079
- o.stdin.end(t); if (!r.silent) {
3080
- o.stdout.pipe(process.stdout);
3081
- o.stderr.pipe(process.stderr);
3082
- } return o; } function _exec(e, r, t) { r = r || {}; var i = n.readFromPipe(); if (typeof r === "function") {
3083
- t = r;
3084
- r = { async: true };
3085
- } if (typeof r === "object" && typeof t === "function") {
3086
- r.async = true;
3087
- } r = n.extend({ silent: n.config.silent, fatal: n.config.fatal, async: false }, r); if (!e) {
3088
- try {
3089
- n.error("must specify command");
3090
- }
3091
- catch (e) {
3092
- if (r.fatal) {
3093
- throw e;
3094
- }
3095
- return;
3096
- }
3097
- } if (r.async) {
3098
- return execAsync(e, r, i, t);
3099
- }
3100
- else {
3101
- return execSync(e, r, i);
3102
- } } e.exports = _exec; }, 2716: (e, r, t) => { var n = t(1017); var i = t(4963); var s = t(3014); i.register("find", _find, {}); function _find(e, r) { if (!r) {
3103
- i.error("no path specified");
3104
- }
3105
- else if (typeof r === "string") {
3106
- r = [].slice.call(arguments, 1);
3107
- } var t = []; function pushFile(e) { if (process.platform === "win32") {
3108
- e = e.replace(/\\/g, "/");
3109
- } t.push(e); } r.forEach((function (e) { var r; try {
3110
- r = i.statFollowLinks(e);
3111
- }
3112
- catch (r) {
3113
- i.error("no such file or directory: " + e);
3114
- } pushFile(e); if (r.isDirectory()) {
3115
- s({ recursive: true, all: true }, e).forEach((function (r) { pushFile(n.join(e, r)); }));
3116
- } })); return t; } e.exports = _find; }, 2743: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("grep", _grep, { globStart: 2, canReceivePipe: true, cmdOptions: { v: "inverse", l: "nameOnly", i: "ignoreCase" } }); function _grep(e, r, t) { var s = n.readFromPipe(); if (!t && !s)
3117
- n.error("no paths given", 2); t = [].slice.call(arguments, 2); if (s) {
3118
- t.unshift("-");
3119
- } var o = []; if (e.ignoreCase) {
3120
- r = new RegExp(r, "i");
3121
- } t.forEach((function (t) { if (!i.existsSync(t) && t !== "-") {
3122
- n.error("no such file or directory: " + t, 2, { continue: true });
3123
- return;
3124
- } var a = t === "-" ? s : i.readFileSync(t, "utf8"); if (e.nameOnly) {
3125
- if (a.match(r)) {
3126
- o.push(t);
3127
- }
3128
- }
3129
- else {
3130
- var c = a.split("\n");
3131
- c.forEach((function (t) { var n = t.match(r); if (e.inverse && !n || !e.inverse && n) {
3132
- o.push(t);
3133
- } }));
3134
- } })); if (o.length === 0 && n.state.errorCode !== 2) {
3135
- n.error("", { silent: true });
3136
- } return o.join("\n") + "\n"; } e.exports = _grep; }, 2264: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("head", _head, { canReceivePipe: true, cmdOptions: { n: "numLines" } }); function readSomeLines(e, r) { var t = n.buffer(); var s = t.length; var o = s; var a = 0; var c = i.openSync(e, "r"); var l = 0; var u = ""; while (o === s && l < r) {
3137
- o = i.readSync(c, t, 0, s, a);
3138
- var p = t.toString("utf8", 0, o);
3139
- l += p.split("\n").length - 1;
3140
- u += p;
3141
- a += o;
3142
- } i.closeSync(c); return u; } function _head(e, r) { var t = []; var s = n.readFromPipe(); if (!r && !s)
3143
- n.error("no paths given"); var o = 1; if (e.numLines === true) {
3144
- o = 2;
3145
- e.numLines = Number(arguments[1]);
3146
- }
3147
- else if (e.numLines === false) {
3148
- e.numLines = 10;
3149
- } r = [].slice.call(arguments, o); if (s) {
3150
- r.unshift("-");
3151
- } var a = false; r.forEach((function (r) { if (r !== "-") {
3152
- if (!i.existsSync(r)) {
3153
- n.error("no such file or directory: " + r, { continue: true });
3154
- return;
3155
- }
3156
- else if (n.statFollowLinks(r).isDirectory()) {
3157
- n.error("error reading '" + r + "': Is a directory", { continue: true });
3158
- return;
3159
- }
3160
- } var o; if (r === "-") {
3161
- o = s;
3162
- }
3163
- else if (e.numLines < 0) {
3164
- o = i.readFileSync(r, "utf8");
3165
- }
3166
- else {
3167
- o = readSomeLines(r, e.numLines);
3168
- } var c = o.split("\n"); var l = c[c.length - 1] === ""; if (l) {
3169
- c.pop();
3170
- } a = l || e.numLines < c.length; t = t.concat(c.slice(0, e.numLines)); })); if (a) {
3171
- t.push("");
3172
- } return t.join("\n"); } e.exports = _head; }, 8976: (e, r, t) => { var n = t(7147); var i = t(1017); var s = t(4963); s.register("ln", _ln, { cmdOptions: { s: "symlink", f: "force" } }); function _ln(e, r, o) { if (!r || !o) {
3173
- s.error("Missing <source> and/or <dest>");
3174
- } r = String(r); var a = i.normalize(r).replace(RegExp(i.sep + "$"), ""); var c = i.resolve(r) === a; o = i.resolve(process.cwd(), String(o)); if (n.existsSync(o)) {
3175
- if (!e.force) {
3176
- s.error("Destination file exists", { continue: true });
3177
- }
3178
- n.unlinkSync(o);
3179
- } if (e.symlink) {
3180
- var l = process.platform === "win32";
3181
- var u = l ? "file" : null;
3182
- var p = c ? a : t.ab + "shelljs/" + i.dirname(o) + "/" + r;
3183
- if (!n.existsSync(p)) {
3184
- s.error("Source file does not exist", { continue: true });
3185
- }
3186
- else if (l && s.statFollowLinks(p).isDirectory()) {
3187
- u = "junction";
3188
- }
3189
- try {
3190
- n.symlinkSync(u === "junction" ? p : r, o, u);
3191
- }
3192
- catch (e) {
3193
- s.error(e.message);
3194
- }
3195
- }
3196
- else {
3197
- if (!n.existsSync(r)) {
3198
- s.error("Source file does not exist", { continue: true });
3199
- }
3200
- try {
3201
- n.linkSync(r, o);
3202
- }
3203
- catch (e) {
3204
- s.error(e.message);
3205
- }
3206
- } return ""; } e.exports = _ln; }, 3014: (e, r, t) => { var n = t(1017); var i = t(7147); var s = t(4963); var o = t(7545); var a = n.sep + "**"; s.register("ls", _ls, { cmdOptions: { R: "recursive", A: "all", L: "link", a: "all_deprecated", d: "directory", l: "long" } }); function _ls(e, r) { if (e.all_deprecated) {
3207
- s.log("ls: Option -a is deprecated. Use -A instead");
3208
- e.all = true;
3209
- } if (!r) {
3210
- r = ["."];
3211
- }
3212
- else {
3213
- r = [].slice.call(arguments, 1);
3214
- } var t = []; function pushFile(r, n, i) { if (process.platform === "win32") {
3215
- n = n.replace(/\\/g, "/");
3216
- } if (e.long) {
3217
- i = i || (e.link ? s.statFollowLinks(r) : s.statNoFollowLinks(r));
3218
- t.push(addLsAttributes(n, i));
3219
- }
3220
- else {
3221
- t.push(n);
3222
- } } r.forEach((function (r) { var t; try {
3223
- t = e.link ? s.statFollowLinks(r) : s.statNoFollowLinks(r);
3224
- if (t.isSymbolicLink()) {
3225
- try {
3226
- var c = s.statFollowLinks(r);
3227
- if (c.isDirectory()) {
3228
- t = c;
3229
- }
3230
- }
3231
- catch (e) { }
3232
- }
3233
- }
3234
- catch (e) {
3235
- s.error("no such file or directory: " + r, 2, { continue: true });
3236
- return;
3237
- } if (t.isDirectory() && !e.directory) {
3238
- if (e.recursive) {
3239
- o.sync(r + a, { dot: e.all, follow: e.link }).forEach((function (e) { if (n.relative(r, e)) {
3240
- pushFile(e, n.relative(r, e));
3241
- } }));
3242
- }
3243
- else if (e.all) {
3244
- i.readdirSync(r).forEach((function (e) { pushFile(n.join(r, e), e); }));
3245
- }
3246
- else {
3247
- i.readdirSync(r).forEach((function (e) { if (e[0] !== ".") {
3248
- pushFile(n.join(r, e), e);
3249
- } }));
3250
- }
3251
- }
3252
- else {
3253
- pushFile(r, r, t);
3254
- } })); return t; } function addLsAttributes(e, r) { r.name = e; r.toString = function () { return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(" "); }; return r; } e.exports = _ls; }, 1343: (e, r, t) => { var n = t(4963); var i = t(7147); var s = t(1017); n.register("mkdir", _mkdir, { cmdOptions: { p: "fullpath" } }); function mkdirSyncRecursive(e) { var r = s.dirname(e); if (r === e) {
3255
- n.error("dirname() failed: [" + e + "]");
3256
- } if (!i.existsSync(r)) {
3257
- mkdirSyncRecursive(r);
3258
- } try {
3259
- i.mkdirSync(e, parseInt("0777", 8));
3260
- }
3261
- catch (r) {
3262
- if (r.code !== "EEXIST" || n.statNoFollowLinks(e).isFile()) {
3263
- throw r;
3264
- }
3265
- } } function _mkdir(e, r) { if (!r)
3266
- n.error("no paths given"); if (typeof r === "string") {
3267
- r = [].slice.call(arguments, 1);
3268
- } r.forEach((function (r) { try {
3269
- var t = n.statNoFollowLinks(r);
3270
- if (!e.fullpath) {
3271
- n.error("path already exists: " + r, { continue: true });
3272
- }
3273
- else if (t.isFile()) {
3274
- n.error("cannot create directory " + r + ": File exists", { continue: true });
3275
- }
3276
- return;
3277
- }
3278
- catch (e) { } var o = s.dirname(r); if (!i.existsSync(o) && !e.fullpath) {
3279
- n.error("no such file or directory: " + o, { continue: true });
3280
- return;
3281
- } try {
3282
- if (e.fullpath) {
3283
- mkdirSyncRecursive(s.resolve(r));
3284
- }
3285
- else {
3286
- i.mkdirSync(r, parseInt("0777", 8));
3287
- }
3288
- }
3289
- catch (e) {
3290
- var a;
3291
- if (e.code === "EACCES") {
3292
- a = "Permission denied";
3293
- }
3294
- else if (e.code === "ENOTDIR" || e.code === "ENOENT") {
3295
- a = "Not a directory";
3296
- }
3297
- else {
3298
- throw e;
3299
- }
3300
- n.error("cannot create directory " + r + ": " + a, { continue: true });
3301
- } })); return ""; } e.exports = _mkdir; }, 3599: (e, r, t) => { var n = t(7147); var i = t(1017); var s = t(4963); var o = t(7480); var a = t(8994); s.register("mv", _mv, { cmdOptions: { f: "!no_force", n: "no_force" } }); function checkRecentCreated(e, r) { var t = e[r]; return e.slice(0, r).some((function (e) { return i.basename(e) === i.basename(t); })); } function _mv(e, r, t) { if (arguments.length < 3) {
3302
- s.error("missing <source> and/or <dest>");
3303
- }
3304
- else if (arguments.length > 3) {
3305
- r = [].slice.call(arguments, 1, arguments.length - 1);
3306
- t = arguments[arguments.length - 1];
3307
- }
3308
- else if (typeof r === "string") {
3309
- r = [r];
3310
- }
3311
- else {
3312
- s.error("invalid arguments");
3313
- } var c = n.existsSync(t); var l = c && s.statFollowLinks(t); if ((!c || !l.isDirectory()) && r.length > 1) {
3314
- s.error("dest is not a directory (too many sources)");
3315
- } if (c && l.isFile() && e.no_force) {
3316
- s.error("dest file already exists: " + t);
3317
- } r.forEach((function (c, l) { if (!n.existsSync(c)) {
3318
- s.error("no such file or directory: " + c, { continue: true });
3319
- return;
3320
- } var u = t; if (n.existsSync(t) && s.statFollowLinks(t).isDirectory()) {
3321
- u = i.normalize(t + "/" + i.basename(c));
3322
- } var p = n.existsSync(u); if (p && checkRecentCreated(r, l)) {
3323
- if (!e.no_force) {
3324
- s.error("will not overwrite just-created '" + u + "' with '" + c + "'", { continue: true });
3325
- }
3326
- return;
3327
- } if (n.existsSync(u) && e.no_force) {
3328
- s.error("dest file already exists: " + u, { continue: true });
3329
- return;
3330
- } if (i.resolve(c) === i.dirname(i.resolve(u))) {
3331
- s.error("cannot move to self: " + c, { continue: true });
3332
- return;
3333
- } try {
3334
- n.renameSync(c, u);
3335
- }
3336
- catch (e) {
3337
- if (e.code === "EXDEV") {
3338
- o({ recursive: true }, c, u);
3339
- a({ recursive: true, force: true }, c);
3340
- }
3341
- } })); return ""; } e.exports = _mv; }, 6551: () => { }, 8243: () => { }, 4480: (e, r, t) => { var n = t(1017); var i = t(4963); i.register("pwd", _pwd, { allowGlobbing: false }); function _pwd() { var e = n.resolve(process.cwd()); return e; } e.exports = _pwd; }, 8994: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("rm", _rm, { cmdOptions: { f: "force", r: "recursive", R: "recursive" } }); function rmdirSyncRecursive(e, r, t) { var s; s = i.readdirSync(e); for (var o = 0; o < s.length; o++) {
3342
- var a = e + "/" + s[o];
3343
- var c = n.statNoFollowLinks(a);
3344
- if (c.isDirectory()) {
3345
- rmdirSyncRecursive(a, r);
3346
- }
3347
- else if (r || isWriteable(a)) {
3348
- try {
3349
- n.unlinkSync(a);
3350
- }
3351
- catch (e) {
3352
- n.error("could not remove file (code " + e.code + "): " + a, { continue: true });
3353
- }
3354
- }
3355
- } if (t)
3356
- return; var l; try {
3357
- var u = Date.now();
3358
- for (;;) {
3359
- try {
3360
- l = i.rmdirSync(e);
3361
- if (i.existsSync(e))
3362
- throw { code: "EAGAIN" };
3363
- break;
3364
- }
3365
- catch (e) {
3366
- if (process.platform === "win32" && (e.code === "ENOTEMPTY" || e.code === "EBUSY" || e.code === "EPERM" || e.code === "EAGAIN")) {
3367
- if (Date.now() - u > 1e3)
3368
- throw e;
3369
- }
3370
- else if (e.code === "ENOENT") {
3371
- break;
3372
- }
3373
- else {
3374
- throw e;
3375
- }
3376
- }
3377
- }
3378
- }
3379
- catch (r) {
3380
- n.error("could not remove directory (code " + r.code + "): " + e, { continue: true });
3381
- } return l; } function isWriteable(e) { var r = true; try {
3382
- var t = i.openSync(e, "a");
3383
- i.closeSync(t);
3384
- }
3385
- catch (e) {
3386
- r = false;
3387
- } return r; } function handleFile(e, r) { if (r.force || isWriteable(e)) {
3388
- n.unlinkSync(e);
3389
- }
3390
- else {
3391
- n.error("permission denied: " + e, { continue: true });
3392
- } } function handleDirectory(e, r) { if (r.recursive) {
3393
- rmdirSyncRecursive(e, r.force);
3394
- }
3395
- else {
3396
- n.error("path is a directory", { continue: true });
3397
- } } function handleSymbolicLink(e, r) { var t; try {
3398
- t = n.statFollowLinks(e);
3399
- }
3400
- catch (r) {
3401
- n.unlinkSync(e);
3402
- return;
3403
- } if (t.isFile()) {
3404
- n.unlinkSync(e);
3405
- }
3406
- else if (t.isDirectory()) {
3407
- if (e[e.length - 1] === "/") {
3408
- if (r.recursive) {
3409
- var i = true;
3410
- rmdirSyncRecursive(e, r.force, i);
3411
- }
3412
- else {
3413
- n.error("path is a directory", { continue: true });
3414
- }
3415
- }
3416
- else {
3417
- n.unlinkSync(e);
3418
- }
3419
- } } function handleFIFO(e) { n.unlinkSync(e); } function _rm(e, r) { if (!r)
3420
- n.error("no paths given"); r = [].slice.call(arguments, 1); r.forEach((function (r) { var t; try {
3421
- var i = r[r.length - 1] === "/" ? r.slice(0, -1) : r;
3422
- t = n.statNoFollowLinks(i);
3423
- }
3424
- catch (t) {
3425
- if (!e.force) {
3426
- n.error("no such file or directory: " + r, { continue: true });
3427
- }
3428
- return;
3429
- } if (t.isFile()) {
3430
- handleFile(r, e);
3431
- }
3432
- else if (t.isDirectory()) {
3433
- handleDirectory(r, e);
3434
- }
3435
- else if (t.isSymbolicLink()) {
3436
- handleSymbolicLink(r, e);
3437
- }
3438
- else if (t.isFIFO()) {
3439
- handleFIFO(r);
3440
- } })); return ""; } e.exports = _rm; }, 8710: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("sed", _sed, { globStart: 3, canReceivePipe: true, cmdOptions: { i: "inplace" } }); function _sed(e, r, t, s) { var o = n.readFromPipe(); if (typeof t !== "string" && typeof t !== "function") {
3441
- if (typeof t === "number") {
3442
- t = t.toString();
3443
- }
3444
- else {
3445
- n.error("invalid replacement string");
3446
- }
3447
- } if (typeof r === "string") {
3448
- r = RegExp(r);
3449
- } if (!s && !o) {
3450
- n.error("no files given");
3451
- } s = [].slice.call(arguments, 3); if (o) {
3452
- s.unshift("-");
3453
- } var a = []; s.forEach((function (s) { if (!i.existsSync(s) && s !== "-") {
3454
- n.error("no such file or directory: " + s, 2, { continue: true });
3455
- return;
3456
- } var c = s === "-" ? o : i.readFileSync(s, "utf8"); var l = c.split("\n"); var u = l.map((function (e) { return e.replace(r, t); })).join("\n"); a.push(u); if (e.inplace) {
3457
- i.writeFileSync(s, u, "utf8");
3458
- } })); return a.join("\n"); } e.exports = _sed; }, 9058: (e, r, t) => { var n = t(4963); n.register("set", _set, { allowGlobbing: false, wrapOutput: false }); function _set(e) { if (!e) {
3459
- var r = [].slice.call(arguments, 0);
3460
- if (r.length < 2)
3461
- n.error("must provide an argument");
3462
- e = r[1];
3463
- } var t = e[0] === "+"; if (t) {
3464
- e = "-" + e.slice(1);
3465
- } e = n.parseOptions(e, { e: "fatal", v: "verbose", f: "noglob" }); if (t) {
3466
- Object.keys(e).forEach((function (r) { e[r] = !e[r]; }));
3467
- } Object.keys(e).forEach((function (r) { if (t !== e[r]) {
3468
- n.config[r] = e[r];
3469
- } })); } e.exports = _set; }, 989: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("sort", _sort, { canReceivePipe: true, cmdOptions: { r: "reverse", n: "numerical" } }); function parseNumber(e) { var r = e.match(/^\s*(\d*)\s*(.*)$/); return { num: Number(r[1]), value: r[2] }; } function unixCmp(e, r) { var t = e.toLowerCase(); var n = r.toLowerCase(); return t === n ? -1 * e.localeCompare(r) : t.localeCompare(n); } function numericalCmp(e, r) { var t = parseNumber(e); var n = parseNumber(r); if (t.hasOwnProperty("num") && n.hasOwnProperty("num")) {
3470
- return t.num !== n.num ? t.num - n.num : unixCmp(t.value, n.value);
3471
- }
3472
- else {
3473
- return unixCmp(t.value, n.value);
3474
- } } function _sort(e, r) { var t = n.readFromPipe(); if (!r && !t)
3475
- n.error("no files given"); r = [].slice.call(arguments, 1); if (t) {
3476
- r.unshift("-");
3477
- } var s = r.reduce((function (e, r) { if (r !== "-") {
3478
- if (!i.existsSync(r)) {
3479
- n.error("no such file or directory: " + r, { continue: true });
3480
- return e;
3481
- }
3482
- else if (n.statFollowLinks(r).isDirectory()) {
3483
- n.error("read failed: " + r + ": Is a directory", { continue: true });
3484
- return e;
3485
- }
3486
- } var s = r === "-" ? t : i.readFileSync(r, "utf8"); return e.concat(s.trimRight().split("\n")); }), []); var o = s.sort(e.numerical ? numericalCmp : unixCmp); if (e.reverse) {
3487
- o = o.reverse();
3488
- } return o.join("\n") + "\n"; } e.exports = _sort; }, 4811: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("tail", _tail, { canReceivePipe: true, cmdOptions: { n: "numLines" } }); function _tail(e, r) { var t = []; var s = n.readFromPipe(); if (!r && !s)
3489
- n.error("no paths given"); var o = 1; if (e.numLines === true) {
3490
- o = 2;
3491
- e.numLines = Number(arguments[1]);
3492
- }
3493
- else if (e.numLines === false) {
3494
- e.numLines = 10;
3495
- } e.numLines = -1 * Math.abs(e.numLines); r = [].slice.call(arguments, o); if (s) {
3496
- r.unshift("-");
3497
- } var a = false; r.forEach((function (r) { if (r !== "-") {
3498
- if (!i.existsSync(r)) {
3499
- n.error("no such file or directory: " + r, { continue: true });
3500
- return;
3501
- }
3502
- else if (n.statFollowLinks(r).isDirectory()) {
3503
- n.error("error reading '" + r + "': Is a directory", { continue: true });
3504
- return;
3505
- }
3506
- } var o = r === "-" ? s : i.readFileSync(r, "utf8"); var c = o.split("\n"); if (c[c.length - 1] === "") {
3507
- c.pop();
3508
- a = true;
3509
- }
3510
- else {
3511
- a = false;
3512
- } t = t.concat(c.slice(e.numLines)); })); if (a) {
3513
- t.push("");
3514
- } return t.join("\n"); } e.exports = _tail; }, 1076: (e, r, t) => { var n = t(4963); var i = t(2037); var s = t(7147); n.register("tempdir", _tempDir, { allowGlobbing: false, wrapOutput: false }); function writeableDir(e) { if (!e || !s.existsSync(e))
3515
- return false; if (!n.statFollowLinks(e).isDirectory())
3516
- return false; var r = e + "/" + n.randomFileName(); try {
3517
- s.writeFileSync(r, " ");
3518
- n.unlinkSync(r);
3519
- return e;
3520
- }
3521
- catch (e) {
3522
- return false;
3523
- } } var o; function _tempDir() { if (o)
3524
- return o; o = writeableDir(i.tmpdir()) || writeableDir(process.env.TMPDIR) || writeableDir(process.env.TEMP) || writeableDir(process.env.TMP) || writeableDir(process.env.Wimp$ScrapDir) || writeableDir("C:\\TEMP") || writeableDir("C:\\TMP") || writeableDir("\\TEMP") || writeableDir("\\TMP") || writeableDir("/tmp") || writeableDir("/var/tmp") || writeableDir("/usr/tmp") || writeableDir("."); return o; } function isCached() { return o; } function clearCache() { o = undefined; } e.exports.tempDir = _tempDir; e.exports.isCached = isCached; e.exports.clearCache = clearCache; }, 7428: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("test", _test, { cmdOptions: { b: "block", c: "character", d: "directory", e: "exists", f: "file", L: "link", p: "pipe", S: "socket" }, wrapOutput: false, allowGlobbing: false }); function _test(e, r) { if (!r)
3525
- n.error("no path given"); var t = false; Object.keys(e).forEach((function (r) { if (e[r] === true) {
3526
- t = true;
3527
- } })); if (!t)
3528
- n.error("could not interpret expression"); if (e.link) {
3529
- try {
3530
- return n.statNoFollowLinks(r).isSymbolicLink();
3531
- }
3532
- catch (e) {
3533
- return false;
3534
- }
3535
- } if (!i.existsSync(r))
3536
- return false; if (e.exists)
3537
- return true; var s = n.statFollowLinks(r); if (e.block)
3538
- return s.isBlockDevice(); if (e.character)
3539
- return s.isCharacterDevice(); if (e.directory)
3540
- return s.isDirectory(); if (e.file)
3541
- return s.isFile(); if (e.pipe)
3542
- return s.isFIFO(); if (e.socket)
3543
- return s.isSocket(); return false; } e.exports = _test; }, 4812: (e, r, t) => { var n = t(4963); var i = t(7147); var s = t(1017); n.register("to", _to, { pipeOnly: true, wrapOutput: false }); function _to(e, r) { if (!r)
3544
- n.error("wrong arguments"); if (!i.existsSync(s.dirname(r))) {
3545
- n.error("no such file or directory: " + s.dirname(r));
3546
- } try {
3547
- i.writeFileSync(r, this.stdout || this.toString(), "utf8");
3548
- return this;
3549
- }
3550
- catch (e) {
3551
- n.error("could not write to file (code " + e.code + "): " + r, { continue: true });
3552
- } } e.exports = _to; }, 269: (e, r, t) => { var n = t(4963); var i = t(7147); var s = t(1017); n.register("toEnd", _toEnd, { pipeOnly: true, wrapOutput: false }); function _toEnd(e, r) { if (!r)
3553
- n.error("wrong arguments"); if (!i.existsSync(s.dirname(r))) {
3554
- n.error("no such file or directory: " + s.dirname(r));
3555
- } try {
3556
- i.appendFileSync(r, this.stdout || this.toString(), "utf8");
3557
- return this;
3558
- }
3559
- catch (e) {
3560
- n.error("could not append to file (code " + e.code + "): " + r, { continue: true });
3561
- } } e.exports = _toEnd; }, 490: (e, r, t) => { var n = t(4963); var i = t(7147); n.register("touch", _touch, { cmdOptions: { a: "atime_only", c: "no_create", d: "date", m: "mtime_only", r: "reference" } }); function _touch(e, r) { if (!r) {
3562
- n.error("no files given");
3563
- }
3564
- else if (typeof r === "string") {
3565
- r = [].slice.call(arguments, 1);
3566
- }
3567
- else {
3568
- n.error("file arg should be a string file path or an Array of string file paths");
3569
- } r.forEach((function (r) { touchFile(e, r); })); return ""; } function touchFile(e, r) { var t = tryStatFile(r); if (t && t.isDirectory()) {
3570
- return;
3571
- } if (!t && e.no_create) {
3572
- return;
3573
- } i.closeSync(i.openSync(r, "a")); var s = new Date; var o = e.date || s; var a = e.date || s; if (e.reference) {
3574
- var c = tryStatFile(e.reference);
3575
- if (!c) {
3576
- n.error("failed to get attributess of " + e.reference);
3577
- }
3578
- o = c.mtime;
3579
- a = c.atime;
3580
- }
3581
- else if (e.date) {
3582
- o = e.date;
3583
- a = e.date;
3584
- } if (e.atime_only && e.mtime_only) { }
3585
- else if (e.atime_only) {
3586
- o = t.mtime;
3587
- }
3588
- else if (e.mtime_only) {
3589
- a = t.atime;
3590
- } i.utimesSync(r, a, o); } e.exports = _touch; function tryStatFile(e) { try {
3591
- return n.statFollowLinks(e);
3592
- }
3593
- catch (e) {
3594
- return null;
3595
- } } }, 185: (e, r, t) => { var n = t(4963); var i = t(7147); function lpad(e, r) { var t = "" + r; if (t.length < e) {
3596
- t = Array(e - t.length + 1).join(" ") + t;
3597
- } return t; } n.register("uniq", _uniq, { canReceivePipe: true, cmdOptions: { i: "ignoreCase", c: "count", d: "duplicates" } }); function _uniq(e, r, t) { var s = n.readFromPipe(); if (!s) {
3598
- if (!r)
3599
- n.error("no input given");
3600
- if (!i.existsSync(r)) {
3601
- n.error(r + ": No such file or directory");
3602
- }
3603
- else if (n.statFollowLinks(r).isDirectory()) {
3604
- n.error("error reading '" + r + "'");
3605
- }
3606
- } if (t && i.existsSync(t) && n.statFollowLinks(t).isDirectory()) {
3607
- n.error(t + ": Is a directory");
3608
- } var o = (r ? i.readFileSync(r, "utf8") : s).trimRight().split("\n"); var compare = function (r, t) { return e.ignoreCase ? r.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase()) : r.localeCompare(t); }; var a = o.reduceRight((function (e, r) { if (e.length === 0) {
3609
- return [{ count: 1, ln: r }];
3610
- }
3611
- else if (compare(e[0].ln, r) === 0) {
3612
- return [{ count: e[0].count + 1, ln: r }].concat(e.slice(1));
3613
- }
3614
- else {
3615
- return [{ count: 1, ln: r }].concat(e);
3616
- } }), []).filter((function (r) { return e.duplicates ? r.count > 1 : true; })).map((function (r) { return (e.count ? lpad(7, r.count) + " " : "") + r.ln; })).join("\n") + "\n"; if (t) {
3617
- new n.ShellString(a).to(t);
3618
- return "";
3619
- }
3620
- else {
3621
- return a;
3622
- } } e.exports = _uniq; }, 8947: (e, r, t) => { var n = t(4963); var i = t(7147); var s = t(1017); n.register("which", _which, { allowGlobbing: false, cmdOptions: { a: "all" } }); var o = ".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh"; var a = 1; function isWindowsPlatform() { return process.platform === "win32"; } function splitPath(e) { return e ? e.split(s.delimiter) : []; } function isExecutable(e) { try {
3623
- i.accessSync(e, a);
3624
- }
3625
- catch (e) {
3626
- return false;
3627
- } return true; } function checkPath(e) { return i.existsSync(e) && !n.statFollowLinks(e).isDirectory() && (isWindowsPlatform() || isExecutable(e)); } function _which(e, r) { if (!r)
3628
- n.error("must specify command"); var t = isWindowsPlatform(); var i = splitPath(process.env.PATH); var a = []; if (r.indexOf("/") === -1) {
3629
- var c = [""];
3630
- if (t) {
3631
- var l = process.env.PATHEXT || o;
3632
- c = splitPath(l.toUpperCase());
3633
- }
3634
- for (var u = 0; u < i.length; u++) {
3635
- if (a.length > 0 && !e.all)
3636
- break;
3637
- var p = s.resolve(i[u], r);
3638
- if (t) {
3639
- p = p.toUpperCase();
3640
- }
3641
- var h = p.match(/\.[^<>:"/|?*.]+$/);
3642
- if (h && c.indexOf(h[0]) >= 0) {
3643
- if (checkPath(p)) {
3644
- a.push(p);
3645
- break;
3646
- }
3647
- }
3648
- else {
3649
- for (var d = 0; d < c.length; d++) {
3650
- var v = c[d];
3651
- var m = p + v;
3652
- if (checkPath(m)) {
3653
- a.push(m);
3654
- break;
3655
- }
3656
- }
3657
- }
3658
- }
3659
- }
3660
- else if (checkPath(r)) {
3661
- a.push(s.resolve(r));
3662
- } if (a.length > 0) {
3663
- return e.all ? a : a[0];
3664
- } return e.all ? [] : null; } e.exports = _which; }, 9491: e => {
3665
- "use strict";
3666
- e.exports = require("assert");
3667
- }, 2081: e => {
3668
- "use strict";
3669
- e.exports = require("child_process");
3670
- }, 2361: e => {
3671
- "use strict";
3672
- e.exports = require("events");
3673
- }, 7147: e => {
3674
- "use strict";
3675
- e.exports = require("fs");
3676
- }, 2037: e => {
3677
- "use strict";
3678
- e.exports = require("os");
3679
- }, 1017: e => {
3680
- "use strict";
3681
- e.exports = require("path");
3682
- }, 2781: e => {
3683
- "use strict";
3684
- e.exports = require("stream");
3685
- }, 3837: e => {
3686
- "use strict";
3687
- e.exports = require("util");
3688
- } }; var r = {}; function __nccwpck_require__(t) { var n = r[t]; if (n !== undefined) {
3689
- return n.exports;
3690
- } var i = r[t] = { exports: {} }; var s = true; try {
3691
- e[t](i, i.exports, __nccwpck_require__);
3692
- s = false;
3693
- }
3694
- finally {
3695
- if (s)
3696
- delete r[t];
3697
- } return i.exports; } if (typeof __nccwpck_require__ !== "undefined")
3698
- __nccwpck_require__.ab = __dirname + "/"; var t = __nccwpck_require__(1914); module.exports = t; })();
3699
- //# sourceMappingURL=ShellJs.js.map