lakutata 2.0.30 → 2.0.32

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 (423) hide show
  1. package/README.md +2 -2
  2. package/com/database.cjs +17 -17
  3. package/com/database.mjs +17 -17
  4. package/com/docker.cjs +14 -14
  5. package/com/docker.mjs +14 -14
  6. package/com/entrypoint.cjs +12 -12
  7. package/com/entrypoint.d.ts +2 -2
  8. package/com/entrypoint.mjs +12 -12
  9. package/com/logger.cjs +12 -12
  10. package/com/logger.mjs +12 -12
  11. package/decorator/asst.cjs +4 -4
  12. package/decorator/asst.mjs +4 -4
  13. package/decorator/ctrl.cjs +41 -13
  14. package/decorator/ctrl.d.ts +16 -2
  15. package/decorator/ctrl.mjs +21 -7
  16. package/decorator/di.cjs +6 -6
  17. package/decorator/di.mjs +6 -6
  18. package/decorator/dto.cjs +6 -6
  19. package/decorator/dto.mjs +6 -6
  20. package/decorator/orm.cjs +13 -13
  21. package/decorator/orm.mjs +13 -13
  22. package/helper.cjs +9 -9
  23. package/helper.mjs +9 -9
  24. package/lakutata.cjs +13 -13
  25. package/lakutata.mjs +13 -13
  26. package/orm.cjs +14 -14
  27. package/orm.mjs +15 -15
  28. package/package.json +6 -1
  29. package/provider/database.cjs +17 -17
  30. package/provider/database.mjs +17 -17
  31. package/provider/passwordHash.cjs +157 -0
  32. package/provider/passwordHash.d.ts +33 -0
  33. package/provider/passwordHash.mjs +149 -0
  34. package/src/components/Database.cjs +16 -16
  35. package/src/components/Database.mjs +16 -16
  36. package/src/components/Logger.cjs +12 -12
  37. package/src/components/Logger.mjs +12 -12
  38. package/src/components/docker/ConnectionOptionsBuilder.cjs +14 -14
  39. package/src/components/docker/ConnectionOptionsBuilder.mjs +14 -14
  40. package/src/components/docker/Docker.cjs +11 -11
  41. package/src/components/docker/Docker.mjs +11 -11
  42. package/src/components/docker/exceptions/DockerConnectionException.cjs +3 -3
  43. package/src/components/docker/exceptions/DockerConnectionException.mjs +3 -3
  44. package/src/components/docker/exceptions/DockerImageBuildException.cjs +3 -3
  45. package/src/components/docker/exceptions/DockerImageBuildException.mjs +3 -3
  46. package/src/components/docker/exceptions/DockerImageImportException.cjs +3 -3
  47. package/src/components/docker/exceptions/DockerImageImportException.mjs +3 -3
  48. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +3 -3
  49. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +3 -3
  50. package/src/components/docker/exceptions/DockerImagePullException.cjs +3 -3
  51. package/src/components/docker/exceptions/DockerImagePullException.mjs +3 -3
  52. package/src/components/docker/exceptions/DockerImagePushException.cjs +3 -3
  53. package/src/components/docker/exceptions/DockerImagePushException.mjs +3 -3
  54. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +3 -3
  55. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +3 -3
  56. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +3 -3
  57. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +3 -3
  58. package/src/components/docker/lib/DockerContainer.cjs +14 -14
  59. package/src/components/docker/lib/DockerContainer.mjs +14 -14
  60. package/src/components/docker/lib/DockerContainerTTY.cjs +14 -14
  61. package/src/components/docker/lib/DockerContainerTTY.mjs +14 -14
  62. package/src/components/docker/lib/DockerImage.cjs +11 -11
  63. package/src/components/docker/lib/DockerImage.mjs +11 -11
  64. package/src/components/docker/options/DockerPruneOptions.cjs +6 -6
  65. package/src/components/docker/options/DockerPruneOptions.mjs +6 -6
  66. package/src/components/docker/options/auth/DockerAuthOptions.cjs +6 -6
  67. package/src/components/docker/options/auth/DockerAuthOptions.mjs +6 -6
  68. package/src/components/docker/options/container/ContainerCommitOptions.cjs +6 -6
  69. package/src/components/docker/options/container/ContainerCommitOptions.mjs +6 -6
  70. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +6 -6
  71. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +6 -6
  72. package/src/components/docker/options/container/ContainerExecOptions.cjs +6 -6
  73. package/src/components/docker/options/container/ContainerExecOptions.mjs +6 -6
  74. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +6 -6
  75. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +6 -6
  76. package/src/components/docker/options/container/ContainerKillOptions.cjs +6 -6
  77. package/src/components/docker/options/container/ContainerKillOptions.mjs +6 -6
  78. package/src/components/docker/options/container/ContainerLogsOptions.cjs +6 -6
  79. package/src/components/docker/options/container/ContainerLogsOptions.mjs +6 -6
  80. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +6 -6
  81. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +6 -6
  82. package/src/components/docker/options/container/ContainerSettingOptions.cjs +6 -6
  83. package/src/components/docker/options/container/ContainerSettingOptions.mjs +6 -6
  84. package/src/components/docker/options/container/ContainerStopOptions.cjs +6 -6
  85. package/src/components/docker/options/container/ContainerStopOptions.mjs +6 -6
  86. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +6 -6
  87. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +6 -6
  88. package/src/components/docker/options/image/ImageBuildOptions.cjs +6 -6
  89. package/src/components/docker/options/image/ImageBuildOptions.mjs +6 -6
  90. package/src/components/docker/options/image/ImageExportOptions.cjs +6 -6
  91. package/src/components/docker/options/image/ImageExportOptions.mjs +6 -6
  92. package/src/components/docker/options/image/ImageImportOptions.cjs +6 -6
  93. package/src/components/docker/options/image/ImageImportOptions.mjs +6 -6
  94. package/src/components/docker/options/image/ImagePullOptions.cjs +6 -6
  95. package/src/components/docker/options/image/ImagePullOptions.mjs +6 -6
  96. package/src/components/docker/options/image/ImagePushOptions.cjs +6 -6
  97. package/src/components/docker/options/image/ImagePushOptions.mjs +6 -6
  98. package/src/components/docker/options/image/ImageRemoveOptions.cjs +6 -6
  99. package/src/components/docker/options/image/ImageRemoveOptions.mjs +6 -6
  100. package/src/components/docker/options/image/ImageTagOptions.cjs +6 -6
  101. package/src/components/docker/options/image/ImageTagOptions.mjs +6 -6
  102. package/src/components/docker/options/network/NetworkCreateOptions.cjs +6 -6
  103. package/src/components/docker/options/network/NetworkCreateOptions.mjs +6 -6
  104. package/src/components/entrypoint/Entrypoint.cjs +12 -12
  105. package/src/components/entrypoint/Entrypoint.mjs +12 -12
  106. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +3 -3
  107. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +3 -3
  108. package/src/components/entrypoint/lib/Controller.cjs +11 -11
  109. package/src/components/entrypoint/lib/Controller.mjs +11 -11
  110. package/src/constants/DIMetadataKey.cjs +2 -2
  111. package/src/constants/DIMetadataKey.mjs +2 -2
  112. package/src/constants/DTOMetadataKey.cjs +2 -2
  113. package/src/constants/DTOMetadataKey.mjs +2 -2
  114. package/src/decorators/asst/After.cjs +3 -3
  115. package/src/decorators/asst/After.mjs +3 -3
  116. package/src/decorators/asst/Before.cjs +3 -3
  117. package/src/decorators/asst/Before.mjs +3 -3
  118. package/src/decorators/ctrl/CLIAction.cjs +7 -7
  119. package/src/decorators/ctrl/CLIAction.mjs +7 -7
  120. package/src/decorators/ctrl/HTTPAction.cjs +7 -7
  121. package/src/decorators/ctrl/HTTPAction.mjs +7 -7
  122. package/src/decorators/ctrl/ServiceAction.cjs +7 -7
  123. package/src/decorators/ctrl/ServiceAction.mjs +7 -7
  124. package/src/decorators/ctrl/http/DELETE.cjs +85 -0
  125. package/src/decorators/ctrl/http/DELETE.mjs +79 -0
  126. package/src/decorators/ctrl/http/GET.cjs +85 -0
  127. package/src/decorators/ctrl/http/GET.mjs +79 -0
  128. package/src/decorators/ctrl/http/HEAD.cjs +85 -0
  129. package/src/decorators/ctrl/http/HEAD.mjs +79 -0
  130. package/src/decorators/ctrl/http/OPTIONS.cjs +85 -0
  131. package/src/decorators/ctrl/http/OPTIONS.mjs +79 -0
  132. package/src/decorators/ctrl/http/PATCH.cjs +85 -0
  133. package/src/decorators/ctrl/http/PATCH.mjs +79 -0
  134. package/src/decorators/ctrl/http/POST.cjs +85 -0
  135. package/src/decorators/ctrl/http/POST.mjs +79 -0
  136. package/src/decorators/ctrl/http/PUT.cjs +85 -0
  137. package/src/decorators/ctrl/http/PUT.mjs +79 -0
  138. package/src/decorators/di/Autoload.cjs +2 -2
  139. package/src/decorators/di/Autoload.mjs +2 -2
  140. package/src/decorators/di/Configurable.cjs +6 -6
  141. package/src/decorators/di/Configurable.mjs +6 -6
  142. package/src/decorators/di/Inject.cjs +6 -6
  143. package/src/decorators/di/Inject.mjs +6 -6
  144. package/src/decorators/di/Lifetime.cjs +4 -4
  145. package/src/decorators/di/Lifetime.mjs +4 -4
  146. package/src/decorators/dto/Accept.cjs +6 -6
  147. package/src/decorators/dto/Accept.mjs +6 -6
  148. package/src/decorators/dto/Expect.cjs +6 -6
  149. package/src/decorators/dto/Expect.mjs +6 -6
  150. package/src/decorators/dto/IndexSignature.cjs +6 -6
  151. package/src/decorators/dto/IndexSignature.mjs +6 -6
  152. package/src/decorators/dto/Return.cjs +6 -6
  153. package/src/decorators/dto/Return.mjs +6 -6
  154. package/src/decorators/orm/AfterInsert.cjs +12 -12
  155. package/src/decorators/orm/AfterInsert.mjs +12 -12
  156. package/src/decorators/orm/AfterLoad.cjs +12 -12
  157. package/src/decorators/orm/AfterLoad.mjs +12 -12
  158. package/src/decorators/orm/AfterRecover.cjs +12 -12
  159. package/src/decorators/orm/AfterRecover.mjs +12 -12
  160. package/src/decorators/orm/AfterRemove.cjs +12 -12
  161. package/src/decorators/orm/AfterRemove.mjs +12 -12
  162. package/src/decorators/orm/AfterSoftRemove.cjs +12 -12
  163. package/src/decorators/orm/AfterSoftRemove.mjs +12 -12
  164. package/src/decorators/orm/AfterUpdate.cjs +12 -12
  165. package/src/decorators/orm/AfterUpdate.mjs +12 -12
  166. package/src/decorators/orm/BeforeInsert.cjs +12 -12
  167. package/src/decorators/orm/BeforeInsert.mjs +12 -12
  168. package/src/decorators/orm/BeforeRecover.cjs +12 -12
  169. package/src/decorators/orm/BeforeRecover.mjs +12 -12
  170. package/src/decorators/orm/BeforeRemove.cjs +12 -12
  171. package/src/decorators/orm/BeforeRemove.mjs +12 -12
  172. package/src/decorators/orm/BeforeSoftRemove.cjs +12 -12
  173. package/src/decorators/orm/BeforeSoftRemove.mjs +12 -12
  174. package/src/decorators/orm/BeforeUpdate.cjs +12 -12
  175. package/src/decorators/orm/BeforeUpdate.mjs +12 -12
  176. package/src/decorators/orm/Check.cjs +12 -12
  177. package/src/decorators/orm/Check.mjs +12 -12
  178. package/src/decorators/orm/ChildEntity.cjs +12 -12
  179. package/src/decorators/orm/ChildEntity.mjs +12 -12
  180. package/src/decorators/orm/Column.cjs +12 -12
  181. package/src/decorators/orm/Column.mjs +12 -12
  182. package/src/decorators/orm/CreateDateColumn.cjs +12 -12
  183. package/src/decorators/orm/CreateDateColumn.mjs +12 -12
  184. package/src/decorators/orm/DeleteDateColumn.cjs +12 -12
  185. package/src/decorators/orm/DeleteDateColumn.mjs +12 -12
  186. package/src/decorators/orm/Entity.cjs +12 -12
  187. package/src/decorators/orm/Entity.mjs +12 -12
  188. package/src/decorators/orm/EventSubscriber.cjs +12 -12
  189. package/src/decorators/orm/EventSubscriber.mjs +12 -12
  190. package/src/decorators/orm/Exclusion.cjs +12 -12
  191. package/src/decorators/orm/Exclusion.mjs +12 -12
  192. package/src/decorators/orm/Generated.cjs +12 -12
  193. package/src/decorators/orm/Generated.mjs +12 -12
  194. package/src/decorators/orm/Index.cjs +12 -12
  195. package/src/decorators/orm/Index.mjs +12 -12
  196. package/src/decorators/orm/JoinColumn.cjs +12 -12
  197. package/src/decorators/orm/JoinColumn.mjs +12 -12
  198. package/src/decorators/orm/JoinTable.cjs +12 -12
  199. package/src/decorators/orm/JoinTable.mjs +12 -12
  200. package/src/decorators/orm/ManyToMany.cjs +12 -12
  201. package/src/decorators/orm/ManyToMany.mjs +12 -12
  202. package/src/decorators/orm/ManyToOne.cjs +12 -12
  203. package/src/decorators/orm/ManyToOne.mjs +12 -12
  204. package/src/decorators/orm/ObjectIdColumn.cjs +12 -12
  205. package/src/decorators/orm/ObjectIdColumn.mjs +12 -12
  206. package/src/decorators/orm/OneToMany.cjs +12 -12
  207. package/src/decorators/orm/OneToMany.mjs +12 -12
  208. package/src/decorators/orm/OneToOne.cjs +12 -12
  209. package/src/decorators/orm/OneToOne.mjs +12 -12
  210. package/src/decorators/orm/PrimaryColumn.cjs +12 -12
  211. package/src/decorators/orm/PrimaryColumn.mjs +12 -12
  212. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +12 -12
  213. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +12 -12
  214. package/src/decorators/orm/RelationId.cjs +12 -12
  215. package/src/decorators/orm/RelationId.mjs +12 -12
  216. package/src/decorators/orm/TableInheritance.cjs +12 -12
  217. package/src/decorators/orm/TableInheritance.mjs +12 -12
  218. package/src/decorators/orm/Tree.cjs +12 -12
  219. package/src/decorators/orm/Tree.mjs +12 -12
  220. package/src/decorators/orm/TreeChildren.cjs +12 -12
  221. package/src/decorators/orm/TreeChildren.mjs +12 -12
  222. package/src/decorators/orm/TreeLevelColumn.cjs +12 -12
  223. package/src/decorators/orm/TreeLevelColumn.mjs +12 -12
  224. package/src/decorators/orm/TreeParent.cjs +12 -12
  225. package/src/decorators/orm/TreeParent.mjs +12 -12
  226. package/src/decorators/orm/Unique.cjs +12 -12
  227. package/src/decorators/orm/Unique.mjs +12 -12
  228. package/src/decorators/orm/UpdateDateColumn.cjs +12 -12
  229. package/src/decorators/orm/UpdateDateColumn.mjs +12 -12
  230. package/src/decorators/orm/VersionColumn.cjs +12 -12
  231. package/src/decorators/orm/VersionColumn.mjs +12 -12
  232. package/src/decorators/orm/ViewColumn.cjs +12 -12
  233. package/src/decorators/orm/ViewColumn.mjs +12 -12
  234. package/src/decorators/orm/ViewEntity.cjs +12 -12
  235. package/src/decorators/orm/ViewEntity.mjs +12 -12
  236. package/src/decorators/orm/VirtualColumn.cjs +12 -12
  237. package/src/decorators/orm/VirtualColumn.mjs +12 -12
  238. package/src/exceptions/DestroyRuntimeContainerException.cjs +3 -3
  239. package/src/exceptions/DestroyRuntimeContainerException.mjs +3 -3
  240. package/src/exceptions/InvalidActionPatternDepthException.cjs +3 -3
  241. package/src/exceptions/InvalidActionPatternDepthException.mjs +3 -3
  242. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +3 -3
  243. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +3 -3
  244. package/src/exceptions/InvalidObjectTypeException.cjs +3 -3
  245. package/src/exceptions/InvalidObjectTypeException.mjs +3 -3
  246. package/src/exceptions/MethodNotFoundException.cjs +3 -3
  247. package/src/exceptions/MethodNotFoundException.mjs +3 -3
  248. package/src/exceptions/alias/AliasExistsException.cjs +3 -3
  249. package/src/exceptions/alias/AliasExistsException.mjs +3 -3
  250. package/src/exceptions/alias/AliasNotFoundException.cjs +3 -3
  251. package/src/exceptions/alias/AliasNotFoundException.mjs +3 -3
  252. package/src/exceptions/alias/InvalidAliasNameException.cjs +3 -3
  253. package/src/exceptions/alias/InvalidAliasNameException.mjs +3 -3
  254. package/src/exceptions/di/DependencyInjectionException.cjs +3 -3
  255. package/src/exceptions/di/DependencyInjectionException.mjs +3 -3
  256. package/src/exceptions/di/LifetimeLockedException.cjs +3 -3
  257. package/src/exceptions/di/LifetimeLockedException.mjs +3 -3
  258. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +3 -3
  259. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +3 -3
  260. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +3 -3
  261. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +3 -3
  262. package/src/exceptions/dto/InvalidMethodReturnException.cjs +3 -3
  263. package/src/exceptions/dto/InvalidMethodReturnException.mjs +3 -3
  264. package/src/exceptions/dto/InvalidValueException.cjs +3 -3
  265. package/src/exceptions/dto/InvalidValueException.mjs +3 -3
  266. package/src/lib/base/BaseObject.cjs +11 -11
  267. package/src/lib/base/BaseObject.mjs +11 -11
  268. package/src/lib/base/Context.cjs +6 -6
  269. package/src/lib/base/Context.mjs +6 -6
  270. package/src/lib/base/EventEmitter.cjs +1 -1
  271. package/src/lib/base/EventEmitter.mjs +1 -1
  272. package/src/lib/base/abstracts/Exception.cjs +3 -3
  273. package/src/lib/base/abstracts/Exception.mjs +3 -3
  274. package/src/lib/base/internal/ApplicationConfigLoader.cjs +11 -11
  275. package/src/lib/base/internal/ApplicationConfigLoader.mjs +11 -11
  276. package/src/lib/base/internal/BasicInfo.cjs +3 -3
  277. package/src/lib/base/internal/BasicInfo.mjs +3 -3
  278. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +2 -2
  279. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +2 -2
  280. package/src/lib/base/internal/ConstructorSymbol.cjs +2 -2
  281. package/src/lib/base/internal/ConstructorSymbol.mjs +2 -2
  282. package/src/lib/base/internal/ControllerEntrypoint.cjs +4 -4
  283. package/src/lib/base/internal/ControllerEntrypoint.mjs +4 -4
  284. package/src/lib/base/internal/DataValidator.cjs +5 -5
  285. package/src/lib/base/internal/DataValidator.mjs +5 -5
  286. package/src/lib/base/internal/FlexibleDTO.cjs +6 -6
  287. package/src/lib/base/internal/FlexibleDTO.mjs +6 -6
  288. package/src/lib/base/internal/MethodAssistantFunction.cjs +3 -3
  289. package/src/lib/base/internal/MethodAssistantFunction.mjs +3 -3
  290. package/src/lib/base/internal/MethodValidation.cjs +6 -6
  291. package/src/lib/base/internal/MethodValidation.mjs +6 -6
  292. package/src/lib/base/internal/ModuleConfigLoader.cjs +11 -11
  293. package/src/lib/base/internal/ModuleConfigLoader.mjs +11 -11
  294. package/src/lib/base/internal/ObjectConfiguration.cjs +6 -6
  295. package/src/lib/base/internal/ObjectConfiguration.mjs +6 -6
  296. package/src/lib/base/internal/ObjectContainer.cjs +2 -2
  297. package/src/lib/base/internal/ObjectContainer.mjs +2 -2
  298. package/src/lib/base/internal/ObjectInjection.cjs +30 -21
  299. package/src/lib/base/internal/ObjectInjection.mjs +19 -10
  300. package/src/lib/base/internal/ObjectLifetime.cjs +4 -4
  301. package/src/lib/base/internal/ObjectLifetime.mjs +4 -4
  302. package/src/lib/base/internal/ObjectSchemaValidation.cjs +6 -6
  303. package/src/lib/base/internal/ObjectSchemaValidation.mjs +6 -6
  304. package/src/lib/base/internal/ObjectType.cjs +11 -11
  305. package/src/lib/base/internal/ObjectType.mjs +11 -11
  306. package/src/lib/base/internal/PatternManager.cjs +1 -1
  307. package/src/lib/base/internal/PatternManager.mjs +1 -1
  308. package/src/lib/context/CLIContext.cjs +6 -6
  309. package/src/lib/context/CLIContext.mjs +6 -6
  310. package/src/lib/context/HTTPContext.cjs +6 -6
  311. package/src/lib/context/HTTPContext.mjs +6 -6
  312. package/src/lib/context/ServiceContext.cjs +6 -6
  313. package/src/lib/context/ServiceContext.mjs +6 -6
  314. package/src/lib/core/Alias.cjs +3 -3
  315. package/src/lib/core/Alias.mjs +3 -3
  316. package/src/lib/core/Application.cjs +13 -13
  317. package/src/lib/core/Application.mjs +13 -13
  318. package/src/lib/core/Component.cjs +11 -11
  319. package/src/lib/core/Component.mjs +11 -11
  320. package/src/lib/core/Container.cjs +11 -11
  321. package/src/lib/core/Container.mjs +11 -11
  322. package/src/lib/core/DTO.cjs +6 -6
  323. package/src/lib/core/DTO.mjs +6 -6
  324. package/src/lib/core/Module.cjs +12 -12
  325. package/src/lib/core/Module.mjs +12 -12
  326. package/src/lib/core/Provider.cjs +11 -11
  327. package/src/lib/core/Provider.mjs +11 -11
  328. package/src/lib/core/Time.cjs +7 -4
  329. package/src/lib/core/Time.mjs +7 -4
  330. package/src/lib/helpers/Glob.cjs +2 -2
  331. package/src/lib/helpers/Glob.mjs +2 -2
  332. package/src/lib/helpers/IsGlobString.cjs +1 -1
  333. package/src/lib/helpers/IsGlobString.mjs +1 -1
  334. package/src/lib/helpers/IsHtml.cjs +1 -1
  335. package/src/lib/helpers/IsHtml.mjs +1 -1
  336. package/src/lib/helpers/IsSymbol.cjs +6 -6
  337. package/src/lib/helpers/IsSymbol.mjs +6 -6
  338. package/src/lib/helpers/IsXML.cjs +1 -1
  339. package/src/lib/helpers/IsXML.mjs +1 -1
  340. package/src/lib/helpers/MD5.cjs +3 -3
  341. package/src/lib/helpers/MD5.mjs +3 -3
  342. package/src/lib/helpers/NonceStr.cjs +2 -2
  343. package/src/lib/helpers/NonceStr.mjs +2 -2
  344. package/src/lib/helpers/ObjectHash.cjs +2 -2
  345. package/src/lib/helpers/ObjectHash.mjs +2 -2
  346. package/src/lib/helpers/RandomString.cjs +2 -2
  347. package/src/lib/helpers/RandomString.mjs +2 -2
  348. package/src/lib/helpers/SHA1.cjs +3 -3
  349. package/src/lib/helpers/SHA1.mjs +3 -3
  350. package/src/lib/helpers/SHA256.cjs +3 -3
  351. package/src/lib/helpers/SHA256.mjs +3 -3
  352. package/src/lib/ioc/DependencyInjectionContainer.cjs +10 -10
  353. package/src/lib/ioc/DependencyInjectionContainer.mjs +10 -10
  354. package/src/lib/ioc/Errors.cjs +6 -6
  355. package/src/lib/ioc/Errors.mjs +6 -6
  356. package/src/lib/ioc/ListModules.cjs +7 -7
  357. package/src/lib/ioc/ListModules.mjs +7 -7
  358. package/src/lib/ioc/LoadModules.cjs +6 -6
  359. package/src/lib/ioc/LoadModules.mjs +6 -6
  360. package/src/lib/ioc/Resolvers.cjs +6 -6
  361. package/src/lib/ioc/Resolvers.mjs +6 -6
  362. package/src/lib/ioc/Utils.cjs +6 -6
  363. package/src/lib/ioc/Utils.mjs +6 -6
  364. package/src/lib/validation/VLD.cjs +4 -4
  365. package/src/lib/validation/VLD.mjs +4 -4
  366. package/src/options/ApplicationOptions.cjs +11 -11
  367. package/src/options/ApplicationOptions.mjs +11 -11
  368. package/src/options/LoadAnonymousObjectOptions.cjs +11 -11
  369. package/src/options/LoadAnonymousObjectOptions.mjs +11 -11
  370. package/src/options/LoadNamedObjectOptions.cjs +11 -11
  371. package/src/options/LoadNamedObjectOptions.mjs +11 -11
  372. package/src/options/LoadObjectOptions.cjs +11 -11
  373. package/src/options/LoadObjectOptions.mjs +11 -11
  374. package/src/options/ModuleLoadObjectsOptions.cjs +11 -11
  375. package/src/options/ModuleLoadObjectsOptions.mjs +11 -11
  376. package/src/options/ModuleOptions.cjs +11 -11
  377. package/src/options/ModuleOptions.mjs +11 -11
  378. package/src/options/OverridableNamedObjectOptions.cjs +11 -11
  379. package/src/options/OverridableNamedObjectOptions.mjs +11 -11
  380. package/src/options/OverridableObjectOptions.cjs +11 -11
  381. package/src/options/OverridableObjectOptions.mjs +11 -11
  382. package/src/providers/Database.cjs +16 -16
  383. package/src/providers/Database.mjs +16 -16
  384. package/src/providers/PasswordHash.cjs +689 -0
  385. package/src/providers/PasswordHash.mjs +677 -0
  386. package/vendor/Package.10.cjs +2 -82
  387. package/vendor/Package.10.mjs +2 -76
  388. package/vendor/Package.11.cjs +5 -5
  389. package/vendor/Package.11.mjs +5 -5
  390. package/vendor/{Package.22.cjs → Package.112.cjs} +8 -8
  391. package/vendor/{Package.22.mjs → Package.112.mjs} +8 -8
  392. package/vendor/Package.12.cjs +83 -1
  393. package/vendor/Package.12.mjs +77 -1
  394. package/vendor/Package.13.cjs +1 -478
  395. package/vendor/Package.13.mjs +1 -460
  396. package/vendor/Package.14.cjs +5 -5
  397. package/vendor/Package.14.mjs +5 -5
  398. package/vendor/Package.15.cjs +204 -193
  399. package/vendor/Package.15.mjs +195 -184
  400. package/vendor/Package.2.cjs +7002 -5
  401. package/vendor/Package.2.mjs +6992 -5
  402. package/vendor/Package.3.cjs +455 -925
  403. package/vendor/Package.3.mjs +437 -925
  404. package/vendor/Package.4.cjs +939 -37
  405. package/vendor/Package.4.mjs +941 -35
  406. package/vendor/Package.5.cjs +32 -6992
  407. package/vendor/Package.5.mjs +30 -6984
  408. package/vendor/Package.6.cjs +4309 -2
  409. package/vendor/Package.6.mjs +4309 -2
  410. package/vendor/{Package.72.cjs → Package.62.cjs} +3 -3
  411. package/vendor/{Package.72.mjs → Package.62.mjs} +3 -3
  412. package/vendor/{Package.73.cjs → Package.63.cjs} +1 -1
  413. package/vendor/{Package.73.mjs → Package.63.mjs} +1 -1
  414. package/vendor/{Package.74.cjs → Package.64.cjs} +2 -2
  415. package/vendor/{Package.74.mjs → Package.64.mjs} +2 -2
  416. package/vendor/Package.7.cjs +3 -4308
  417. package/vendor/Package.7.mjs +3 -4308
  418. package/vendor/Package.8.cjs +8 -4
  419. package/vendor/Package.8.mjs +8 -4
  420. package/vendor/Package.9.cjs +1 -1
  421. package/vendor/Package.9.mjs +1 -1
  422. package/vendor/TypeDef.1.d.ts +4 -0
  423. package/vendor/TypeDef.13.d.ts +2 -2
