lakutata 2.0.96 → 2.0.98

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 (1190) hide show
  1. package/com/cacher.cjs +31 -135
  2. package/com/cacher.mjs +23 -127
  3. package/com/database.cjs +24 -166
  4. package/com/database.mjs +24 -166
  5. package/com/docker.cjs +94 -276
  6. package/com/docker.mjs +39 -221
  7. package/com/entrypoint.cjs +33 -119
  8. package/com/entrypoint.mjs +20 -106
  9. package/com/logger.cjs +19 -123
  10. package/com/logger.mjs +19 -123
  11. package/com/monitor.cjs +24 -88
  12. package/com/monitor.mjs +20 -84
  13. package/decorator/asst.cjs +5 -7
  14. package/decorator/asst.mjs +5 -7
  15. package/decorator/ctrl.cjs +22 -58
  16. package/decorator/ctrl.mjs +10 -46
  17. package/decorator/di.cjs +12 -42
  18. package/decorator/di.mjs +8 -38
  19. package/decorator/dto.cjs +13 -43
  20. package/decorator/dto.mjs +9 -39
  21. package/decorator/orm.cjs +117 -113
  22. package/decorator/orm.mjs +71 -67
  23. package/dtos.cjs +8 -38
  24. package/dtos.mjs +8 -38
  25. package/helper.cjs +73 -127
  26. package/helper.mjs +12 -66
  27. package/lakutata.cjs +116 -328
  28. package/lakutata.mjs +60 -272
  29. package/orm.cjs +854 -173
  30. package/orm.mjs +866 -65
  31. package/package.json +1 -1
  32. package/provider/database.cjs +26 -166
  33. package/provider/database.mjs +26 -166
  34. package/provider/passwordHash.cjs +18 -82
  35. package/provider/passwordHash.mjs +18 -82
  36. package/src/components/Database.cjs +36 -178
  37. package/src/components/Database.mjs +68 -210
  38. package/src/components/Logger.cjs +50 -191
  39. package/src/components/Logger.mjs +46 -194
  40. package/src/components/cacher/Cacher.cjs +511 -174
  41. package/src/components/cacher/Cacher.mjs +502 -171
  42. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +547 -35
  43. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +530 -34
  44. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +17 -61
  45. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +19 -63
  46. package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +21 -65
  47. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +22 -66
  48. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +7 -45
  49. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +18 -56
  50. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +23 -67
  51. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +23 -67
  52. package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +6 -44
  53. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +27 -65
  54. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +11 -55
  55. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +18 -62
  56. package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -6
  57. package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -6
  58. package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
  59. package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
  60. package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +4 -6
  61. package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -6
  62. package/src/components/cacher/options/FileCacheOptions.cjs +15 -45
  63. package/src/components/cacher/options/FileCacheOptions.mjs +15 -45
  64. package/src/components/cacher/options/MemcacheCacheOptions.cjs +16 -46
  65. package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -47
  66. package/src/components/cacher/options/MongoCacheOptions.cjs +9 -39
  67. package/src/components/cacher/options/MongoCacheOptions.mjs +18 -48
  68. package/src/components/cacher/options/MysqlCacheOptions.cjs +9 -39
  69. package/src/components/cacher/options/MysqlCacheOptions.mjs +19 -49
  70. package/src/components/cacher/options/PostgresCacheOptions.cjs +21 -51
  71. package/src/components/cacher/options/PostgresCacheOptions.mjs +20 -50
  72. package/src/components/cacher/options/RedisCacheOptions.cjs +26 -56
  73. package/src/components/cacher/options/RedisCacheOptions.mjs +9 -39
  74. package/src/components/cacher/options/SqliteCacheOptions.cjs +15 -45
  75. package/src/components/cacher/options/SqliteCacheOptions.mjs +14 -44
  76. package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
  77. package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
  78. package/src/components/docker/ConnectionOptionsBuilder.cjs +32 -214
  79. package/src/components/docker/ConnectionOptionsBuilder.mjs +37 -219
  80. package/src/components/docker/Docker.cjs +8727 -408
  81. package/src/components/docker/Docker.mjs +8903 -578
  82. package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -6
  83. package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -6
  84. package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -6
  85. package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -6
  86. package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -6
  87. package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -6
  88. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -6
  89. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -6
  90. package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -6
  91. package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -6
  92. package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -6
  93. package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -6
  94. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -6
  95. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -6
  96. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -6
  97. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -6
  98. package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
  99. package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
  100. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
  101. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
  102. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
  103. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
  104. package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
  105. package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
  106. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
  107. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
  108. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
  109. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
  110. package/src/components/docker/lib/DockerContainer.cjs +174 -330
  111. package/src/components/docker/lib/DockerContainer.mjs +184 -340
  112. package/src/components/docker/lib/DockerContainerTTY.cjs +52 -260
  113. package/src/components/docker/lib/DockerContainerTTY.mjs +48 -263
  114. package/src/components/docker/lib/DockerImage.cjs +69 -131
  115. package/src/components/docker/lib/DockerImage.mjs +54 -116
  116. package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
  117. package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
  118. package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
  119. package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
  120. package/src/components/docker/options/DockerPruneOptions.cjs +14 -44
  121. package/src/components/docker/options/DockerPruneOptions.mjs +15 -45
  122. package/src/components/docker/options/auth/DockerAuthOptions.cjs +9 -39
  123. package/src/components/docker/options/auth/DockerAuthOptions.mjs +15 -45
  124. package/src/components/docker/options/container/ContainerCommitOptions.cjs +12 -42
  125. package/src/components/docker/options/container/ContainerCommitOptions.mjs +12 -42
  126. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +13 -43
  127. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +12 -42
  128. package/src/components/docker/options/container/ContainerExecOptions.cjs +9 -39
  129. package/src/components/docker/options/container/ContainerExecOptions.mjs +11 -41
  130. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +13 -43
  131. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +12 -42
  132. package/src/components/docker/options/container/ContainerKillOptions.cjs +9 -39
  133. package/src/components/docker/options/container/ContainerKillOptions.mjs +12 -42
  134. package/src/components/docker/options/container/ContainerLogsOptions.cjs +15 -45
  135. package/src/components/docker/options/container/ContainerLogsOptions.mjs +15 -45
  136. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +9 -39
  137. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +12 -42
  138. package/src/components/docker/options/container/ContainerSettingOptions.cjs +9 -39
  139. package/src/components/docker/options/container/ContainerSettingOptions.mjs +43 -73
  140. package/src/components/docker/options/container/ContainerStopOptions.cjs +12 -42
  141. package/src/components/docker/options/container/ContainerStopOptions.mjs +9 -39
  142. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +9 -39
  143. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +12 -42
  144. package/src/components/docker/options/image/ImageBuildOptions.cjs +26 -56
  145. package/src/components/docker/options/image/ImageBuildOptions.mjs +25 -55
  146. package/src/components/docker/options/image/ImageExportOptions.cjs +14 -44
  147. package/src/components/docker/options/image/ImageExportOptions.mjs +14 -44
  148. package/src/components/docker/options/image/ImageImportOptions.cjs +13 -43
  149. package/src/components/docker/options/image/ImageImportOptions.mjs +12 -42
  150. package/src/components/docker/options/image/ImagePullOptions.cjs +9 -39
  151. package/src/components/docker/options/image/ImagePullOptions.mjs +16 -46
  152. package/src/components/docker/options/image/ImagePushOptions.cjs +15 -45
  153. package/src/components/docker/options/image/ImagePushOptions.mjs +15 -45
  154. package/src/components/docker/options/image/ImageRemoveOptions.cjs +12 -42
  155. package/src/components/docker/options/image/ImageRemoveOptions.mjs +13 -43
  156. package/src/components/docker/options/image/ImageTagOptions.cjs +9 -39
  157. package/src/components/docker/options/image/ImageTagOptions.mjs +12 -42
  158. package/src/components/docker/options/network/NetworkCreateOptions.cjs +9 -39
  159. package/src/components/docker/options/network/NetworkCreateOptions.mjs +20 -50
  160. package/src/components/docker/types/ContainerBind.cjs +1 -1
  161. package/src/components/docker/types/ContainerBind.mjs +1 -1
  162. package/src/components/docker/types/ContainerCapability.cjs +1 -1
  163. package/src/components/docker/types/ContainerCapability.mjs +1 -1
  164. package/src/components/docker/types/ContainerConfig.cjs +1 -1
  165. package/src/components/docker/types/ContainerConfig.mjs +1 -1
  166. package/src/components/docker/types/ContainerDevice.cjs +1 -1
  167. package/src/components/docker/types/ContainerDevice.mjs +1 -1
  168. package/src/components/docker/types/ContainerNetwork.cjs +1 -1
  169. package/src/components/docker/types/ContainerNetwork.mjs +1 -1
  170. package/src/components/docker/types/ContainerPort.cjs +1 -1
  171. package/src/components/docker/types/ContainerPort.mjs +1 -1
  172. package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
  173. package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
  174. package/src/components/docker/types/ContainerState.cjs +1 -1
  175. package/src/components/docker/types/ContainerState.mjs +1 -1
  176. package/src/components/docker/types/ContainerStats.cjs +1 -1
  177. package/src/components/docker/types/ContainerStats.mjs +1 -1
  178. package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
  179. package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
  180. package/src/components/docker/types/ImageConfig.cjs +1 -1
  181. package/src/components/docker/types/ImageConfig.mjs +1 -1
  182. package/src/components/docker/types/ImageExposePort.cjs +1 -1
  183. package/src/components/docker/types/ImageExposePort.mjs +1 -1
  184. package/src/components/docker/types/NetworkInfo.cjs +1 -1
  185. package/src/components/docker/types/NetworkInfo.mjs +1 -1
  186. package/src/components/entrypoint/Entrypoint.cjs +1961 -322
  187. package/src/components/entrypoint/Entrypoint.mjs +1928 -281
  188. package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -6
  189. package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -6
  190. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -6
  191. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -6
  192. package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -6
  193. package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -6
  194. package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -6
  195. package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -6
  196. package/src/components/entrypoint/lib/AccessControl.cjs +71 -133
  197. package/src/components/entrypoint/lib/AccessControl.mjs +75 -137
  198. package/src/components/entrypoint/lib/AccessControlRule.cjs +19 -81
  199. package/src/components/entrypoint/lib/AccessControlRule.mjs +23 -85
  200. package/src/components/entrypoint/lib/Controller.cjs +42 -104
  201. package/src/components/entrypoint/lib/Controller.mjs +43 -105
  202. package/src/components/monitor/AliveMonitor.cjs +40 -104
  203. package/src/components/monitor/AliveMonitor.mjs +50 -114
  204. package/src/components/monitor/CpuMonitor.cjs +40 -104
  205. package/src/components/monitor/CpuMonitor.mjs +48 -112
  206. package/src/components/monitor/EventLoopMonitor.cjs +19 -83
  207. package/src/components/monitor/EventLoopMonitor.mjs +24 -88
  208. package/src/components/monitor/HttpRequestMonitor.cjs +41 -105
  209. package/src/components/monitor/HttpRequestMonitor.mjs +45 -109
  210. package/src/components/monitor/MemoryMonitor.cjs +87 -151
  211. package/src/components/monitor/MemoryMonitor.mjs +71 -135
  212. package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
  213. package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
  214. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
  215. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
  216. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
  217. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
  218. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
  219. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
  220. package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
  221. package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
  222. package/src/constants/DIMetadataKey.cjs +3 -3
  223. package/src/constants/DIMetadataKey.mjs +3 -3
  224. package/src/constants/DTOMetadataKey.cjs +3 -3
  225. package/src/constants/DTOMetadataKey.mjs +3 -3
  226. package/src/decorators/asst/After.cjs +4 -6
  227. package/src/decorators/asst/After.mjs +5 -7
  228. package/src/decorators/asst/Before.cjs +4 -6
  229. package/src/decorators/asst/Before.mjs +5 -7
  230. package/src/decorators/ctrl/CLIAction.cjs +15 -51
  231. package/src/decorators/ctrl/CLIAction.mjs +19 -55
  232. package/src/decorators/ctrl/HTTPAction.cjs +15 -51
  233. package/src/decorators/ctrl/HTTPAction.mjs +19 -55
  234. package/src/decorators/ctrl/ServiceAction.cjs +15 -51
  235. package/src/decorators/ctrl/ServiceAction.mjs +18 -54
  236. package/src/decorators/ctrl/http/DELETE.cjs +12 -48
  237. package/src/decorators/ctrl/http/DELETE.mjs +14 -50
  238. package/src/decorators/ctrl/http/GET.cjs +12 -48
  239. package/src/decorators/ctrl/http/GET.mjs +14 -50
  240. package/src/decorators/ctrl/http/HEAD.cjs +12 -48
  241. package/src/decorators/ctrl/http/HEAD.mjs +14 -50
  242. package/src/decorators/ctrl/http/OPTIONS.cjs +12 -48
  243. package/src/decorators/ctrl/http/OPTIONS.mjs +14 -50
  244. package/src/decorators/ctrl/http/PATCH.cjs +12 -48
  245. package/src/decorators/ctrl/http/PATCH.mjs +14 -50
  246. package/src/decorators/ctrl/http/POST.cjs +12 -48
  247. package/src/decorators/ctrl/http/POST.mjs +14 -50
  248. package/src/decorators/ctrl/http/PUT.cjs +12 -48
  249. package/src/decorators/ctrl/http/PUT.mjs +14 -50
  250. package/src/decorators/di/Autoload.cjs +3 -3
  251. package/src/decorators/di/Autoload.mjs +3 -3
  252. package/src/decorators/di/Configurable.cjs +10 -40
  253. package/src/decorators/di/Configurable.mjs +12 -42
  254. package/src/decorators/di/Inject.cjs +20 -50
  255. package/src/decorators/di/Inject.mjs +25 -55
  256. package/src/decorators/di/Lifetime.cjs +5 -7
  257. package/src/decorators/di/Lifetime.mjs +15 -17
  258. package/src/decorators/dto/Accept.cjs +10 -40
  259. package/src/decorators/dto/Accept.mjs +13 -43
  260. package/src/decorators/dto/Expect.cjs +11 -41
  261. package/src/decorators/dto/Expect.mjs +13 -43
  262. package/src/decorators/dto/IndexSignature.cjs +10 -40
  263. package/src/decorators/dto/IndexSignature.mjs +13 -43
  264. package/src/decorators/dto/Return.cjs +10 -40
  265. package/src/decorators/dto/Return.mjs +13 -43
  266. package/src/decorators/orm/AfterInsert.cjs +17 -95
  267. package/src/decorators/orm/AfterInsert.mjs +17 -95
  268. package/src/decorators/orm/AfterLoad.cjs +17 -95
  269. package/src/decorators/orm/AfterLoad.mjs +17 -95
  270. package/src/decorators/orm/AfterRecover.cjs +17 -95
  271. package/src/decorators/orm/AfterRecover.mjs +17 -95
  272. package/src/decorators/orm/AfterRemove.cjs +17 -95
  273. package/src/decorators/orm/AfterRemove.mjs +17 -95
  274. package/src/decorators/orm/AfterSoftRemove.cjs +17 -95
  275. package/src/decorators/orm/AfterSoftRemove.mjs +17 -95
  276. package/src/decorators/orm/AfterUpdate.cjs +17 -95
  277. package/src/decorators/orm/AfterUpdate.mjs +17 -95
  278. package/src/decorators/orm/BeforeInsert.cjs +17 -95
  279. package/src/decorators/orm/BeforeInsert.mjs +17 -95
  280. package/src/decorators/orm/BeforeRecover.cjs +17 -95
  281. package/src/decorators/orm/BeforeRecover.mjs +17 -95
  282. package/src/decorators/orm/BeforeRemove.cjs +17 -95
  283. package/src/decorators/orm/BeforeRemove.mjs +17 -95
  284. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -95
  285. package/src/decorators/orm/BeforeSoftRemove.mjs +17 -95
  286. package/src/decorators/orm/BeforeUpdate.cjs +17 -95
  287. package/src/decorators/orm/BeforeUpdate.mjs +17 -95
  288. package/src/decorators/orm/Check.cjs +17 -95
  289. package/src/decorators/orm/Check.mjs +17 -95
  290. package/src/decorators/orm/ChildEntity.cjs +17 -95
  291. package/src/decorators/orm/ChildEntity.mjs +17 -95
  292. package/src/decorators/orm/Column.cjs +17 -95
  293. package/src/decorators/orm/Column.mjs +17 -95
  294. package/src/decorators/orm/CreateDateColumn.cjs +17 -95
  295. package/src/decorators/orm/CreateDateColumn.mjs +17 -95
  296. package/src/decorators/orm/DeleteDateColumn.cjs +17 -95
  297. package/src/decorators/orm/DeleteDateColumn.mjs +17 -95
  298. package/src/decorators/orm/Entity.cjs +17 -95
  299. package/src/decorators/orm/Entity.mjs +17 -95
  300. package/src/decorators/orm/EventSubscriber.cjs +17 -95
  301. package/src/decorators/orm/EventSubscriber.mjs +17 -95
  302. package/src/decorators/orm/Exclusion.cjs +17 -95
  303. package/src/decorators/orm/Exclusion.mjs +17 -95
  304. package/src/decorators/orm/Generated.cjs +17 -95
  305. package/src/decorators/orm/Generated.mjs +17 -95
  306. package/src/decorators/orm/Index.cjs +17 -95
  307. package/src/decorators/orm/Index.mjs +17 -95
  308. package/src/decorators/orm/JoinColumn.cjs +17 -95
  309. package/src/decorators/orm/JoinColumn.mjs +17 -95
  310. package/src/decorators/orm/JoinTable.cjs +17 -95
  311. package/src/decorators/orm/JoinTable.mjs +17 -95
  312. package/src/decorators/orm/ManyToMany.cjs +17 -95
  313. package/src/decorators/orm/ManyToMany.mjs +17 -95
  314. package/src/decorators/orm/ManyToOne.cjs +17 -95
  315. package/src/decorators/orm/ManyToOne.mjs +17 -95
  316. package/src/decorators/orm/ObjectIdColumn.cjs +17 -95
  317. package/src/decorators/orm/ObjectIdColumn.mjs +17 -95
  318. package/src/decorators/orm/OneToMany.cjs +17 -95
  319. package/src/decorators/orm/OneToMany.mjs +17 -95
  320. package/src/decorators/orm/OneToOne.cjs +17 -95
  321. package/src/decorators/orm/OneToOne.mjs +17 -95
  322. package/src/decorators/orm/PrimaryColumn.cjs +17 -95
  323. package/src/decorators/orm/PrimaryColumn.mjs +17 -95
  324. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -95
  325. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +17 -95
  326. package/src/decorators/orm/RelationId.cjs +17 -95
  327. package/src/decorators/orm/RelationId.mjs +17 -95
  328. package/src/decorators/orm/TableInheritance.cjs +17 -95
  329. package/src/decorators/orm/TableInheritance.mjs +17 -95
  330. package/src/decorators/orm/Tree.cjs +17 -95
  331. package/src/decorators/orm/Tree.mjs +17 -95
  332. package/src/decorators/orm/TreeChildren.cjs +17 -95
  333. package/src/decorators/orm/TreeChildren.mjs +17 -95
  334. package/src/decorators/orm/TreeLevelColumn.cjs +17 -95
  335. package/src/decorators/orm/TreeLevelColumn.mjs +17 -95
  336. package/src/decorators/orm/TreeParent.cjs +17 -95
  337. package/src/decorators/orm/TreeParent.mjs +17 -95
  338. package/src/decorators/orm/Unique.cjs +17 -95
  339. package/src/decorators/orm/Unique.mjs +17 -95
  340. package/src/decorators/orm/UpdateDateColumn.cjs +17 -95
  341. package/src/decorators/orm/UpdateDateColumn.mjs +17 -95
  342. package/src/decorators/orm/VersionColumn.cjs +17 -95
  343. package/src/decorators/orm/VersionColumn.mjs +17 -95
  344. package/src/decorators/orm/ViewColumn.cjs +17 -95
  345. package/src/decorators/orm/ViewColumn.mjs +17 -95
  346. package/src/decorators/orm/ViewEntity.cjs +17 -95
  347. package/src/decorators/orm/ViewEntity.mjs +17 -95
  348. package/src/decorators/orm/VirtualColumn.cjs +17 -95
  349. package/src/decorators/orm/VirtualColumn.mjs +17 -95
  350. package/src/dto/PaginationResultDTO.cjs +9 -39
  351. package/src/dto/PaginationResultDTO.mjs +18 -48
  352. package/src/dto/PaginationSearchDTO.cjs +9 -39
  353. package/src/dto/PaginationSearchDTO.mjs +13 -43
  354. package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -6
  355. package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -6
  356. package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -6
  357. package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -6
  358. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -6
  359. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -6
  360. package/src/exceptions/InvalidObjectTypeException.cjs +4 -6
  361. package/src/exceptions/InvalidObjectTypeException.mjs +4 -6
  362. package/src/exceptions/MethodNotFoundException.cjs +4 -6
  363. package/src/exceptions/MethodNotFoundException.mjs +4 -6
  364. package/src/exceptions/alias/AliasExistsException.cjs +4 -6
  365. package/src/exceptions/alias/AliasExistsException.mjs +6 -8
  366. package/src/exceptions/alias/AliasNotFoundException.cjs +4 -6
  367. package/src/exceptions/alias/AliasNotFoundException.mjs +4 -6
  368. package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -6
  369. package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -6
  370. package/src/exceptions/di/DependencyInjectionException.cjs +4 -6
  371. package/src/exceptions/di/DependencyInjectionException.mjs +4 -6
  372. package/src/exceptions/di/LifetimeLockedException.cjs +4 -6
  373. package/src/exceptions/di/LifetimeLockedException.mjs +4 -6
  374. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -6
  375. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -6
  376. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -6
  377. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -6
  378. package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -6
  379. package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -6
  380. package/src/exceptions/dto/InvalidValueException.cjs +4 -6
  381. package/src/exceptions/dto/InvalidValueException.mjs +4 -6
  382. package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
  383. package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
  384. package/src/interfaces/IConstructor.cjs +1 -1
  385. package/src/interfaces/IConstructor.mjs +1 -1
  386. package/src/interfaces/IPatRun.cjs +1 -1
  387. package/src/interfaces/IPatRun.mjs +1 -1
  388. package/src/lib/base/BaseObject.cjs +51 -259
  389. package/src/lib/base/BaseObject.mjs +41 -256
  390. package/src/lib/base/Context.cjs +11 -41
  391. package/src/lib/base/Context.mjs +23 -53
  392. package/src/lib/base/EventEmitter.cjs +1398 -47
  393. package/src/lib/base/EventEmitter.mjs +1397 -46
  394. package/src/lib/base/abstracts/Exception.cjs +12 -14
  395. package/src/lib/base/abstracts/Exception.mjs +4 -6
  396. package/src/lib/base/async-constructor/Append.cjs +1 -1
  397. package/src/lib/base/async-constructor/Append.mjs +1 -1
  398. package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
  399. package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
  400. package/src/lib/base/internal/ActionOptions.cjs +9 -39
  401. package/src/lib/base/internal/ActionOptions.mjs +9 -39
  402. package/src/lib/base/internal/ApplicationConfigLoader.cjs +54 -116
  403. package/src/lib/base/internal/ApplicationConfigLoader.mjs +54 -116
  404. package/src/lib/base/internal/BasicInfo.cjs +13 -15
  405. package/src/lib/base/internal/BasicInfo.mjs +15 -17
  406. package/src/lib/base/internal/CamelCase.cjs +1 -1
  407. package/src/lib/base/internal/CamelCase.mjs +1 -1
  408. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +3 -3
  409. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +3 -3
  410. package/src/lib/base/internal/ConstructorSymbol.cjs +3 -3
  411. package/src/lib/base/internal/ConstructorSymbol.mjs +3 -3
  412. package/src/lib/base/internal/ControllerEntrypoint.cjs +16 -24
  413. package/src/lib/base/internal/ControllerEntrypoint.mjs +39 -47
  414. package/src/lib/base/internal/DataValidator.cjs +203 -27
  415. package/src/lib/base/internal/DataValidator.mjs +203 -27
  416. package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
  417. package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
  418. package/src/lib/base/internal/FlexibleDTO.cjs +11 -41
  419. package/src/lib/base/internal/FlexibleDTO.mjs +13 -43
  420. package/src/lib/base/internal/GetActionDTOAndOptions.cjs +21 -51
  421. package/src/lib/base/internal/GetActionDTOAndOptions.mjs +23 -53
  422. package/src/lib/base/internal/IEEE754.cjs +1 -1
  423. package/src/lib/base/internal/IEEE754.mjs +1 -1
  424. package/src/lib/base/internal/MethodAssistantFunction.cjs +15 -17
  425. package/src/lib/base/internal/MethodAssistantFunction.mjs +8 -10
  426. package/src/lib/base/internal/MethodValidation.cjs +55 -85
  427. package/src/lib/base/internal/MethodValidation.mjs +42 -72
  428. package/src/lib/base/internal/ModuleConfigLoader.cjs +81 -143
  429. package/src/lib/base/internal/ModuleConfigLoader.mjs +76 -138
  430. package/src/lib/base/internal/ObjectConfiguration.cjs +26 -56
  431. package/src/lib/base/internal/ObjectConfiguration.mjs +25 -55
  432. package/src/lib/base/internal/ObjectContainer.cjs +3 -3
  433. package/src/lib/base/internal/ObjectContainer.mjs +3 -3
  434. package/src/lib/base/internal/ObjectInjection.cjs +3 -3
  435. package/src/lib/base/internal/ObjectInjection.mjs +3 -3
  436. package/src/lib/base/internal/ObjectLifetime.cjs +5 -7
  437. package/src/lib/base/internal/ObjectLifetime.mjs +12 -14
  438. package/src/lib/base/internal/ObjectSchemaValidation.cjs +23 -121
  439. package/src/lib/base/internal/ObjectSchemaValidation.mjs +14 -114
  440. package/src/lib/base/internal/ObjectType.cjs +27 -119
  441. package/src/lib/base/internal/ObjectType.mjs +20 -119
  442. package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
  443. package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
  444. package/src/lib/base/internal/PatternManager.cjs +831 -7
  445. package/src/lib/base/internal/PatternManager.mjs +835 -11
  446. package/src/lib/base/internal/StringifyPattern.cjs +5 -9
  447. package/src/lib/base/internal/StringifyPattern.mjs +5 -9
  448. package/src/lib/base/internal/ThrowWarning.cjs +1 -1
  449. package/src/lib/base/internal/ThrowWarning.mjs +1 -1
  450. package/src/lib/context/CLIContext.cjs +12 -42
  451. package/src/lib/context/CLIContext.mjs +15 -45
  452. package/src/lib/context/HTTPContext.cjs +15 -45
  453. package/src/lib/context/HTTPContext.mjs +14 -44
  454. package/src/lib/context/ServiceContext.cjs +12 -42
  455. package/src/lib/context/ServiceContext.mjs +18 -48
  456. package/src/lib/core/Alias.cjs +46 -48
  457. package/src/lib/core/Alias.mjs +24 -26
  458. package/src/lib/core/Application.cjs +486 -351
  459. package/src/lib/core/Application.mjs +531 -400
  460. package/src/lib/core/Component.cjs +24 -88
  461. package/src/lib/core/Component.mjs +28 -92
  462. package/src/lib/core/Container.cjs +50 -326
  463. package/src/lib/core/Container.mjs +45 -323
  464. package/src/lib/core/DTO.cjs +16 -194
  465. package/src/lib/core/DTO.mjs +12 -197
  466. package/src/lib/core/Module.cjs +39 -107
  467. package/src/lib/core/Module.mjs +53 -121
  468. package/src/lib/core/Provider.cjs +19 -81
  469. package/src/lib/core/Provider.mjs +25 -87
  470. package/src/lib/core/Time.cjs +52 -45
  471. package/src/lib/core/Time.mjs +52 -45
  472. package/src/lib/helpers/ArrayToSet.cjs +1 -1
  473. package/src/lib/helpers/ArrayToSet.mjs +1 -1
  474. package/src/lib/helpers/As.cjs +1 -1
  475. package/src/lib/helpers/As.mjs +1 -1
  476. package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
  477. package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
  478. package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
  479. package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
  480. package/src/lib/helpers/Delay.cjs +1 -1
  481. package/src/lib/helpers/Delay.mjs +1 -1
  482. package/src/lib/helpers/DevNull.cjs +1 -1
  483. package/src/lib/helpers/DevNull.mjs +1 -1
  484. package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
  485. package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
  486. package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
  487. package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
  488. package/src/lib/helpers/Glob.cjs +5502 -17
  489. package/src/lib/helpers/Glob.mjs +5472 -17
  490. package/src/lib/helpers/GraceExit.cjs +1 -1
  491. package/src/lib/helpers/GraceExit.mjs +1 -1
  492. package/src/lib/helpers/HexToIEEE754.cjs +1 -1
  493. package/src/lib/helpers/HexToIEEE754.mjs +1 -1
  494. package/src/lib/helpers/HexToSigned.cjs +1 -1
  495. package/src/lib/helpers/HexToSigned.mjs +1 -1
  496. package/src/lib/helpers/HexToUnsigned.cjs +1 -1
  497. package/src/lib/helpers/HexToUnsigned.mjs +1 -1
  498. package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
  499. package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
  500. package/src/lib/helpers/IPToolkit.cjs +1 -1
  501. package/src/lib/helpers/IPToolkit.mjs +1 -1
  502. package/src/lib/helpers/IsAbortError.cjs +1 -1
  503. package/src/lib/helpers/IsAbortError.mjs +1 -1
  504. package/src/lib/helpers/IsEmptyObject.cjs +1 -1
  505. package/src/lib/helpers/IsEmptyObject.mjs +1 -1
  506. package/src/lib/helpers/IsExists.cjs +1 -1
  507. package/src/lib/helpers/IsExists.mjs +1 -1
  508. package/src/lib/helpers/IsGlobString.cjs +4 -10
  509. package/src/lib/helpers/IsGlobString.mjs +3 -11
  510. package/src/lib/helpers/IsHtml.cjs +5 -5
  511. package/src/lib/helpers/IsHtml.mjs +6 -6
  512. package/src/lib/helpers/IsNativeFunction.cjs +1 -1
  513. package/src/lib/helpers/IsNativeFunction.mjs +1 -1
  514. package/src/lib/helpers/IsPath.cjs +1 -1
  515. package/src/lib/helpers/IsPath.mjs +1 -1
  516. package/src/lib/helpers/IsPromise.cjs +1 -1
  517. package/src/lib/helpers/IsPromise.mjs +1 -1
  518. package/src/lib/helpers/IsPromiseLike.cjs +1 -1
  519. package/src/lib/helpers/IsPromiseLike.mjs +1 -1
  520. package/src/lib/helpers/IsSymbol.cjs +10 -44
  521. package/src/lib/helpers/IsSymbol.mjs +9 -45
  522. package/src/lib/helpers/IsXML.cjs +1711 -6
  523. package/src/lib/helpers/IsXML.mjs +1712 -7
  524. package/src/lib/helpers/MD5.cjs +4 -4
  525. package/src/lib/helpers/MD5.mjs +4 -4
  526. package/src/lib/helpers/MergeArray.cjs +1 -1
  527. package/src/lib/helpers/MergeArray.mjs +1 -1
  528. package/src/lib/helpers/MergeMap.cjs +1 -1
  529. package/src/lib/helpers/MergeMap.mjs +1 -1
  530. package/src/lib/helpers/MergeSet.cjs +1 -1
  531. package/src/lib/helpers/MergeSet.mjs +1 -1
  532. package/src/lib/helpers/NoCase.cjs +1 -1
  533. package/src/lib/helpers/NoCase.mjs +1 -1
  534. package/src/lib/helpers/NonceStr.cjs +2 -6
  535. package/src/lib/helpers/NonceStr.mjs +4 -8
  536. package/src/lib/helpers/ObjectConstructor.cjs +1 -1
  537. package/src/lib/helpers/ObjectConstructor.mjs +1 -1
  538. package/src/lib/helpers/ObjectHash.cjs +405 -7
  539. package/src/lib/helpers/ObjectHash.mjs +399 -7
  540. package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
  541. package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
  542. package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
  543. package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
  544. package/src/lib/helpers/ObjectPath.cjs +1 -1
  545. package/src/lib/helpers/ObjectPath.mjs +1 -1
  546. package/src/lib/helpers/ObjectPrototype.cjs +1 -1
  547. package/src/lib/helpers/ObjectPrototype.mjs +1 -1
  548. package/src/lib/helpers/ObjectToMap.cjs +1 -1
  549. package/src/lib/helpers/ObjectToMap.mjs +1 -1
  550. package/src/lib/helpers/Paginator.cjs +1 -1
  551. package/src/lib/helpers/Paginator.mjs +1 -1
  552. package/src/lib/helpers/RandomString.cjs +172 -11
  553. package/src/lib/helpers/RandomString.mjs +166 -11
  554. package/src/lib/helpers/SHA1.cjs +4 -4
  555. package/src/lib/helpers/SHA1.mjs +4 -4
  556. package/src/lib/helpers/SHA256.cjs +4 -4
  557. package/src/lib/helpers/SHA256.mjs +4 -4
  558. package/src/lib/helpers/SetToArray.cjs +1 -1
  559. package/src/lib/helpers/SetToArray.mjs +1 -1
  560. package/src/lib/helpers/SignedToHex.cjs +1 -1
  561. package/src/lib/helpers/SignedToHex.mjs +1 -1
  562. package/src/lib/helpers/SortArray.cjs +2 -6
  563. package/src/lib/helpers/SortArray.mjs +7 -11
  564. package/src/lib/helpers/SortKeys.cjs +1 -1
  565. package/src/lib/helpers/SortKeys.mjs +1 -1
  566. package/src/lib/helpers/SortObject.cjs +1 -1
  567. package/src/lib/helpers/SortObject.mjs +1 -1
  568. package/src/lib/helpers/Statistics.cjs +2 -2
  569. package/src/lib/helpers/Statistics.mjs +2 -2
  570. package/src/lib/helpers/Templating.cjs +1 -1
  571. package/src/lib/helpers/Templating.mjs +1 -1
  572. package/src/lib/helpers/URLBuilder.cjs +417 -38
  573. package/src/lib/helpers/URLBuilder.mjs +417 -38
  574. package/src/lib/helpers/UUID.cjs +340 -22
  575. package/src/lib/helpers/UUID.mjs +340 -22
  576. package/src/lib/helpers/UniqueArray.cjs +1 -1
  577. package/src/lib/helpers/UniqueArray.mjs +1 -1
  578. package/src/lib/helpers/UnsignedToHex.cjs +1 -1
  579. package/src/lib/helpers/UnsignedToHex.mjs +1 -1
  580. package/src/lib/ioc/DependencyInjectionContainer.cjs +145 -197
  581. package/src/lib/ioc/DependencyInjectionContainer.mjs +102 -154
  582. package/src/lib/ioc/Errors.cjs +27 -57
  583. package/src/lib/ioc/Errors.mjs +25 -55
  584. package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
  585. package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
  586. package/src/lib/ioc/InjectionMode.cjs +1 -1
  587. package/src/lib/ioc/InjectionMode.mjs +1 -1
  588. package/src/lib/ioc/Lifetime.cjs +1 -1
  589. package/src/lib/ioc/Lifetime.mjs +1 -1
  590. package/src/lib/ioc/ListModules.cjs +5811 -99
  591. package/src/lib/ioc/ListModules.mjs +5779 -79
  592. package/src/lib/ioc/LoadModules.cjs +63 -93
  593. package/src/lib/ioc/LoadModules.mjs +65 -95
  594. package/src/lib/ioc/ParamParser.cjs +1 -1
  595. package/src/lib/ioc/ParamParser.mjs +1 -1
  596. package/src/lib/ioc/Resolvers.cjs +42 -72
  597. package/src/lib/ioc/Resolvers.mjs +44 -74
  598. package/src/lib/ioc/Utils.cjs +28 -58
  599. package/src/lib/ioc/Utils.mjs +34 -64
  600. package/src/lib/validation/VLD.cjs +11342 -98
  601. package/src/lib/validation/VLD.mjs +11298 -80
  602. package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
  603. package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
  604. package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
  605. package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
  606. package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
  607. package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
  608. package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
  609. package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
  610. package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
  611. package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
  612. package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
  613. package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
  614. package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
  615. package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
  616. package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
  617. package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
  618. package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
  619. package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
  620. package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
  621. package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
  622. package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
  623. package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
  624. package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
  625. package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
  626. package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
  627. package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
  628. package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
  629. package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
  630. package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
  631. package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
  632. package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
  633. package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
  634. package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
  635. package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
  636. package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
  637. package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
  638. package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
  639. package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
  640. package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
  641. package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
  642. package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
  643. package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
  644. package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
  645. package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
  646. package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
  647. package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
  648. package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
  649. package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
  650. package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
  651. package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
  652. package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
  653. package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
  654. package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
  655. package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
  656. package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
  657. package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
  658. package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
  659. package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
  660. package/src/lib/validation/interfaces/Reference.cjs +1 -1
  661. package/src/lib/validation/interfaces/Reference.mjs +1 -1
  662. package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
  663. package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
  664. package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
  665. package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
  666. package/src/lib/validation/interfaces/State.cjs +1 -1
  667. package/src/lib/validation/interfaces/State.mjs +1 -1
  668. package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
  669. package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
  670. package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
  671. package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
  672. package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
  673. package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
  674. package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
  675. package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
  676. package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
  677. package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
  678. package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
  679. package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
  680. package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
  681. package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
  682. package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
  683. package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
  684. package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
  685. package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
  686. package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
  687. package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
  688. package/src/lib/validation/types/CustomValidator.cjs +1 -1
  689. package/src/lib/validation/types/CustomValidator.mjs +1 -1
  690. package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
  691. package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
  692. package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
  693. package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
  694. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
  695. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
  696. package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
  697. package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
  698. package/src/lib/validation/types/IsUnion.cjs +1 -1
  699. package/src/lib/validation/types/IsUnion.mjs +1 -1
  700. package/src/lib/validation/types/LanguageMessages.cjs +1 -1
  701. package/src/lib/validation/types/LanguageMessages.mjs +1 -1
  702. package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
  703. package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
  704. package/src/lib/validation/types/NullableType.cjs +1 -1
  705. package/src/lib/validation/types/NullableType.mjs +1 -1
  706. package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
  707. package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
  708. package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
  709. package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
  710. package/src/lib/validation/types/PresenceMode.cjs +1 -1
  711. package/src/lib/validation/types/PresenceMode.mjs +1 -1
  712. package/src/lib/validation/types/Primitives.cjs +1 -1
  713. package/src/lib/validation/types/Primitives.mjs +1 -1
  714. package/src/lib/validation/types/Schema.cjs +1 -1
  715. package/src/lib/validation/types/Schema.mjs +1 -1
  716. package/src/lib/validation/types/SchemaFunction.cjs +1 -1
  717. package/src/lib/validation/types/SchemaFunction.mjs +1 -1
  718. package/src/lib/validation/types/SchemaLike.cjs +1 -1
  719. package/src/lib/validation/types/SchemaLike.mjs +1 -1
  720. package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
  721. package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
  722. package/src/lib/validation/types/SchemaMap.cjs +1 -1
  723. package/src/lib/validation/types/SchemaMap.mjs +1 -1
  724. package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
  725. package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
  726. package/src/lib/validation/types/Types.cjs +1 -1
  727. package/src/lib/validation/types/Types.mjs +1 -1
  728. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
  729. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
  730. package/src/options/ApplicationOptions.cjs +22 -84
  731. package/src/options/ApplicationOptions.mjs +25 -87
  732. package/src/options/LoadAnonymousObjectOptions.cjs +20 -82
  733. package/src/options/LoadAnonymousObjectOptions.mjs +22 -84
  734. package/src/options/LoadNamedObjectOptions.cjs +20 -82
  735. package/src/options/LoadNamedObjectOptions.mjs +22 -84
  736. package/src/options/LoadObjectOptions.cjs +23 -96
  737. package/src/options/LoadObjectOptions.mjs +18 -98
  738. package/src/options/ModuleLoadObjectsOptions.cjs +20 -82
  739. package/src/options/ModuleLoadObjectsOptions.mjs +20 -82
  740. package/src/options/ModuleOptions.cjs +26 -88
  741. package/src/options/ModuleOptions.mjs +25 -87
  742. package/src/options/OverridableNamedObjectOptions.cjs +20 -82
  743. package/src/options/OverridableNamedObjectOptions.mjs +23 -85
  744. package/src/options/OverridableObjectOptions.cjs +20 -82
  745. package/src/options/OverridableObjectOptions.mjs +22 -84
  746. package/src/providers/Database.cjs +41 -181
  747. package/src/providers/Database.mjs +74 -214
  748. package/src/providers/PasswordHash.cjs +541 -89
  749. package/src/providers/PasswordHash.mjs +535 -89
  750. package/src/providers/migration/GenerateMigration.cjs +37 -389
  751. package/src/providers/migration/GenerateMigration.mjs +33 -386
  752. package/src/types/ActionPattern.cjs +1 -1
  753. package/src/types/ActionPattern.mjs +1 -1
  754. package/src/types/ClassDecorator.cjs +1 -1
  755. package/src/types/ClassDecorator.mjs +1 -1
  756. package/src/types/ComponentOptions.cjs +1 -1
  757. package/src/types/ComponentOptions.mjs +1 -1
  758. package/src/types/JSONSchema.cjs +1 -1
  759. package/src/types/JSONSchema.mjs +1 -1
  760. package/src/types/MethodDecorator.cjs +1 -1
  761. package/src/types/MethodDecorator.mjs +1 -1
  762. package/src/types/ModuleOptions.cjs +1 -1
  763. package/src/types/ModuleOptions.mjs +1 -1
  764. package/src/types/ObjectOptions.cjs +1 -1
  765. package/src/types/ObjectOptions.mjs +1 -1
  766. package/src/types/ParameterDecorator.cjs +1 -1
  767. package/src/types/ParameterDecorator.mjs +1 -1
  768. package/src/types/PropertyDecorator.cjs +1 -1
  769. package/src/types/PropertyDecorator.mjs +1 -1
  770. package/src/types/ProviderOptions.cjs +1 -1
  771. package/src/types/ProviderOptions.mjs +1 -1
  772. package/vendor/Package.internal.1.cjs +938 -206
  773. package/vendor/Package.internal.1.mjs +938 -202
  774. package/vendor/Package.internal.10.cjs +17 -227
  775. package/vendor/Package.internal.10.mjs +18 -226
  776. package/vendor/Package.internal.11.cjs +15 -1608
  777. package/vendor/Package.internal.11.mjs +16 -1579
  778. package/vendor/Package.internal.12.cjs +13 -12547
  779. package/vendor/Package.internal.12.mjs +14 -12530
  780. package/vendor/Package.internal.13.cjs +22 -357
  781. package/vendor/Package.internal.13.mjs +23 -358
  782. package/vendor/Package.internal.14.cjs +17 -786
  783. package/vendor/Package.internal.14.mjs +18 -787
  784. package/vendor/Package.internal.15.cjs +18 -72
  785. package/vendor/Package.internal.15.mjs +19 -71
  786. package/vendor/Package.internal.16.cjs +13 -977
  787. package/vendor/Package.internal.16.mjs +14 -966
  788. package/vendor/Package.internal.17.cjs +19 -43
  789. package/vendor/Package.internal.17.mjs +20 -44
  790. package/vendor/Package.internal.18.cjs +16 -262
  791. package/vendor/Package.internal.18.mjs +17 -263
  792. package/vendor/Package.internal.19.cjs +16 -428
  793. package/vendor/Package.internal.19.mjs +17 -429
  794. package/vendor/Package.internal.2.cjs +29 -86
  795. package/vendor/Package.internal.2.mjs +30 -83
  796. package/vendor/Package.internal.20.cjs +18 -556
  797. package/vendor/Package.internal.20.mjs +19 -551
  798. package/vendor/Package.internal.21.cjs +19 -400
  799. package/vendor/Package.internal.21.mjs +20 -401
  800. package/vendor/Package.internal.22.cjs +56 -913
  801. package/vendor/Package.internal.22.mjs +57 -908
  802. package/vendor/Package.internal.23.cjs +15 -218
  803. package/vendor/Package.internal.23.mjs +17 -220
  804. package/vendor/Package.internal.24.cjs +16 -990
  805. package/vendor/Package.internal.24.mjs +17 -991
  806. package/vendor/Package.internal.25.cjs +32 -9
  807. package/vendor/Package.internal.25.mjs +33 -8
  808. package/vendor/Package.internal.26.cjs +15 -121
  809. package/vendor/Package.internal.26.mjs +16 -120
  810. package/vendor/Package.internal.27.cjs +18 -139
  811. package/vendor/Package.internal.27.mjs +19 -138
  812. package/vendor/Package.internal.28.cjs +21 -5
  813. package/vendor/Package.internal.28.mjs +22 -4
  814. package/vendor/Package.internal.29.cjs +36 -19
  815. package/vendor/Package.internal.29.mjs +37 -18
  816. package/vendor/Package.internal.3.cjs +532 -14232
  817. package/vendor/Package.internal.3.mjs +529 -14211
  818. package/vendor/Package.internal.30.cjs +22 -474
  819. package/vendor/Package.internal.30.mjs +23 -469
  820. package/vendor/Package.internal.31.cjs +21 -74
  821. package/vendor/Package.internal.31.mjs +24 -71
  822. package/vendor/Package.internal.310.cjs +10 -0
  823. package/vendor/Package.internal.310.mjs +8 -0
  824. package/vendor/Package.internal.32.cjs +40 -2
  825. package/vendor/Package.internal.32.mjs +42 -2
  826. package/vendor/Package.internal.33.cjs +34 -35
  827. package/vendor/Package.internal.33.mjs +35 -34
  828. package/vendor/Package.internal.34.cjs +20 -21
  829. package/vendor/Package.internal.34.mjs +21 -20
  830. package/vendor/Package.internal.35.cjs +29 -10
  831. package/vendor/Package.internal.35.mjs +30 -9
  832. package/vendor/Package.internal.36.cjs +39 -188
  833. package/vendor/Package.internal.36.mjs +42 -191
  834. package/vendor/Package.internal.37.cjs +43 -59
  835. package/vendor/Package.internal.37.mjs +46 -60
  836. package/vendor/Package.internal.38.cjs +43 -158
  837. package/vendor/Package.internal.38.mjs +44 -159
  838. package/vendor/Package.internal.39.cjs +19 -2070
  839. package/vendor/Package.internal.39.mjs +20 -2065
  840. package/vendor/Package.internal.4.cjs +463 -961
  841. package/vendor/Package.internal.4.mjs +444 -960
  842. package/vendor/Package.internal.40.cjs +16 -512
  843. package/vendor/Package.internal.40.mjs +17 -505
  844. package/vendor/Package.internal.41.cjs +15 -412
  845. package/vendor/Package.internal.41.mjs +16 -407
  846. package/vendor/Package.internal.42.cjs +21 -2356
  847. package/vendor/Package.internal.42.mjs +22 -2345
  848. package/vendor/Package.internal.43.cjs +17 -56
  849. package/vendor/Package.internal.43.mjs +18 -63
  850. package/vendor/Package.internal.44.cjs +25 -146
  851. package/vendor/Package.internal.44.mjs +26 -145
  852. package/vendor/Package.internal.45.cjs +31 -626
  853. package/vendor/Package.internal.45.mjs +33 -628
  854. package/vendor/Package.internal.46.cjs +16 -238
  855. package/vendor/Package.internal.46.mjs +17 -239
  856. package/vendor/Package.internal.47.cjs +16 -220
  857. package/vendor/Package.internal.47.mjs +17 -215
  858. package/vendor/Package.internal.48.cjs +23 -2
  859. package/vendor/Package.internal.48.mjs +25 -2
  860. package/vendor/Package.internal.49.cjs +24 -355
  861. package/vendor/Package.internal.49.mjs +27 -352
  862. package/vendor/Package.internal.5.cjs +4275 -340
  863. package/vendor/Package.internal.5.mjs +4274 -341
  864. package/vendor/Package.internal.50.cjs +30 -30
  865. package/vendor/Package.internal.50.mjs +32 -30
  866. package/vendor/Package.internal.51.cjs +48322 -38
  867. package/vendor/Package.internal.51.mjs +48282 -38
  868. package/vendor/Package.internal.510.cjs +154 -0
  869. package/vendor/Package.internal.510.mjs +142 -0
  870. package/vendor/Package.internal.511.cjs +168 -0
  871. package/vendor/Package.internal.511.mjs +156 -0
  872. package/vendor/Package.internal.512.cjs +6 -0
  873. package/vendor/Package.internal.512.mjs +6 -0
  874. package/vendor/Package.internal.513.cjs +192 -0
  875. package/vendor/Package.internal.513.mjs +180 -0
  876. package/vendor/Package.internal.52.cjs +676 -16
  877. package/vendor/Package.internal.52.mjs +672 -16
  878. package/vendor/{Package.internal.180.cjs → Package.internal.522.cjs} +1 -1
  879. package/vendor/{Package.internal.180.mjs → Package.internal.522.mjs} +2 -2
  880. package/vendor/Package.internal.53.cjs +7094 -63
  881. package/vendor/Package.internal.53.mjs +7067 -60
  882. package/vendor/Package.internal.54.cjs +183 -77
  883. package/vendor/Package.internal.54.mjs +184 -78
  884. package/vendor/Package.internal.542.cjs +171 -0
  885. package/vendor/Package.internal.542.mjs +153 -0
  886. package/vendor/Package.internal.55.cjs +3982 -56
  887. package/vendor/Package.internal.55.mjs +3995 -47
  888. package/vendor/Package.internal.552.cjs +49615 -0
  889. package/vendor/Package.internal.552.mjs +49572 -0
  890. package/vendor/Package.internal.56.cjs +838 -20
  891. package/vendor/Package.internal.56.mjs +839 -19
  892. package/vendor/Package.internal.57.cjs +14762 -322
  893. package/vendor/Package.internal.57.mjs +14740 -325
  894. package/vendor/Package.internal.58.cjs +136 -2
  895. package/vendor/Package.internal.58.mjs +126 -2
  896. package/vendor/Package.internal.59.cjs +323 -188
  897. package/vendor/Package.internal.59.mjs +319 -188
  898. package/vendor/Package.internal.6.cjs +4 -6109
  899. package/vendor/Package.internal.6.mjs +4 -6103
  900. package/vendor/Package.internal.7.cjs +6543 -494
  901. package/vendor/Package.internal.7.mjs +6531 -494
  902. package/vendor/Package.internal.8.cjs +152 -33
  903. package/vendor/Package.internal.8.mjs +152 -31
  904. package/vendor/Package.internal.9.cjs +16 -2160
  905. package/vendor/Package.internal.9.mjs +17 -2133
  906. package/vendor/TypeDef.internal.96.d.ts +28 -22
  907. package/vendor/Package.internal.100.cjs +0 -69
  908. package/vendor/Package.internal.100.mjs +0 -67
  909. package/vendor/Package.internal.101.cjs +0 -123
  910. package/vendor/Package.internal.101.mjs +0 -121
  911. package/vendor/Package.internal.102.cjs +0 -16
  912. package/vendor/Package.internal.102.mjs +0 -8
  913. package/vendor/Package.internal.103.cjs +0 -4
  914. package/vendor/Package.internal.103.mjs +0 -2
  915. package/vendor/Package.internal.104.cjs +0 -4
  916. package/vendor/Package.internal.104.mjs +0 -2
  917. package/vendor/Package.internal.105.cjs +0 -112
  918. package/vendor/Package.internal.105.mjs +0 -98
  919. package/vendor/Package.internal.106.cjs +0 -88
  920. package/vendor/Package.internal.106.mjs +0 -84
  921. package/vendor/Package.internal.107.cjs +0 -58
  922. package/vendor/Package.internal.107.mjs +0 -52
  923. package/vendor/Package.internal.108.cjs +0 -20
  924. package/vendor/Package.internal.108.mjs +0 -18
  925. package/vendor/Package.internal.109.cjs +0 -96
  926. package/vendor/Package.internal.109.mjs +0 -96
  927. package/vendor/Package.internal.110.cjs +0 -113
  928. package/vendor/Package.internal.110.mjs +0 -113
  929. package/vendor/Package.internal.111.cjs +0 -2176
  930. package/vendor/Package.internal.111.mjs +0 -2174
  931. package/vendor/Package.internal.112.cjs +0 -2466
  932. package/vendor/Package.internal.112.mjs +0 -2434
  933. package/vendor/Package.internal.113.cjs +0 -1306
  934. package/vendor/Package.internal.113.mjs +0 -1292
  935. package/vendor/Package.internal.114.cjs +0 -33
  936. package/vendor/Package.internal.114.mjs +0 -31
  937. package/vendor/Package.internal.115.cjs +0 -20
  938. package/vendor/Package.internal.115.mjs +0 -18
  939. package/vendor/Package.internal.116.cjs +0 -21
  940. package/vendor/Package.internal.116.mjs +0 -21
  941. package/vendor/Package.internal.117.cjs +0 -52
  942. package/vendor/Package.internal.117.mjs +0 -52
  943. package/vendor/Package.internal.118.cjs +0 -141
  944. package/vendor/Package.internal.118.mjs +0 -141
  945. package/vendor/Package.internal.119.cjs +0 -2
  946. package/vendor/Package.internal.119.mjs +0 -1
  947. package/vendor/Package.internal.120.cjs +0 -6
  948. package/vendor/Package.internal.120.mjs +0 -4
  949. package/vendor/Package.internal.121.cjs +0 -4
  950. package/vendor/Package.internal.121.mjs +0 -2
  951. package/vendor/Package.internal.122.cjs +0 -4
  952. package/vendor/Package.internal.122.mjs +0 -2
  953. package/vendor/Package.internal.123.cjs +0 -4
  954. package/vendor/Package.internal.123.mjs +0 -2
  955. package/vendor/Package.internal.124.cjs +0 -49
  956. package/vendor/Package.internal.124.mjs +0 -47
  957. package/vendor/Package.internal.125.cjs +0 -14
  958. package/vendor/Package.internal.125.mjs +0 -14
  959. package/vendor/Package.internal.126.cjs +0 -12
  960. package/vendor/Package.internal.126.mjs +0 -12
  961. package/vendor/Package.internal.127.cjs +0 -20
  962. package/vendor/Package.internal.127.mjs +0 -18
  963. package/vendor/Package.internal.128.cjs +0 -118
  964. package/vendor/Package.internal.128.mjs +0 -116
  965. package/vendor/Package.internal.129.cjs +0 -18
  966. package/vendor/Package.internal.129.mjs +0 -16
  967. package/vendor/Package.internal.130.cjs +0 -19
  968. package/vendor/Package.internal.130.mjs +0 -17
  969. package/vendor/Package.internal.131.cjs +0 -8876
  970. package/vendor/Package.internal.131.mjs +0 -8874
  971. package/vendor/Package.internal.132.cjs +0 -899
  972. package/vendor/Package.internal.132.mjs +0 -897
  973. package/vendor/Package.internal.133.cjs +0 -6769
  974. package/vendor/Package.internal.133.mjs +0 -6775
  975. package/vendor/Package.internal.134.cjs +0 -473
  976. package/vendor/Package.internal.134.mjs +0 -459
  977. package/vendor/Package.internal.135.cjs +0 -617
  978. package/vendor/Package.internal.135.mjs +0 -611
  979. package/vendor/Package.internal.136.cjs +0 -97
  980. package/vendor/Package.internal.136.mjs +0 -89
  981. package/vendor/Package.internal.137.cjs +0 -4
  982. package/vendor/Package.internal.137.mjs +0 -2
  983. package/vendor/Package.internal.138.cjs +0 -3753
  984. package/vendor/Package.internal.138.mjs +0 -3751
  985. package/vendor/Package.internal.139.cjs +0 -561
  986. package/vendor/Package.internal.139.mjs +0 -559
  987. package/vendor/Package.internal.140.cjs +0 -4
  988. package/vendor/Package.internal.140.mjs +0 -2
  989. package/vendor/Package.internal.141.cjs +0 -4
  990. package/vendor/Package.internal.141.mjs +0 -2
  991. package/vendor/Package.internal.142.cjs +0 -4
  992. package/vendor/Package.internal.142.mjs +0 -2
  993. package/vendor/Package.internal.143.cjs +0 -4
  994. package/vendor/Package.internal.143.mjs +0 -2
  995. package/vendor/Package.internal.144.cjs +0 -4
  996. package/vendor/Package.internal.144.mjs +0 -2
  997. package/vendor/Package.internal.145.cjs +0 -4
  998. package/vendor/Package.internal.145.mjs +0 -2
  999. package/vendor/Package.internal.146.cjs +0 -4
  1000. package/vendor/Package.internal.146.mjs +0 -2
  1001. package/vendor/Package.internal.147.cjs +0 -4
  1002. package/vendor/Package.internal.147.mjs +0 -2
  1003. package/vendor/Package.internal.148.cjs +0 -4
  1004. package/vendor/Package.internal.148.mjs +0 -2
  1005. package/vendor/Package.internal.149.cjs +0 -4
  1006. package/vendor/Package.internal.149.mjs +0 -2
  1007. package/vendor/Package.internal.150.cjs +0 -4
  1008. package/vendor/Package.internal.150.mjs +0 -2
  1009. package/vendor/Package.internal.151.cjs +0 -408
  1010. package/vendor/Package.internal.151.mjs +0 -400
  1011. package/vendor/Package.internal.152.cjs +0 -104
  1012. package/vendor/Package.internal.152.mjs +0 -104
  1013. package/vendor/Package.internal.153.cjs +0 -27
  1014. package/vendor/Package.internal.153.mjs +0 -27
  1015. package/vendor/Package.internal.154.cjs +0 -4
  1016. package/vendor/Package.internal.154.mjs +0 -2
  1017. package/vendor/Package.internal.155.cjs +0 -4
  1018. package/vendor/Package.internal.155.mjs +0 -2
  1019. package/vendor/Package.internal.156.cjs +0 -723
  1020. package/vendor/Package.internal.156.mjs +0 -723
  1021. package/vendor/Package.internal.157.cjs +0 -1548
  1022. package/vendor/Package.internal.157.mjs +0 -1540
  1023. package/vendor/Package.internal.158.cjs +0 -364
  1024. package/vendor/Package.internal.158.mjs +0 -364
  1025. package/vendor/Package.internal.159.cjs +0 -107
  1026. package/vendor/Package.internal.159.mjs +0 -107
  1027. package/vendor/Package.internal.160.cjs +0 -636
  1028. package/vendor/Package.internal.160.mjs +0 -622
  1029. package/vendor/Package.internal.161.cjs +0 -543
  1030. package/vendor/Package.internal.161.mjs +0 -533
  1031. package/vendor/Package.internal.162.cjs +0 -605
  1032. package/vendor/Package.internal.162.mjs +0 -605
  1033. package/vendor/Package.internal.163.cjs +0 -139
  1034. package/vendor/Package.internal.163.mjs +0 -131
  1035. package/vendor/Package.internal.164.cjs +0 -119
  1036. package/vendor/Package.internal.164.mjs +0 -111
  1037. package/vendor/Package.internal.165.cjs +0 -1224
  1038. package/vendor/Package.internal.165.mjs +0 -1214
  1039. package/vendor/Package.internal.166.cjs +0 -90
  1040. package/vendor/Package.internal.166.mjs +0 -98
  1041. package/vendor/Package.internal.167.cjs +0 -4
  1042. package/vendor/Package.internal.167.mjs +0 -2
  1043. package/vendor/Package.internal.168.cjs +0 -4
  1044. package/vendor/Package.internal.168.mjs +0 -2
  1045. package/vendor/Package.internal.169.cjs +0 -55
  1046. package/vendor/Package.internal.169.mjs +0 -55
  1047. package/vendor/Package.internal.170.cjs +0 -10
  1048. package/vendor/Package.internal.170.mjs +0 -10
  1049. package/vendor/Package.internal.171.cjs +0 -12
  1050. package/vendor/Package.internal.171.mjs +0 -6
  1051. package/vendor/Package.internal.172.cjs +0 -165
  1052. package/vendor/Package.internal.172.mjs +0 -163
  1053. package/vendor/Package.internal.173.cjs +0 -23
  1054. package/vendor/Package.internal.173.mjs +0 -15
  1055. package/vendor/Package.internal.174.cjs +0 -251
  1056. package/vendor/Package.internal.174.mjs +0 -249
  1057. package/vendor/Package.internal.175.cjs +0 -949
  1058. package/vendor/Package.internal.175.mjs +0 -947
  1059. package/vendor/Package.internal.176.cjs +0 -27
  1060. package/vendor/Package.internal.176.mjs +0 -27
  1061. package/vendor/Package.internal.177.cjs +0 -80
  1062. package/vendor/Package.internal.177.mjs +0 -72
  1063. package/vendor/Package.internal.178.cjs +0 -655
  1064. package/vendor/Package.internal.178.mjs +0 -653
  1065. package/vendor/Package.internal.179.cjs +0 -77
  1066. package/vendor/Package.internal.179.mjs +0 -75
  1067. package/vendor/Package.internal.181.cjs +0 -70
  1068. package/vendor/Package.internal.181.mjs +0 -68
  1069. package/vendor/Package.internal.182.cjs +0 -112
  1070. package/vendor/Package.internal.182.mjs +0 -110
  1071. package/vendor/Package.internal.183.cjs +0 -102
  1072. package/vendor/Package.internal.183.mjs +0 -100
  1073. package/vendor/Package.internal.184.cjs +0 -45450
  1074. package/vendor/Package.internal.184.mjs +0 -45432
  1075. package/vendor/Package.internal.185.cjs +0 -8
  1076. package/vendor/Package.internal.185.mjs +0 -6
  1077. package/vendor/Package.internal.186.cjs +0 -30
  1078. package/vendor/Package.internal.186.mjs +0 -28
  1079. package/vendor/Package.internal.187.cjs +0 -317
  1080. package/vendor/Package.internal.187.mjs +0 -315
  1081. package/vendor/Package.internal.188.cjs +0 -943
  1082. package/vendor/Package.internal.188.mjs +0 -951
  1083. package/vendor/Package.internal.189.cjs +0 -1090
  1084. package/vendor/Package.internal.189.mjs +0 -1090
  1085. package/vendor/Package.internal.190.cjs +0 -165
  1086. package/vendor/Package.internal.190.mjs +0 -165
  1087. package/vendor/Package.internal.191.cjs +0 -15
  1088. package/vendor/Package.internal.191.mjs +0 -13
  1089. package/vendor/Package.internal.192.cjs +0 -14
  1090. package/vendor/Package.internal.192.mjs +0 -12
  1091. package/vendor/Package.internal.193.cjs +0 -49
  1092. package/vendor/Package.internal.193.mjs +0 -47
  1093. package/vendor/Package.internal.194.cjs +0 -493
  1094. package/vendor/Package.internal.194.mjs +0 -471
  1095. package/vendor/Package.internal.195.cjs +0 -4
  1096. package/vendor/Package.internal.195.mjs +0 -2
  1097. package/vendor/Package.internal.196.cjs +0 -4
  1098. package/vendor/Package.internal.196.mjs +0 -2
  1099. package/vendor/Package.internal.197.cjs +0 -4
  1100. package/vendor/Package.internal.197.mjs +0 -2
  1101. package/vendor/Package.internal.198.cjs +0 -4
  1102. package/vendor/Package.internal.198.mjs +0 -2
  1103. package/vendor/Package.internal.199.cjs +0 -4
  1104. package/vendor/Package.internal.199.mjs +0 -2
  1105. package/vendor/Package.internal.200.cjs +0 -4
  1106. package/vendor/Package.internal.200.mjs +0 -2
  1107. package/vendor/Package.internal.201.cjs +0 -4
  1108. package/vendor/Package.internal.201.mjs +0 -2
  1109. package/vendor/Package.internal.202.cjs +0 -4
  1110. package/vendor/Package.internal.202.mjs +0 -2
  1111. package/vendor/Package.internal.60.cjs +0 -27
  1112. package/vendor/Package.internal.60.mjs +0 -27
  1113. package/vendor/Package.internal.61.cjs +0 -4
  1114. package/vendor/Package.internal.61.mjs +0 -2
  1115. package/vendor/Package.internal.62.cjs +0 -200
  1116. package/vendor/Package.internal.62.mjs +0 -200
  1117. package/vendor/Package.internal.63.cjs +0 -4019
  1118. package/vendor/Package.internal.63.mjs +0 -4027
  1119. package/vendor/Package.internal.64.cjs +0 -4
  1120. package/vendor/Package.internal.64.mjs +0 -2
  1121. package/vendor/Package.internal.65.cjs +0 -321
  1122. package/vendor/Package.internal.65.mjs +0 -321
  1123. package/vendor/Package.internal.66.cjs +0 -365
  1124. package/vendor/Package.internal.66.mjs +0 -363
  1125. package/vendor/Package.internal.67.cjs +0 -403
  1126. package/vendor/Package.internal.67.mjs +0 -395
  1127. package/vendor/Package.internal.68.cjs +0 -127
  1128. package/vendor/Package.internal.68.mjs +0 -125
  1129. package/vendor/Package.internal.69.cjs +0 -31
  1130. package/vendor/Package.internal.69.mjs +0 -29
  1131. package/vendor/Package.internal.70.cjs +0 -87
  1132. package/vendor/Package.internal.70.mjs +0 -85
  1133. package/vendor/Package.internal.71.cjs +0 -61
  1134. package/vendor/Package.internal.71.mjs +0 -59
  1135. package/vendor/Package.internal.72.cjs +0 -34
  1136. package/vendor/Package.internal.72.mjs +0 -32
  1137. package/vendor/Package.internal.73.cjs +0 -4
  1138. package/vendor/Package.internal.73.mjs +0 -2
  1139. package/vendor/Package.internal.74.cjs +0 -684
  1140. package/vendor/Package.internal.74.mjs +0 -662
  1141. package/vendor/Package.internal.75.cjs +0 -13896
  1142. package/vendor/Package.internal.75.mjs +0 -13870
  1143. package/vendor/Package.internal.76.cjs +0 -37
  1144. package/vendor/Package.internal.76.mjs +0 -31
  1145. package/vendor/Package.internal.77.cjs +0 -4077
  1146. package/vendor/Package.internal.77.mjs +0 -4077
  1147. package/vendor/Package.internal.78.cjs +0 -1664
  1148. package/vendor/Package.internal.78.mjs +0 -1664
  1149. package/vendor/Package.internal.79.cjs +0 -259
  1150. package/vendor/Package.internal.79.mjs +0 -257
  1151. package/vendor/Package.internal.80.cjs +0 -4964
  1152. package/vendor/Package.internal.80.mjs +0 -4948
  1153. package/vendor/Package.internal.81.cjs +0 -1239
  1154. package/vendor/Package.internal.81.mjs +0 -1225
  1155. package/vendor/Package.internal.82.cjs +0 -340
  1156. package/vendor/Package.internal.82.mjs +0 -326
  1157. package/vendor/Package.internal.83.cjs +0 -34
  1158. package/vendor/Package.internal.83.mjs +0 -32
  1159. package/vendor/Package.internal.84.cjs +0 -88
  1160. package/vendor/Package.internal.84.mjs +0 -88
  1161. package/vendor/Package.internal.85.cjs +0 -55
  1162. package/vendor/Package.internal.85.mjs +0 -55
  1163. package/vendor/Package.internal.86.cjs +0 -15
  1164. package/vendor/Package.internal.86.mjs +0 -13
  1165. package/vendor/Package.internal.87.cjs +0 -1355
  1166. package/vendor/Package.internal.87.mjs +0 -1355
  1167. package/vendor/Package.internal.88.cjs +0 -12
  1168. package/vendor/Package.internal.88.mjs +0 -6
  1169. package/vendor/Package.internal.89.cjs +0 -4
  1170. package/vendor/Package.internal.89.mjs +0 -2
  1171. package/vendor/Package.internal.90.cjs +0 -351
  1172. package/vendor/Package.internal.90.mjs +0 -351
  1173. package/vendor/Package.internal.91.cjs +0 -80
  1174. package/vendor/Package.internal.91.mjs +0 -80
  1175. package/vendor/Package.internal.92.cjs +0 -1445
  1176. package/vendor/Package.internal.92.mjs +0 -1433
  1177. package/vendor/Package.internal.93.cjs +0 -144
  1178. package/vendor/Package.internal.93.mjs +0 -142
  1179. package/vendor/Package.internal.94.cjs +0 -1822
  1180. package/vendor/Package.internal.94.mjs +0 -1814
  1181. package/vendor/Package.internal.95.cjs +0 -130
  1182. package/vendor/Package.internal.95.mjs +0 -124
  1183. package/vendor/Package.internal.96.cjs +0 -208
  1184. package/vendor/Package.internal.96.mjs +0 -208
  1185. package/vendor/Package.internal.97.cjs +0 -1641
  1186. package/vendor/Package.internal.97.mjs +0 -1641
  1187. package/vendor/Package.internal.98.cjs +0 -74
  1188. package/vendor/Package.internal.98.mjs +0 -74
  1189. package/vendor/Package.internal.99.cjs +0 -28
  1190. package/vendor/Package.internal.99.mjs +0 -28
