lakutata 2.0.80 → 2.0.81

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 (394) hide show
  1. package/com/cacher.cjs +8 -10
  2. package/com/cacher.d.ts +83 -14
  3. package/com/cacher.mjs +8 -10
  4. package/com/database.cjs +11 -11
  5. package/com/database.mjs +11 -11
  6. package/com/docker.cjs +17 -19
  7. package/com/docker.d.ts +3 -141
  8. package/com/docker.mjs +13 -15
  9. package/com/entrypoint.cjs +7 -5
  10. package/com/entrypoint.mjs +7 -5
  11. package/com/logger.cjs +7 -7
  12. package/com/logger.mjs +7 -7
  13. package/com/monitor.cjs +5 -3
  14. package/com/monitor.mjs +5 -3
  15. package/decorator/ctrl.cjs +3 -3
  16. package/decorator/ctrl.mjs +3 -3
  17. package/decorator/orm.cjs +98 -98
  18. package/decorator/orm.mjs +142 -56
  19. package/helper.cjs +9 -11
  20. package/helper.mjs +5 -7
  21. package/lakutata.cjs +23 -30
  22. package/lakutata.mjs +14 -18
  23. package/orm.cjs +1423 -886
  24. package/orm.mjs +1474 -724
  25. package/package.json +1 -1
  26. package/provider/database.cjs +11 -11
  27. package/provider/database.mjs +11 -11
  28. package/provider/passwordHash.cjs +4 -2
  29. package/provider/passwordHash.mjs +4 -2
  30. package/src/components/Database.cjs +11 -11
  31. package/src/components/Database.mjs +11 -11
  32. package/src/components/Logger.cjs +7 -7
  33. package/src/components/Logger.mjs +7 -7
  34. package/src/components/cacher/Cacher.cjs +1178 -264
  35. package/src/components/cacher/Cacher.mjs +1087 -173
  36. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +479 -2963
  37. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +469 -2947
  38. package/src/components/docker/ConnectionOptionsBuilder.cjs +15 -17
  39. package/src/components/docker/ConnectionOptionsBuilder.mjs +13 -15
  40. package/src/components/docker/Docker.cjs +4884 -4945
  41. package/src/components/docker/Docker.mjs +4902 -4963
  42. package/src/components/docker/lib/DockerContainer.cjs +23 -25
  43. package/src/components/docker/lib/DockerContainer.mjs +17 -19
  44. package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
  45. package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
  46. package/src/components/docker/lib/DockerImage.cjs +4 -2
  47. package/src/components/docker/lib/DockerImage.mjs +4 -2
  48. package/src/components/entrypoint/Entrypoint.cjs +2170 -1678
  49. package/src/components/entrypoint/Entrypoint.mjs +2126 -1634
  50. package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
  51. package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
  52. package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
  53. package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
  54. package/src/components/entrypoint/lib/Controller.cjs +4 -2
  55. package/src/components/entrypoint/lib/Controller.mjs +4 -2
  56. package/src/components/monitor/AliveMonitor.cjs +4 -2
  57. package/src/components/monitor/AliveMonitor.mjs +4 -2
  58. package/src/components/monitor/CpuMonitor.cjs +5 -3
  59. package/src/components/monitor/CpuMonitor.mjs +5 -3
  60. package/src/components/monitor/EventLoopMonitor.cjs +4 -2
  61. package/src/components/monitor/EventLoopMonitor.mjs +4 -2
  62. package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
  63. package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
  64. package/src/components/monitor/MemoryMonitor.cjs +5 -3
  65. package/src/components/monitor/MemoryMonitor.mjs +5 -3
  66. package/src/decorators/ctrl/CLIAction.cjs +3 -3
  67. package/src/decorators/ctrl/CLIAction.mjs +3 -3
  68. package/src/decorators/ctrl/HTTPAction.cjs +3 -3
  69. package/src/decorators/ctrl/HTTPAction.mjs +3 -3
  70. package/src/decorators/ctrl/ServiceAction.cjs +3 -3
  71. package/src/decorators/ctrl/ServiceAction.mjs +3 -3
  72. package/src/decorators/ctrl/http/DELETE.cjs +3 -3
  73. package/src/decorators/ctrl/http/DELETE.mjs +3 -3
  74. package/src/decorators/ctrl/http/GET.cjs +3 -3
  75. package/src/decorators/ctrl/http/GET.mjs +3 -3
  76. package/src/decorators/ctrl/http/HEAD.cjs +3 -3
  77. package/src/decorators/ctrl/http/HEAD.mjs +3 -3
  78. package/src/decorators/ctrl/http/OPTIONS.cjs +3 -3
  79. package/src/decorators/ctrl/http/OPTIONS.mjs +3 -3
  80. package/src/decorators/ctrl/http/PATCH.cjs +3 -3
  81. package/src/decorators/ctrl/http/PATCH.mjs +3 -3
  82. package/src/decorators/ctrl/http/POST.cjs +3 -3
  83. package/src/decorators/ctrl/http/POST.mjs +3 -3
  84. package/src/decorators/ctrl/http/PUT.cjs +3 -3
  85. package/src/decorators/ctrl/http/PUT.mjs +3 -3
  86. package/src/decorators/orm/AfterInsert.cjs +17 -39
  87. package/src/decorators/orm/AfterInsert.mjs +18 -38
  88. package/src/decorators/orm/AfterLoad.cjs +17 -39
  89. package/src/decorators/orm/AfterLoad.mjs +18 -38
  90. package/src/decorators/orm/AfterRecover.cjs +17 -39
  91. package/src/decorators/orm/AfterRecover.mjs +18 -38
  92. package/src/decorators/orm/AfterRemove.cjs +17 -39
  93. package/src/decorators/orm/AfterRemove.mjs +18 -38
  94. package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
  95. package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
  96. package/src/decorators/orm/AfterUpdate.cjs +17 -39
  97. package/src/decorators/orm/AfterUpdate.mjs +18 -38
  98. package/src/decorators/orm/BeforeInsert.cjs +17 -39
  99. package/src/decorators/orm/BeforeInsert.mjs +18 -38
  100. package/src/decorators/orm/BeforeRecover.cjs +17 -39
  101. package/src/decorators/orm/BeforeRecover.mjs +18 -38
  102. package/src/decorators/orm/BeforeRemove.cjs +17 -39
  103. package/src/decorators/orm/BeforeRemove.mjs +18 -38
  104. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
  105. package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
  106. package/src/decorators/orm/BeforeUpdate.cjs +17 -39
  107. package/src/decorators/orm/BeforeUpdate.mjs +18 -38
  108. package/src/decorators/orm/Check.cjs +17 -42
  109. package/src/decorators/orm/Check.mjs +18 -41
  110. package/src/decorators/orm/ChildEntity.cjs +17 -42
  111. package/src/decorators/orm/ChildEntity.mjs +18 -41
  112. package/src/decorators/orm/Column.cjs +17 -74
  113. package/src/decorators/orm/Column.mjs +19 -74
  114. package/src/decorators/orm/CreateDateColumn.cjs +17 -38
  115. package/src/decorators/orm/CreateDateColumn.mjs +18 -37
  116. package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
  117. package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
  118. package/src/decorators/orm/Entity.cjs +17 -48
  119. package/src/decorators/orm/Entity.mjs +17 -46
  120. package/src/decorators/orm/EventSubscriber.cjs +17 -35
  121. package/src/decorators/orm/EventSubscriber.mjs +18 -34
  122. package/src/decorators/orm/Exclusion.cjs +17 -42
  123. package/src/decorators/orm/Exclusion.mjs +18 -41
  124. package/src/decorators/orm/Generated.cjs +17 -37
  125. package/src/decorators/orm/Generated.mjs +18 -36
  126. package/src/decorators/orm/Index.cjs +17 -54
  127. package/src/decorators/orm/Index.mjs +19 -54
  128. package/src/decorators/orm/JoinColumn.cjs +17 -42
  129. package/src/decorators/orm/JoinColumn.mjs +18 -41
  130. package/src/decorators/orm/JoinTable.cjs +17 -43
  131. package/src/decorators/orm/JoinTable.mjs +17 -41
  132. package/src/decorators/orm/ManyToMany.cjs +17 -55
  133. package/src/decorators/orm/ManyToMany.mjs +17 -53
  134. package/src/decorators/orm/ManyToOne.cjs +17 -55
  135. package/src/decorators/orm/ManyToOne.mjs +17 -53
  136. package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
  137. package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
  138. package/src/decorators/orm/OneToMany.cjs +17 -47
  139. package/src/decorators/orm/OneToMany.mjs +19 -47
  140. package/src/decorators/orm/OneToOne.cjs +17 -55
  141. package/src/decorators/orm/OneToOne.mjs +17 -53
  142. package/src/decorators/orm/PrimaryColumn.cjs +17 -62
  143. package/src/decorators/orm/PrimaryColumn.mjs +19 -62
  144. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
  145. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
  146. package/src/decorators/orm/RelationId.cjs +17 -39
  147. package/src/decorators/orm/RelationId.mjs +18 -38
  148. package/src/decorators/orm/TableInheritance.cjs +17 -39
  149. package/src/decorators/orm/TableInheritance.mjs +18 -38
  150. package/src/decorators/orm/Tree.cjs +17 -37
  151. package/src/decorators/orm/Tree.mjs +18 -36
  152. package/src/decorators/orm/TreeChildren.cjs +17 -44
  153. package/src/decorators/orm/TreeChildren.mjs +17 -42
  154. package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
  155. package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
  156. package/src/decorators/orm/TreeParent.cjs +17 -44
  157. package/src/decorators/orm/TreeParent.mjs +17 -42
  158. package/src/decorators/orm/Unique.cjs +17 -57
  159. package/src/decorators/orm/Unique.mjs +19 -57
  160. package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
  161. package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
  162. package/src/decorators/orm/VersionColumn.cjs +17 -38
  163. package/src/decorators/orm/VersionColumn.mjs +18 -37
  164. package/src/decorators/orm/ViewColumn.cjs +17 -38
  165. package/src/decorators/orm/ViewColumn.mjs +18 -37
  166. package/src/decorators/orm/ViewEntity.cjs +17 -47
  167. package/src/decorators/orm/ViewEntity.mjs +18 -46
  168. package/src/decorators/orm/VirtualColumn.cjs +17 -55
  169. package/src/decorators/orm/VirtualColumn.mjs +17 -53
  170. package/src/lib/base/BaseObject.cjs +4 -2
  171. package/src/lib/base/BaseObject.mjs +4 -2
  172. package/src/lib/base/EventEmitter.cjs +1200 -1193
  173. package/src/lib/base/EventEmitter.mjs +1201 -1194
  174. package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
  175. package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
  176. package/src/lib/base/internal/ControllerEntrypoint.cjs +3 -3
  177. package/src/lib/base/internal/ControllerEntrypoint.mjs +3 -3
  178. package/src/lib/base/internal/DataValidator.cjs +176 -179
  179. package/src/lib/base/internal/DataValidator.mjs +177 -180
  180. package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
  181. package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
  182. package/src/lib/base/internal/ObjectType.cjs +4 -2
  183. package/src/lib/base/internal/ObjectType.mjs +4 -2
  184. package/src/lib/base/internal/PatternManager.cjs +740 -735
  185. package/src/lib/base/internal/PatternManager.mjs +745 -740
  186. package/src/lib/base/internal/StringifyPattern.cjs +1 -1
  187. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  188. package/src/lib/core/Application.cjs +151 -147
  189. package/src/lib/core/Application.mjs +199 -197
  190. package/src/lib/core/Component.cjs +4 -2
  191. package/src/lib/core/Component.mjs +4 -2
  192. package/src/lib/core/Container.cjs +4 -2
  193. package/src/lib/core/Container.mjs +4 -2
  194. package/src/lib/core/Module.cjs +5 -3
  195. package/src/lib/core/Module.mjs +5 -3
  196. package/src/lib/core/Provider.cjs +4 -2
  197. package/src/lib/core/Provider.mjs +4 -2
  198. package/src/lib/helpers/Glob.cjs +970 -721
  199. package/src/lib/helpers/Glob.mjs +1036 -787
  200. package/src/lib/helpers/IsHtml.cjs +7 -13
  201. package/src/lib/helpers/IsHtml.mjs +7 -13
  202. package/src/lib/helpers/IsXML.cjs +1158 -1016
  203. package/src/lib/helpers/IsXML.mjs +871 -729
  204. package/src/lib/helpers/MD5.cjs +1 -1
  205. package/src/lib/helpers/MD5.mjs +1 -1
  206. package/src/lib/helpers/NonceStr.cjs +1 -1
  207. package/src/lib/helpers/NonceStr.mjs +1 -1
  208. package/src/lib/helpers/ObjectHash.cjs +379 -372
  209. package/src/lib/helpers/ObjectHash.mjs +379 -372
  210. package/src/lib/helpers/RandomString.cjs +168 -147
  211. package/src/lib/helpers/RandomString.mjs +167 -146
  212. package/src/lib/helpers/SHA1.cjs +1 -1
  213. package/src/lib/helpers/SHA1.mjs +1 -1
  214. package/src/lib/helpers/SHA256.cjs +1 -1
  215. package/src/lib/helpers/SHA256.mjs +1 -1
  216. package/src/lib/helpers/SortArray.cjs +1 -1
  217. package/src/lib/helpers/SortArray.mjs +1 -1
  218. package/src/lib/helpers/Statistics.cjs +1 -1
  219. package/src/lib/helpers/Statistics.mjs +1 -1
  220. package/src/lib/helpers/URLBuilder.cjs +355 -355
  221. package/src/lib/helpers/URLBuilder.mjs +350 -350
  222. package/src/lib/helpers/UUID.cjs +1 -1
  223. package/src/lib/helpers/UUID.mjs +1 -1
  224. package/src/lib/ioc/DependencyInjectionContainer.cjs +32 -30
  225. package/src/lib/ioc/DependencyInjectionContainer.mjs +12 -10
  226. package/src/lib/ioc/ListModules.cjs +5174 -5249
  227. package/src/lib/ioc/ListModules.mjs +5177 -5252
  228. package/src/lib/validation/VLD.cjs +4080 -3902
  229. package/src/lib/validation/VLD.mjs +2970 -2792
  230. package/src/options/ApplicationOptions.cjs +4 -2
  231. package/src/options/ApplicationOptions.mjs +4 -2
  232. package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
  233. package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
  234. package/src/options/LoadNamedObjectOptions.cjs +4 -2
  235. package/src/options/LoadNamedObjectOptions.mjs +4 -2
  236. package/src/options/LoadObjectOptions.cjs +4 -2
  237. package/src/options/LoadObjectOptions.mjs +4 -2
  238. package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
  239. package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
  240. package/src/options/ModuleOptions.cjs +4 -4
  241. package/src/options/ModuleOptions.mjs +4 -4
  242. package/src/options/OverridableNamedObjectOptions.cjs +4 -2
  243. package/src/options/OverridableNamedObjectOptions.mjs +4 -2
  244. package/src/options/OverridableObjectOptions.cjs +4 -2
  245. package/src/options/OverridableObjectOptions.mjs +4 -2
  246. package/src/providers/Database.cjs +11 -11
  247. package/src/providers/Database.mjs +11 -11
  248. package/src/providers/PasswordHash.cjs +5 -3
  249. package/src/providers/PasswordHash.mjs +190 -188
  250. package/src/providers/migration/GenerateMigration.cjs +15 -19
  251. package/src/providers/migration/GenerateMigration.mjs +15 -19
  252. package/vendor/Package.10.cjs +2 -8
  253. package/vendor/Package.10.mjs +2 -8
  254. package/vendor/Package.11.cjs +5 -83
  255. package/vendor/Package.11.mjs +5 -77
  256. package/vendor/Package.112.cjs +48900 -0
  257. package/vendor/Package.112.mjs +48764 -0
  258. package/vendor/Package.12.cjs +4 -2
  259. package/vendor/Package.12.mjs +6 -4
  260. package/vendor/Package.13.cjs +87 -1
  261. package/vendor/Package.13.mjs +81 -1
  262. package/vendor/Package.14.cjs +1 -14057
  263. package/vendor/Package.14.mjs +1 -14031
  264. package/vendor/Package.15.cjs +1 -1
  265. package/vendor/Package.15.mjs +1 -1
  266. package/vendor/Package.16.cjs +18129 -1935
  267. package/vendor/Package.16.mjs +18115 -1839
  268. package/vendor/Package.17.cjs +1922 -47918
  269. package/vendor/Package.17.mjs +1874 -47937
  270. package/vendor/Package.18.cjs +35 -1
  271. package/vendor/Package.18.mjs +35 -1
  272. package/vendor/Package.19.cjs +37 -0
  273. package/vendor/Package.19.mjs +35 -0
  274. package/vendor/Package.2.cjs +5739 -5710
  275. package/vendor/Package.2.mjs +5733 -5704
  276. package/vendor/Package.20.cjs +37 -0
  277. package/vendor/Package.20.mjs +35 -0
  278. package/vendor/Package.21.cjs +37 -0
  279. package/vendor/Package.21.mjs +35 -0
  280. package/vendor/Package.22.cjs +37 -0
  281. package/vendor/Package.22.mjs +35 -0
  282. package/vendor/Package.23.cjs +37 -0
  283. package/vendor/Package.23.mjs +35 -0
  284. package/vendor/Package.24.cjs +37 -0
  285. package/vendor/Package.24.mjs +35 -0
  286. package/vendor/Package.25.cjs +37 -0
  287. package/vendor/Package.25.mjs +35 -0
  288. package/vendor/Package.26.cjs +37 -0
  289. package/vendor/Package.26.mjs +35 -0
  290. package/vendor/Package.27.cjs +37 -0
  291. package/vendor/Package.27.mjs +35 -0
  292. package/vendor/Package.28.cjs +37 -0
  293. package/vendor/Package.28.mjs +35 -0
  294. package/vendor/Package.29.cjs +40 -0
  295. package/vendor/Package.29.mjs +38 -0
  296. package/vendor/Package.30.cjs +41 -0
  297. package/vendor/Package.30.mjs +39 -0
  298. package/vendor/Package.31.cjs +72 -0
  299. package/vendor/Package.31.mjs +70 -0
  300. package/vendor/Package.32.cjs +37 -0
  301. package/vendor/Package.32.mjs +35 -0
  302. package/vendor/Package.33.cjs +37 -0
  303. package/vendor/Package.33.mjs +35 -0
  304. package/vendor/Package.34.cjs +46 -0
  305. package/vendor/Package.34.mjs +44 -0
  306. package/vendor/Package.35.cjs +34 -0
  307. package/vendor/Package.35.mjs +32 -0
  308. package/vendor/Package.36.cjs +40 -0
  309. package/vendor/Package.36.mjs +38 -0
  310. package/vendor/Package.37.cjs +36 -0
  311. package/vendor/Package.37.mjs +34 -0
  312. package/vendor/Package.38.cjs +52 -0
  313. package/vendor/Package.38.mjs +50 -0
  314. package/vendor/Package.39.cjs +41 -0
  315. package/vendor/Package.39.mjs +39 -0
  316. package/vendor/Package.4.cjs +884 -874
  317. package/vendor/Package.4.mjs +884 -874
  318. package/vendor/Package.40.cjs +42 -0
  319. package/vendor/Package.40.mjs +40 -0
  320. package/vendor/Package.41.cjs +53 -0
  321. package/vendor/Package.41.mjs +51 -0
  322. package/vendor/Package.42.cjs +53 -0
  323. package/vendor/Package.42.mjs +51 -0
  324. package/vendor/Package.43.cjs +40 -0
  325. package/vendor/Package.43.mjs +38 -0
  326. package/vendor/Package.44.cjs +46 -0
  327. package/vendor/Package.44.mjs +44 -0
  328. package/vendor/Package.45.cjs +53 -0
  329. package/vendor/Package.45.mjs +51 -0
  330. package/vendor/Package.46.cjs +59 -0
  331. package/vendor/Package.46.mjs +57 -0
  332. package/vendor/Package.47.cjs +65 -0
  333. package/vendor/Package.47.mjs +63 -0
  334. package/vendor/Package.48.cjs +38 -0
  335. package/vendor/Package.48.mjs +36 -0
  336. package/vendor/Package.49.cjs +38 -0
  337. package/vendor/Package.49.mjs +36 -0
  338. package/vendor/Package.5.cjs +15 -11
  339. package/vendor/Package.5.mjs +11 -7
  340. package/vendor/Package.50.cjs +36 -0
  341. package/vendor/Package.50.mjs +34 -0
  342. package/vendor/Package.51.cjs +43 -0
  343. package/vendor/Package.51.mjs +41 -0
  344. package/vendor/Package.52.cjs +37 -0
  345. package/vendor/Package.52.mjs +35 -0
  346. package/vendor/Package.53.cjs +43 -0
  347. package/vendor/Package.53.mjs +41 -0
  348. package/vendor/Package.54.cjs +55 -0
  349. package/vendor/Package.54.mjs +53 -0
  350. package/vendor/Package.55.cjs +37 -0
  351. package/vendor/Package.55.mjs +35 -0
  352. package/vendor/Package.56.cjs +37 -0
  353. package/vendor/Package.56.mjs +35 -0
  354. package/vendor/Package.57.cjs +37 -0
  355. package/vendor/Package.57.mjs +35 -0
  356. package/vendor/Package.58.cjs +45 -0
  357. package/vendor/Package.58.mjs +43 -0
  358. package/vendor/Package.59.cjs +53 -0
  359. package/vendor/Package.59.mjs +51 -0
  360. package/vendor/Package.6.cjs +520 -511
  361. package/vendor/Package.6.mjs +543 -534
  362. package/vendor/Package.60.cjs +47649 -0
  363. package/vendor/Package.60.mjs +47606 -0
  364. package/vendor/Package.610.cjs +11 -11
  365. package/vendor/Package.610.mjs +11 -11
  366. package/vendor/Package.611.cjs +33 -23
  367. package/vendor/Package.611.mjs +19 -9
  368. package/vendor/Package.612.cjs +42 -36
  369. package/vendor/Package.612.mjs +35 -29
  370. package/vendor/Package.613.cjs +5 -4
  371. package/vendor/Package.613.mjs +5 -4
  372. package/vendor/Package.62.cjs +92 -89
  373. package/vendor/Package.62.mjs +185 -182
  374. package/vendor/Package.63.cjs +509 -166
  375. package/vendor/Package.63.mjs +490 -165
  376. package/vendor/Package.64.cjs +139 -511
  377. package/vendor/Package.64.mjs +139 -491
  378. package/vendor/Package.65.cjs +4135 -150
  379. package/vendor/Package.65.mjs +4143 -150
  380. package/vendor/Package.66.cjs +346 -4150
  381. package/vendor/Package.66.mjs +346 -4158
  382. package/vendor/Package.67.cjs +412 -261
  383. package/vendor/Package.67.mjs +410 -259
  384. package/vendor/Package.68.cjs +397 -405
  385. package/vendor/Package.68.mjs +227 -242
  386. package/vendor/Package.8.cjs +0 -4
  387. package/vendor/Package.8.mjs +0 -4
  388. package/vendor/Package.9.cjs +132 -118
  389. package/vendor/Package.9.mjs +138 -124
  390. package/vendor/TypeDef.internal.3.d.ts +0 -4
  391. package/vendor/Package.102.cjs +0 -48773
  392. package/vendor/Package.102.mjs +0 -48697
  393. package/vendor/Package.122.cjs +0 -3
  394. package/vendor/Package.122.mjs +0 -1
