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
|
@@ -62,81 +62,81 @@ require("../../helpers/ObjectParentConstructor.cjs");
|
|
|
62
62
|
|
|
63
63
|
require("../../helpers/ObjectPrototype.cjs");
|
|
64
64
|
|
|
65
|
-
function
|
|
65
|
+
function SetMethodAcceptArgumentsValidator(n, a, c, s) {
|
|
66
66
|
const i = [];
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const u =
|
|
67
|
+
s.forEach((r => i.push(e.IsDTO(o.As(r)) ? o.As(r).Schema() : o.As(r))));
|
|
68
|
+
c.writable = false;
|
|
69
|
+
const u = c.value;
|
|
70
70
|
const p = e.DTO.Array().ordered(...i);
|
|
71
|
-
const
|
|
71
|
+
const d = Array.isArray(i) ? i.length : 1;
|
|
72
72
|
if (r.isAsyncFunction(u)) {
|
|
73
|
-
|
|
74
|
-
const n = r.length -
|
|
73
|
+
c.value = async function(...r) {
|
|
74
|
+
const n = r.length - d;
|
|
75
75
|
try {
|
|
76
76
|
r = await e.DTO.validateAsync(r, p.concat(e.DTO.Array().ordered(...new Array(n >= 0 ? n : 0).fill(e.DTO.Any()))));
|
|
77
77
|
} catch (e) {
|
|
78
78
|
throw new t.InvalidMethodAcceptException("Method [{propertyKey}] accept argument {reason}", {
|
|
79
|
-
propertyKey:
|
|
79
|
+
propertyKey: a,
|
|
80
80
|
reason: e.message
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
return u.apply(this, r);
|
|
84
84
|
};
|
|
85
85
|
} else {
|
|
86
|
-
|
|
87
|
-
const n = r.length -
|
|
86
|
+
c.value = function(...r) {
|
|
87
|
+
const n = r.length - d;
|
|
88
88
|
try {
|
|
89
89
|
r = e.DTO.validate(r, p.concat(e.DTO.Array().ordered(...new Array(n >= 0 ? n : 0).fill(e.DTO.Any()))));
|
|
90
90
|
} catch (e) {
|
|
91
91
|
throw new t.InvalidMethodAcceptException("Method [{propertyKey}] accept argument {reason}", {
|
|
92
|
-
propertyKey:
|
|
92
|
+
propertyKey: a,
|
|
93
93
|
reason: e.message
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
return u.apply(this, r);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
return
|
|
99
|
+
return c;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
function
|
|
103
|
-
const i = e.IsDTO(o.As(
|
|
104
|
-
|
|
105
|
-
const u =
|
|
102
|
+
function SetMethodReturnValueValidator(t, a, c, s) {
|
|
103
|
+
const i = e.IsDTO(o.As(s)) ? o.As(s).Schema() : o.As(s);
|
|
104
|
+
c.writable = false;
|
|
105
|
+
const u = c.value;
|
|
106
106
|
if (r.isAsyncFunction(u)) {
|
|
107
|
-
|
|
107
|
+
c.value = async function(...r) {
|
|
108
108
|
const t = await u.apply(this, r);
|
|
109
109
|
if (t === undefined) throw new n.InvalidMethodReturnException("Method [{propertyKey}] return undefined", {
|
|
110
|
-
propertyKey:
|
|
110
|
+
propertyKey: a
|
|
111
111
|
});
|
|
112
112
|
try {
|
|
113
113
|
return await e.DTO.validateAsync(t, i);
|
|
114
114
|
} catch (e) {
|
|
115
115
|
throw new n.InvalidMethodReturnException("Method [{propertyKey}] return value {reason}", {
|
|
116
|
-
propertyKey:
|
|
116
|
+
propertyKey: a,
|
|
117
117
|
reason: e.message
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
} else {
|
|
122
|
-
|
|
122
|
+
c.value = function(...r) {
|
|
123
123
|
const t = u.apply(this, r);
|
|
124
124
|
if (t === undefined) throw new n.InvalidMethodReturnException("Method [{propertyKey}] return undefined", {
|
|
125
|
-
propertyKey:
|
|
125
|
+
propertyKey: a
|
|
126
126
|
});
|
|
127
127
|
try {
|
|
128
128
|
return e.DTO.validate(t, i);
|
|
129
129
|
} catch (e) {
|
|
130
130
|
throw new n.InvalidMethodReturnException("Method [{propertyKey}] return value {reason}", {
|
|
131
|
-
propertyKey:
|
|
131
|
+
propertyKey: a,
|
|
132
132
|
reason: e.message
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
return
|
|
137
|
+
return c;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
exports.SetMethodAcceptArgumentsValidator =
|
|
140
|
+
exports.SetMethodAcceptArgumentsValidator = SetMethodAcceptArgumentsValidator;
|
|
141
141
|
|
|
142
|
-
exports.SetMethodReturnValueValidator =
|
|
142
|
+
exports.SetMethodReturnValueValidator = SetMethodReturnValueValidator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as e, D as
|
|
1
|
+
import { b as e, D as t } from "../../../../vendor/Package.2.mjs";
|
|
2
2
|
|
|
3
|
-
import { isAsyncFunction as
|
|
3
|
+
import { isAsyncFunction as r } from "node:util/types";
|
|
4
4
|
|
|
5
5
|
import { InvalidMethodAcceptException as o } from "../../../exceptions/dto/InvalidMethodAcceptException.mjs";
|
|
6
6
|
|
|
@@ -56,18 +56,18 @@ import "../../helpers/ObjectParentConstructor.mjs";
|
|
|
56
56
|
|
|
57
57
|
import "../../helpers/ObjectPrototype.mjs";
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function SetMethodAcceptArgumentsValidator(a, s, p, i) {
|
|
60
60
|
const m = [];
|
|
61
|
-
i.forEach((
|
|
61
|
+
i.forEach((t => m.push(e(n(t)) ? n(t).Schema() : n(t))));
|
|
62
62
|
p.writable = false;
|
|
63
63
|
const c = p.value;
|
|
64
|
-
const l =
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
64
|
+
const l = t.Array().ordered(...m);
|
|
65
|
+
const d = Array.isArray(m) ? m.length : 1;
|
|
66
|
+
if (r(c)) {
|
|
67
67
|
p.value = async function(...e) {
|
|
68
|
-
const
|
|
68
|
+
const r = e.length - d;
|
|
69
69
|
try {
|
|
70
|
-
e = await
|
|
70
|
+
e = await t.validateAsync(e, l.concat(t.Array().ordered(...new Array(r >= 0 ? r : 0).fill(t.Any()))));
|
|
71
71
|
} catch (e) {
|
|
72
72
|
throw new o("Method [{propertyKey}] accept argument {reason}", {
|
|
73
73
|
propertyKey: s,
|
|
@@ -78,9 +78,9 @@ function s(a, s, p, i) {
|
|
|
78
78
|
};
|
|
79
79
|
} else {
|
|
80
80
|
p.value = function(...e) {
|
|
81
|
-
const
|
|
81
|
+
const r = e.length - d;
|
|
82
82
|
try {
|
|
83
|
-
e =
|
|
83
|
+
e = t.validate(e, l.concat(t.Array().ordered(...new Array(r >= 0 ? r : 0).fill(t.Any()))));
|
|
84
84
|
} catch (e) {
|
|
85
85
|
throw new o("Method [{propertyKey}] accept argument {reason}", {
|
|
86
86
|
propertyKey: s,
|
|
@@ -93,18 +93,18 @@ function s(a, s, p, i) {
|
|
|
93
93
|
return p;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function
|
|
96
|
+
function SetMethodReturnValueValidator(o, s, p, i) {
|
|
97
97
|
const m = e(n(i)) ? n(i).Schema() : n(i);
|
|
98
98
|
p.writable = false;
|
|
99
99
|
const c = p.value;
|
|
100
|
-
if (
|
|
100
|
+
if (r(c)) {
|
|
101
101
|
p.value = async function(...e) {
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
102
|
+
const r = await c.apply(this, e);
|
|
103
|
+
if (r === undefined) throw new a("Method [{propertyKey}] return undefined", {
|
|
104
104
|
propertyKey: s
|
|
105
105
|
});
|
|
106
106
|
try {
|
|
107
|
-
return await
|
|
107
|
+
return await t.validateAsync(r, m);
|
|
108
108
|
} catch (e) {
|
|
109
109
|
throw new a("Method [{propertyKey}] return value {reason}", {
|
|
110
110
|
propertyKey: s,
|
|
@@ -114,12 +114,12 @@ function p(o, s, p, i) {
|
|
|
114
114
|
};
|
|
115
115
|
} else {
|
|
116
116
|
p.value = function(...e) {
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
117
|
+
const r = c.apply(this, e);
|
|
118
|
+
if (r === undefined) throw new a("Method [{propertyKey}] return undefined", {
|
|
119
119
|
propertyKey: s
|
|
120
120
|
});
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return t.validate(r, m);
|
|
123
123
|
} catch (e) {
|
|
124
124
|
throw new a("Method [{propertyKey}] return value {reason}", {
|
|
125
125
|
propertyKey: s,
|
|
@@ -131,4 +131,4 @@ function p(o, s, p, i) {
|
|
|
131
131
|
return p;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export {
|
|
134
|
+
export { SetMethodAcceptArgumentsValidator, SetMethodReturnValueValidator };
|
|
@@ -110,12 +110,14 @@ require("os");
|
|
|
110
110
|
|
|
111
111
|
require("path");
|
|
112
112
|
|
|
113
|
-
require("stream");
|
|
114
|
-
|
|
115
113
|
require("events");
|
|
116
114
|
|
|
117
115
|
require("fs");
|
|
118
116
|
|
|
117
|
+
require("../../../../vendor/Package.10.cjs");
|
|
118
|
+
|
|
119
|
+
require("stream");
|
|
120
|
+
|
|
119
121
|
require("../../ioc/Utils.cjs");
|
|
120
122
|
|
|
121
123
|
require("../../ioc/FunctionTokenizer.cjs");
|
|
@@ -170,7 +172,6 @@ class ModuleConfigLoader {
|
|
|
170
172
|
}
|
|
171
173
|
this.processOverridableNamedObjectOptions(e.ObjectType.Component, t.components);
|
|
172
174
|
this.processOverridableNamedObjectOptions(e.ObjectType.Provider, t.providers);
|
|
173
|
-
this.processOverridableNamedObjectOptions(e.ObjectType.Module, t.modules);
|
|
174
175
|
}
|
|
175
176
|
validateObjectType(r, t) {
|
|
176
177
|
if (e.GetObjectType(t) !== r) throw new s.InvalidObjectTypeException("{0} configuration only accepts object declarations of {1} types", [ r, r.toLowerCase() ]);
|
|
@@ -104,12 +104,14 @@ import "os";
|
|
|
104
104
|
|
|
105
105
|
import "path";
|
|
106
106
|
|
|
107
|
-
import "stream";
|
|
108
|
-
|
|
109
107
|
import "events";
|
|
110
108
|
|
|
111
109
|
import "fs";
|
|
112
110
|
|
|
111
|
+
import "../../../../vendor/Package.10.mjs";
|
|
112
|
+
|
|
113
|
+
import "stream";
|
|
114
|
+
|
|
113
115
|
import "../../ioc/Utils.mjs";
|
|
114
116
|
|
|
115
117
|
import "../../ioc/FunctionTokenizer.mjs";
|
|
@@ -164,7 +166,6 @@ class ModuleConfigLoader {
|
|
|
164
166
|
}
|
|
165
167
|
this.processOverridableNamedObjectOptions(o.Component, s.components);
|
|
166
168
|
this.processOverridableNamedObjectOptions(o.Provider, s.providers);
|
|
167
|
-
this.processOverridableNamedObjectOptions(o.Module, s.modules);
|
|
168
169
|
}
|
|
169
170
|
validateObjectType(t, o) {
|
|
170
171
|
if (e(o) !== t) throw new m("{0} configuration only accepts object declarations of {1} types", [ t, t.toLowerCase() ]);
|
|
@@ -60,24 +60,24 @@ require("../../helpers/ObjectPrototype.cjs");
|
|
|
60
60
|
|
|
61
61
|
require("../../helpers/ObjectParentConstructor.cjs");
|
|
62
62
|
|
|
63
|
-
function
|
|
64
|
-
let
|
|
63
|
+
function SetObjectConfigurableProperty(a, o, n = r.DTO.Any(), O) {
|
|
64
|
+
let R;
|
|
65
65
|
if (Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, t.ObjectConstructor(a))) {
|
|
66
|
-
|
|
66
|
+
R = Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, t.ObjectConstructor(a));
|
|
67
67
|
} else {
|
|
68
|
-
|
|
68
|
+
R = new Map;
|
|
69
69
|
c.ObjectParentConstructors(t.ObjectConstructor(a)).forEach((r => {
|
|
70
|
-
if (Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)) s.As(Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)).forEach(((e, r) =>
|
|
70
|
+
if (Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)) s.As(Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)).forEach(((e, r) => R.set(r, e)));
|
|
71
71
|
}));
|
|
72
72
|
}
|
|
73
|
-
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES,
|
|
73
|
+
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, R, t.ObjectConstructor(a));
|
|
74
74
|
Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, t.ObjectConstructor(a)).set(o, {
|
|
75
75
|
schema: n,
|
|
76
|
-
fn:
|
|
76
|
+
fn: O ? O : e => e
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
function
|
|
80
|
+
function GetObjectConfigurableProperties(r) {
|
|
81
81
|
const a = new Map;
|
|
82
82
|
c.ObjectParentConstructors(t.ObjectConstructor(r)).forEach((r => {
|
|
83
83
|
if (Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)) s.As(Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, r)).forEach(((e, r) => a.set(r, e)));
|
|
@@ -86,6 +86,6 @@ function o(r) {
|
|
|
86
86
|
return a;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
exports.GetObjectConfigurableProperties =
|
|
89
|
+
exports.GetObjectConfigurableProperties = GetObjectConfigurableProperties;
|
|
90
90
|
|
|
91
|
-
exports.SetObjectConfigurableProperty =
|
|
91
|
+
exports.SetObjectConfigurableProperty = SetObjectConfigurableProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES as
|
|
1
|
+
import { DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES as e } from "../../../constants/DIMetadataKey.mjs";
|
|
2
2
|
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as t } from "../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { ObjectConstructor as a } from "../../helpers/ObjectConstructor.mjs";
|
|
6
6
|
|
|
@@ -54,30 +54,30 @@ import "../../helpers/ObjectPrototype.mjs";
|
|
|
54
54
|
|
|
55
55
|
import "../../helpers/ObjectParentConstructor.mjs";
|
|
56
56
|
|
|
57
|
-
function
|
|
57
|
+
function SetObjectConfigurableProperty(s, m, i = t.Any(), p) {
|
|
58
58
|
let n;
|
|
59
|
-
if (Reflect.hasOwnMetadata(
|
|
60
|
-
n = Reflect.getOwnMetadata(
|
|
59
|
+
if (Reflect.hasOwnMetadata(e, a(s))) {
|
|
60
|
+
n = Reflect.getOwnMetadata(e, a(s));
|
|
61
61
|
} else {
|
|
62
62
|
n = new Map;
|
|
63
|
-
r(a(s)).forEach((
|
|
64
|
-
if (Reflect.hasOwnMetadata(
|
|
63
|
+
r(a(s)).forEach((t => {
|
|
64
|
+
if (Reflect.hasOwnMetadata(e, t)) o(Reflect.getOwnMetadata(e, t)).forEach(((e, t) => n.set(t, e)));
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
-
Reflect.defineMetadata(
|
|
68
|
-
Reflect.getOwnMetadata(
|
|
67
|
+
Reflect.defineMetadata(e, n, a(s));
|
|
68
|
+
Reflect.getOwnMetadata(e, a(s)).set(m, {
|
|
69
69
|
schema: i,
|
|
70
|
-
fn: p ? p :
|
|
70
|
+
fn: p ? p : e => e
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
function
|
|
74
|
+
function GetObjectConfigurableProperties(t) {
|
|
75
75
|
const s = new Map;
|
|
76
|
-
r(a(
|
|
77
|
-
if (Reflect.hasOwnMetadata(
|
|
76
|
+
r(a(t)).forEach((t => {
|
|
77
|
+
if (Reflect.hasOwnMetadata(e, t)) o(Reflect.getOwnMetadata(e, t)).forEach(((e, t) => s.set(t, e)));
|
|
78
78
|
}));
|
|
79
|
-
o(Reflect.getOwnMetadata(
|
|
79
|
+
o(Reflect.getOwnMetadata(e, a(t)))?.forEach(((e, t) => s.set(t, e)));
|
|
80
80
|
return s;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { GetObjectConfigurableProperties, SetObjectConfigurableProperty };
|
|
@@ -10,15 +10,15 @@ require("../../../../vendor/Package.4.cjs");
|
|
|
10
10
|
|
|
11
11
|
require("../../../../vendor/Package.5.cjs");
|
|
12
12
|
|
|
13
|
-
function
|
|
14
|
-
Reflect.defineMetadata(e.DI_TARGET_CONTAINER, (() =>
|
|
13
|
+
function SetObjectContainerGetter(t, n) {
|
|
14
|
+
Reflect.defineMetadata(e.DI_TARGET_CONTAINER, (() => n), t);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
function GetObjectContainer(t) {
|
|
18
|
+
const n = Reflect.getOwnMetadata(e.DI_TARGET_CONTAINER, t);
|
|
19
|
+
return n();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
exports.GetObjectContainer =
|
|
22
|
+
exports.GetObjectContainer = GetObjectContainer;
|
|
23
23
|
|
|
24
|
-
exports.SetObjectContainerGetter =
|
|
24
|
+
exports.SetObjectContainerGetter = SetObjectContainerGetter;
|
|
@@ -4,13 +4,13 @@ import "../../../../vendor/Package.4.mjs";
|
|
|
4
4
|
|
|
5
5
|
import "../../../../vendor/Package.5.mjs";
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
Reflect.defineMetadata(t, (() =>
|
|
7
|
+
function SetObjectContainerGetter(e, n) {
|
|
8
|
+
Reflect.defineMetadata(t, (() => n), e);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
function GetObjectContainer(e) {
|
|
12
|
+
const n = Reflect.getOwnMetadata(t, e);
|
|
13
|
+
return n();
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { GetObjectContainer, SetObjectContainerGetter };
|
|
@@ -18,26 +18,26 @@ require("../../helpers/As.cjs");
|
|
|
18
18
|
|
|
19
19
|
require("../../helpers/ObjectParentConstructor.cjs");
|
|
20
20
|
|
|
21
|
-
function
|
|
22
|
-
let
|
|
21
|
+
function SetObjectInjectItem(c, a, o, n) {
|
|
22
|
+
let s;
|
|
23
23
|
if (Reflect.hasOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e.ObjectConstructor(c))) {
|
|
24
|
-
|
|
24
|
+
s = Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e.ObjectConstructor(c));
|
|
25
25
|
} else {
|
|
26
|
-
|
|
26
|
+
s = new Map;
|
|
27
27
|
const a = [];
|
|
28
28
|
r.ObjectParentConstructors(e.ObjectConstructor(c)).forEach((e => {
|
|
29
29
|
if (Reflect.hasOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e)) a.unshift(Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e));
|
|
30
30
|
}));
|
|
31
|
-
a.forEach((t => t.forEach(((t, e) =>
|
|
31
|
+
a.forEach((t => t.forEach(((t, e) => s.set(e, t)))));
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
name:
|
|
35
|
-
transform:
|
|
33
|
+
s.set(a, {
|
|
34
|
+
name: o,
|
|
35
|
+
transform: n
|
|
36
36
|
});
|
|
37
|
-
Reflect.defineMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS,
|
|
37
|
+
Reflect.defineMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, s, e.ObjectConstructor(c));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function
|
|
40
|
+
function GetObjectInjectItemsByPrototype(c) {
|
|
41
41
|
const a = Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e.ObjectConstructor(c)) || new Map;
|
|
42
42
|
r.ObjectParentConstructors(e.ObjectConstructor(c)).forEach((e => {
|
|
43
43
|
if (Reflect.hasOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e)) {
|
|
@@ -52,19 +52,19 @@ function a(c) {
|
|
|
52
52
|
return new Map;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
function
|
|
55
|
+
function MarkObjectAsAutoload(e) {
|
|
56
56
|
if (!Reflect.hasOwnMetadata(t.DI_TARGET_CONSTRUCTOR_AUTOLOAD, e)) Reflect.defineMetadata(t.DI_TARGET_CONSTRUCTOR_AUTOLOAD, true, e);
|
|
57
57
|
return e;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
function
|
|
60
|
+
function GetObjectIsAutoload(e) {
|
|
61
61
|
return !!Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_AUTOLOAD, e);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
exports.GetObjectInjectItemsByPrototype =
|
|
64
|
+
exports.GetObjectInjectItemsByPrototype = GetObjectInjectItemsByPrototype;
|
|
65
65
|
|
|
66
|
-
exports.GetObjectIsAutoload =
|
|
66
|
+
exports.GetObjectIsAutoload = GetObjectIsAutoload;
|
|
67
67
|
|
|
68
|
-
exports.MarkObjectAsAutoload =
|
|
68
|
+
exports.MarkObjectAsAutoload = MarkObjectAsAutoload;
|
|
69
69
|
|
|
70
|
-
exports.SetObjectInjectItem =
|
|
70
|
+
exports.SetObjectInjectItem = SetObjectInjectItem;
|
|
@@ -12,26 +12,26 @@ import "../../helpers/As.mjs";
|
|
|
12
12
|
|
|
13
13
|
import "../../helpers/ObjectParentConstructor.mjs";
|
|
14
14
|
|
|
15
|
-
function
|
|
16
|
-
let
|
|
15
|
+
function SetObjectInjectItem(e, n, o, c) {
|
|
16
|
+
let s;
|
|
17
17
|
if (Reflect.hasOwnMetadata(t, a(e))) {
|
|
18
|
-
|
|
18
|
+
s = Reflect.getOwnMetadata(t, a(e));
|
|
19
19
|
} else {
|
|
20
|
-
|
|
20
|
+
s = new Map;
|
|
21
21
|
const n = [];
|
|
22
22
|
r(a(e)).forEach((e => {
|
|
23
23
|
if (Reflect.hasOwnMetadata(t, e)) n.unshift(Reflect.getOwnMetadata(t, e));
|
|
24
24
|
}));
|
|
25
|
-
n.forEach((t => t.forEach(((t, e) =>
|
|
25
|
+
n.forEach((t => t.forEach(((t, e) => s.set(e, t)))));
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
name:
|
|
29
|
-
transform:
|
|
27
|
+
s.set(n, {
|
|
28
|
+
name: o,
|
|
29
|
+
transform: c
|
|
30
30
|
});
|
|
31
|
-
Reflect.defineMetadata(t,
|
|
31
|
+
Reflect.defineMetadata(t, s, a(e));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function
|
|
34
|
+
function GetObjectInjectItemsByPrototype(e) {
|
|
35
35
|
const n = Reflect.getOwnMetadata(t, a(e)) || new Map;
|
|
36
36
|
r(a(e)).forEach((e => {
|
|
37
37
|
if (Reflect.hasOwnMetadata(t, e)) {
|
|
@@ -46,13 +46,13 @@ function f(e) {
|
|
|
46
46
|
return new Map;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
function
|
|
49
|
+
function MarkObjectAsAutoload(t) {
|
|
50
50
|
if (!Reflect.hasOwnMetadata(e, t)) Reflect.defineMetadata(e, true, t);
|
|
51
51
|
return t;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function
|
|
54
|
+
function GetObjectIsAutoload(t) {
|
|
55
55
|
return !!Reflect.getOwnMetadata(e, t);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export {
|
|
58
|
+
export { GetObjectInjectItemsByPrototype, GetObjectIsAutoload, MarkObjectAsAutoload, SetObjectInjectItem };
|
|
@@ -30,23 +30,23 @@ require("./CamelCase.cjs");
|
|
|
30
30
|
|
|
31
31
|
require("../../helpers/NoCase.cjs");
|
|
32
32
|
|
|
33
|
-
function
|
|
33
|
+
function GetObjectLifetime(t) {
|
|
34
34
|
return Reflect.getMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, t);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function
|
|
37
|
+
function GetObjectLifetimeLocked(t) {
|
|
38
38
|
return !!Reflect.getMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, t);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function
|
|
42
|
-
if (c
|
|
43
|
-
if (
|
|
44
|
-
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME,
|
|
45
|
-
return
|
|
41
|
+
function SetObjectLifetime(c, i, r = false) {
|
|
42
|
+
if (GetObjectLifetimeLocked(c) && !r || GetObjectLifetimeLocked(c) && GetObjectLifetime(c) !== i) throw new t.LifetimeLockedException("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ c.className ]);
|
|
43
|
+
if (r) Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, true, c);
|
|
44
|
+
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, i, c);
|
|
45
|
+
return c;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
exports.GetObjectLifetime =
|
|
48
|
+
exports.GetObjectLifetime = GetObjectLifetime;
|
|
49
49
|
|
|
50
|
-
exports.GetObjectLifetimeLocked =
|
|
50
|
+
exports.GetObjectLifetimeLocked = GetObjectLifetimeLocked;
|
|
51
51
|
|
|
52
|
-
exports.SetObjectLifetime =
|
|
52
|
+
exports.SetObjectLifetime = SetObjectLifetime;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DI_TARGET_CONSTRUCTOR_LIFETIME as e, DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK as t } from "../../../constants/DIMetadataKey.mjs";
|
|
2
2
|
|
|
3
|
-
import { LifetimeLockedException as
|
|
3
|
+
import { LifetimeLockedException as i } from "../../../exceptions/di/LifetimeLockedException.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../../vendor/Package.4.mjs";
|
|
6
6
|
|
|
@@ -24,19 +24,19 @@ import "./CamelCase.mjs";
|
|
|
24
24
|
|
|
25
25
|
import "../../helpers/NoCase.mjs";
|
|
26
26
|
|
|
27
|
-
function
|
|
27
|
+
function GetObjectLifetime(t) {
|
|
28
28
|
return Reflect.getMetadata(e, t);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function
|
|
31
|
+
function GetObjectLifetimeLocked(e) {
|
|
32
32
|
return !!Reflect.getMetadata(t, e);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function
|
|
36
|
-
if (
|
|
37
|
-
if (
|
|
38
|
-
Reflect.defineMetadata(e,
|
|
39
|
-
return
|
|
35
|
+
function SetObjectLifetime(c, o, m = false) {
|
|
36
|
+
if (GetObjectLifetimeLocked(c) && !m || GetObjectLifetimeLocked(c) && GetObjectLifetime(c) !== o) throw new i("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ c.className ]);
|
|
37
|
+
if (m) Reflect.defineMetadata(t, true, c);
|
|
38
|
+
Reflect.defineMetadata(e, o, c);
|
|
39
|
+
return c;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export {
|
|
42
|
+
export { GetObjectLifetime, GetObjectLifetimeLocked, SetObjectLifetime };
|
|
@@ -102,12 +102,14 @@ require("os");
|
|
|
102
102
|
|
|
103
103
|
require("path");
|
|
104
104
|
|
|
105
|
-
require("stream");
|
|
106
|
-
|
|
107
105
|
require("events");
|
|
108
106
|
|
|
109
107
|
require("fs");
|
|
110
108
|
|
|
109
|
+
require("../../../../vendor/Package.10.cjs");
|
|
110
|
+
|
|
111
|
+
require("stream");
|
|
112
|
+
|
|
111
113
|
require("../../ioc/Utils.cjs");
|
|
112
114
|
|
|
113
115
|
require("../../ioc/FunctionTokenizer.cjs");
|
|
@@ -96,12 +96,14 @@ import "os";
|
|
|
96
96
|
|
|
97
97
|
import "path";
|
|
98
98
|
|
|
99
|
-
import "stream";
|
|
100
|
-
|
|
101
99
|
import "events";
|
|
102
100
|
|
|
103
101
|
import "fs";
|
|
104
102
|
|
|
103
|
+
import "../../../../vendor/Package.10.mjs";
|
|
104
|
+
|
|
105
|
+
import "stream";
|
|
106
|
+
|
|
105
107
|
import "../../ioc/Utils.mjs";
|
|
106
108
|
|
|
107
109
|
import "../../ioc/FunctionTokenizer.mjs";
|
|
@@ -10,7 +10,7 @@ const t = Symbol("OWR");
|
|
|
10
10
|
|
|
11
11
|
const a = Symbol("OFR");
|
|
12
12
|
|
|
13
|
-
function
|
|
13
|
+
function GetObjectWeakRefs(e) {
|
|
14
14
|
if (!Reflect.hasOwnMetadata(a, e)) Reflect.defineMetadata(a, new FinalizationRegistry((a => {
|
|
15
15
|
const n = Reflect.getOwnMetadata(t, e) || new Set;
|
|
16
16
|
n.delete(a);
|
|
@@ -20,21 +20,21 @@ function n(e) {
|
|
|
20
20
|
return Reflect.getOwnMetadata(t, e);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
e.As(Reflect.getOwnMetadata(a,
|
|
27
|
-
|
|
28
|
-
Reflect.defineMetadata(t,
|
|
23
|
+
function AppendObjectWeakRefs(n, c) {
|
|
24
|
+
const f = GetObjectWeakRefs(n);
|
|
25
|
+
const s = new WeakRef(c);
|
|
26
|
+
e.As(Reflect.getOwnMetadata(a, n)).register(c, s);
|
|
27
|
+
f.add(s);
|
|
28
|
+
Reflect.defineMetadata(t, f, n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function
|
|
31
|
+
function ClearObjectWeakRefs(e) {
|
|
32
32
|
if (!Reflect.hasOwnMetadata(t, e)) return;
|
|
33
33
|
Reflect.deleteMetadata(t, e);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
exports.AppendObjectWeakRefs =
|
|
36
|
+
exports.AppendObjectWeakRefs = AppendObjectWeakRefs;
|
|
37
37
|
|
|
38
|
-
exports.ClearObjectWeakRefs =
|
|
38
|
+
exports.ClearObjectWeakRefs = ClearObjectWeakRefs;
|
|
39
39
|
|
|
40
|
-
exports.GetObjectWeakRefs =
|
|
40
|
+
exports.GetObjectWeakRefs = GetObjectWeakRefs;
|