@@ -1,460 +1 @@
1
- import { _ as t, a as e } from "./Package.1.mjs";
2
-
3
- import { AsyncConstructor as s } from "../src/lib/base/async-constructor/AsyncConstructor.mjs";
4
-
5
- import { Transient as i } from "../src/decorators/di/Lifetime.mjs";
6
-
7
- import { MethodNotFoundException as r } from "../src/exceptions/MethodNotFoundException.mjs";
8
-
9
- import { createContainer as o } from "../src/lib/ioc/DependencyInjectionContainer.mjs";
10
-
11
- import { randomUUID as n } from "node:crypto";
12
-
13
- import { GetConfigurableRecords as a, SetIdToInstance as c, SetConfigurableRecordsToInstance as l, SetConfigurableRecords as h, GetConfigurableRecordsFromInstance as d, GetIdFromInstance as m } from "../src/lib/base/internal/ConfigurableRecordsInjection.mjs";
14
-
15
- import { GetObjectConfigurableProperties as p } from "../src/lib/base/internal/ObjectConfiguration.mjs";
16
-
17
- import { GetObjectIsAutoload as u, GetObjectInjectItemsByPrototype as f } from "../src/lib/base/internal/ObjectInjection.mjs";
18
-
19
- import { SetObjectContainerGetter as b } from "../src/lib/base/internal/ObjectContainer.mjs";
20
-
21
- import { D as y, I as j } from "./Package.5.mjs";
22
-
23
- import { ObjectConstructor as g } from "../src/lib/helpers/ObjectConstructor.mjs";
24
-
25
- import { As as w } from "../src/lib/helpers/As.mjs";
26
-
27
- import { DevNull as O } from "../src/lib/helpers/DevNull.mjs";
28
-
29
- import { ObjectParentConstructors as P } from "../src/lib/helpers/ObjectParentConstructors.mjs";
30
-
31
- import { DependencyInjectionException as C } from "../src/exceptions/di/DependencyInjectionException.mjs";
32
-
33
- import { ConstructorSymbol as R } from "../src/lib/base/internal/ConstructorSymbol.mjs";
34
-
35
- import { Expect as S } from "../src/decorators/dto/Expect.mjs";
36
-
37
- import { IndexSignature as N } from "../src/decorators/dto/IndexSignature.mjs";
38
-
39
- import { asValue as v, asClass as I } from "../src/lib/ioc/Resolvers.mjs";
40
-
41
- import { GetObjectLifetime as E } from "../src/lib/base/internal/ObjectLifetime.mjs";
42
-
43
- import { Accept as M } from "../src/decorators/dto/Accept.mjs";
44
-
45
- import { listModules as A } from "../src/lib/ioc/ListModules.mjs";
46
-
47
- import { pathToFileURL as T } from "url";
48
-
49
- import { isClass as L } from "../src/lib/ioc/Utils.mjs";
50
-
51
- import { IsEmptyObject as k } from "../src/lib/helpers/IsEmptyObject.mjs";
52
-
53
- import { AppendObjectWeakRefs as D, GetObjectWeakRefs as U, ClearObjectWeakRefs as x } from "../src/lib/base/internal/ObjectWeakRefs.mjs";
54
-
55
- var B;
56
-
57
- const _ = Symbol("OBJECT_ID");
58
-
59
- let F = class LoadObjectOptions extends y {
60
- static {
61
- B = _;
62
- }
63
- };
64
-
65
- t([ S(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ], F.prototype, B, void 0);
66
-
67
- t([ S(y.Class((() => tt)).required()), e("design:type", Object) ], F.prototype, "class", void 0);
68
-
69
- F = t([ N(y.Any()) ], F);
70
-
71
- const G = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
72
-
73
- const Y = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
74
-
75
- class Container {
76
- #t;
77
- #e;
78
- #s;
79
- constructor(t, e) {
80
- this.#e = new Set;
81
- this.#s = false;
82
- this.injectionNames = new Set;
83
- this.parent = t;
84
- this.#t = t ? t.#t.createScope() : o({
85
- injectionMode: "PROXY",
86
- strict: false
87
- });
88
- if (this.parent) this.parent.#e.add(this);
89
- this.#t.register(G, v(this));
90
- if (e) this.#t.register(Y, v(new WeakRef(e)));
91
- }
92
- async disposer(t) {
93
- try {
94
- await t.getMethod(H, false)();
95
- } catch (t) {
96
- O(t);
97
- }
98
- }
99
- buildResolverOptions(t) {
100
- const e = E(t);
101
- return {
102
- lifetime: e,
103
- dispose: t => this.disposer(t)
104
- };
105
- }
106
- async processResolved(t, e, s = {}) {
107
- const i = a(w(t.constructor), e);
108
- const r = y.isValid(t.constructor, y.Class(tt));
109
- if (r) {
110
- c(w(t), e);
111
- l(w(t), {
112
- ...i,
113
- ...s
114
- });
115
- }
116
- return Promise.resolve(t);
117
- }
118
- buildNameAndRegistrationPairFromOptions(t) {
119
- const e = {};
120
- const s = t[_] ? t[_] : R(t.class);
121
- const i = {
122
- ...t,
123
- class: void 0
124
- };
125
- delete i.id;
126
- delete i.class;
127
- h(t.class, s, i);
128
- e[s] = I(t.class, this.buildResolverOptions(t.class));
129
- return e;
130
- }
131
- async buildNameAndRegistrationPairFromGlob(t) {
132
- const e = [];
133
- A(t).forEach((t => {
134
- e.push(new Promise((e => {
135
- import(T(t.path).toString()).then((t => {
136
- Object.keys(t).forEach((s => {
137
- const i = t[s];
138
- if (L(i) && y.isValid(i, y.Class(tt))) {
139
- const t = i;
140
- const s = {};
141
- s[R(t)] = I(t, this.buildResolverOptions(t));
142
- return e(s);
143
- } else {
144
- return e({});
145
- }
146
- }));
147
- })).catch((() => e({})));
148
- })));
149
- }));
150
- const s = await Promise.all(e);
151
- let i = {};
152
- s.forEach((t => {
153
- i = {
154
- ...i,
155
- ...t
156
- };
157
- }));
158
- return i;
159
- }
160
- owner() {
161
- const t = this.#t.resolve(Y, {
162
- allowUnregistered: true
163
- });
164
- return t ? t.deref() : undefined;
165
- }
166
- async load(t) {
167
- let e = {};
168
- const s = [];
169
- t.forEach((t => {
170
- if (typeof t === "string") {
171
- s.push(new Promise(((e, s) => this.buildNameAndRegistrationPairFromGlob(t).then(e).catch(s))));
172
- } else if (L(w(t))) {
173
- const s = {
174
- class: w(t)
175
- };
176
- e = {
177
- ...e,
178
- ...this.buildNameAndRegistrationPairFromOptions(s)
179
- };
180
- } else {
181
- const s = w(t);
182
- e = {
183
- ...e,
184
- ...this.buildNameAndRegistrationPairFromOptions(s)
185
- };
186
- }
187
- }));
188
- if (s.length) {
189
- const t = await Promise.all(s);
190
- t.forEach((t => {
191
- e = {
192
- ...t,
193
- ...e
194
- };
195
- }));
196
- }
197
- if (!k(e)) {
198
- Object.getOwnPropertyNames(e).forEach((t => this.injectionNames.add(t)));
199
- Object.getOwnPropertySymbols(e).forEach((t => this.injectionNames.add(t)));
200
- this.#t.register(e);
201
- }
202
- }
203
- async get(t, e = {}) {
204
- const s = typeof t === "function" ? R(t) : t;
205
- if (!this.#t.hasRegistration(s) && typeof t === "function" && u(w(t))) {
206
- await this.load([ {
207
- id: s,
208
- class: w(t)
209
- } ]);
210
- }
211
- return (this.#t.getRegistration(s)?.lifetime === "SINGLETON" || this.#t.getRegistration(s)?.lifetime === "MODULE_SINGLETON") && !this.injectionNames.has(s) && this.parent ? await this.parent.get(s, e) : await this.processResolved(this.#t.resolve(s), s, e);
212
- }
213
- has(t) {
214
- if (typeof t === "function") return this.#t.hasRegistration(R(t));
215
- return this.#t.hasRegistration(t);
216
- }
217
- async set(t, e = {}) {
218
- await this.load([ {
219
- ...e,
220
- class: t
221
- } ]);
222
- return await this.get(t);
223
- }
224
- async register(t, e = {}) {
225
- await this.load([ {
226
- ...e,
227
- class: t
228
- } ]);
229
- }
230
- async build(t, e = {}) {
231
- const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)), R(t), e);
232
- D(this.#t, s);
233
- return s;
234
- }
235
- createScope() {
236
- return new Container(this, this.owner());
237
- }
238
- registerContainerToItsParent() {
239
- if (this.parent) this.parent.#e.add(this);
240
- }
241
- async clear() {
242
- const t = [];
243
- this.#e.forEach((e => t.push(new Promise(((t, s) => e.destroy().then(t).catch(s))))));
244
- await Promise.all(t);
245
- await this.#t.dispose();
246
- const e = [];
247
- U(this.#t).forEach((t => {
248
- let s = t.deref();
249
- if (!s) return;
250
- if (s[H]) {
251
- e.push(new Promise((t => s ? Promise.resolve(s[H]()).then((() => {
252
- s = undefined;
253
- return t();
254
- })).catch(O) : t())));
255
- }
256
- }));
257
- await Promise.all(e);
258
- x(this.#t);
259
- }
260
- async destroy() {
261
- if (this.#s) return;
262
- this.#s = true;
263
- if (this.parent) this.parent.#e.delete(this);
264
- await this.clear();
265
- }
266
- }
267
-
268
- t([ M(y.Array(y.Alternatives(F.Schema(), y.Class((() => tt)), y.Glob()))), e("design:type", Function), e("design:paramtypes", [ Array ]), e("design:returntype", Promise) ], Container.prototype, "load", null);
269
-
270
- const $ = Symbol("OBJECT.TYPE");
271
-
272
- var q;
273
-
274
- (function(t) {
275
- t["Unknown"] = "Unknown";
276
- t["Object"] = "Object";
277
- t["Provider"] = "Provider";
278
- t["Controller"] = "Controller";
279
- t["Component"] = "Component";
280
- t["Module"] = "Module";
281
- })(q || (q = {}));
282
-
283
- function z(t) {
284
- return e => J(e, t);
285
- }
286
-
287
- function J(t, e) {
288
- Reflect.defineMetadata($, y.isValid(t, y.Class(tt)) ? e : q.Unknown, t);
289
- return t;
290
- }
291
-
292
- function V(t) {
293
- if (Reflect.hasOwnMetadata($, t)) return Reflect.getOwnMetadata($, t);
294
- let e = q.Unknown;
295
- for (const s of P(t)) {
296
- if (Reflect.hasOwnMetadata($, s)) {
297
- e = Reflect.getOwnMetadata($, s);
298
- break;
299
- }
300
- }
301
- J(t, e);
302
- return V(t);
303
- }
304
-
305
- var W;
306
-
307
- var K;
308
-
309
- const X = Symbol("__init");
310
-
311
- const H = Symbol("__destroy");
312
-
313
- const Q = Symbol("anonymous");
314
-
315
- const Z = Symbol("OBJECT.SYMBOL.PROPERTY");
316
-
317
- let tt = K = class BaseObject extends s {
318
- #i;
319
- #r;
320
- #o=n();
321
- #n=false;
322
- async #a() {
323
- const t = d(this);
324
- const e = [];
325
- p(this).forEach(((s, i) => {
326
- if (j(i)) return;
327
- e.push(new Promise(((e, r) => {
328
- y.validateAsync(t[w(i)], s.schema, {
329
- targetName: i
330
- }).then((t => Promise.resolve(s.fn.bind(this)(t)).then((t => {
331
- this[i] = t;
332
- return e();
333
- })).catch(r))).catch(r);
334
- })));
335
- }));
336
- await Promise.all(e);
337
- }
338
- async #c() {
339
- const t = f(this);
340
- const e = [];
341
- t.forEach(((t, s) => {
342
- const i = t.name;
343
- e.push(new Promise(((e, r) => {
344
- this.#i.get(i).then((i => {
345
- Promise.resolve(t.transform(i)).then((t => {
346
- Reflect.set(this, s, t);
347
- return e();
348
- })).catch(r);
349
- })).catch((t => r(new C("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, t.message ]))));
350
- })));
351
- }));
352
- await Promise.all(e);
353
- }
354
- #l() {
355
- const t = m(this);
356
- this.#r = t ? t : Q;
357
- }
358
- constructor(t) {
359
- super((async () => {
360
- this.#l();
361
- const t = Object.getOwnPropertyDescriptor(this, "then");
362
- if (t) Object.defineProperty(this, "then", {
363
- enumerable: false
364
- });
365
- await this[X]();
366
- }));
367
- this.#i = new Container(t[G], this);
368
- b(this, this.#i);
369
- }
370
- static get className() {
371
- return this.name;
372
- }
373
- get className() {
374
- return g(this).name;
375
- }
376
- async [X](...t) {
377
- this.#i.registerContainerToItsParent();
378
- if (!this.#n) {
379
- await this.#c();
380
- await this.#a();
381
- this.#n = true;
382
- }
383
- for (const e of t) await e();
384
- await this.init();
385
- }
386
- async [H](...t) {
387
- await this.#i.destroy();
388
- for (const e of t) await e();
389
- await this.destroy();
390
- }
391
- async init() {}
392
- async destroy() {}
393
- async getObject(t, e = {}) {
394
- return await this.#i.get(t, e);
395
- }
396
- async buildObject(t, e = {}) {
397
- return this.#i.build(t, e);
398
- }
399
- getParent() {
400
- return this.#i.parent?.owner();
401
- }
402
- getModule() {
403
- let t = this.getParent();
404
- while (t && V(w(g(t))) !== q.Module) {
405
- t = this.getParent();
406
- }
407
- return w(t);
408
- }
409
- get $uuid() {
410
- return this.#o;
411
- }
412
- get $id() {
413
- return this.#r;
414
- }
415
- get $symbol() {
416
- if (Reflect.hasOwnMetadata(Z, this)) return Reflect.getOwnMetadata(Z, this);
417
- Reflect.defineMetadata(Z, Symbol(this.$uuid), this);
418
- return this.$symbol;
419
- }
420
- setProperty(t, e) {
421
- this[t] = e;
422
- }
423
- getProperty(t, e) {
424
- if (this.hasProperty(t)) return w(this[t]);
425
- return w(e);
426
- }
427
- hasProperty(t) {
428
- return typeof t === "string" ? this.propertyNames().includes(t) : this.propertySymbols().includes(t);
429
- }
430
- propertySymbols() {
431
- return Object.getOwnPropertySymbols(this);
432
- }
433
- propertyNames() {
434
- return Object.getOwnPropertyNames(this);
435
- }
436
- hasMethod(t) {
437
- const e = this.hasProperty(t);
438
- if (e) return false;
439
- return typeof this[t] === "function";
440
- }
441
- getMethod(t, e = false) {
442
- if (this.hasMethod(t)) {
443
- return (...e) => this[t](...e);
444
- } else if (e) {
445
- throw new r('Method "{methodName}" not found in "{className}"', {
446
- methodName: t,
447
- className: this.constructor.name
448
- });
449
- } else {
450
- return (...t) => O(...t);
451
- }
452
- }
453
- async dispose() {
454
- await this.destroy();
455
- }
456
- };
457
-
458
- tt = K = t([ i(), z(q.Object), e("design:paramtypes", [ Object ]) ], tt);
459
-
460
- export { tt as B, Container as C, z as D, V as G, F as L, q as O, J as S, X as _, H as a, _ as b, G as c, Q as d, Y as o };
1
+ import "crypto";
@@ -8,13 +8,13 @@ const n = require("../src/decorators/di/Lifetime.cjs");
8
8
 