@@ -2,57 +2,55 @@ import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
2
2
 
3
3
  import { Provider as o } from "./Provider.mjs";
4
4
 
5
- import { Configurable as r } from "../../decorators/di/Configurable.mjs";
5
+ import { Configurable as i } from "../../decorators/di/Configurable.mjs";
6
6
 
7
- import { D as i } from "../../../vendor/Package.2.mjs";
7
+ import { D as r } from "../../../vendor/Package.2.mjs";
8
8
 
9
9
  import n from "path";
10
10
 
11
- import { D as s } from "../../../vendor/Package.10.mjs";
11
+ import { D as s } from "../../../vendor/Package.11.mjs";
12
12
 
13
- import { e as a, I as c, a as p, b as m, P as l, c as u, s as h } from "../../../vendor/Package.102.mjs";
13
+ import { g as a } from "../../../vendor/Package.5.mjs";
14
14
 
15
- import { g as d } from "../../../vendor/Package.5.mjs";
15
+ import { a as c, b as p, c as m, d as l, e as u, f as h, g as d } from "../../../vendor/Package.112.mjs";
16
16
 
17
17
  import { r as g } from "../../../vendor/Package.12.mjs";
18
18
 
19
19
  import "../../../vendor/Package.8.mjs";
20
20
 
21
- import j from "fs/promises";
21
+ import f from "fs/promises";
22
22
 
