lakutata 2.0.80 → 2.0.82
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.
- package/com/cacher.cjs +8 -10
- package/com/cacher.d.ts +83 -14
- package/com/cacher.mjs +8 -10
- package/com/database.cjs +11 -11
- package/com/database.mjs +11 -11
- package/com/docker.cjs +17 -19
- package/com/docker.d.ts +3 -141
- package/com/docker.mjs +13 -15
- package/com/entrypoint.cjs +7 -5
- package/com/entrypoint.mjs +7 -5
- package/com/logger.cjs +7 -7
- package/com/logger.mjs +7 -7
- package/com/monitor.cjs +5 -3
- package/com/monitor.mjs +5 -3
- package/decorator/ctrl.cjs +3 -3
- package/decorator/ctrl.mjs +3 -3
- package/decorator/orm.cjs +98 -98
- package/decorator/orm.mjs +142 -56
- package/helper.cjs +9 -11
- package/helper.mjs +5 -7
- package/lakutata.cjs +23 -30
- package/lakutata.mjs +14 -18
- package/orm.cjs +1421 -884
- package/orm.mjs +1474 -724
- package/package.json +1 -1
- package/provider/database.cjs +11 -11
- package/provider/database.mjs +11 -11
- package/provider/passwordHash.cjs +4 -2
- package/provider/passwordHash.mjs +4 -2
- package/src/components/Database.cjs +13 -13
- package/src/components/Database.mjs +17 -17
- package/src/components/Logger.cjs +7 -7
- package/src/components/Logger.mjs +7 -7
- package/src/components/cacher/Cacher.cjs +1186 -272
- package/src/components/cacher/Cacher.mjs +1094 -180
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +478 -2962
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +468 -2946
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +12 -12
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +11 -11
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +16 -16
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +14 -14
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +11 -11
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +11 -11
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +12 -12
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +13 -13
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +2 -2
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +2 -2
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +10 -10
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +10 -10
- package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +2 -2
- package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +5 -5
- package/src/components/docker/ConnectionOptionsBuilder.cjs +23 -25
- package/src/components/docker/ConnectionOptionsBuilder.mjs +19 -21
- package/src/components/docker/Docker.cjs +5035 -5096
- package/src/components/docker/Docker.mjs +4955 -5016
- package/src/components/docker/lib/DockerContainer.cjs +23 -25
- package/src/components/docker/lib/DockerContainer.mjs +17 -19
- package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
- package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
- package/src/components/docker/lib/DockerImage.cjs +4 -2
- package/src/components/docker/lib/DockerImage.mjs +4 -2
- package/src/components/docker/lib/ParseEnvToRecord.cjs +2 -2
- package/src/components/docker/lib/ParseEnvToRecord.mjs +12 -12
- package/src/components/docker/lib/ParseRepositoryTag.cjs +9 -9
- package/src/components/docker/lib/ParseRepositoryTag.mjs +11 -11
- package/src/components/entrypoint/Entrypoint.cjs +2179 -1687
- package/src/components/entrypoint/Entrypoint.mjs +2182 -1690
- package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
- package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
- package/src/components/entrypoint/lib/Controller.cjs +4 -2
- package/src/components/entrypoint/lib/Controller.mjs +4 -2
- package/src/components/monitor/AliveMonitor.cjs +6 -4
- package/src/components/monitor/AliveMonitor.mjs +6 -4
- package/src/components/monitor/CpuMonitor.cjs +5 -3
- package/src/components/monitor/CpuMonitor.mjs +5 -3
- package/src/components/monitor/EventLoopMonitor.cjs +4 -2
- package/src/components/monitor/EventLoopMonitor.mjs +4 -2
- package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
- package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
- package/src/components/monitor/MemoryMonitor.cjs +8 -6
- package/src/components/monitor/MemoryMonitor.mjs +5 -3
- package/src/decorators/asst/After.cjs +3 -3
- package/src/decorators/asst/After.mjs +2 -2
- package/src/decorators/asst/Before.cjs +2 -2
- package/src/decorators/asst/Before.mjs +4 -4
- package/src/decorators/ctrl/CLIAction.cjs +5 -5
- package/src/decorators/ctrl/CLIAction.mjs +10 -10
- package/src/decorators/ctrl/HTTPAction.cjs +9 -9
- package/src/decorators/ctrl/HTTPAction.mjs +7 -7
- package/src/decorators/ctrl/ServiceAction.cjs +6 -6
- package/src/decorators/ctrl/ServiceAction.mjs +7 -7
- package/src/decorators/ctrl/http/DELETE.cjs +5 -5
- package/src/decorators/ctrl/http/DELETE.mjs +5 -5
- package/src/decorators/ctrl/http/GET.cjs +5 -5
- package/src/decorators/ctrl/http/GET.mjs +5 -5
- package/src/decorators/ctrl/http/HEAD.cjs +5 -5
- package/src/decorators/ctrl/http/HEAD.mjs +5 -5
- package/src/decorators/ctrl/http/OPTIONS.cjs +5 -5
- package/src/decorators/ctrl/http/OPTIONS.mjs +5 -5
- package/src/decorators/ctrl/http/PATCH.cjs +5 -5
- package/src/decorators/ctrl/http/PATCH.mjs +5 -5
- package/src/decorators/ctrl/http/POST.cjs +5 -5
- package/src/decorators/ctrl/http/POST.mjs +5 -5
- package/src/decorators/ctrl/http/PUT.cjs +5 -5
- package/src/decorators/ctrl/http/PUT.mjs +5 -5
- package/src/decorators/di/Autoload.cjs +2 -2
- package/src/decorators/di/Autoload.mjs +2 -2
- package/src/decorators/di/Configurable.cjs +3 -3
- package/src/decorators/di/Configurable.mjs +2 -2
- package/src/decorators/di/Inject.cjs +6 -6
- package/src/decorators/di/Inject.mjs +11 -11
- package/src/decorators/di/Lifetime.cjs +18 -18
- package/src/decorators/di/Lifetime.mjs +13 -13
- package/src/decorators/dto/Accept.cjs +3 -3
- package/src/decorators/dto/Accept.mjs +2 -2
- package/src/decorators/dto/Expect.cjs +2 -2
- package/src/decorators/dto/Expect.mjs +3 -3
- package/src/decorators/dto/IndexSignature.cjs +2 -2
- package/src/decorators/dto/IndexSignature.mjs +3 -3
- package/src/decorators/dto/Return.cjs +3 -3
- package/src/decorators/dto/Return.mjs +2 -2
- package/src/decorators/orm/AfterInsert.cjs +17 -39
- package/src/decorators/orm/AfterInsert.mjs +18 -38
- package/src/decorators/orm/AfterLoad.cjs +17 -39
- package/src/decorators/orm/AfterLoad.mjs +18 -38
- package/src/decorators/orm/AfterRecover.cjs +17 -39
- package/src/decorators/orm/AfterRecover.mjs +18 -38
- package/src/decorators/orm/AfterRemove.cjs +17 -39
- package/src/decorators/orm/AfterRemove.mjs +18 -38
- package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
- package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
- package/src/decorators/orm/AfterUpdate.cjs +17 -39
- package/src/decorators/orm/AfterUpdate.mjs +18 -38
- package/src/decorators/orm/BeforeInsert.cjs +17 -39
- package/src/decorators/orm/BeforeInsert.mjs +18 -38
- package/src/decorators/orm/BeforeRecover.cjs +17 -39
- package/src/decorators/orm/BeforeRecover.mjs +18 -38
- package/src/decorators/orm/BeforeRemove.cjs +17 -39
- package/src/decorators/orm/BeforeRemove.mjs +18 -38
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
- package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
- package/src/decorators/orm/BeforeUpdate.cjs +17 -39
- package/src/decorators/orm/BeforeUpdate.mjs +18 -38
- package/src/decorators/orm/Check.cjs +17 -42
- package/src/decorators/orm/Check.mjs +18 -41
- package/src/decorators/orm/ChildEntity.cjs +17 -42
- package/src/decorators/orm/ChildEntity.mjs +18 -41
- package/src/decorators/orm/Column.cjs +17 -74
- package/src/decorators/orm/Column.mjs +19 -74
- package/src/decorators/orm/CreateDateColumn.cjs +17 -38
- package/src/decorators/orm/CreateDateColumn.mjs +18 -37
- package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
- package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
- package/src/decorators/orm/Entity.cjs +17 -48
- package/src/decorators/orm/Entity.mjs +17 -46
- package/src/decorators/orm/EventSubscriber.cjs +17 -35
- package/src/decorators/orm/EventSubscriber.mjs +18 -34
- package/src/decorators/orm/Exclusion.cjs +17 -42
- package/src/decorators/orm/Exclusion.mjs +18 -41
- package/src/decorators/orm/Generated.cjs +17 -37
- package/src/decorators/orm/Generated.mjs +18 -36
- package/src/decorators/orm/Index.cjs +17 -54
- package/src/decorators/orm/Index.mjs +19 -54
- package/src/decorators/orm/JoinColumn.cjs +17 -42
- package/src/decorators/orm/JoinColumn.mjs +18 -41
- package/src/decorators/orm/JoinTable.cjs +17 -43
- package/src/decorators/orm/JoinTable.mjs +17 -41
- package/src/decorators/orm/ManyToMany.cjs +17 -55
- package/src/decorators/orm/ManyToMany.mjs +17 -53
- package/src/decorators/orm/ManyToOne.cjs +17 -55
- package/src/decorators/orm/ManyToOne.mjs +17 -53
- package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
- package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
- package/src/decorators/orm/OneToMany.cjs +17 -47
- package/src/decorators/orm/OneToMany.mjs +19 -47
- package/src/decorators/orm/OneToOne.cjs +17 -55
- package/src/decorators/orm/OneToOne.mjs +17 -53
- package/src/decorators/orm/PrimaryColumn.cjs +17 -62
- package/src/decorators/orm/PrimaryColumn.mjs +19 -62
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
- package/src/decorators/orm/RelationId.cjs +17 -39
- package/src/decorators/orm/RelationId.mjs +18 -38
- package/src/decorators/orm/TableInheritance.cjs +17 -39
- package/src/decorators/orm/TableInheritance.mjs +18 -38
- package/src/decorators/orm/Tree.cjs +17 -37
- package/src/decorators/orm/Tree.mjs +18 -36
- package/src/decorators/orm/TreeChildren.cjs +17 -44
- package/src/decorators/orm/TreeChildren.mjs +17 -42
- package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
- package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
- package/src/decorators/orm/TreeParent.cjs +17 -44
- package/src/decorators/orm/TreeParent.mjs +17 -42
- package/src/decorators/orm/Unique.cjs +17 -57
- package/src/decorators/orm/Unique.mjs +19 -57
- package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
- package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
- package/src/decorators/orm/VersionColumn.cjs +17 -38
- package/src/decorators/orm/VersionColumn.mjs +18 -37
- package/src/decorators/orm/ViewColumn.cjs +17 -38
- package/src/decorators/orm/ViewColumn.mjs +18 -37
- package/src/decorators/orm/ViewEntity.cjs +17 -47
- package/src/decorators/orm/ViewEntity.mjs +18 -46
- package/src/decorators/orm/VirtualColumn.cjs +17 -55
- package/src/decorators/orm/VirtualColumn.mjs +17 -53
- package/src/lib/base/BaseObject.cjs +4 -2
- package/src/lib/base/BaseObject.mjs +4 -2
- package/src/lib/base/EventEmitter.cjs +1202 -1195
- package/src/lib/base/EventEmitter.mjs +1202 -1195
- package/src/lib/base/async-constructor/Append.cjs +11 -11
- package/src/lib/base/async-constructor/Append.mjs +7 -7
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
- package/src/lib/base/internal/BasicInfo.cjs +10 -10
- package/src/lib/base/internal/BasicInfo.mjs +9 -9
- package/src/lib/base/internal/CamelCase.cjs +4 -4
- package/src/lib/base/internal/CamelCase.mjs +11 -11
- package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +19 -19
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +18 -18
- package/src/lib/base/internal/ConstructorSymbol.cjs +10 -10
- package/src/lib/base/internal/ConstructorSymbol.mjs +8 -8
- package/src/lib/base/internal/ControllerEntrypoint.cjs +67 -67
- package/src/lib/base/internal/ControllerEntrypoint.mjs +38 -38
- package/src/lib/base/internal/DataValidator.cjs +176 -179
- package/src/lib/base/internal/DataValidator.mjs +221 -224
- package/src/lib/base/internal/GetActionDTOAndOptions.cjs +9 -9
- package/src/lib/base/internal/GetActionDTOAndOptions.mjs +10 -10
- package/src/lib/base/internal/IEEE754.cjs +74 -74
- package/src/lib/base/internal/IEEE754.mjs +70 -70
- package/src/lib/base/internal/MethodAssistantFunction.cjs +28 -28
- package/src/lib/base/internal/MethodAssistantFunction.mjs +38 -38
- package/src/lib/base/internal/MethodValidation.cjs +25 -25
- package/src/lib/base/internal/MethodValidation.mjs +20 -20
- package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
- package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
- package/src/lib/base/internal/ObjectConfiguration.cjs +10 -10
- package/src/lib/base/internal/ObjectConfiguration.mjs +15 -15
- package/src/lib/base/internal/ObjectContainer.cjs +7 -7
- package/src/lib/base/internal/ObjectContainer.mjs +6 -6
- package/src/lib/base/internal/ObjectInjection.cjs +16 -16
- package/src/lib/base/internal/ObjectInjection.mjs +13 -13
- package/src/lib/base/internal/ObjectLifetime.cjs +10 -10
- package/src/lib/base/internal/ObjectLifetime.mjs +9 -9
- package/src/lib/base/internal/ObjectType.cjs +4 -2
- package/src/lib/base/internal/ObjectType.mjs +4 -2
- package/src/lib/base/internal/ObjectWeakRefs.cjs +11 -11
- package/src/lib/base/internal/ObjectWeakRefs.mjs +9 -9
- package/src/lib/base/internal/PatternManager.cjs +744 -739
- package/src/lib/base/internal/PatternManager.mjs +748 -743
- package/src/lib/base/internal/StringifyPattern.cjs +26 -26
- package/src/lib/base/internal/StringifyPattern.mjs +26 -26
- package/src/lib/base/internal/ThrowWarning.cjs +2 -2
- package/src/lib/base/internal/ThrowWarning.mjs +2 -2
- package/src/lib/core/Alias.cjs +5 -5
- package/src/lib/core/Application.cjs +146 -142
- package/src/lib/core/Application.mjs +204 -202
- package/src/lib/core/Component.cjs +4 -2
- package/src/lib/core/Component.mjs +4 -2
- package/src/lib/core/Container.cjs +4 -2
- package/src/lib/core/Container.mjs +4 -2
- package/src/lib/core/Module.cjs +5 -3
- package/src/lib/core/Module.mjs +5 -3
- package/src/lib/core/Provider.cjs +4 -2
- package/src/lib/core/Provider.mjs +4 -2
- package/src/lib/helpers/ArrayToSet.cjs +2 -2
- package/src/lib/helpers/ArrayToSet.mjs +3 -3
- package/src/lib/helpers/As.cjs +2 -2
- package/src/lib/helpers/As.mjs +2 -2
- package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +3 -3
- package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +3 -3
- package/src/lib/helpers/ConvertArrayLikeToStream.cjs +2 -2
- package/src/lib/helpers/ConvertArrayLikeToStream.mjs +2 -2
- package/src/lib/helpers/Delay.cjs +2 -2
- package/src/lib/helpers/Delay.mjs +2 -2
- package/src/lib/helpers/DevNull.cjs +2 -2
- package/src/lib/helpers/DevNull.mjs +2 -2
- package/src/lib/helpers/GetObjectNestingDepth.cjs +12 -12
- package/src/lib/helpers/GetObjectNestingDepth.mjs +11 -11
- package/src/lib/helpers/GetObjectPropertyPaths.cjs +7 -7
- package/src/lib/helpers/GetObjectPropertyPaths.mjs +9 -9
- package/src/lib/helpers/Glob.cjs +1192 -943
- package/src/lib/helpers/Glob.mjs +1256 -1007
- package/src/lib/helpers/GraceExit.cjs +3 -3
- package/src/lib/helpers/GraceExit.mjs +7 -7
- package/src/lib/helpers/HexToIEEE754.cjs +4 -4
- package/src/lib/helpers/HexToIEEE754.mjs +2 -2
- package/src/lib/helpers/HexToSigned.cjs +5 -5
- package/src/lib/helpers/HexToSigned.mjs +4 -4
- package/src/lib/helpers/HexToUnsigned.cjs +2 -2
- package/src/lib/helpers/HexToUnsigned.mjs +2 -2
- package/src/lib/helpers/IEEE754ToHex.cjs +5 -5
- package/src/lib/helpers/IEEE754ToHex.mjs +5 -5
- package/src/lib/helpers/IsAbortError.cjs +2 -2
- package/src/lib/helpers/IsAbortError.mjs +3 -3
- package/src/lib/helpers/IsEmptyObject.cjs +3 -3
- package/src/lib/helpers/IsEmptyObject.mjs +3 -3
- package/src/lib/helpers/IsExists.cjs +5 -5
- package/src/lib/helpers/IsExists.mjs +4 -4
- package/src/lib/helpers/IsHtml.cjs +18 -8
- package/src/lib/helpers/IsHtml.mjs +18 -8
- package/src/lib/helpers/IsNativeFunction.cjs +2 -2
- package/src/lib/helpers/IsNativeFunction.mjs +2 -2
- package/src/lib/helpers/IsPath.cjs +2 -2
- package/src/lib/helpers/IsPath.mjs +5 -5
- package/src/lib/helpers/IsPromise.cjs +2 -2
- package/src/lib/helpers/IsPromise.mjs +2 -2
- package/src/lib/helpers/IsPromiseLike.cjs +5 -5
- package/src/lib/helpers/IsPromiseLike.mjs +6 -6
- package/src/lib/helpers/IsXML.cjs +1525 -1531
- package/src/lib/helpers/IsXML.mjs +1521 -1527
- package/src/lib/helpers/MD5.cjs +3 -3
- package/src/lib/helpers/MD5.mjs +3 -3
- package/src/lib/helpers/MergeArray.cjs +3 -3
- package/src/lib/helpers/MergeArray.mjs +3 -3
- package/src/lib/helpers/MergeMap.cjs +3 -3
- package/src/lib/helpers/MergeMap.mjs +3 -3
- package/src/lib/helpers/MergeSet.cjs +2 -2
- package/src/lib/helpers/MergeSet.mjs +3 -3
- package/src/lib/helpers/NoCase.cjs +27 -27
- package/src/lib/helpers/NoCase.mjs +24 -24
- package/src/lib/helpers/NonceStr.cjs +3 -3
- package/src/lib/helpers/NonceStr.mjs +3 -3
- package/src/lib/helpers/ObjectConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectConstructor.mjs +4 -4
- package/src/lib/helpers/ObjectHash.cjs +385 -378
- package/src/lib/helpers/ObjectHash.mjs +381 -374
- package/src/lib/helpers/ObjectParentConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectParentConstructor.mjs +5 -5
- package/src/lib/helpers/ObjectParentConstructors.cjs +6 -6
- package/src/lib/helpers/ObjectParentConstructors.mjs +2 -2
- package/src/lib/helpers/ObjectPrototype.cjs +2 -2
- package/src/lib/helpers/ObjectPrototype.mjs +2 -2
- package/src/lib/helpers/ObjectToMap.cjs +2 -2
- package/src/lib/helpers/ObjectToMap.mjs +3 -3
- package/src/lib/helpers/Paginator.cjs +2 -2
- package/src/lib/helpers/Paginator.mjs +6 -6
- package/src/lib/helpers/RandomString.cjs +170 -149
- package/src/lib/helpers/RandomString.mjs +167 -146
- package/src/lib/helpers/SHA1.cjs +3 -3
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.cjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SetToArray.cjs +2 -2
- package/src/lib/helpers/SetToArray.mjs +2 -2
- package/src/lib/helpers/SignedToHex.cjs +4 -4
- package/src/lib/helpers/SignedToHex.mjs +4 -4
- package/src/lib/helpers/SortArray.cjs +17 -17
- package/src/lib/helpers/SortArray.mjs +16 -16
- package/src/lib/helpers/SortKeys.cjs +41 -41
- package/src/lib/helpers/SortKeys.mjs +41 -41
- package/src/lib/helpers/SortObject.cjs +2 -2
- package/src/lib/helpers/SortObject.mjs +2 -2
- package/src/lib/helpers/Statistics.cjs +1 -1
- package/src/lib/helpers/Statistics.mjs +1 -1
- package/src/lib/helpers/Templating.cjs +25 -25
- package/src/lib/helpers/Templating.mjs +25 -25
- package/src/lib/helpers/URLBuilder.cjs +355 -355
- package/src/lib/helpers/URLBuilder.mjs +349 -349
- package/src/lib/helpers/UUID.cjs +1 -1
- package/src/lib/helpers/UUID.mjs +1 -1
- package/src/lib/helpers/UniqueArray.cjs +3 -3
- package/src/lib/helpers/UniqueArray.mjs +2 -2
- package/src/lib/helpers/UnsignedToHex.cjs +3 -3
- package/src/lib/helpers/UnsignedToHex.mjs +3 -3
- package/src/lib/ioc/DependencyInjectionContainer.cjs +111 -109
- package/src/lib/ioc/DependencyInjectionContainer.mjs +123 -121
- package/src/lib/ioc/FunctionTokenizer.cjs +115 -115
- package/src/lib/ioc/FunctionTokenizer.mjs +102 -102
- package/src/lib/ioc/Lifetime.cjs +5 -5
- package/src/lib/ioc/Lifetime.mjs +5 -5
- package/src/lib/ioc/ListModules.cjs +5222 -5297
- package/src/lib/ioc/ListModules.mjs +5187 -5262
- package/src/lib/ioc/LoadModules.cjs +56 -56
- package/src/lib/ioc/LoadModules.mjs +69 -69
- package/src/lib/ioc/ParamParser.cjs +30 -30
- package/src/lib/ioc/ParamParser.mjs +41 -41
- package/src/lib/ioc/Resolvers.cjs +87 -87
- package/src/lib/ioc/Resolvers.mjs +109 -109
- package/src/lib/ioc/Utils.cjs +12 -12
- package/src/lib/ioc/Utils.mjs +18 -18
- package/src/lib/validation/VLD.cjs +4198 -4020
- package/src/lib/validation/VLD.mjs +3137 -2959
- package/src/options/ApplicationOptions.cjs +4 -2
- package/src/options/ApplicationOptions.mjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
- package/src/options/LoadNamedObjectOptions.cjs +4 -2
- package/src/options/LoadNamedObjectOptions.mjs +4 -2
- package/src/options/LoadObjectOptions.cjs +4 -2
- package/src/options/LoadObjectOptions.mjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
- package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
- package/src/options/ModuleOptions.cjs +4 -4
- package/src/options/ModuleOptions.mjs +4 -4
- package/src/options/OverridableNamedObjectOptions.cjs +4 -2
- package/src/options/OverridableNamedObjectOptions.mjs +4 -2
- package/src/options/OverridableObjectOptions.cjs +4 -2
- package/src/options/OverridableObjectOptions.mjs +4 -2
- package/src/providers/Database.cjs +13 -13
- package/src/providers/Database.mjs +18 -18
- package/src/providers/PasswordHash.cjs +334 -332
- package/src/providers/PasswordHash.mjs +389 -387
- package/src/providers/migration/GenerateMigration.cjs +15 -19
- package/src/providers/migration/GenerateMigration.mjs +15 -19
- package/vendor/Package.1.cjs +256 -256
- package/vendor/Package.1.mjs +254 -254
- package/vendor/Package.10.cjs +2 -8
- package/vendor/Package.10.mjs +2 -8
- package/vendor/Package.11.cjs +5 -83
- package/vendor/Package.11.mjs +5 -77
- package/vendor/Package.112.cjs +48900 -0
- package/vendor/Package.112.mjs +48764 -0
- package/vendor/Package.12.cjs +4 -2
- package/vendor/Package.12.mjs +6 -4
- package/vendor/Package.13.cjs +87 -1
- package/vendor/Package.13.mjs +81 -1
- package/vendor/Package.14.cjs +1 -14057
- package/vendor/Package.14.mjs +1 -14031
- package/vendor/Package.15.cjs +1 -1
- package/vendor/Package.15.mjs +1 -1
- package/vendor/Package.16.cjs +18115 -1921
- package/vendor/Package.16.mjs +18115 -1839
- package/vendor/Package.17.cjs +1926 -47922
- package/vendor/Package.17.mjs +1852 -47915
- package/vendor/Package.18.cjs +35 -1
- package/vendor/Package.18.mjs +35 -1
- package/vendor/Package.19.cjs +37 -0
- package/vendor/Package.19.mjs +35 -0
- package/vendor/Package.2.cjs +5856 -5827
- package/vendor/Package.2.mjs +5854 -5825
- package/vendor/Package.20.cjs +37 -0
- package/vendor/Package.20.mjs +35 -0
- package/vendor/Package.21.cjs +37 -0
- package/vendor/Package.21.mjs +35 -0
- package/vendor/Package.22.cjs +37 -0
- package/vendor/Package.22.mjs +35 -0
- package/vendor/Package.23.cjs +37 -0
- package/vendor/Package.23.mjs +35 -0
- package/vendor/Package.24.cjs +37 -0
- package/vendor/Package.24.mjs +35 -0
- package/vendor/Package.25.cjs +37 -0
- package/vendor/Package.25.mjs +35 -0
- package/vendor/Package.26.cjs +37 -0
- package/vendor/Package.26.mjs +35 -0
- package/vendor/Package.27.cjs +37 -0
- package/vendor/Package.27.mjs +35 -0
- package/vendor/Package.28.cjs +37 -0
- package/vendor/Package.28.mjs +35 -0
- package/vendor/Package.29.cjs +40 -0
- package/vendor/Package.29.mjs +38 -0
- package/vendor/Package.3.cjs +60 -60
- package/vendor/Package.3.mjs +85 -85
- package/vendor/Package.30.cjs +41 -0
- package/vendor/Package.30.mjs +39 -0
- package/vendor/Package.31.cjs +72 -0
- package/vendor/Package.31.mjs +70 -0
- package/vendor/Package.32.cjs +37 -0
- package/vendor/Package.32.mjs +35 -0
- package/vendor/Package.33.cjs +37 -0
- package/vendor/Package.33.mjs +35 -0
- package/vendor/Package.34.cjs +46 -0
- package/vendor/Package.34.mjs +44 -0
- package/vendor/Package.35.cjs +34 -0
- package/vendor/Package.35.mjs +32 -0
- package/vendor/Package.36.cjs +40 -0
- package/vendor/Package.36.mjs +38 -0
- package/vendor/Package.37.cjs +36 -0
- package/vendor/Package.37.mjs +34 -0
- package/vendor/Package.38.cjs +52 -0
- package/vendor/Package.38.mjs +50 -0
- package/vendor/Package.39.cjs +41 -0
- package/vendor/Package.39.mjs +39 -0
- package/vendor/Package.4.cjs +884 -874
- package/vendor/Package.4.mjs +887 -877
- package/vendor/Package.40.cjs +42 -0
- package/vendor/Package.40.mjs +40 -0
- package/vendor/Package.41.cjs +53 -0
- package/vendor/Package.41.mjs +51 -0
- package/vendor/Package.42.cjs +53 -0
- package/vendor/Package.42.mjs +51 -0
- package/vendor/Package.43.cjs +40 -0
- package/vendor/Package.43.mjs +38 -0
- package/vendor/Package.44.cjs +46 -0
- package/vendor/Package.44.mjs +44 -0
- package/vendor/Package.45.cjs +53 -0
- package/vendor/Package.45.mjs +51 -0
- package/vendor/Package.46.cjs +59 -0
- package/vendor/Package.46.mjs +57 -0
- package/vendor/Package.47.cjs +65 -0
- package/vendor/Package.47.mjs +63 -0
- package/vendor/Package.48.cjs +38 -0
- package/vendor/Package.48.mjs +36 -0
- package/vendor/Package.49.cjs +38 -0
- package/vendor/Package.49.mjs +36 -0
- package/vendor/Package.5.cjs +19 -15
- package/vendor/Package.5.mjs +14 -10
- package/vendor/Package.50.cjs +36 -0
- package/vendor/Package.50.mjs +34 -0
- package/vendor/Package.51.cjs +43 -0
- package/vendor/Package.51.mjs +41 -0
- package/vendor/Package.52.cjs +37 -0
- package/vendor/Package.52.mjs +35 -0
- package/vendor/Package.53.cjs +43 -0
- package/vendor/Package.53.mjs +41 -0
- package/vendor/Package.54.cjs +55 -0
- package/vendor/Package.54.mjs +53 -0
- package/vendor/Package.55.cjs +37 -0
- package/vendor/Package.55.mjs +35 -0
- package/vendor/Package.56.cjs +37 -0
- package/vendor/Package.56.mjs +35 -0
- package/vendor/Package.57.cjs +37 -0
- package/vendor/Package.57.mjs +35 -0
- package/vendor/Package.58.cjs +45 -0
- package/vendor/Package.58.mjs +43 -0
- package/vendor/Package.59.cjs +53 -0
- package/vendor/Package.59.mjs +51 -0
- package/vendor/Package.6.cjs +2067 -2058
- package/vendor/Package.6.mjs +2073 -2064
- package/vendor/Package.60.cjs +47649 -0
- package/vendor/Package.60.mjs +47606 -0
- package/vendor/Package.610.cjs +19 -19
- package/vendor/Package.610.mjs +11 -11
- package/vendor/Package.611.cjs +40 -30
- package/vendor/Package.611.mjs +30 -20
- package/vendor/Package.612.cjs +48 -42
- package/vendor/Package.612.mjs +39 -33
- package/vendor/Package.613.cjs +64 -63
- package/vendor/Package.613.mjs +34 -33
- package/vendor/Package.62.cjs +300 -297
- package/vendor/Package.62.mjs +283 -280
- package/vendor/Package.63.cjs +511 -168
- package/vendor/Package.63.mjs +490 -165
- package/vendor/Package.64.cjs +139 -511
- package/vendor/Package.64.mjs +139 -491
- package/vendor/Package.65.cjs +4135 -150
- package/vendor/Package.65.mjs +4143 -150
- package/vendor/Package.66.cjs +346 -4150
- package/vendor/Package.66.mjs +346 -4158
- package/vendor/Package.67.cjs +433 -282
- package/vendor/Package.67.mjs +431 -280
- package/vendor/Package.68.cjs +248 -397
- package/vendor/Package.68.mjs +81 -230
- package/vendor/Package.69.cjs +8 -8
- package/vendor/Package.7.cjs +3 -3
- package/vendor/Package.7.mjs +3 -3
- package/vendor/Package.8.cjs +0 -4
- package/vendor/Package.8.mjs +0 -4
- package/vendor/Package.9.cjs +138 -124
- package/vendor/Package.9.mjs +135 -121
- package/vendor/TypeDef.internal.3.d.ts +0 -4
- package/vendor/Package.102.cjs +0 -48773
- package/vendor/Package.102.mjs +0 -48697
- package/vendor/Package.122.cjs +0 -3
- package/vendor/Package.122.mjs +0 -1
package/vendor/Package.3.mjs
CHANGED
|
@@ -14,25 +14,25 @@ import { GetConfigurableRecords as a, SetIdToInstance as c, SetConfigurableRecor
|
|
|
14
14
|
|
|
15
15
|
import { GetObjectConfigurableProperties as p } from "../src/lib/base/internal/ObjectConfiguration.mjs";
|
|
16
16
|
|
|
17
|
-
import { GetObjectIsAutoload as
|
|
17
|
+
import { GetObjectIsAutoload as f, GetObjectInjectItemsByPrototype as u } from "../src/lib/base/internal/ObjectInjection.mjs";
|
|
18
18
|
|
|
19
19
|
import { SetObjectContainerGetter as b } from "../src/lib/base/internal/ObjectContainer.mjs";
|
|
20
20
|
|
|
21
|
-
import { D as y, I as
|
|
21
|
+
import { D as y, I as j } from "./Package.2.mjs";
|
|
22
22
|
|
|
23
|
-
import { ObjectConstructor as
|
|
23
|
+
import { ObjectConstructor as O } from "../src/lib/helpers/ObjectConstructor.mjs";
|
|
24
24
|
|
|
25
|
-
import { As as
|
|
25
|
+
import { As as g } from "../src/lib/helpers/As.mjs";
|
|
26
26
|
|
|
27
|
-
import { DevNull as
|
|
27
|
+
import { DevNull as w } from "../src/lib/helpers/DevNull.mjs";
|
|
28
28
|
|
|
29
29
|
import { ObjectParentConstructors as P } from "../src/lib/helpers/ObjectParentConstructors.mjs";
|
|
30
30
|
|
|
31
|
-
import { DependencyInjectionException as
|
|
31
|
+
import { DependencyInjectionException as S } from "../src/exceptions/di/DependencyInjectionException.mjs";
|
|
32
32
|
|
|
33
|
-
import { ConstructorSymbol as
|
|
33
|
+
import { ConstructorSymbol as C } from "../src/lib/base/internal/ConstructorSymbol.mjs";
|
|
34
34
|
|
|
35
|
-
import { Expect as
|
|
35
|
+
import { Expect as R } from "../src/decorators/dto/Expect.mjs";
|
|
36
36
|
|
|
37
37
|
import { IndexSignature as N } from "../src/decorators/dto/IndexSignature.mjs";
|
|
38
38
|
|
|
@@ -40,35 +40,35 @@ import { asValue as v, asClass as I } from "../src/lib/ioc/Resolvers.mjs";
|
|
|
40
40
|
|
|
41
41
|
import { GetObjectLifetime as E } from "../src/lib/base/internal/ObjectLifetime.mjs";
|
|
42
42
|
|
|
43
|
-
import { Accept as
|
|
43
|
+
import { Accept as T } from "../src/decorators/dto/Accept.mjs";
|
|
44
44
|
|
|
45
|
-
import { listModules as
|
|
45
|
+
import { listModules as M } from "../src/lib/ioc/ListModules.mjs";
|
|
46
46
|
|
|
47
|
-
import { pathToFileURL as
|
|
47
|
+
import { pathToFileURL as A } from "url";
|
|
48
48
|
|
|
49
|
-
import { isClass as
|
|
49
|
+
import { isClass as D } from "../src/lib/ioc/Utils.mjs";
|
|
50
50
|
|
|
51
|
-
import { IsEmptyObject as
|
|
51
|
+
import { IsEmptyObject as L } from "../src/lib/helpers/IsEmptyObject.mjs";
|
|
52
52
|
|
|
53
|
-
import { AppendObjectWeakRefs as
|
|
53
|
+
import { AppendObjectWeakRefs as k, GetObjectWeakRefs as G, ClearObjectWeakRefs as U } from "../src/lib/base/internal/ObjectWeakRefs.mjs";
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var x;
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const B = Symbol("OBJECT_ID");
|
|
58
58
|
|
|
59
|
-
let
|
|
59
|
+
let _ = class LoadObjectOptions extends y {
|
|
60
60
|
static {
|
|
61
|
-
|
|
61
|
+
x = B;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
t([
|
|
65
|
+
t([ R(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ], _.prototype, x, void 0);
|
|
66
66
|
|
|
67
|
-
t([
|
|
67
|
+
t([ R(y.Class((() => H)).required()), e("design:type", Object) ], _.prototype, "class", void 0);
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
_ = t([ N(y.Any()) ], _);
|
|
70
70
|
|
|
71
|
-
const
|
|
71
|
+
const F = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
|
|
72
72
|
|
|
73
73
|
const Y = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
|
|
74
74
|
|
|
@@ -86,14 +86,14 @@ class Container {
|
|
|
86
86
|
strict: false
|
|
87
87
|
});
|
|
88
88
|
if (this.parent) this.parent.#e.add(this);
|
|
89
|
-
this.#t.register(
|
|
89
|
+
this.#t.register(F, v(this));
|
|
90
90
|
if (e) this.#t.register(Y, v(new WeakRef(e)));
|
|
91
91
|
}
|
|
92
92
|
async disposer(t) {
|
|
93
93
|
try {
|
|
94
|
-
await t.getMethod(
|
|
94
|
+
await t.getMethod(W, false)();
|
|
95
95
|
} catch (t) {
|
|
96
|
-
|
|
96
|
+
w(t);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
buildResolverOptions(t) {
|
|
@@ -104,11 +104,11 @@ class Container {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
async processResolved(t, e, s = {}) {
|
|
107
|
-
const i = a(
|
|
108
|
-
const r = y.isValid(t.constructor, y.Class(
|
|
107
|
+
const i = a(g(t.constructor), e);
|
|
108
|
+
const r = y.isValid(t.constructor, y.Class(H));
|
|
109
109
|
if (r) {
|
|
110
|
-
c(
|
|
111
|
-
l(
|
|
110
|
+
c(g(t), e);
|
|
111
|
+
l(g(t), {
|
|
112
112
|
...i,
|
|
113
113
|
...s
|
|
114
114
|
});
|
|
@@ -117,7 +117,7 @@ class Container {
|
|
|
117
117
|
}
|
|
118
118
|
buildNameAndRegistrationPairFromOptions(t) {
|
|
119
119
|
const e = {};
|
|
120
|
-
const s = t[
|
|
120
|
+
const s = t[B] ? t[B] : C(t.class);
|
|
121
121
|
const i = {
|
|
122
122
|
...t,
|
|
123
123
|
class: void 0
|
|
@@ -130,15 +130,15 @@ class Container {
|
|
|
130
130
|
}
|
|
131
131
|
async buildNameAndRegistrationPairFromGlob(t) {
|
|
132
132
|
const e = [];
|
|
133
|
-
|
|
133
|
+
M(t).forEach((t => {
|
|
134
134
|
e.push(new Promise((e => {
|
|
135
|
-
import(
|
|
135
|
+
import(A(t.path).toString()).then((t => {
|
|
136
136
|
Object.keys(t).forEach((s => {
|
|
137
137
|
const i = t[s];
|
|
138
|
-
if (
|
|
138
|
+
if (D(i) && y.isValid(i, y.Class(H))) {
|
|
139
139
|
const t = i;
|
|
140
140
|
const s = {};
|
|
141
|
-
s[
|
|
141
|
+
s[C(t)] = I(t, this.buildResolverOptions(t));
|
|
142
142
|
return e(s);
|
|
143
143
|
} else {
|
|
144
144
|
return e({});
|
|
@@ -169,16 +169,16 @@ class Container {
|
|
|
169
169
|
t.forEach((t => {
|
|
170
170
|
if (typeof t === "string") {
|
|
171
171
|
s.push(new Promise(((e, s) => this.buildNameAndRegistrationPairFromGlob(t).then(e).catch(s))));
|
|
172
|
-
} else if (
|
|
172
|
+
} else if (D(g(t))) {
|
|
173
173
|
const s = {
|
|
174
|
-
class:
|
|
174
|
+
class: g(t)
|
|
175
175
|
};
|
|
176
176
|
e = {
|
|
177
177
|
...e,
|
|
178
178
|
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
179
179
|
};
|
|
180
180
|
} else {
|
|
181
|
-
const s =
|
|
181
|
+
const s = g(t);
|
|
182
182
|
e = {
|
|
183
183
|
...e,
|
|
184
184
|
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
@@ -194,24 +194,24 @@ class Container {
|
|
|
194
194
|
};
|
|
195
195
|
}));
|
|
196
196
|
}
|
|
197
|
-
if (!
|
|
197
|
+
if (!L(e)) {
|
|
198
198
|
Object.getOwnPropertyNames(e).forEach((t => this.injectionNames.add(t)));
|
|
199
199
|
Object.getOwnPropertySymbols(e).forEach((t => this.injectionNames.add(t)));
|
|
200
200
|
this.#t.register(e);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
async get(t, e = {}) {
|
|
204
|
-
const s = typeof t === "function" ?
|
|
205
|
-
if (!this.#t.hasRegistration(s) && typeof t === "function" &&
|
|
204
|
+
const s = typeof t === "function" ? C(t) : t;
|
|
205
|
+
if (!this.#t.hasRegistration(s) && typeof t === "function" && f(g(t))) {
|
|
206
206
|
await this.load([ {
|
|
207
207
|
id: s,
|
|
208
|
-
class:
|
|
208
|
+
class: g(t)
|
|
209
209
|
} ]);
|
|
210
210
|
}
|
|
211
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
212
|
}
|
|
213
213
|
has(t) {
|
|
214
|
-
if (typeof t === "function") return this.#t.hasRegistration(
|
|
214
|
+
if (typeof t === "function") return this.#t.hasRegistration(C(t));
|
|
215
215
|
return this.#t.hasRegistration(t);
|
|
216
216
|
}
|
|
217
217
|
async set(t, e = {}) {
|
|
@@ -225,7 +225,7 @@ class Container {
|
|
|
225
225
|
await this.load([ {
|
|
226
226
|
...s,
|
|
227
227
|
class: e,
|
|
228
|
-
[
|
|
228
|
+
[B]: t
|
|
229
229
|
} ]);
|
|
230
230
|
return await this.get(t);
|
|
231
231
|
}
|
|
@@ -239,12 +239,12 @@ class Container {
|
|
|
239
239
|
await this.load([ {
|
|
240
240
|
...s,
|
|
241
241
|
class: e,
|
|
242
|
-
[
|
|
242
|
+
[B]: t
|
|
243
243
|
} ]);
|
|
244
244
|
}
|
|
245
245
|
async build(t, e = {}) {
|
|
246
|
-
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)),
|
|
247
|
-
|
|
246
|
+
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)), C(t), e);
|
|
247
|
+
k(this.#t, s);
|
|
248
248
|
return s;
|
|
249
249
|
}
|
|
250
250
|
createScope() {
|
|
@@ -259,18 +259,18 @@ class Container {
|
|
|
259
259
|
await Promise.all(t);
|
|
260
260
|
await this.#t.dispose();
|
|
261
261
|
const e = [];
|
|
262
|
-
|
|
262
|
+
G(this.#t).forEach((t => {
|
|
263
263
|
let s = t.deref();
|
|
264
264
|
if (!s) return;
|
|
265
|
-
if (s[
|
|
266
|
-
e.push(new Promise((t => s ? Promise.resolve(s[
|
|
265
|
+
if (s[W]) {
|
|
266
|
+
e.push(new Promise((t => s ? Promise.resolve(s[W]()).then((() => {
|
|
267
267
|
s = undefined;
|
|
268
268
|
return t();
|
|
269
|
-
})).catch(
|
|
269
|
+
})).catch(w) : t())));
|
|
270
270
|
}
|
|
271
271
|
}));
|
|
272
272
|
await Promise.all(e);
|
|
273
|
-
|
|
273
|
+
U(this.#t);
|
|
274
274
|
}
|
|
275
275
|
async destroy() {
|
|
276
276
|
if (this.#s) return;
|
|
@@ -280,7 +280,7 @@ class Container {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
t([
|
|
283
|
+
t([ T(y.Array(y.Alternatives(_.Schema(), y.Class((() => H)), y.Glob()))), e("design:type", Function), e("design:paramtypes", [ Array ]), e("design:returntype", Promise) ], Container.prototype, "load", null);
|
|
284
284
|
|
|
285
285
|
const $ = Symbol("OBJECT.TYPE");
|
|
286
286
|
|
|
@@ -295,16 +295,16 @@ var q;
|
|
|
295
295
|
t["Module"] = "Module";
|
|
296
296
|
})(q || (q = {}));
|
|
297
297
|
|
|
298
|
-
function
|
|
299
|
-
return e =>
|
|
298
|
+
function DefineObjectType(t) {
|
|
299
|
+
return e => SetObjectType(e, t);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
function
|
|
303
|
-
Reflect.defineMetadata($, y.isValid(t, y.Class(
|
|
302
|
+
function SetObjectType(t, e) {
|
|
303
|
+
Reflect.defineMetadata($, y.isValid(t, y.Class(H)) ? e : q.Unknown, t);
|
|
304
304
|
return t;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
function
|
|
307
|
+
function GetObjectType(t) {
|
|
308
308
|
if (Reflect.hasOwnMetadata($, t)) return Reflect.getOwnMetadata($, t);
|
|
309
309
|
let e = q.Unknown;
|
|
310
310
|
for (const s of P(t)) {
|
|
@@ -313,23 +313,23 @@ function V(t) {
|
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
|
|
317
|
-
return
|
|
316
|
+
SetObjectType(t, e);
|
|
317
|
+
return GetObjectType(t);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
var
|
|
320
|
+
var z;
|
|
321
321
|
|
|
322
|
-
var
|
|
322
|
+
var J;
|
|
323
323
|
|
|
324
|
-
const
|
|
324
|
+
const V = Symbol("__init");
|
|
325
325
|
|
|
326
|
-
const
|
|
326
|
+
const W = Symbol("__destroy");
|
|
327
327
|
|
|
328
|
-
const
|
|
328
|
+
const K = Symbol("anonymous");
|
|
329
329
|
|
|
330
|
-
const
|
|
330
|
+
const X = Symbol("OBJECT.SYMBOL.PROPERTY");
|
|
331
331
|
|
|
332
|
-
let
|
|
332
|
+
let H = J = class BaseObject extends s {
|
|
333
333
|
#i;
|
|
334
334
|
#r;
|
|
335
335
|
#o=n();
|
|
@@ -338,9 +338,9 @@ let tt = K = class BaseObject extends s {
|
|
|
338
338
|
const t = d(this);
|
|
339
339
|
const e = [];
|
|
340
340
|
p(this).forEach(((s, i) => {
|
|
341
|
-
if (
|
|
341
|
+
if (j(i)) return;
|
|
342
342
|
e.push(new Promise(((e, r) => {
|
|
343
|
-
y.validateAsync(t[
|
|
343
|
+
y.validateAsync(t[g(i)], s.schema, {
|
|
344
344
|
targetName: i
|
|
345
345
|
}).then((t => Promise.resolve(s.fn.bind(this)(t)).then((t => {
|
|
346
346
|
this[i] = t;
|
|
@@ -351,7 +351,7 @@ let tt = K = class BaseObject extends s {
|
|
|
351
351
|
await Promise.all(e);
|
|
352
352
|
}
|
|
353
353
|
async #c() {
|
|
354
|
-
const t =
|
|
354
|
+
const t = u(this);
|
|
355
355
|
const e = [];
|
|
356
356
|
t.forEach(((t, s) => {
|
|
357
357
|
const i = t.name;
|
|
@@ -361,14 +361,14 @@ let tt = K = class BaseObject extends s {
|
|
|
361
361
|
Reflect.set(this, s, t);
|
|
362
362
|
return e();
|
|
363
363
|
})).catch(r);
|
|
364
|
-
})).catch((t => r(new
|
|
364
|
+
})).catch((t => r(new S("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, t.message ]))));
|
|
365
365
|
})));
|
|
366
366
|
}));
|
|
367
367
|
await Promise.all(e);
|
|
368
368
|
}
|
|
369
369
|
#l() {
|
|
370
370
|
const t = m(this);
|
|
371
|
-
this.#r = t ? t :
|
|
371
|
+
this.#r = t ? t : K;
|
|
372
372
|
}
|
|
373
373
|
constructor(t) {
|
|
374
374
|
super((async () => {
|
|
@@ -377,18 +377,18 @@ let tt = K = class BaseObject extends s {
|
|
|
377
377
|
if (t) Object.defineProperty(this, "then", {
|
|
378
378
|
enumerable: false
|
|
379
379
|
});
|
|
380
|
-
await this[
|
|
380
|
+
await this[V]();
|
|
381
381
|
}));
|
|
382
|
-
this.#i = new Container(t[
|
|
382
|
+
this.#i = new Container(t[F], this);
|
|
383
383
|
b(this, this.#i);
|
|
384
384
|
}
|
|
385
385
|
static get className() {
|
|
386
386
|
return this.name;
|
|
387
387
|
}
|
|
388
388
|
get className() {
|
|
389
|
-
return
|
|
389
|
+
return O(this).name;
|
|
390
390
|
}
|
|
391
|
-
async [
|
|
391
|
+
async [V](...t) {
|
|
392
392
|
this.#i.registerContainerToItsParent();
|
|
393
393
|
if (!this.#n) {
|
|
394
394
|
await this.#c();
|
|
@@ -398,7 +398,7 @@ let tt = K = class BaseObject extends s {
|
|
|
398
398
|
for (const e of t) await e();
|
|
399
399
|
await this.init();
|
|
400
400
|
}
|
|
401
|
-
async [
|
|
401
|
+
async [W](...t) {
|
|
402
402
|
await this.#i.destroy();
|
|
403
403
|
for (const e of t) await e();
|
|
404
404
|
await this.destroy();
|
|
@@ -416,10 +416,10 @@ let tt = K = class BaseObject extends s {
|
|
|
416
416
|
}
|
|
417
417
|
getModule() {
|
|
418
418
|
let t = this.getParent();
|
|
419
|
-
while (t &&
|
|
419
|
+
while (t && GetObjectType(g(O(t))) !== q.Module) {
|
|
420
420
|
t = this.getParent();
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return g(t);
|
|
423
423
|
}
|
|
424
424
|
get $uuid() {
|
|
425
425
|
return this.#o;
|
|
@@ -428,16 +428,16 @@ let tt = K = class BaseObject extends s {
|
|
|
428
428
|
return this.#r;
|
|
429
429
|
}
|
|
430
430
|
get $symbol() {
|
|
431
|
-
if (Reflect.hasOwnMetadata(
|
|
432
|
-
Reflect.defineMetadata(
|
|
431
|
+
if (Reflect.hasOwnMetadata(X, this)) return Reflect.getOwnMetadata(X, this);
|
|
432
|
+
Reflect.defineMetadata(X, Symbol(this.$uuid), this);
|
|
433
433
|
return this.$symbol;
|
|
434
434
|
}
|
|
435
435
|
setProperty(t, e) {
|
|
436
436
|
this[t] = e;
|
|
437
437
|
}
|
|
438
438
|
getProperty(t, e) {
|
|
439
|
-
if (this.hasProperty(t)) return
|
|
440
|
-
return
|
|
439
|
+
if (this.hasProperty(t)) return g(this[t]);
|
|
440
|
+
return g(e);
|
|
441
441
|
}
|
|
442
442
|
hasProperty(t) {
|
|
443
443
|
return typeof t === "string" ? this.propertyNames().includes(t) : this.propertySymbols().includes(t);
|
|
@@ -462,7 +462,7 @@ let tt = K = class BaseObject extends s {
|
|
|
462
462
|
className: this.constructor.name
|
|
463
463
|
});
|
|
464
464
|
} else {
|
|
465
|
-
return (...t) =>
|
|
465
|
+
return (...t) => w(...t);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
async dispose() {
|
|
@@ -470,6 +470,6 @@ let tt = K = class BaseObject extends s {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
H = J = t([ i(), DefineObjectType(q.Object), e("design:paramtypes", [ Object ]) ], H);
|
|
474
474
|
|
|
475
|
-
export {
|
|
475
|
+
export { H as B, Container as C, DefineObjectType as D, GetObjectType as G, _ as L, q as O, SetObjectType as S, V as _, W as a, B as b, F as c, K as d, Y as o };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const t = require("./Package.5.cjs");
|
|
4
|
+
|
|
5
|
+
const e = require("./Package.112.cjs");
|
|
6
|
+
|
|
7
|
+
var r = {};
|
|
8
|
+
|
|
9
|
+
var i;
|
|
10
|
+
|
|
11
|
+
function requireChildEntity() {
|
|
12
|
+
if (i) return r;
|
|
13
|
+
i = 1;
|
|
14
|
+
"use strict";
|
|
15
|
+
Object.defineProperty(r, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
r.ChildEntity = ChildEntity;
|
|
19
|
+
const t = e.requireGlobals();
|
|
20
|
+
function ChildEntity(e) {
|
|
21
|
+
return function(r) {
|
|
22
|
+
(0, t.getMetadataArgsStorage)().tables.push({
|
|
23
|
+
target: r,
|
|
24
|
+
type: "entity-child"
|
|
25
|
+
});
|
|
26
|
+
if (typeof e !== "undefined") {
|
|
27
|
+
(0, t.getMetadataArgsStorage)().discriminatorValues.push({
|
|
28
|
+
target: r,
|
|
29
|
+
value: e
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var a = requireChildEntity();
|
|
38
|
+
|
|
39
|
+
const n = t.getDefaultExportFromCjs(a);
|
|
40
|
+
|
|
41
|
+
exports.ChildEntityExports = a;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { g as t } from "./Package.5.mjs";
|
|
2
|
+
|
|
3
|
+
import { h as e } from "./Package.112.mjs";
|
|
4
|
+
|
|
5
|
+
var r = {};
|
|
6
|
+
|
|
7
|
+
var i;
|
|
8
|
+
|
|
9
|
+
function requireChildEntity() {
|
|
10
|
+
if (i) return r;
|
|
11
|
+
i = 1;
|
|
12
|
+
"use strict";
|
|
13
|
+
Object.defineProperty(r, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
r.ChildEntity = ChildEntity;
|
|
17
|
+
const t = e();
|
|
18
|
+
function ChildEntity(e) {
|
|
19
|
+
return function(r) {
|
|
20
|
+
(0, t.getMetadataArgsStorage)().tables.push({
|
|
21
|
+
target: r,
|
|
22
|
+
type: "entity-child"
|
|
23
|
+
});
|
|
24
|
+
if (typeof e !== "undefined") {
|
|
25
|
+
(0, t.getMetadataArgsStorage)().discriminatorValues.push({
|
|
26
|
+
target: r,
|
|
27
|
+
value: e
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var a = requireChildEntity();
|
|
36
|
+
|
|
37
|
+
const n = t(a);
|
|
38
|
+
|
|
39
|
+
export { a as C };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const e = require("./Package.5.cjs");
|
|
4
|
+
|
|
5
|
+
const t = require("./Package.112.cjs");
|
|
6
|
+
|
|
7
|
+
var r = {};
|
|
8
|
+
|
|
9
|
+
var n;
|
|
10
|
+
|
|
11
|
+
function requireColumn() {
|
|
12
|
+
if (n) return r;
|
|
13
|
+
n = 1;
|
|
14
|
+
"use strict";
|
|
15
|
+
Object.defineProperty(r, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
r.Column = Column;
|
|
19
|
+
const e = t.requireGlobals();
|
|
20
|
+
const o = t.requireColumnTypeUndefinedError();
|
|
21
|
+
function Column(t, r) {
|
|
22
|
+
return function(n, a) {
|
|
23
|
+
let u;
|
|
24
|
+
if (typeof t === "string" || typeof t === "function") {
|
|
25
|
+
u = t;
|
|
26
|
+
} else if (t) {
|
|
27
|
+
r = t;
|
|
28
|
+
u = t.type;
|
|
29
|
+
}
|
|
30
|
+
if (!r) r = {};
|
|
31
|
+
const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", n, a) : undefined;
|
|
32
|
+
if (!u && s) u = s;
|
|
33
|
+
if (!r.type && u) r.type = u;
|
|
34
|
+
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = s === Object ? "object" : "string";
|
|
35
|
+
if (typeof t === "function") {
|
|
36
|
+
(0, e.getMetadataArgsStorage)().embeddeds.push({
|
|
37
|
+
target: n.constructor,
|
|
38
|
+
propertyName: a,
|
|
39
|
+
isArray: s === Array || r.array === true,
|
|
40
|
+
prefix: r.prefix !== undefined ? r.prefix : undefined,
|
|
41
|
+
type: t
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
if (!r.type) throw new o.ColumnTypeUndefinedError(n, a);
|
|
45
|
+
if (r.unique === true) (0, e.getMetadataArgsStorage)().uniques.push({
|
|
46
|
+
target: n.constructor,
|
|
47
|
+
columns: [ a ]
|
|
48
|
+
});
|
|
49
|
+
(0, e.getMetadataArgsStorage)().columns.push({
|
|
50
|
+
target: n.constructor,
|
|
51
|
+
propertyName: a,
|
|
52
|
+
mode: "regular",
|
|
53
|
+
options: r
|
|
54
|
+
});
|
|
55
|
+
if (r.generated) {
|
|
56
|
+
(0, e.getMetadataArgsStorage)().generations.push({
|
|
57
|
+
target: n.constructor,
|
|
58
|
+
propertyName: a,
|
|
59
|
+
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var o = requireColumn();
|
|
69
|
+
|
|
70
|
+
const a = e.getDefaultExportFromCjs(o);
|
|
71
|
+
|
|
72
|
+
exports.ColumnExports = o;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { g as e } from "./Package.5.mjs";
|
|
2
|
+
|
|
3
|
+
import { h as t, j as r } from "./Package.112.mjs";
|
|
4
|
+
|
|
5
|
+
var n = {};
|
|
6
|
+
|
|
7
|
+
var o;
|
|
8
|
+
|
|
9
|
+
function requireColumn() {
|
|
10
|
+
if (o) return n;
|
|
11
|
+
o = 1;
|
|
12
|
+
"use strict";
|
|
13
|
+
Object.defineProperty(n, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
n.Column = Column;
|
|
17
|
+
const e = t();
|
|
18
|
+
const a = r();
|
|
19
|
+
function Column(t, r) {
|
|
20
|
+
return function(n, o) {
|
|
21
|
+
let s;
|
|
22
|
+
if (typeof t === "string" || typeof t === "function") {
|
|
23
|
+
s = t;
|
|
24
|
+
} else if (t) {
|
|
25
|
+
r = t;
|
|
26
|
+
s = t.type;
|
|
27
|
+
}
|
|
28
|
+
if (!r) r = {};
|
|
29
|
+
const u = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", n, o) : undefined;
|
|
30
|
+
if (!s && u) s = u;
|
|
31
|
+
if (!r.type && s) r.type = s;
|
|
32
|
+
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = u === Object ? "object" : "string";
|
|
33
|
+
if (typeof t === "function") {
|
|
34
|
+
(0, e.getMetadataArgsStorage)().embeddeds.push({
|
|
35
|
+
target: n.constructor,
|
|
36
|
+
propertyName: o,
|
|
37
|
+
isArray: u === Array || r.array === true,
|
|
38
|
+
prefix: r.prefix !== undefined ? r.prefix : undefined,
|
|
39
|
+
type: t
|
|
40
|
+
});
|
|
41
|
+
} else {
|
|
42
|
+
if (!r.type) throw new a.ColumnTypeUndefinedError(n, o);
|
|
43
|
+
if (r.unique === true) (0, e.getMetadataArgsStorage)().uniques.push({
|
|
44
|
+
target: n.constructor,
|
|
45
|
+
columns: [ o ]
|
|
46
|
+
});
|
|
47
|
+
(0, e.getMetadataArgsStorage)().columns.push({
|
|
48
|
+
target: n.constructor,
|
|
49
|
+
propertyName: o,
|
|
50
|
+
mode: "regular",
|
|
51
|
+
options: r
|
|
52
|
+
});
|
|
53
|
+
if (r.generated) {
|
|
54
|
+
(0, e.getMetadataArgsStorage)().generations.push({
|
|
55
|
+
target: n.constructor,
|
|
56
|
+
propertyName: o,
|
|
57
|
+
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var a = requireColumn();
|
|
67
|
+
|
|
68
|
+
const s = e(a);
|
|
69
|
+
|
|
70
|
+
export { a as C };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const e = require("./Package.5.cjs");
|
|
4
|
+
|
|
5
|
+
const t = require("./Package.112.cjs");
|
|
6
|
+
|
|
7
|
+
var r = {};
|
|
8
|
+
|
|
9
|
+
var a;
|
|
10
|
+
|
|
11
|
+
function requireCreateDateColumn() {
|
|
12
|
+
if (a) return r;
|
|
13
|
+
a = 1;
|
|
14
|
+
"use strict";
|
|
15
|
+
Object.defineProperty(r, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
r.CreateDateColumn = CreateDateColumn;
|
|
19
|
+
const e = t.requireGlobals();
|
|
20
|
+
function CreateDateColumn(t) {
|
|
21
|
+
return function(r, a) {
|
|
22
|
+
(0, e.getMetadataArgsStorage)().columns.push({
|
|
23
|
+
target: r.constructor,
|
|
24
|
+
propertyName: a,
|
|
25
|
+
mode: "createDate",
|
|
26
|
+
options: t || {}
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var o = requireCreateDateColumn();
|
|
34
|
+
|
|
35
|
+
const u = e.getDefaultExportFromCjs(o);
|
|
36
|
+
|
|
37
|
+
exports.CreateDateColumnExports = o;
|