9
9
  const r = require("../src/decorators/di/Configurable.cjs");
10
10
 
11
- const i = require("./Package.5.cjs");
11
+ const i = require("./Package.2.cjs");
12
12
 
13
- const s = require("./Package.4.cjs");
13
+ const s = require("./Package.5.cjs");
14
14
 
15
- require("./Package.11.cjs");
15
+ require("./Package.8.cjs");
16
16
 
17
- require("./Package.6.cjs");
17
+ require("./Package.10.cjs");
18
18
 
19
19
  const o = require("fs");
20
20
 
@@ -26,7 +26,7 @@ const u = require("path");
26
26
 
27
27
  const f = require("worker_threads");
28
28
 
29
- const c = require("./Package.10.cjs");
29
+ const c = require("./Package.12.cjs");
30
30
 
31
31
  const d = require("assert");
32
32
 
@@ -6,13 +6,13 @@ import { Singleton as r } from "../src/decorators/di/Lifetime.mjs";
6
6
 
7
7
  import { Configurable as i } from "../src/decorators/di/Configurable.mjs";
8
8
 
9
- import { D as s } from "./Package.5.mjs";
9
+ import { D as s } from "./Package.2.mjs";
10
10
 
11
- import { g as o, c as a, a as l } from "./Package.4.mjs";
11
+ import { g as o, c as a, a as l } from "./Package.5.mjs";
12
12
 
13
- import "./Package.11.mjs";
13
+ import "./Package.8.mjs";
14
14
 
15
- import "./Package.6.mjs";
15
+ import "./Package.10.mjs";
16
16
 
17
17
  import u from "fs";
18
18
 
@@ -24,7 +24,7 @@ import d from "path";
24
24
 
25
25
  import h from "worker_threads";
26
26
 
27
- import { r as p } from "./Package.10.mjs";
27
+ import { r as p } from "./Package.12.mjs";
28
28
 
29
29
  import y from "assert";
30
30