23
- import { Singleton as f, Transient as y } from "../../decorators/di/Lifetime.mjs";
23
+ import { Transient as j } from "../../decorators/di/Lifetime.mjs";
24
24
 
25
- import { Module as b, MODULE_INITIALIZED as v, MODULE_INITIALIZE_ERROR as x } from "./Module.mjs";
25
+ import { Module as y, MODULE_INITIALIZED as b, MODULE_INITIALIZE_ERROR as v } from "./Module.mjs";
26
26
 
27
- import { C as E } from "../../../vendor/Package.3.mjs";
27
+ import { C as x } from "../../../vendor/Package.3.mjs";
28
28
 
29
- import { ApplicationConfigLoader as w } from "../base/internal/ApplicationConfigLoader.mjs";
29
+ import { ApplicationConfigLoader as E } from "../base/internal/ApplicationConfigLoader.mjs";
30
30
 
31
- import { ApplicationOptions as O } from "../../options/ApplicationOptions.mjs";
31
+ import { ApplicationOptions as w } from "../../options/ApplicationOptions.mjs";
32
32
 
33
- import { Alias as P } from "./Alias.mjs";
33
+ import { Alias as O } from "./Alias.mjs";
34
34
 
35
35
  import { GetBasicInfo as C } from "../base/internal/BasicInfo.mjs";