@@ -1,1292 +0,0 @@
1
- /* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
2
- import { c as t } from "./Package.internal.8.mjs";
3
-
4
- import e, { EventEmitter as s } from "node:events";
5
-
6
- import i from "node:stream";
7
-
8
- import r, { StringDecoder as n } from "node:string_decoder";
9
-
10
- var o = {};
11
-
12
- var h;
13
-
14
- function f() {
15
- if (h) return o;
16
- h = 1;
17
- (function(s) {
18
- var n = t && t.__importDefault || function(t) {
19
- return t && t.__esModule ? t : {
20
- default: t
21
- };
22
- };
23
- Object.defineProperty(s, "__esModule", {
24
- value: true
25
- });
26
- s.Minipass = s.isWritable = s.isReadable = s.isStream = void 0;
27
- const o = typeof process === "object" && process ? process : {
28
- stdout: null,
29
- stderr: null
30
- };
31
- const h = e;
32
- const f = n(i);
33
- const a = r;
34
- const l = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof f.default || (0,
35
- s.isReadable)(t) || (0, s.isWritable)(t));
36
- s.isStream = l;
37
- const u = t => !!t && typeof t === "object" && t instanceof h.EventEmitter && typeof t.pipe === "function" && t.pipe !== f.default.Writable.prototype.pipe;
38
- s.isReadable = u;
39
- const c = t => !!t && typeof t === "object" && t instanceof h.EventEmitter && typeof t.write === "function" && typeof t.end === "function";
40
- s.isWritable = c;
41
- const d = Symbol("EOF");
42
- const m = Symbol("maybeEmitEnd");
43
- const p = Symbol("emittedEnd");
44
- const b = Symbol("emittingEnd");
45
- const y = Symbol("emittedError");
46
- const g = Symbol("closed");
47
- const w = Symbol("read");
48
- const E = Symbol("flush");
49
- const S = Symbol("flushChunk");
50
- const v = Symbol("encoding");
51
- const j = Symbol("decoder");
52
- const L = Symbol("flowing");
53
- const x = Symbol("paused");
54
- const M = Symbol("resume");
55
- const P = Symbol("buffer");
56
- const B = Symbol("pipes");
57
- const A = Symbol("bufferLength");
58
- const O = Symbol("bufferPush");
59
- const R = Symbol("bufferShift");
60
- const _ = Symbol("objectMode");
61
- const D = Symbol("destroyed");
62
- const T = Symbol("error");
63
- const W = Symbol("emitData");
64
- const C = Symbol("emitEnd");
65
- const I = Symbol("emitEnd2");
66
- const N = Symbol("async");
67
- const k = Symbol("abort");
68
- const F = Symbol("aborted");
69
- const V = Symbol("signal");
70
- const Y = Symbol("dataListeners");
71
- const q = Symbol("discarded");
72
- const z = t => Promise.resolve().then(t);
73
- const G = t => t();
74
- const H = t => t === "end" || t === "finish" || t === "prefinish";
75
- const J = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
76
- const K = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
77
- class Pipe {
78
- src;
79
- dest;
80
- opts;
81
- ondrain;
82
- constructor(t, e, s) {
83
- this.src = t;
84
- this.dest = e;
85
- this.opts = s;
86
- this.ondrain = () => t[M]();
87
- this.dest.on("drain", this.ondrain);
88
- }
89
- unpipe() {
90
- this.dest.removeListener("drain", this.ondrain);
91
- }
92
- proxyErrors(t) {}
93
- end() {
94
- this.unpipe();
95
- if (this.opts.end) this.dest.end();
96
- }
97
- }
98
- class PipeProxyErrors extends Pipe {
99
- unpipe() {
100
- this.src.removeListener("error", this.proxyErrors);
101
- super.unpipe();
102
- }
103
- constructor(t, e, s) {
104
- super(t, e, s);
105
- this.proxyErrors = t => e.emit("error", t);
106
- t.on("error", this.proxyErrors);
107
- }
108
- }
109
- const Q = t => !!t.objectMode;
110
- const U = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
111
- class Minipass extends h.EventEmitter {
112
- [L]=false;
113
- [x]=false;
114
- [B]=[];
115
- [P]=[];
116
- [_];
117
- [v];
118
- [N];
119
- [j];
120
- [d]=false;
121
- [p]=false;
122
- [b]=false;
123
- [g]=false;
124
- [y]=null;
125
- [A]=0;
126
- [D]=false;
127
- [V];
128
- [F]=false;
129
- [Y]=0;
130
- [q]=false;
131
- writable=true;
132
- readable=true;
133
- constructor(...t) {
134
- const e = t[0] || {};
135
- super();
136
- if (e.objectMode && typeof e.encoding === "string") {
137
- throw new TypeError("Encoding and objectMode may not be used together");
138
- }
139
- if (Q(e)) {
140
- this[_] = true;
141
- this[v] = null;
142
- } else if (U(e)) {
143
- this[v] = e.encoding;
144
- this[_] = false;
145
- } else {
146
- this[_] = false;
147
- this[v] = null;
148
- }
149
- this[N] = !!e.async;
150
- this[j] = this[v] ? new a.StringDecoder(this[v]) : null;
151
- if (e && e.debugExposeBuffer === true) {
152
- Object.defineProperty(this, "buffer", {
153
- get: () => this[P]
154
- });
155
- }
156
- if (e && e.debugExposePipes === true) {
157
- Object.defineProperty(this, "pipes", {
158
- get: () => this[B]
159
- });
160
- }
161
- const {signal: s} = e;
162
- if (s) {
163
- this[V] = s;
164
- if (s.aborted) {
165
- this[k]();
166
- } else {
167
- s.addEventListener("abort", () => this[k]());
168
- }
169
- }
170
- }
171
- get bufferLength() {
172
- return this[A];
173
- }
174
- get encoding() {
175
- return this[v];
176
- }
177
- set encoding(t) {
178
- throw new Error("Encoding must be set at instantiation time");
179
- }
180
- setEncoding(t) {
181
- throw new Error("Encoding must be set at instantiation time");
182
- }
183
- get objectMode() {
184
- return this[_];
185
- }
186
- set objectMode(t) {
187
- throw new Error("objectMode must be set at instantiation time");
188
- }
189
- get ["async"]() {
190
- return this[N];
191
- }
192
- set ["async"](t) {
193
- this[N] = this[N] || !!t;
194
- }
195
- [k]() {
196
- this[F] = true;
197
- this.emit("abort", this[V]?.reason);
198
- this.destroy(this[V]?.reason);
199
- }
200
- get aborted() {
201
- return this[F];
202
- }
203
- set aborted(t) {}
204
- write(t, e, s) {
205
- if (this[F]) return false;
206
- if (this[d]) throw new Error("write after end");
207
- if (this[D]) {
208
- this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
209
- code: "ERR_STREAM_DESTROYED"
210
- }));
211
- return true;
212
- }
213
- if (typeof e === "function") {
214
- s = e;
215
- e = "utf8";
216
- }
217
- if (!e) e = "utf8";
218
- const i = this[N] ? z : G;
219
- if (!this[_] && !Buffer.isBuffer(t)) {
220
- if (K(t)) {
221
- t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
222
- } else if (J(t)) {
223
- t = Buffer.from(t);
224
- } else if (typeof t !== "string") {
225
- throw new Error("Non-contiguous data written to non-objectMode stream");
226
- }
227
- }
228
- if (this[_]) {
229
- if (this[L] && this[A] !== 0) this[E](true);
230
- if (this[L]) this.emit("data", t); else this[O](t);
231
- if (this[A] !== 0) this.emit("readable");
232
- if (s) i(s);
233
- return this[L];
234
- }
235
- if (!t.length) {
236
- if (this[A] !== 0) this.emit("readable");
237
- if (s) i(s);
238
- return this[L];
239
- }
240
- if (typeof t === "string" && !(e === this[v] && !this[j]?.lastNeed)) {
241
- t = Buffer.from(t, e);
242
- }
243
- if (Buffer.isBuffer(t) && this[v]) {
244
- t = this[j].write(t);
245
- }
246
- if (this[L] && this[A] !== 0) this[E](true);
247
- if (this[L]) this.emit("data", t); else this[O](t);
248
- if (this[A] !== 0) this.emit("readable");
249
- if (s) i(s);
250
- return this[L];
251
- }
252
- read(t) {
253
- if (this[D]) return null;
254
- this[q] = false;
255
- if (this[A] === 0 || t === 0 || t && t > this[A]) {
256
- this[m]();
257
- return null;
258
- }
259
- if (this[_]) t = null;
260
- if (this[P].length > 1 && !this[_]) {
261
- this[P] = [ this[v] ? this[P].join("") : Buffer.concat(this[P], this[A]) ];
262
- }
263
- const e = this[w](t || null, this[P][0]);
264
- this[m]();
265
- return e;
266
- }
267
- [w](t, e) {
268
- if (this[_]) this[R](); else {
269
- const s = e;
270
- if (t === s.length || t === null) this[R](); else if (typeof s === "string") {
271
- this[P][0] = s.slice(t);
272
- e = s.slice(0, t);
273
- this[A] -= t;
274
- } else {
275
- this[P][0] = s.subarray(t);
276
- e = s.subarray(0, t);
277
- this[A] -= t;
278
- }
279
- }
280
- this.emit("data", e);
281
- if (!this[P].length && !this[d]) this.emit("drain");
282
- return e;
283
- }
284
- end(t, e, s) {
285
- if (typeof t === "function") {
286
- s = t;
287
- t = undefined;
288
- }
289
- if (typeof e === "function") {
290
- s = e;
291
- e = "utf8";
292
- }
293
- if (t !== undefined) this.write(t, e);
294
- if (s) this.once("end", s);
295
- this[d] = true;
296
- this.writable = false;
297
- if (this[L] || !this[x]) this[m]();
298
- return this;
299
- }
300
- [M]() {
301
- if (this[D]) return;
302
- if (!this[Y] && !this[B].length) {
303
- this[q] = true;
304
- }
305
- this[x] = false;
306
- this[L] = true;
307
- this.emit("resume");
308
- if (this[P].length) this[E](); else if (this[d]) this[m](); else this.emit("drain");
309
- }
310
- resume() {
311
- return this[M]();
312
- }
313
- pause() {
314
- this[L] = false;
315
- this[x] = true;
316
- this[q] = false;
317
- }
318
- get destroyed() {
319
- return this[D];
320
- }
321
- get flowing() {
322
- return this[L];
323
- }
324
- get paused() {
325
- return this[x];
326
- }
327
- [O](t) {
328
- if (this[_]) this[A] += 1; else this[A] += t.length;
329
- this[P].push(t);
330
- }
331
- [R]() {
332
- if (this[_]) this[A] -= 1; else this[A] -= this[P][0].length;
333
- return this[P].shift();
334
- }
335
- [E](t = false) {
336
- do {} while (this[S](this[R]()) && this[P].length);
337
- if (!t && !this[P].length && !this[d]) this.emit("drain");
338
- }
339
- [S](t) {
340
- this.emit("data", t);
341
- return this[L];
342
- }
343
- pipe(t, e) {
344
- if (this[D]) return t;
345
- this[q] = false;
346
- const s = this[p];
347
- e = e || {};
348
- if (t === o.stdout || t === o.stderr) e.end = false; else e.end = e.end !== false;
349
- e.proxyErrors = !!e.proxyErrors;
350
- if (s) {
351
- if (e.end) t.end();
352
- } else {
353
- this[B].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
354
- if (this[N]) z(() => this[M]()); else this[M]();
355
- }
356
- return t;
357
- }
358
- unpipe(t) {
359
- const e = this[B].find(e => e.dest === t);
360
- if (e) {
361
- if (this[B].length === 1) {
362
- if (this[L] && this[Y] === 0) {
363
- this[L] = false;
364
- }
365
- this[B] = [];
366
- } else this[B].splice(this[B].indexOf(e), 1);
367
- e.unpipe();
368
- }
369
- }
370
- addListener(t, e) {
371
- return this.on(t, e);
372
- }
373
- on(t, e) {
374
- const s = super.on(t, e);
375
- if (t === "data") {
376
- this[q] = false;
377
- this[Y]++;
378
- if (!this[B].length && !this[L]) {
379
- this[M]();
380
- }
381
- } else if (t === "readable" && this[A] !== 0) {
382
- super.emit("readable");
383
- } else if (H(t) && this[p]) {
384
- super.emit(t);
385
- this.removeAllListeners(t);
386
- } else if (t === "error" && this[y]) {
387
- const t = e;
388
- if (this[N]) z(() => t.call(this, this[y])); else t.call(this, this[y]);
389
- }
390
- return s;
391
- }
392
- removeListener(t, e) {
393
- return this.off(t, e);
394
- }
395
- off(t, e) {
396
- const s = super.off(t, e);
397
- if (t === "data") {
398
- this[Y] = this.listeners("data").length;
399
- if (this[Y] === 0 && !this[q] && !this[B].length) {
400
- this[L] = false;
401
- }
402
- }
403
- return s;
404
- }
405
- removeAllListeners(t) {
406
- const e = super.removeAllListeners(t);
407
- if (t === "data" || t === undefined) {
408
- this[Y] = 0;
409
- if (!this[q] && !this[B].length) {
410
- this[L] = false;
411
- }
412
- }
413
- return e;
414
- }
415
- get emittedEnd() {
416
- return this[p];
417
- }
418
- [m]() {
419
- if (!this[b] && !this[p] && !this[D] && this[P].length === 0 && this[d]) {
420
- this[b] = true;
421
- this.emit("end");
422
- this.emit("prefinish");
423
- this.emit("finish");
424
- if (this[g]) this.emit("close");
425
- this[b] = false;
426
- }
427
- }
428
- emit(t, ...e) {
429
- const s = e[0];
430
- if (t !== "error" && t !== "close" && t !== D && this[D]) {
431
- return false;
432
- } else if (t === "data") {
433
- return !this[_] && !s ? false : this[N] ? (z(() => this[W](s)), true) : this[W](s);
434
- } else if (t === "end") {
435
- return this[C]();
436
- } else if (t === "close") {
437
- this[g] = true;
438
- if (!this[p] && !this[D]) return false;
439
- const t = super.emit("close");
440
- this.removeAllListeners("close");
441
- return t;
442
- } else if (t === "error") {
443
- this[y] = s;
444
- super.emit(T, s);
445
- const t = !this[V] || this.listeners("error").length ? super.emit("error", s) : false;
446
- this[m]();
447
- return t;
448
- } else if (t === "resume") {
449
- const t = super.emit("resume");
450
- this[m]();
451
- return t;
452
- } else if (t === "finish" || t === "prefinish") {
453
- const e = super.emit(t);
454
- this.removeAllListeners(t);
455
- return e;
456
- }
457
- const i = super.emit(t, ...e);
458
- this[m]();
459
- return i;
460
- }
461
- [W](t) {
462
- for (const e of this[B]) {
463
- if (e.dest.write(t) === false) this.pause();
464
- }
465
- const e = this[q] ? false : super.emit("data", t);
466
- this[m]();
467
- return e;
468
- }
469
- [C]() {
470
- if (this[p]) return false;
471
- this[p] = true;
472
- this.readable = false;
473
- return this[N] ? (z(() => this[I]()), true) : this[I]();
474
- }
475
- [I]() {
476
- if (this[j]) {
477
- const t = this[j].end();
478
- if (t) {
479
- for (const e of this[B]) {
480
- e.dest.write(t);
481
- }
482
- if (!this[q]) super.emit("data", t);
483
- }
484
- }
485
- for (const t of this[B]) {
486
- t.end();
487
- }
488
- const t = super.emit("end");
489
- this.removeAllListeners("end");
490
- return t;
491
- }
492
- async collect() {
493
- const t = Object.assign([], {
494
- dataLength: 0
495
- });
496
- if (!this[_]) t.dataLength = 0;
497
- const e = this.promise();
498
- this.on("data", e => {
499
- t.push(e);
500
- if (!this[_]) t.dataLength += e.length;
501
- });
502
- await e;
503
- return t;
504
- }
505
- async concat() {
506
- if (this[_]) {
507
- throw new Error("cannot concat in objectMode");
508
- }
509
- const t = await this.collect();
510
- return this[v] ? t.join("") : Buffer.concat(t, t.dataLength);
511
- }
512
- async promise() {
513
- return new Promise((t, e) => {
514
- this.on(D, () => e(new Error("stream destroyed")));
515
- this.on("error", t => e(t));
516
- this.on("end", () => t());
517
- });
518
- }
519
- [Symbol.asyncIterator]() {
520
- this[q] = false;
521
- let t = false;
522
- const e = async () => {
523
- this.pause();
524
- t = true;
525
- return {
526
- value: undefined,
527
- done: true
528
- };
529
- };
530
- const s = () => {
531
- if (t) return e();
532
- const s = this.read();
533
- if (s !== null) return Promise.resolve({
534
- done: false,
535
- value: s
536
- });
537
- if (this[d]) return e();
538
- let i;
539
- let r;
540
- const n = t => {
541
- this.off("data", o);
542
- this.off("end", h);
543
- this.off(D, f);
544
- e();
545
- r(t);
546
- };
547
- const o = t => {
548
- this.off("error", n);
549
- this.off("end", h);
550
- this.off(D, f);
551
- this.pause();
552
- i({
553
- value: t,
554
- done: !!this[d]
555
- });
556
- };
557
- const h = () => {
558
- this.off("error", n);
559
- this.off("data", o);
560
- this.off(D, f);
561
- e();
562
- i({
563
- done: true,
564
- value: undefined
565
- });
566
- };
567
- const f = () => n(new Error("stream destroyed"));
568
- return new Promise((t, e) => {
569
- r = e;
570
- i = t;
571
- this.once(D, f);
572
- this.once("error", n);
573
- this.once("end", h);
574
- this.once("data", o);
575
- });
576
- };
577
- return {
578
- next: s,
579
- throw: e,
580
- return: e,
581
- [Symbol.asyncIterator]() {
582
- return this;
583
- }
584
- };
585
- }
586
- [Symbol.iterator]() {
587
- this[q] = false;
588
- let t = false;
589
- const e = () => {
590
- this.pause();
591
- this.off(T, e);
592
- this.off(D, e);
593
- this.off("end", e);
594
- t = true;
595
- return {
596
- done: true,
597
- value: undefined
598
- };
599
- };
600
- const s = () => {
601
- if (t) return e();
602
- const s = this.read();
603
- return s === null ? e() : {
604
- done: false,
605
- value: s
606
- };
607
- };
608
- this.once("end", e);
609
- this.once(T, e);
610
- this.once(D, e);
611
- return {
612
- next: s,
613
- throw: e,
614
- return: e,
615
- [Symbol.iterator]() {
616
- return this;
617
- }
618
- };
619
- }
620
- destroy(t) {
621
- if (this[D]) {
622
- if (t) this.emit("error", t); else this.emit(D);
623
- return this;
624
- }
625
- this[D] = true;
626
- this[q] = true;
627
- this[P].length = 0;
628
- this[A] = 0;
629
- const e = this;
630
- if (typeof e.close === "function" && !this[g]) e.close();
631
- if (t) this.emit("error", t); else this.emit(D);
632
- return this;
633
- }
634
- static get isStream() {
635
- return s.isStream;
636
- }
637
- }
638
- s.Minipass = Minipass;
639
- })(o);
640
- return o;
641
- }
642
-
643
- const a = typeof process === "object" && process ? process : {
644
- stdout: null,
645
- stderr: null
646
- };
647
-
648
- const l = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof i || u(t) || c(t));
649
-
650
- const u = t => !!t && typeof t === "object" && t instanceof s && typeof t.pipe === "function" && t.pipe !== i.Writable.prototype.pipe;
651
-
652
- const c = t => !!t && typeof t === "object" && t instanceof s && typeof t.write === "function" && typeof t.end === "function";
653
-
654
- const d = Symbol("EOF");
655
-
656
- const m = Symbol("maybeEmitEnd");
657
-
658
- const p = Symbol("emittedEnd");
659
-
660
- const b = Symbol("emittingEnd");
661
-
662
- const y = Symbol("emittedError");
663
-
664
- const g = Symbol("closed");
665
-
666
- const w = Symbol("read");
667
-
668
- const E = Symbol("flush");
669
-
670
- const S = Symbol("flushChunk");
671
-
672
- const v = Symbol("encoding");
673
-
674
- const j = Symbol("decoder");
675
-
676
- const L = Symbol("flowing");
677
-
678
- const x = Symbol("paused");
679
-
680
- const M = Symbol("resume");
681
-
682
- const P = Symbol("buffer");
683
-
684
- const B = Symbol("pipes");
685
-
686
- const A = Symbol("bufferLength");
687
-
688
- const O = Symbol("bufferPush");
689
-
690
- const R = Symbol("bufferShift");
691
-
692
- const _ = Symbol("objectMode");
693
-
694
- const D = Symbol("destroyed");
695
-
696
- const T = Symbol("error");
697
-
698
- const W = Symbol("emitData");
699
-
700
- const C = Symbol("emitEnd");
701
-
702
- const I = Symbol("emitEnd2");
703
-
704
- const N = Symbol("async");
705
-
706
- const k = Symbol("abort");
707
-
708
- const F = Symbol("aborted");
709
-
710
- const V = Symbol("signal");
711
-
712
- const Y = Symbol("dataListeners");
713
-
714
- const q = Symbol("discarded");
715
-
716
- const z = t => Promise.resolve().then(t);
717
-
718
- const G = t => t();
719
-
720
- const H = t => t === "end" || t === "finish" || t === "prefinish";
721
-
722
- const J = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
723
-
724
- const K = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
725
-
726
- class Pipe {
727
- src;
728
- dest;
729
- opts;
730
- ondrain;
731
- constructor(t, e, s) {
732
- this.src = t;
733
- this.dest = e;
734
- this.opts = s;
735
- this.ondrain = () => t[M]();
736
- this.dest.on("drain", this.ondrain);
737
- }
738
- unpipe() {
739
- this.dest.removeListener("drain", this.ondrain);
740
- }
741
- proxyErrors(t) {}
742
- end() {
743
- this.unpipe();
744
- if (this.opts.end) this.dest.end();
745
- }
746
- }
747
-
748
- class PipeProxyErrors extends Pipe {
749
- unpipe() {
750
- this.src.removeListener("error", this.proxyErrors);
751
- super.unpipe();
752
- }
753
- constructor(t, e, s) {
754
- super(t, e, s);
755
- this.proxyErrors = t => e.emit("error", t);
756
- t.on("error", this.proxyErrors);
757
- }
758
- }
759
-
760
- const Q = t => !!t.objectMode;
761
-
762
- const U = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
763
-
764
- class Minipass extends s {
765
- [L]=false;
766
- [x]=false;
767
- [B]=[];
768
- [P]=[];
769
- [_];
770
- [v];
771
- [N];
772
- [j];
773
- [d]=false;
774
- [p]=false;
775
- [b]=false;
776
- [g]=false;
777
- [y]=null;
778
- [A]=0;
779
- [D]=false;
780
- [V];
781
- [F]=false;
782
- [Y]=0;
783
- [q]=false;
784
- writable=true;
785
- readable=true;
786
- constructor(...t) {
787
- const e = t[0] || {};
788
- super();
789
- if (e.objectMode && typeof e.encoding === "string") {
790
- throw new TypeError("Encoding and objectMode may not be used together");
791
- }
792
- if (Q(e)) {
793
- this[_] = true;
794
- this[v] = null;
795
- } else if (U(e)) {
796
- this[v] = e.encoding;
797
- this[_] = false;
798
- } else {
799
- this[_] = false;
800
- this[v] = null;
801
- }
802
- this[N] = !!e.async;
803
- this[j] = this[v] ? new n(this[v]) : null;
804
- if (e && e.debugExposeBuffer === true) {
805
- Object.defineProperty(this, "buffer", {
806
- get: () => this[P]
807
- });
808
- }
809
- if (e && e.debugExposePipes === true) {
810
- Object.defineProperty(this, "pipes", {
811
- get: () => this[B]
812
- });
813
- }
814
- const {signal: s} = e;
815
- if (s) {
816
- this[V] = s;
817
- if (s.aborted) {
818
- this[k]();
819
- } else {
820
- s.addEventListener("abort", () => this[k]());
821
- }
822
- }
823
- }
824
- get bufferLength() {
825
- return this[A];
826
- }
827
- get encoding() {
828
- return this[v];
829
- }
830
- set encoding(t) {
831
- throw new Error("Encoding must be set at instantiation time");
832
- }
833
- setEncoding(t) {
834
- throw new Error("Encoding must be set at instantiation time");
835
- }
836
- get objectMode() {
837
- return this[_];
838
- }
839
- set objectMode(t) {
840
- throw new Error("objectMode must be set at instantiation time");
841
- }
842
- get ["async"]() {
843
- return this[N];
844
- }
845
- set ["async"](t) {
846
- this[N] = this[N] || !!t;
847
- }
848
- [k]() {
849
- this[F] = true;
850
- this.emit("abort", this[V]?.reason);
851
- this.destroy(this[V]?.reason);
852
- }
853
- get aborted() {
854
- return this[F];
855
- }
856
- set aborted(t) {}
857
- write(t, e, s) {
858
- if (this[F]) return false;
859
- if (this[d]) throw new Error("write after end");
860
- if (this[D]) {
861
- this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
862
- code: "ERR_STREAM_DESTROYED"
863
- }));
864
- return true;
865
- }
866
- if (typeof e === "function") {
867
- s = e;
868
- e = "utf8";
869
- }
870
- if (!e) e = "utf8";
871
- const i = this[N] ? z : G;
872
- if (!this[_] && !Buffer.isBuffer(t)) {
873
- if (K(t)) {
874
- t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
875
- } else if (J(t)) {
876
- t = Buffer.from(t);
877
- } else if (typeof t !== "string") {
878
- throw new Error("Non-contiguous data written to non-objectMode stream");
879
- }
880
- }
881
- if (this[_]) {
882
- if (this[L] && this[A] !== 0) this[E](true);
883
- if (this[L]) this.emit("data", t); else this[O](t);
884
- if (this[A] !== 0) this.emit("readable");
885
- if (s) i(s);
886
- return this[L];
887
- }
888
- if (!t.length) {
889
- if (this[A] !== 0) this.emit("readable");
890
- if (s) i(s);
891
- return this[L];
892
- }
893
- if (typeof t === "string" && !(e === this[v] && !this[j]?.lastNeed)) {
894
- t = Buffer.from(t, e);
895
- }
896
- if (Buffer.isBuffer(t) && this[v]) {
897
- t = this[j].write(t);
898
- }
899
- if (this[L] && this[A] !== 0) this[E](true);
900
- if (this[L]) this.emit("data", t); else this[O](t);
901
- if (this[A] !== 0) this.emit("readable");
902
- if (s) i(s);
903
- return this[L];
904
- }
905
- read(t) {
906
- if (this[D]) return null;
907
- this[q] = false;
908
- if (this[A] === 0 || t === 0 || t && t > this[A]) {
909
- this[m]();
910
- return null;
911
- }
912
- if (this[_]) t = null;
913
- if (this[P].length > 1 && !this[_]) {
914
- this[P] = [ this[v] ? this[P].join("") : Buffer.concat(this[P], this[A]) ];
915
- }
916
- const e = this[w](t || null, this[P][0]);
917
- this[m]();
918
- return e;
919
- }
920
- [w](t, e) {
921
- if (this[_]) this[R](); else {
922
- const s = e;
923
- if (t === s.length || t === null) this[R](); else if (typeof s === "string") {
924
- this[P][0] = s.slice(t);
925
- e = s.slice(0, t);
926
- this[A] -= t;
927
- } else {
928
- this[P][0] = s.subarray(t);
929
- e = s.subarray(0, t);
930
- this[A] -= t;
931
- }
932
- }
933
- this.emit("data", e);
934
- if (!this[P].length && !this[d]) this.emit("drain");
935
- return e;
936
- }
937
- end(t, e, s) {
938
- if (typeof t === "function") {
939
- s = t;
940
- t = undefined;
941
- }
942
- if (typeof e === "function") {
943
- s = e;
944
- e = "utf8";
945
- }
946
- if (t !== undefined) this.write(t, e);
947
- if (s) this.once("end", s);
948
- this[d] = true;
949
- this.writable = false;
950
- if (this[L] || !this[x]) this[m]();
951
- return this;
952
- }
953
- [M]() {
954
- if (this[D]) return;
955
- if (!this[Y] && !this[B].length) {
956
- this[q] = true;
957
- }
958
- this[x] = false;
959
- this[L] = true;
960
- this.emit("resume");
961
- if (this[P].length) this[E](); else if (this[d]) this[m](); else this.emit("drain");
962
- }
963
- resume() {
964
- return this[M]();
965
- }
966
- pause() {
967
- this[L] = false;
968
- this[x] = true;
969
- this[q] = false;
970
- }
971
- get destroyed() {
972
- return this[D];
973
- }
974
- get flowing() {
975
- return this[L];
976
- }
977
- get paused() {
978
- return this[x];
979
- }
980
- [O](t) {
981
- if (this[_]) this[A] += 1; else this[A] += t.length;
982
- this[P].push(t);
983
- }
984
- [R]() {
985
- if (this[_]) this[A] -= 1; else this[A] -= this[P][0].length;
986
- return this[P].shift();
987
- }
988
- [E](t = false) {
989
- do {} while (this[S](this[R]()) && this[P].length);
990
- if (!t && !this[P].length && !this[d]) this.emit("drain");
991
- }
992
- [S](t) {
993
- this.emit("data", t);
994
- return this[L];
995
- }
996
- pipe(t, e) {
997
- if (this[D]) return t;
998
- this[q] = false;
999
- const s = this[p];
1000
- e = e || {};
1001
- if (t === a.stdout || t === a.stderr) e.end = false; else e.end = e.end !== false;
1002
- e.proxyErrors = !!e.proxyErrors;
1003
- if (s) {
1004
- if (e.end) t.end();
1005
- } else {
1006
- this[B].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
1007
- if (this[N]) z(() => this[M]()); else this[M]();
1008
- }
1009
- return t;
1010
- }
1011
- unpipe(t) {
1012
- const e = this[B].find(e => e.dest === t);
1013
- if (e) {
1014
- if (this[B].length === 1) {
1015
- if (this[L] && this[Y] === 0) {
1016
- this[L] = false;
1017
- }
1018
- this[B] = [];
1019
- } else this[B].splice(this[B].indexOf(e), 1);
1020
- e.unpipe();
1021
- }
1022
- }
1023
- addListener(t, e) {
1024
- return this.on(t, e);
1025
- }
1026
- on(t, e) {
1027
- const s = super.on(t, e);
1028
- if (t === "data") {
1029
- this[q] = false;
1030
- this[Y]++;
1031
- if (!this[B].length && !this[L]) {
1032
- this[M]();
1033
- }
1034
- } else if (t === "readable" && this[A] !== 0) {
1035
- super.emit("readable");
1036
- } else if (H(t) && this[p]) {
1037
- super.emit(t);
1038
- this.removeAllListeners(t);
1039
- } else if (t === "error" && this[y]) {
1040
- const t = e;
1041
- if (this[N]) z(() => t.call(this, this[y])); else t.call(this, this[y]);
1042
- }
1043
- return s;
1044
- }
1045
- removeListener(t, e) {
1046
- return this.off(t, e);
1047
- }
1048
- off(t, e) {
1049
- const s = super.off(t, e);
1050
- if (t === "data") {
1051
- this[Y] = this.listeners("data").length;
1052
- if (this[Y] === 0 && !this[q] && !this[B].length) {
1053
- this[L] = false;
1054
- }
1055
- }
1056
- return s;
1057
- }
1058
- removeAllListeners(t) {
1059
- const e = super.removeAllListeners(t);
1060
- if (t === "data" || t === undefined) {
1061
- this[Y] = 0;
1062
- if (!this[q] && !this[B].length) {
1063
- this[L] = false;
1064
- }
1065
- }
1066
- return e;
1067
- }
1068
- get emittedEnd() {
1069
- return this[p];
1070
- }
1071
- [m]() {
1072
- if (!this[b] && !this[p] && !this[D] && this[P].length === 0 && this[d]) {
1073
- this[b] = true;
1074
- this.emit("end");
1075
- this.emit("prefinish");
1076
- this.emit("finish");
1077
- if (this[g]) this.emit("close");
1078
- this[b] = false;
1079
- }
1080
- }
1081
- emit(t, ...e) {
1082
- const s = e[0];
1083
- if (t !== "error" && t !== "close" && t !== D && this[D]) {
1084
- return false;
1085
- } else if (t === "data") {
1086
- return !this[_] && !s ? false : this[N] ? (z(() => this[W](s)), true) : this[W](s);
1087
- } else if (t === "end") {
1088
- return this[C]();
1089
- } else if (t === "close") {
1090
- this[g] = true;
1091
- if (!this[p] && !this[D]) return false;
1092
- const t = super.emit("close");
1093
- this.removeAllListeners("close");
1094
- return t;
1095
- } else if (t === "error") {
1096
- this[y] = s;
1097
- super.emit(T, s);
1098
- const t = !this[V] || this.listeners("error").length ? super.emit("error", s) : false;
1099
- this[m]();
1100
- return t;
1101
- } else if (t === "resume") {
1102
- const t = super.emit("resume");
1103
- this[m]();
1104
- return t;
1105
- } else if (t === "finish" || t === "prefinish") {
1106
- const e = super.emit(t);
1107
- this.removeAllListeners(t);
1108
- return e;
1109
- }
1110
- const i = super.emit(t, ...e);
1111
- this[m]();
1112
- return i;
1113
- }
1114
- [W](t) {
1115
- for (const e of this[B]) {
1116
- if (e.dest.write(t) === false) this.pause();
1117
- }
1118
- const e = this[q] ? false : super.emit("data", t);
1119
- this[m]();
1120
- return e;
1121
- }
1122
- [C]() {
1123
- if (this[p]) return false;
1124
- this[p] = true;
1125
- this.readable = false;
1126
- return this[N] ? (z(() => this[I]()), true) : this[I]();
1127
- }
1128
- [I]() {
1129
- if (this[j]) {
1130
- const t = this[j].end();
1131
- if (t) {
1132
- for (const e of this[B]) {
1133
- e.dest.write(t);
1134
- }
1135
- if (!this[q]) super.emit("data", t);
1136
- }
1137
- }
1138
- for (const t of this[B]) {
1139
- t.end();
1140
- }
1141
- const t = super.emit("end");
1142
- this.removeAllListeners("end");
1143
- return t;
1144
- }
1145
- async collect() {
1146
- const t = Object.assign([], {
1147
- dataLength: 0
1148
- });
1149
- if (!this[_]) t.dataLength = 0;
1150
- const e = this.promise();
1151
- this.on("data", e => {
1152
- t.push(e);
1153
- if (!this[_]) t.dataLength += e.length;
1154
- });
1155
- await e;
1156
- return t;
1157
- }
1158
- async concat() {
1159
- if (this[_]) {
1160
- throw new Error("cannot concat in objectMode");
1161
- }
1162
- const t = await this.collect();
1163
- return this[v] ? t.join("") : Buffer.concat(t, t.dataLength);
1164
- }
1165
- async promise() {
1166
- return new Promise((t, e) => {
1167
- this.on(D, () => e(new Error("stream destroyed")));
1168
- this.on("error", t => e(t));
1169
- this.on("end", () => t());
1170
- });
1171
- }
1172
- [Symbol.asyncIterator]() {
1173
- this[q] = false;
1174
- let t = false;
1175
- const e = async () => {
1176
- this.pause();
1177
- t = true;
1178
- return {
1179
- value: undefined,
1180
- done: true
1181
- };
1182
- };
1183
- const s = () => {
1184
- if (t) return e();
1185
- const s = this.read();
1186
- if (s !== null) return Promise.resolve({
1187
- done: false,
1188
- value: s
1189
- });
1190
- if (this[d]) return e();
1191
- let i;
1192
- let r;
1193
- const n = t => {
1194
- this.off("data", o);
1195
- this.off("end", h);
1196
- this.off(D, f);
1197
- e();
1198
- r(t);
1199
- };
1200
- const o = t => {
1201
- this.off("error", n);
1202
- this.off("end", h);
1203
- this.off(D, f);
1204
- this.pause();
1205
- i({
1206
- value: t,
1207
- done: !!this[d]
1208
- });
1209
- };
1210
- const h = () => {
1211
- this.off("error", n);
1212
- this.off("data", o);
1213
- this.off(D, f);
1214
- e();
1215
- i({
1216
- done: true,
1217
- value: undefined
1218
- });
1219
- };
1220
- const f = () => n(new Error("stream destroyed"));
1221
- return new Promise((t, e) => {
1222
- r = e;
1223
- i = t;
1224
- this.once(D, f);
1225
- this.once("error", n);
1226
- this.once("end", h);
1227
- this.once("data", o);
1228
- });
1229
- };
1230
- return {
1231
- next: s,
1232
- throw: e,
1233
- return: e,
1234
- [Symbol.asyncIterator]() {
1235
- return this;
1236
- }
1237
- };
1238
- }
1239
- [Symbol.iterator]() {
1240
- this[q] = false;
1241
- let t = false;
1242
- const e = () => {
1243
- this.pause();
1244
- this.off(T, e);
1245
- this.off(D, e);
1246
- this.off("end", e);
1247
- t = true;
1248
- return {
1249
- done: true,
1250
- value: undefined
1251
- };
1252
- };
1253
- const s = () => {
1254
- if (t) return e();
1255
- const s = this.read();
1256
- return s === null ? e() : {
1257
- done: false,
1258
- value: s
1259
- };
1260
- };
1261
- this.once("end", e);
1262
- this.once(T, e);
1263
- this.once(D, e);
1264
- return {
1265
- next: s,
1266
- throw: e,
1267
- return: e,
1268
- [Symbol.iterator]() {
1269
- return this;
1270
- }
1271
- };
1272
- }
1273
- destroy(t) {
1274
- if (this[D]) {
1275
- if (t) this.emit("error", t); else this.emit(D);
1276
- return this;
1277
- }
1278
- this[D] = true;
1279
- this[q] = true;
1280
- this[P].length = 0;
1281
- this[A] = 0;
1282
- const e = this;
1283
- if (typeof e.close === "function" && !this[g]) e.close();
1284
- if (t) this.emit("error", t); else this.emit(D);
1285
- return this;
1286
- }
1287
- static get isStream() {
1288
- return l;
1289
- }
1290
- }
1291
-
1292
- export { Minipass as M, f as r };