36
36
 
37
- import { Entrypoint as S } from "../../components/entrypoint/Entrypoint.mjs";
37
+ import { Entrypoint as P } from "../../components/entrypoint/Entrypoint.mjs";
38
38
 
39
- import { L as k } from "../../../vendor/Package.14.mjs";
39
+ import { L as A } from "../../../vendor/Package.16.mjs";
40
40
 
41
- import { Accept as A } from "../../decorators/dto/Accept.mjs";
41
+ import { Accept as S } from "../../decorators/dto/Accept.mjs";
42
42
 
43
- import { mkdirSync as I } from "fs";
43
+ import { mkdirSync as k } from "fs";
44
44
 
45
- import D from "node:path";
45
+ import I from "node:path";
46
46
 
47
- import { existsSync as R } from "node:fs";
47
+ import { existsSync as D } from "node:fs";
48
48
 
49
- import { As as N } from "../helpers/As.mjs";
49
+ import { As as R } from "../helpers/As.mjs";
50
50
 
51
- import { EventEmitter as B } from "../base/EventEmitter.mjs";
51
+ import { EventEmitter as N } from "../base/EventEmitter.mjs";
52
52
 
53
- import { DatabaseSymbol as M } from "../base/internal/DatabaseSymbol.mjs";
54
-
55
- import { Inject as L } from "../../decorators/di/Inject.mjs";
53
+ import { DatabaseSymbol as B } from "../base/internal/DatabaseSymbol.mjs";
56
54
 
57
55
  import "../base/async-constructor/AsyncConstructor.mjs";
58
56
 
@@ -130,6 +128,8 @@ import "../ioc/ListModules.mjs";
130
128
 
131
129
  import "os";
132
130
 
131
+ import "../../../vendor/Package.10.mjs";
132
+
133
133
  import "stream";
134
134
 
135
135
  import "events";
@@ -174,9 +174,9 @@ import "../helpers/IsEmptyObject.mjs";
174
174
 
175
175
  import "../../../vendor/Package.62.mjs";
176
176
 
177
- import "../../../vendor/Package.11.mjs";
177
+ import "../../../vendor/Package.13.mjs";
178
178
 
179
- import "../../../vendor/Package.122.mjs";
179
+ import "../../../vendor/Package.14.mjs";
180
180
 
181
181
  import "buffer";
182
182
 
@@ -184,12 +184,10 @@ import "module";
184
184
 
185
185
  import "tty";
186
186
 
187
- import "../../../vendor/Package.13.mjs";
187
+ import "../../../vendor/Package.15.mjs";
188
188
 
189
189
  import "crypto";
190
190
 
191
- import "../../../vendor/Package.63.mjs";
192
-
193
191
  import "node:url";
194
192
 
195
193
  import "node:fs/promises";
@@ -242,11 +240,11 @@ import "../helpers/GetObjectNestingDepth.mjs";
242
240
 
243
241
  import "../../exceptions/InvalidActionPatternDepthException.mjs";
244
242
 
245
- import "../../../vendor/Package.64.mjs";
243
+ import "../../../vendor/Package.63.mjs";
246
244
 
247
245
  import "../base/internal/StringifyPattern.mjs";
248
246
 
249
- import "../../../vendor/Package.65.mjs";
247
+ import "../../../vendor/Package.64.mjs";
250
248
 
251
249
  import "../base/internal/PatternManager.mjs";
252
250
 
@@ -282,105 +280,114 @@ import "../../components/entrypoint/exceptions/InvalidActionGroupException.mjs";
282
280
 
283
281
  import "worker_threads";
284
282
 
285
- import "../../../vendor/Package.15.mjs";
286
-
287
283
  import "assert";
288
284
 
289
285
  import "string_decoder";
290
286
 
291
- var T = {};
292
-
293
- "use strict";
294
-
295
- Object.defineProperty(T, "__esModule", {
296
- value: true
297
- });
287
+ var M = c();
298
288
 
299
- var q = T.CommandUtils = void 0;
289
+ const L = a(M);
300
290
 
301
- const F = g;
291
+ var T = p();
302
292
 
303
- const $ = F.__importDefault(j);
293
+ const q = a(T);
304
294
 
305
- const U = F.__importDefault(n);
295
+ var F = m();
306
296
 
307
- const G = a;
297
+ const $ = a(F);
308
298
 
309
- const Q = c;
299
+ var U = {};
310
300
 
311
- const _ = p();
301
+ var G;
312
302
 
313
- class CommandUtils {
314
- static async loadDataSource(t) {
315
- let e;
316
- try {
317
- [e] = await (0, _.importOrRequireFile)(t);
318
- } catch (e) {
319
- throw new Error(`Unable to open file: "${t}". ${e.message}`);
320
- }
321
- if (!e || typeof e !== "object") {
322
- throw new Error(`Given data source file must contain export of a DataSource instance`);
323
- }
324
- if (Q.InstanceChecker.isDataSource(e)) {
325
- return e;
326
- }
327
- const o = [];
328
- for (const t in e) {
329
- const r = e[t];
330
- const i = await r;
331
- if (Q.InstanceChecker.isDataSource(i)) {
332
- o.push(i);
303
+ function Q() {
304
+ if (G) return U;
305
+ G = 1;
306
+ "use strict";
307
+ Object.defineProperty(U, "__esModule", {
308
+ value: true
309
+ });
310
+ U.CommandUtils = void 0;
311
+ const t = g;
312
+ const e = t.__importDefault(f);
313
+ const o = t.__importDefault(n);
314
+ const i = l();
315
+ const r = u();
316
+ const s = h();
317
+ class CommandUtils {
318
+ static async loadDataSource(t) {
319
+ let e;
320
+ try {
321
+ [e] = await (0, s.importOrRequireFile)(t);
322
+ } catch (e) {
323
+ throw new Error(`Unable to open file: "${t}". ${e.message}`);
324
+ }
325
+ if (!e || typeof e !== "object") {
326
+ throw new Error(`Given data source file must contain export of a DataSource instance`);
327
+ }
328
+ if (r.InstanceChecker.isDataSource(e)) {
329
+ return e;
333
330
  }
331
+ const o = [];
332
+ for (const t in e) {
333
+ const i = e[t];
334
+ const n = await i;
335
+ if (r.InstanceChecker.isDataSource(n)) {
336
+ o.push(n);
337
+ }
338
+ }
339
+ if (o.length === 0) {
340
+ throw new Error(`Given data source file must contain export of a DataSource instance`);
341
+ }
342
+ if (o.length > 1) {
343
+ throw new Error(`Given data source file must contain only one export of DataSource instance`);
344
+ }
345
+ return o[0];
334
346
  }
335
- if (o.length === 0) {
336
- throw new Error(`Given data source file must contain export of a DataSource instance`);
347
+ static async createDirectories(t) {
348
+ await e.default.mkdir(t, {
349
+ recursive: true
350
+ });
337
351
  }
338
- if (o.length > 1) {
339
- throw new Error(`Given data source file must contain only one export of DataSource instance`);
352
+ static async createFile(t, i, r = true) {
353
+ await CommandUtils.createDirectories(o.default.dirname(t));
354
+ if (r === false && await CommandUtils.fileExists(t)) {
355
+ return;
356
+ }
357
+ await e.default.writeFile(t, i);
340
358
  }
341
- return o[0];
342
- }
343
- static async createDirectories(t) {
344
- await $.default.mkdir(t, {
345
- recursive: true
346
- });
347
- }
348
- static async createFile(t, e, o = true) {
349
- await CommandUtils.createDirectories(U.default.dirname(t));
350
- if (o === false && await CommandUtils.fileExists(t)) {
351
- return;
359
+ static async readFile(t) {
360
+ const o = await e.default.readFile(t);
361
+ return o.toString();
352
362
  }
353
- await $.default.writeFile(t, e);
354
- }
355
- static async readFile(t) {
356
- const e = await $.default.readFile(t);
357
- return e.toString();
358
- }
359
- static async fileExists(t) {
360
- try {
361
- await $.default.access(t, $.default.constants.F_OK);
362
- return true;
363
- } catch {
364
- return false;
363
+ static async fileExists(t) {
364
+ try {
365
+ await e.default.access(t, e.default.constants.F_OK);
366
+ return true;
367
+ } catch {
368
+ return false;
369
+ }
365
370
  }
366
- }
367
- static getTimestamp(t) {
368
- if (t && (isNaN(t) || t < 0)) {
369
- throw new G.TypeORMError(`timestamp option should be a non-negative number. received: ${t}`);
371
+ static getTimestamp(t) {
372
+ if (t && (isNaN(t) || t < 0)) {
373
+ throw new i.TypeORMError(`timestamp option should be a non-negative number. received: ${t}`);
374
+ }
375
+ return t ? new Date(Number(t)).getTime() : Date.now();
370
376
  }
371
- return t ? new Date(Number(t)).getTime() : Date.now();
372
377
  }
378
+ U.CommandUtils = CommandUtils;
379
+ return U;
373
380
  }
374
381
 
375
- q = T.CommandUtils = CommandUtils;
382
+ var _ = Q();
376
383
 
377
- var J = m();
384
+ const J = a(_);
378
385
 
379
- const V = d(J);
386
+ var V = d();
380
387
 
381
- const {Ansis: H, ansi256: z, fg: W, bgAnsi256: K, bg: X, rgb: Y, bgRgb: Z, hex: tt, bgHex: et, reset: ot, inverse: rt, hidden: it, visible: nt, bold: st, dim: at, italic: ct, underline: pt, strikethrough: mt, strike: lt, black: ut, red: ht, green: dt, yellow: gt, blue: jt, magenta: ft, cyan: yt, white: bt, grey: vt, gray: xt, blackBright: Et, redBright: wt, greenBright: Ot, yellowBright: Pt, blueBright: Ct, magentaBright: St, cyanBright: kt, whiteBright: At, bgBlack: It, bgRed: Dt, bgGreen: Rt, bgYellow: Nt, bgBlue: Bt, bgMagenta: Mt, bgCyan: Lt, bgWhite: Tt, bgGrey: qt, bgGray: Ft, bgBlackBright: $t, bgRedBright: Ut, bgGreenBright: Gt, bgYellowBright: Qt, bgBlueBright: _t, bgMagentaBright: Jt, bgCyanBright: Vt, bgWhiteBright: Ht} = V;
388
+ const H = a(V);
382
389
 
383
- var zt;
390
+ const {Ansis: z, ansi256: W, fg: K, bgAnsi256: X, bg: Y, rgb: Z, bgRgb: tt, hex: et, bgHex: ot, reset: it, inverse: rt, hidden: nt, visible: st, bold: at, dim: ct, italic: pt, underline: mt, strikethrough: lt, strike: ut, black: ht, red: dt, green: gt, yellow: ft, blue: jt, magenta: yt, cyan: bt, white: vt, grey: xt, gray: Et, blackBright: wt, redBright: Ot, greenBright: Ct, yellowBright: Pt, blueBright: At, magentaBright: St, cyanBright: kt, whiteBright: It, bgBlack: Dt, bgRed: Rt, bgGreen: Nt, bgYellow: Bt, bgBlue: Mt, bgMagenta: Lt, bgCyan: Tt, bgWhite: qt, bgGrey: Ft, bgGray: $t, bgBlackBright: Ut, bgRedBright: Gt, bgGreenBright: Qt, bgYellowBright: _t, bgBlueBright: Jt, bgMagentaBright: Vt, bgCyanBright: Ht, bgWhiteBright: zt} = H;
384
391
 
385
392
  var Wt;
386
393
 
@@ -391,27 +398,24 @@ var Wt;
391
398
  t["FatalException"] = "FATAL_EXCEPTION";
392
399
  })(Wt || (Wt = {}));
393
400
 
394
- let Kt = class Application extends b {
401
+ class Application extends y {
395
402
  constructor() {
396
403
  super(...arguments);
397
- this.ConfigLoader = w;
404
+ this.ConfigLoader = E;
398
405
  this.options = {
399
406
  components: {
400
407
  log: {
401
- class: k
408
+ class: A
402
409
  },
403
410
  entrypoint: {
404
- class: S
411
+ class: P
405
412
  }
406
413
  },
407
414
  bootstrap: [ "log" ]
408
415
  };
409
416
  }
410
417
  static {
411
- zt = this;
412
- }
413
- static {
414
- this.eventEmitter = new B;
418
+ this.eventEmitter = new N;
415
419
  }
416
420
  static {
417
421
  this.environmentVariableMap = new Map;
@@ -420,7 +424,7 @@ let Kt = class Application extends b {
420
424
  this.aliasDeclarations = [];
421
425
  }
422
426
  static async getLogger() {
423
- return this.appInstance ? await this.appInstance.getObject("log") : await (new E).set(k);
427
+ return this.appInstance ? await this.appInstance.getObject("log") : await (new x).set(A);
424
428
  }
425
429
  static env(t) {
426
430
  Object.keys(t).forEach((e => this.environmentVariableMap.set(e, t[e])));
@@ -451,9 +455,9 @@ let Kt = class Application extends b {
451
455
  static onFatalException(t) {
452
456
  this.eventEmitter.once(Wt.FatalException, (async e => {
453
457
  const o = await this.getLogger();
454
- let r = await t(e, o);
455
- if (typeof r !== "number") r = 1;
456
- return process.exit(r);
458
+ let i = await t(e, o);
459
+ if (typeof i !== "number") i = 1;
460
+ return process.exit(i);
457
461
  }));
458
462
  return this.launch();
459
463
  }
@@ -501,16 +505,16 @@ let Kt = class Application extends b {
501
505
  }
502
506
  }));
503
507
  this.environmentVariableMap.forEach(((t, e) => process.env[e] = t));
504
- const t = P.getAliasInstance();
508
+ const t = O.getAliasInstance();
505
509
  t.set("@runtime", process.cwd());
506
510
  this.aliasDeclarations.forEach((e => {
507
511
  const o = e.alias;
508
- const r = e.createIfNotExist;
512
+ const i = e.createIfNotExist;
509
513
  Object.keys(o).forEach((e => {
510
514
  t.set(e, o[e]);
511
- if (r) {
512
- const t = D.resolve(e);
513
- if (!R(t)) I(D.resolve(e), {
515
+ if (i) {
516
+ const t = I.resolve(e);
517
+ if (!D(t)) k(I.resolve(e), {
514
518
  recursive: true
515
519
  });
516
520
  }
@@ -526,29 +530,29 @@ let Kt = class Application extends b {
526
530
  this.eventEmitter.removeAllListeners(Wt.UncaughtException);
527
531
  this.eventEmitter.removeAllListeners(Wt.FatalException);
528
532
  const o = process.env[t];
529
- const r = t => {
533
+ const i = t => {
530
534
  const e = [];
531
535
  for (const o in t) {
532
- if (t[o] && t[o].class && t[o].class.databaseSymbol && t[o].class.databaseSymbol === M) {
533
- const r = t[o].options;
534
- if (!r) continue;
535
- Reflect.set(r, "dataSourceName", o);
536
- e.push(r);
536
+ if (t[o] && t[o].class && t[o].class.databaseSymbol && t[o].class.databaseSymbol === B) {
537
+ const i = t[o].options;
538
+ if (!i) continue;
539
+ Reflect.set(i, "dataSourceName", o);
540
+ e.push(i);
537
541
  }
538
542
  }
539
543
  return e;
540
544
  };
541
- const i = [ ...e.components ? r(e.components) : [], ...e.providers ? r(e.providers) : [] ];
542
- if (!i.length) process.exit(0);
545
+ const r = [ ...e.components ? i(e.components) : [], ...e.providers ? i(e.providers) : [] ];
546
+ if (!r.length) process.exit(0);
543
547
  e.bootstrap = [];
544
- i.forEach(((t, r) => {
545
- const n = `GenerateMigration${r}${Date.now()}`;
548
+ r.forEach(((t, i) => {
549
+ const n = `GenerateMigration${i}${Date.now()}`;
546
550
  if (!e.providers) e.providers = {};
547
551
  e.providers[n] = {
548
- class: Yt,
552
+ class: Xt,
549
553
  path: o,
550
554
  outputJs: false,
551
- exitProcess: r === i.length - 1,
555
+ exitProcess: i === r.length - 1,
552
556
  dataSourceName: Reflect.get(t, "dataSourceName"),
553
557
  dataSource: t
554
558
  };
@@ -558,25 +562,25 @@ let Kt = class Application extends b {
558
562
  break;
559
563
  }
560
564
  }
561
- const o = new E;
562
- return new Promise(((t, r) => {
563
- O.validateAsync(e).then((e => {
565
+ const o = new x;
566
+ return new Promise(((t, i) => {
567
+ w.validateAsync(e).then((e => {
564
568
  e.bootstrap?.push((async t => {
565
569
  const e = function() {
566
570
  this.options.bootstrap?.pop();
567
- N(Reflect.getOwnMetadata("#bootstrap", this))?.pop();
571
+ R(Reflect.getOwnMetadata("#bootstrap", this))?.pop();
568
572
  };
569
- e.bind(N(t))();
570
- this.eventEmitter.emit(Wt.Launched, N(t));
573
+ e.bind(R(t))();
574
+ this.eventEmitter.emit(Wt.Launched, R(t));
571
575
  }));
572
- o.set(zt, {
576
+ o.set(Application, {
573
577
  options: e
574
- }).then((e => e.once(v, (() => t(e))).once(x, (t => this.processFatalException(t))))).catch(r);
575
- })).catch(r);
578
+ }).then((e => e.once(b, (() => t(e))).once(v, (t => this.processFatalException(t))))).catch(i);
579
+ })).catch(i);
576
580
  }));
577
581
  }
578
582
  get alias() {
579
- return P.getAliasInstance();
583
+ return O.getAliasInstance();
580
584
  }
581
585
  get appId() {
582
586
  return C().appId;
@@ -594,20 +598,18 @@ let Kt = class Application extends b {
594
598
  if (typeof t === "boolean" && t) {
595
599
  return process.exit(2);
596
600
  } else {
597
- zt.eventEmitter.emit("exit", this, t ? t : 0);
601
+ Application.eventEmitter.emit("exit", this, t ? t : 0);
598
602
  }
599
603
  }
600
- };
601
-
602
- t([ A(i.Object().pattern(i.String(), i.String()).required()), e("design:type", Function), e("design:paramtypes", [ Object ]), e("design:returntype", Object) ], Kt, "env", null);
604
+ }
603
605
 
604
- t([ A(i.Object().pattern(i.String(), i.String()).required(), i.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], Kt, "alias", null);
606
+ t([ S(r.Object().pattern(r.String(), r.String()).required()), e("design:type", Function), e("design:paramtypes", [ Object ]), e("design:returntype", Object) ], Application, "env", null);
605
607
 
606
- Kt = zt = t([ f(true) ], Kt);
608
+ t([ S(r.Object().pattern(r.String(), r.String()).required(), r.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], Application, "alias", null);
607
609
 
608
- var Xt;
610
+ var Kt;
609
611
 
610
- let Yt = Xt = class GenerateMigration extends o {
612
+ let Xt = Kt = class GenerateMigration extends o {
611
613
  get extension() {
612
614
  return this.outputJs ? ".js" : ".ts";
613
615
  }
@@ -615,86 +617,88 @@ let Yt = Xt = class GenerateMigration extends o {
615
617
  return this.timestamp + "-" + (this.dataSourceName ? this.dataSourceName : n.basename(this.path)) + this.extension;
616
618
  }
617
619
  #t;
620
+ #e;
618
621
  async init() {
619
- this.#t = new s.DataSource(this.dataSource);
620
- this.#t.setOptions({
622
+ this.#t = await this.getObject(Application);
623
+ this.#e = new s.DataSource(this.dataSource);
624
+ this.#e.setOptions({
621
625
  synchronize: false,
622
626
  migrationsRun: false,
623
627
  dropSchema: false,
624
628
  logging: false
625
629
  });
626
- this.#t = await this.#t.initialize();
630
+ this.#e = await this.#e.initialize();
627
631
  await this.handle();
628
632
  }
629
633
  async destroy() {
630
- await (this.#t?.destroy());
634
+ await (this.#e?.destroy());
631
635
  }
632
636
  async handle() {
633
637
  try {
634
638
  const t = [], e = [];
635
639
  try {
636
- const o = await this.#t.driver.createSchemaBuilder().log();
640
+ const o = await this.#e.driver.createSchemaBuilder().log();
637
641
  if (this.pretty) {
638
642
  o.upQueries.forEach((t => {
639
- t.query = Xt.prettifyQuery(t.query);
643
+ t.query = Kt.prettifyQuery(t.query);
640
644
  }));
641
645
  o.downQueries.forEach((t => {
642
- t.query = Xt.prettifyQuery(t.query);
646
+ t.query = Kt.prettifyQuery(t.query);
643
647
  }));
644
648
  }
645
649
  o.upQueries.forEach((e => {
646
- t.push(" await queryRunner.query(`" + e.query.replaceAll("`", "\\`") + "`" + Xt.queryParams(e.parameters) + ");");
650
+ t.push(" await queryRunner.query(`" + e.query.replaceAll("`", "\\`") + "`" + Kt.queryParams(e.parameters) + ");");
647
651
  }));
648
652
  o.downQueries.forEach((t => {
649
- e.push(" await queryRunner.query(`" + t.query.replaceAll("`", "\\`") + "`" + Xt.queryParams(t.parameters) + ");");
653
+ e.push(" await queryRunner.query(`" + t.query.replaceAll("`", "\\`") + "`" + Kt.queryParams(t.parameters) + ");");
650
654
  }));
651
655
  } finally {
652
- await this.#t.destroy();
656
+ await this.#e.destroy();
653
657
  }
654
658
  if (!t.length) {
655
659
  if (this.check) {
656
- console.log(V.green`No changes in database schema were found`);
660
+ console.log(H.green`No changes in database schema were found`);
657
661
  if (this.exitProcess) {
658
- return this.app.exit(0);
662
+ return this.#t.exit(0);
659
663
  } else {
660
664
  return;
661
665
  }
662
666
  } else {
663
- console.log(V.yellow`No changes in database schema were found`);
667
+ console.log(H.yellow`No changes in database schema were found`);
664
668
  if (this.exitProcess) {
665
- return this.app.exit(1);
669
+ return this.#t.exit(1);
666
670
  } else {
667
671
  return;
668
672
  }
669
673
  }
670
674
  } else if (!this.path) {
671
- console.log(V.yellow`Please specify a migration path`);
672
- return this.app.exit(1);
675
+ console.log(H.yellow`Please specify a migration path`);
676
+ return this.#t.exit(1);
673
677
  }
674
- const o = this.outputJs ? Xt.getJavascriptTemplate(n.basename(this.path), this.timestamp, t, e.reverse(), this.esm) : Xt.getTemplate(n.basename(this.path), this.timestamp, t, e.reverse());
678
+ const o = this.outputJs ? Kt.getJavascriptTemplate(n.basename(this.path), this.timestamp, t, e.reverse(), this.esm) : Kt.getTemplate(n.basename(this.path), this.timestamp, t, e.reverse());
675
679
  if (this.check) {
676
- console.log(V.yellow`Unexpected changes in database schema were found in check mode:\n\n${V.white(o)}`);
680
+ console.log(H.yellow`Unexpected changes in database schema were found in check mode:\n\n${H.white(o)}`);
677
681
  if (this.exitProcess) {
678
- return this.app.exit(0);
682
+ return this.#t.exit(0);
679
683
  } else {
680
684
  return;
681
685
  }
682
686
  }
683
687
  if (this.dryRun) {
684
- console.log(V.green(`Migration ${V.blue(this.path + this.extension)} has content:\n\n${V.white(o)}`));
688
+ console.log(H.green(`Migration ${H.blue(this.path + this.extension)} has content:\n\n${H.white(o)}`));
685
689
  } else {
686
690
  const t = n.isAbsolute(this.path) ? n.join(this.path, this.filename) : n.join(process.cwd(), this.path, this.filename);
687
- await q.createFile(t, o);
688
- console.log(V.green`Migration ${V.blue(t)} has been generated successfully.`);
691
+ await _.CommandUtils.createFile(t, o);
692
+ console.log(H.green`Migration ${H.blue(t)} has been generated successfully.`);
689
693
  if (this.exitProcess) {
690
- return this.app.exit(0);
694
+ return this.#t.exit(0);
691
695
  } else {
692
696
  return;
693
697
  }
694
698
  }
695
699
  } catch (t) {
696
- l.PlatformTools.logCmdErr("Error during migration generation:", t);
697
- return this.app.exit(1);
700
+ F.PlatformTools.logCmdErr("Error during migration generation:", t);
701
+ return this.#t.exit(1);
698
702
  }
699
703
  }
700
704
  static queryParams(t) {
@@ -703,45 +707,43 @@ let Yt = Xt = class GenerateMigration extends o {
703
707
  }
704
708
  return `, ${JSON.stringify(t)}`;
705
709
  }
706
- static getTemplate(t, e, o, r) {
707
- const i = `${u(t, true)}${e}`;
708
- return `import { MigrationInterface, QueryRunner } from "lakutata/orm";\n\nexport class ${i} implements MigrationInterface {\n name = '${i}'\n\n public async up(queryRunner: QueryRunner): Promise<void> {\n${o.join(`\n`)}\n }\n\n public async down(queryRunner: QueryRunner): Promise<void> {\n${r.join(`\n`)}\n }\n\n}\n`;
710
+ static getTemplate(t, e, o, i) {
711
+ const r = `${T.camelCase(t, true)}${e}`;
712
+ return `import { MigrationInterface, QueryRunner } from "lakutata/orm";\n\nexport class ${r} implements MigrationInterface {\n name = '${r}'\n\n public async up(queryRunner: QueryRunner): Promise<void> {\n${o.join(`\n`)}\n }\n\n public async down(queryRunner: QueryRunner): Promise<void> {\n${i.join(`\n`)}\n }\n\n}\n`;
709
713
  }
710
- static getJavascriptTemplate(t, e, o, r, i) {
711
- const n = `${u(t, true)}${e}`;
712
- const s = i ? "export" : "module.exports =";
713
- return `/**\n * @typedef {import('lakutata/orm').MigrationInterface} MigrationInterface\n * @typedef {import('lakutata/orm').QueryRunner} QueryRunner\n */\n\n/**\n * @class\n * @implements {MigrationInterface}\n */\n${s} class ${n} {\n name = '${n}'\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async up(queryRunner) {\n${o.join(`\n`)}\n }\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async down(queryRunner) {\n${r.join(`\n`)}\n }\n}\n`;
714
+ static getJavascriptTemplate(t, e, o, i, r) {
715
+ const n = `${T.camelCase(t, true)}${e}`;
716
+ const s = r ? "export" : "module.exports =";
717
+ return `/**\n * @typedef {import('lakutata/orm').MigrationInterface} MigrationInterface\n * @typedef {import('lakutata/orm').QueryRunner} QueryRunner\n */\n\n/**\n * @class\n * @implements {MigrationInterface}\n */\n${s} class ${n} {\n name = '${n}'\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async up(queryRunner) {\n${o.join(`\n`)}\n }\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async down(queryRunner) {\n${i.join(`\n`)}\n }\n}\n`;
714
718
  }
715
719
  static prettifyQuery(t) {
716
- const e = h.format(t, {
720
+ const e = M.format(t, {
717
721
  indent: " "
718
722
  });
719
723
  return "\n" + e.replace(/^/gm, " ") + "\n ";
720
724
  }
721
725
  };
722
726
 
723
- t([ L(Kt), e("design:type", Kt) ], Yt.prototype, "app", void 0);
724
-
725
- t([ r(i.String().required()), e("design:type", String) ], Yt.prototype, "path", void 0);
727
+ t([ i(r.String().required()), e("design:type", String) ], Xt.prototype, "path", void 0);
726
728
 
727
- t([ r(i.String().allow("").optional().default("")), e("design:type", String) ], Yt.prototype, "dataSourceName", void 0);
729
+ t([ i(r.String().allow("").optional().default("")), e("design:type", String) ], Xt.prototype, "dataSourceName", void 0);
728
730
 
729
- t([ r(), e("design:type", Object) ], Yt.prototype, "dataSource", void 0);
731
+ t([ i(), e("design:type", Object) ], Xt.prototype, "dataSource", void 0);
730
732
 
731
- t([ r(i.Boolean().optional().default(true)), e("design:type", Boolean) ], Yt.prototype, "pretty", void 0);
733
+ t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], Xt.prototype, "pretty", void 0);
732
734
 
733
- t([ r(i.Boolean().optional().default(false)), e("design:type", Boolean) ], Yt.prototype, "outputJs", void 0);
735
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "outputJs", void 0);
734
736
 
735
- t([ r(i.Boolean().optional().default(false)), e("design:type", Boolean) ], Yt.prototype, "esm", void 0);
737
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "esm", void 0);
736
738
 
737
- t([ r(i.Boolean().optional().default(false)), e("design:type", Boolean) ], Yt.prototype, "dryRun", void 0);
739
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "dryRun", void 0);
738
740
 
739
- t([ r(i.Boolean().optional().default(false)), e("design:type", Boolean) ], Yt.prototype, "check", void 0);
741
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "check", void 0);
740
742
 
741
- t([ r(i.Number().optional().default((() => Date.now()))), e("design:type", Number) ], Yt.prototype, "timestamp", void 0);
743
+ t([ i(r.Number().optional().default((() => Date.now()))), e("design:type", Number) ], Xt.prototype, "timestamp", void 0);
742
744
 
743
- t([ r(i.Boolean().optional().default(true)), e("design:type", Boolean) ], Yt.prototype, "exitProcess", void 0);
745
+ t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], Xt.prototype, "exitProcess", void 0);
744
746
 
745
- Yt = Xt = t([ y() ], Yt);
747
+ Xt = Kt = t([ j() ], Xt);
746
748
 
747
- export { Kt as Application, Wt as ApplicationState, Yt as G };
749
+ export { Application, Wt as ApplicationState, Xt as G };