lakutata 2.0.82 → 2.0.83
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/docker.cjs +1 -1
- package/com/docker.mjs +1 -1
- package/decorator/orm.cjs +84 -84
- package/decorator/orm.mjs +42 -128
- package/orm.cjs +871 -1408
- package/orm.mjs +712 -1462
- package/package.json +1 -1
- package/src/components/Database.cjs +2 -2
- package/src/components/Database.mjs +6 -6
- package/src/components/cacher/Cacher.cjs +129 -129
- package/src/components/cacher/Cacher.mjs +117 -117
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +303 -312
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +304 -313
- 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 +11 -11
- package/src/components/docker/ConnectionOptionsBuilder.mjs +7 -7
- package/src/components/docker/Docker.cjs +5067 -4956
- package/src/components/docker/Docker.mjs +4982 -4871
- package/src/components/docker/lib/DockerContainer.cjs +1 -1
- package/src/components/docker/lib/DockerContainer.mjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- 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 +1678 -2168
- package/src/components/entrypoint/Entrypoint.mjs +1680 -2170
- package/src/components/monitor/AliveMonitor.cjs +2 -2
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/MemoryMonitor.cjs +3 -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 +2 -2
- package/src/decorators/ctrl/CLIAction.mjs +7 -7
- package/src/decorators/ctrl/HTTPAction.cjs +6 -6
- package/src/decorators/ctrl/HTTPAction.mjs +4 -4
- package/src/decorators/ctrl/ServiceAction.cjs +3 -3
- package/src/decorators/ctrl/ServiceAction.mjs +4 -4
- package/src/decorators/ctrl/http/DELETE.cjs +2 -2
- package/src/decorators/ctrl/http/DELETE.mjs +2 -2
- package/src/decorators/ctrl/http/GET.cjs +2 -2
- package/src/decorators/ctrl/http/GET.mjs +2 -2
- package/src/decorators/ctrl/http/HEAD.cjs +2 -2
- package/src/decorators/ctrl/http/HEAD.mjs +2 -2
- package/src/decorators/ctrl/http/OPTIONS.cjs +2 -2
- package/src/decorators/ctrl/http/OPTIONS.mjs +2 -2
- package/src/decorators/ctrl/http/PATCH.cjs +2 -2
- package/src/decorators/ctrl/http/PATCH.mjs +2 -2
- package/src/decorators/ctrl/http/POST.cjs +2 -2
- package/src/decorators/ctrl/http/POST.mjs +2 -2
- package/src/decorators/ctrl/http/PUT.cjs +2 -2
- package/src/decorators/ctrl/http/PUT.mjs +2 -2
- 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 +26 -4
- package/src/decorators/orm/AfterInsert.mjs +25 -5
- package/src/decorators/orm/AfterLoad.cjs +26 -4
- package/src/decorators/orm/AfterLoad.mjs +25 -5
- package/src/decorators/orm/AfterRecover.cjs +26 -4
- package/src/decorators/orm/AfterRecover.mjs +25 -5
- package/src/decorators/orm/AfterRemove.cjs +26 -4
- package/src/decorators/orm/AfterRemove.mjs +25 -5
- package/src/decorators/orm/AfterSoftRemove.cjs +26 -4
- package/src/decorators/orm/AfterSoftRemove.mjs +25 -5
- package/src/decorators/orm/AfterUpdate.cjs +26 -4
- package/src/decorators/orm/AfterUpdate.mjs +25 -5
- package/src/decorators/orm/BeforeInsert.cjs +26 -4
- package/src/decorators/orm/BeforeInsert.mjs +25 -5
- package/src/decorators/orm/BeforeRecover.cjs +26 -4
- package/src/decorators/orm/BeforeRecover.mjs +25 -5
- package/src/decorators/orm/BeforeRemove.cjs +26 -4
- package/src/decorators/orm/BeforeRemove.mjs +25 -5
- package/src/decorators/orm/BeforeSoftRemove.cjs +26 -4
- package/src/decorators/orm/BeforeSoftRemove.mjs +25 -5
- package/src/decorators/orm/BeforeUpdate.cjs +26 -4
- package/src/decorators/orm/BeforeUpdate.mjs +25 -5
- package/src/decorators/orm/Check.cjs +29 -4
- package/src/decorators/orm/Check.mjs +28 -5
- package/src/decorators/orm/ChildEntity.cjs +29 -4
- package/src/decorators/orm/ChildEntity.mjs +28 -5
- package/src/decorators/orm/Column.cjs +61 -4
- package/src/decorators/orm/Column.mjs +61 -6
- package/src/decorators/orm/CreateDateColumn.cjs +25 -4
- package/src/decorators/orm/CreateDateColumn.mjs +24 -5
- package/src/decorators/orm/DeleteDateColumn.cjs +25 -4
- package/src/decorators/orm/DeleteDateColumn.mjs +23 -4
- package/src/decorators/orm/Entity.cjs +35 -4
- package/src/decorators/orm/Entity.mjs +33 -4
- package/src/decorators/orm/EventSubscriber.cjs +22 -4
- package/src/decorators/orm/EventSubscriber.mjs +21 -5
- package/src/decorators/orm/Exclusion.cjs +29 -4
- package/src/decorators/orm/Exclusion.mjs +28 -5
- package/src/decorators/orm/Generated.cjs +24 -4
- package/src/decorators/orm/Generated.mjs +23 -5
- package/src/decorators/orm/Index.cjs +41 -4
- package/src/decorators/orm/Index.mjs +41 -6
- package/src/decorators/orm/JoinColumn.cjs +29 -4
- package/src/decorators/orm/JoinColumn.mjs +28 -5
- package/src/decorators/orm/JoinTable.cjs +30 -4
- package/src/decorators/orm/JoinTable.mjs +28 -4
- package/src/decorators/orm/ManyToMany.cjs +42 -4
- package/src/decorators/orm/ManyToMany.mjs +40 -4
- package/src/decorators/orm/ManyToOne.cjs +42 -4
- package/src/decorators/orm/ManyToOne.mjs +40 -4
- package/src/decorators/orm/ObjectIdColumn.cjs +28 -4
- package/src/decorators/orm/ObjectIdColumn.mjs +27 -5
- package/src/decorators/orm/OneToMany.cjs +34 -4
- package/src/decorators/orm/OneToMany.mjs +34 -6
- package/src/decorators/orm/OneToOne.cjs +42 -4
- package/src/decorators/orm/OneToOne.mjs +40 -4
- package/src/decorators/orm/PrimaryColumn.cjs +49 -4
- package/src/decorators/orm/PrimaryColumn.mjs +49 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +54 -4
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +54 -6
- package/src/decorators/orm/RelationId.cjs +26 -4
- package/src/decorators/orm/RelationId.mjs +25 -5
- package/src/decorators/orm/TableInheritance.cjs +26 -4
- package/src/decorators/orm/TableInheritance.mjs +25 -5
- package/src/decorators/orm/Tree.cjs +24 -4
- package/src/decorators/orm/Tree.mjs +23 -5
- package/src/decorators/orm/TreeChildren.cjs +31 -4
- package/src/decorators/orm/TreeChildren.mjs +29 -4
- package/src/decorators/orm/TreeLevelColumn.cjs +25 -4
- package/src/decorators/orm/TreeLevelColumn.mjs +23 -4
- package/src/decorators/orm/TreeParent.cjs +31 -4
- package/src/decorators/orm/TreeParent.mjs +29 -4
- package/src/decorators/orm/Unique.cjs +44 -4
- package/src/decorators/orm/Unique.mjs +44 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +25 -4
- package/src/decorators/orm/UpdateDateColumn.mjs +24 -5
- package/src/decorators/orm/VersionColumn.cjs +25 -4
- package/src/decorators/orm/VersionColumn.mjs +24 -5
- package/src/decorators/orm/ViewColumn.cjs +25 -4
- package/src/decorators/orm/ViewColumn.mjs +24 -5
- package/src/decorators/orm/ViewEntity.cjs +34 -4
- package/src/decorators/orm/ViewEntity.mjs +33 -5
- package/src/decorators/orm/VirtualColumn.cjs +42 -4
- package/src/decorators/orm/VirtualColumn.mjs +40 -4
- package/src/lib/base/EventEmitter.cjs +1195 -1202
- package/src/lib/base/EventEmitter.mjs +1195 -1202
- 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/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 +65 -65
- package/src/lib/base/internal/ControllerEntrypoint.mjs +36 -36
- package/src/lib/base/internal/DataValidator.cjs +185 -174
- package/src/lib/base/internal/DataValidator.mjs +230 -219
- 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/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/ObjectWeakRefs.cjs +11 -11
- package/src/lib/base/internal/ObjectWeakRefs.mjs +9 -9
- package/src/lib/base/internal/PatternManager.cjs +739 -744
- package/src/lib/base/internal/PatternManager.mjs +743 -748
- 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 +115 -128
- package/src/lib/core/Application.mjs +135 -148
- 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 +890 -890
- package/src/lib/helpers/Glob.mjs +889 -889
- 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 +8 -18
- package/src/lib/helpers/IsHtml.mjs +8 -18
- 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 +1531 -1525
- package/src/lib/helpers/IsXML.mjs +1527 -1521
- package/src/lib/helpers/MD5.cjs +2 -2
- package/src/lib/helpers/MD5.mjs +2 -2
- 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 +2 -2
- package/src/lib/helpers/NonceStr.mjs +2 -2
- package/src/lib/helpers/ObjectConstructor.cjs +2 -2
- package/src/lib/helpers/ObjectConstructor.mjs +4 -4
- package/src/lib/helpers/ObjectHash.cjs +377 -384
- package/src/lib/helpers/ObjectHash.mjs +373 -380
- 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 +148 -169
- package/src/lib/helpers/RandomString.mjs +145 -166
- package/src/lib/helpers/SHA1.cjs +2 -2
- package/src/lib/helpers/SHA1.mjs +2 -2
- package/src/lib/helpers/SHA256.cjs +2 -2
- package/src/lib/helpers/SHA256.mjs +2 -2
- 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 +16 -16
- package/src/lib/helpers/SortArray.mjs +15 -15
- 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/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/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 +106 -106
- package/src/lib/ioc/DependencyInjectionContainer.mjs +122 -122
- 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 +5298 -5221
- package/src/lib/ioc/ListModules.mjs +5258 -5181
- 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 +4025 -4202
- package/src/lib/validation/VLD.mjs +2972 -3149
- package/src/providers/Database.cjs +2 -2
- package/src/providers/Database.mjs +7 -7
- package/src/providers/PasswordHash.cjs +330 -330
- package/src/providers/PasswordHash.mjs +397 -397
- package/src/providers/migration/GenerateMigration.cjs +2 -2
- package/src/providers/migration/GenerateMigration.mjs +2 -2
- package/vendor/Package.1.cjs +256 -256
- package/vendor/Package.1.mjs +254 -254
- package/vendor/Package.112.cjs +42157 -42076
- package/vendor/Package.112.mjs +42222 -42081
- package/vendor/Package.13.cjs +36 -36
- package/vendor/Package.13.mjs +24 -24
- package/vendor/Package.16.cjs +12351 -12233
- package/vendor/Package.16.mjs +12348 -12230
- package/vendor/Package.17.cjs +924 -924
- package/vendor/Package.17.mjs +943 -943
- package/vendor/Package.18.cjs +48229 -20
- package/vendor/Package.18.mjs +48192 -24
- package/vendor/Package.2.cjs +5824 -5853
- package/vendor/Package.2.mjs +5780 -5809
- package/vendor/Package.3.cjs +60 -60
- package/vendor/Package.3.mjs +85 -85
- package/vendor/Package.4.cjs +874 -884
- package/vendor/Package.4.mjs +877 -887
- package/vendor/Package.5.cjs +15 -19
- package/vendor/Package.5.mjs +10 -14
- package/vendor/Package.6.cjs +2058 -2067
- package/vendor/Package.6.mjs +2064 -2073
- package/vendor/Package.610.cjs +9 -9
- package/vendor/Package.611.cjs +39 -39
- package/vendor/Package.611.mjs +22 -22
- package/vendor/Package.612.cjs +33 -33
- package/vendor/Package.612.mjs +17 -17
- package/vendor/Package.613.cjs +62 -62
- package/vendor/Package.613.mjs +29 -29
- package/vendor/Package.62.cjs +295 -298
- package/vendor/Package.62.mjs +278 -281
- package/vendor/Package.63.cjs +354 -354
- package/vendor/Package.63.mjs +229 -229
- package/vendor/Package.64.cjs +74 -74
- package/vendor/Package.64.mjs +74 -74
- package/vendor/Package.65.cjs +1851 -1858
- package/vendor/Package.65.mjs +1693 -1700
- package/vendor/Package.66.cjs +16 -16
- package/vendor/Package.66.mjs +16 -16
- package/vendor/Package.67.cjs +87 -87
- package/vendor/Package.67.mjs +85 -85
- package/vendor/Package.68.cjs +14 -14
- package/vendor/Package.68.mjs +6 -6
- package/vendor/Package.69.cjs +8 -8
- package/vendor/Package.7.cjs +3 -3
- package/vendor/Package.7.mjs +3 -3
- package/vendor/Package.9.cjs +124 -138
- package/vendor/Package.9.mjs +121 -135
- package/vendor/TypeDef.internal.3.d.ts +0 -14
- package/vendor/Package.19.cjs +0 -37
- package/vendor/Package.19.mjs +0 -35
- package/vendor/Package.20.cjs +0 -37
- package/vendor/Package.20.mjs +0 -35
- package/vendor/Package.21.cjs +0 -37
- package/vendor/Package.21.mjs +0 -35
- package/vendor/Package.22.cjs +0 -37
- package/vendor/Package.22.mjs +0 -35
- package/vendor/Package.23.cjs +0 -37
- package/vendor/Package.23.mjs +0 -35
- package/vendor/Package.24.cjs +0 -37
- package/vendor/Package.24.mjs +0 -35
- package/vendor/Package.25.cjs +0 -37
- package/vendor/Package.25.mjs +0 -35
- package/vendor/Package.26.cjs +0 -37
- package/vendor/Package.26.mjs +0 -35
- package/vendor/Package.27.cjs +0 -37
- package/vendor/Package.27.mjs +0 -35
- package/vendor/Package.28.cjs +0 -37
- package/vendor/Package.28.mjs +0 -35
- package/vendor/Package.29.cjs +0 -40
- package/vendor/Package.29.mjs +0 -38
- package/vendor/Package.30.cjs +0 -41
- package/vendor/Package.30.mjs +0 -39
- package/vendor/Package.31.cjs +0 -72
- package/vendor/Package.31.mjs +0 -70
- package/vendor/Package.32.cjs +0 -37
- package/vendor/Package.32.mjs +0 -35
- package/vendor/Package.33.cjs +0 -37
- package/vendor/Package.33.mjs +0 -35
- package/vendor/Package.34.cjs +0 -46
- package/vendor/Package.34.mjs +0 -44
- package/vendor/Package.35.cjs +0 -34
- package/vendor/Package.35.mjs +0 -32
- package/vendor/Package.36.cjs +0 -40
- package/vendor/Package.36.mjs +0 -38
- package/vendor/Package.37.cjs +0 -36
- package/vendor/Package.37.mjs +0 -34
- package/vendor/Package.38.cjs +0 -52
- package/vendor/Package.38.mjs +0 -50
- package/vendor/Package.39.cjs +0 -41
- package/vendor/Package.39.mjs +0 -39
- package/vendor/Package.40.cjs +0 -42
- package/vendor/Package.40.mjs +0 -40
- package/vendor/Package.41.cjs +0 -53
- package/vendor/Package.41.mjs +0 -51
- package/vendor/Package.42.cjs +0 -53
- package/vendor/Package.42.mjs +0 -51
- package/vendor/Package.43.cjs +0 -40
- package/vendor/Package.43.mjs +0 -38
- package/vendor/Package.44.cjs +0 -46
- package/vendor/Package.44.mjs +0 -44
- package/vendor/Package.45.cjs +0 -53
- package/vendor/Package.45.mjs +0 -51
- package/vendor/Package.46.cjs +0 -59
- package/vendor/Package.46.mjs +0 -57
- package/vendor/Package.47.cjs +0 -65
- package/vendor/Package.47.mjs +0 -63
- package/vendor/Package.48.cjs +0 -38
- package/vendor/Package.48.mjs +0 -36
- package/vendor/Package.49.cjs +0 -38
- package/vendor/Package.49.mjs +0 -36
- package/vendor/Package.50.cjs +0 -36
- package/vendor/Package.50.mjs +0 -34
- package/vendor/Package.51.cjs +0 -43
- package/vendor/Package.51.mjs +0 -41
- package/vendor/Package.52.cjs +0 -37
- package/vendor/Package.52.mjs +0 -35
- package/vendor/Package.53.cjs +0 -43
- package/vendor/Package.53.mjs +0 -41
- package/vendor/Package.54.cjs +0 -55
- package/vendor/Package.54.mjs +0 -53
- package/vendor/Package.55.cjs +0 -37
- package/vendor/Package.55.mjs +0 -35
- package/vendor/Package.56.cjs +0 -37
- package/vendor/Package.56.mjs +0 -35
- package/vendor/Package.57.cjs +0 -37
- package/vendor/Package.57.mjs +0 -35
- package/vendor/Package.58.cjs +0 -45
- package/vendor/Package.58.mjs +0 -43
- package/vendor/Package.59.cjs +0 -53
- package/vendor/Package.59.mjs +0 -51
- package/vendor/Package.60.cjs +0 -47649
- package/vendor/Package.60.mjs +0 -47606
|
@@ -62,81 +62,81 @@ require("../../helpers/ObjectParentConstructor.cjs");
|
|
|
62
62
|
|
|
63
63
|
require("../../helpers/ObjectPrototype.cjs");
|
|
64
64
|
|
|
65
|
-
function
|
|
65
|
+
function s(n, s, a, c) {
|
|
66
66
|
const i = [];
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const u =
|
|
67
|
+
c.forEach((r => i.push(e.IsDTO(o.As(r)) ? o.As(r).Schema() : o.As(r))));
|
|
68
|
+
a.writable = false;
|
|
69
|
+
const u = a.value;
|
|
70
70
|
const p = e.DTO.Array().ordered(...i);
|
|
71
|
-
const
|
|
71
|
+
const l = Array.isArray(i) ? i.length : 1;
|
|
72
72
|
if (r.isAsyncFunction(u)) {
|
|
73
|
-
|
|
74
|
-
const n = r.length -
|
|
73
|
+
a.value = async function(...r) {
|
|
74
|
+
const n = r.length - l;
|
|
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: s,
|
|
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
|
+
a.value = function(...r) {
|
|
87
|
+
const n = r.length - l;
|
|
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: s,
|
|
93
93
|
reason: e.message
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
return u.apply(this, r);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
return
|
|
99
|
+
return a;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
function
|
|
103
|
-
const i = e.IsDTO(o.As(
|
|
104
|
-
|
|
105
|
-
const u =
|
|
102
|
+
function a(t, s, a, c) {
|
|
103
|
+
const i = e.IsDTO(o.As(c)) ? o.As(c).Schema() : o.As(c);
|
|
104
|
+
a.writable = false;
|
|
105
|
+
const u = a.value;
|
|
106
106
|
if (r.isAsyncFunction(u)) {
|
|
107
|
-
|
|
107
|
+
a.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: s
|
|
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: s,
|
|
117
117
|
reason: e.message
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
} else {
|
|
122
|
-
|
|
122
|
+
a.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: s
|
|
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: s,
|
|
132
132
|
reason: e.message
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
return
|
|
137
|
+
return a;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
exports.SetMethodAcceptArgumentsValidator =
|
|
140
|
+
exports.SetMethodAcceptArgumentsValidator = s;
|
|
141
141
|
|
|
142
|
-
exports.SetMethodReturnValueValidator =
|
|
142
|
+
exports.SetMethodReturnValueValidator = a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as e, D as
|
|
1
|
+
import { b as e, D as r } from "../../../../vendor/Package.2.mjs";
|
|
2
2
|
|
|
3
|
-
import { isAsyncFunction as
|
|
3
|
+
import { isAsyncFunction as t } 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 s(a, s, p, i) {
|
|
60
60
|
const m = [];
|
|
61
|
-
i.forEach((
|
|
61
|
+
i.forEach((r => m.push(e(n(r)) ? n(r).Schema() : n(r))));
|
|
62
62
|
p.writable = false;
|
|
63
63
|
const c = p.value;
|
|
64
|
-
const l =
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
64
|
+
const l = r.Array().ordered(...m);
|
|
65
|
+
const y = Array.isArray(m) ? m.length : 1;
|
|
66
|
+
if (t(c)) {
|
|
67
67
|
p.value = async function(...e) {
|
|
68
|
-
const
|
|
68
|
+
const t = e.length - y;
|
|
69
69
|
try {
|
|
70
|
-
e = await
|
|
70
|
+
e = await r.validateAsync(e, l.concat(r.Array().ordered(...new Array(t >= 0 ? t : 0).fill(r.Any()))));
|
|
71
71
|
} catch (e) {
|
|
72
72
|
throw new o("Method [{propertyKey}] accept argument {reason}", {
|
|
73
73
|
propertyKey: s,
|
|
@@ -78,9 +78,9 @@ function SetMethodAcceptArgumentsValidator(a, s, p, i) {
|
|
|
78
78
|
};
|
|
79
79
|
} else {
|
|
80
80
|
p.value = function(...e) {
|
|
81
|
-
const
|
|
81
|
+
const t = e.length - y;
|
|
82
82
|
try {
|
|
83
|
-
e =
|
|
83
|
+
e = r.validate(e, l.concat(r.Array().ordered(...new Array(t >= 0 ? t : 0).fill(r.Any()))));
|
|
84
84
|
} catch (e) {
|
|
85
85
|
throw new o("Method [{propertyKey}] accept argument {reason}", {
|
|
86
86
|
propertyKey: s,
|
|
@@ -93,18 +93,18 @@ function SetMethodAcceptArgumentsValidator(a, s, p, i) {
|
|
|
93
93
|
return p;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function
|
|
96
|
+
function p(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 (t(c)) {
|
|
101
101
|
p.value = async function(...e) {
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
102
|
+
const t = await c.apply(this, e);
|
|
103
|
+
if (t === undefined) throw new a("Method [{propertyKey}] return undefined", {
|
|
104
104
|
propertyKey: s
|
|
105
105
|
});
|
|
106
106
|
try {
|
|
107
|
-
return await
|
|
107
|
+
return await r.validateAsync(t, m);
|
|
108
108
|
} catch (e) {
|
|
109
109
|
throw new a("Method [{propertyKey}] return value {reason}", {
|
|
110
110
|
propertyKey: s,
|
|
@@ -114,12 +114,12 @@ function SetMethodReturnValueValidator(o, s, p, i) {
|
|
|
114
114
|
};
|
|
115
115
|
} else {
|
|
116
116
|
p.value = function(...e) {
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
117
|
+
const t = c.apply(this, e);
|
|
118
|
+
if (t === undefined) throw new a("Method [{propertyKey}] return undefined", {
|
|
119
119
|
propertyKey: s
|
|
120
120
|
});
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return r.validate(t, m);
|
|
123
123
|
} catch (e) {
|
|
124
124
|
throw new a("Method [{propertyKey}] return value {reason}", {
|
|
125
125
|
propertyKey: s,
|
|
@@ -131,4 +131,4 @@ function SetMethodReturnValueValidator(o, s, p, i) {
|
|
|
131
131
|
return p;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export { SetMethodAcceptArgumentsValidator, SetMethodReturnValueValidator };
|
|
134
|
+
export { s as SetMethodAcceptArgumentsValidator, p as SetMethodReturnValueValidator };
|
|
@@ -60,24 +60,24 @@ require("../../helpers/ObjectPrototype.cjs");
|
|
|
60
60
|
|
|
61
61
|
require("../../helpers/ObjectParentConstructor.cjs");
|
|
62
62
|
|
|
63
|
-
function
|
|
64
|
-
let
|
|
63
|
+
function a(a, o, n = r.DTO.Any(), R) {
|
|
64
|
+
let O;
|
|
65
65
|
if (Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, t.ObjectConstructor(a))) {
|
|
66
|
-
|
|
66
|
+
O = Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES, t.ObjectConstructor(a));
|
|
67
67
|
} else {
|
|
68
|
-
|
|
68
|
+
O = 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) => O.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, O, 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: R ? R : e => e
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
function
|
|
80
|
+
function o(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 GetObjectConfigurableProperties(r) {
|
|
|
86
86
|
return a;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
exports.GetObjectConfigurableProperties =
|
|
89
|
+
exports.GetObjectConfigurableProperties = o;
|
|
90
90
|
|
|
91
|
-
exports.SetObjectConfigurableProperty =
|
|
91
|
+
exports.SetObjectConfigurableProperty = a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES as
|
|
1
|
+
import { DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES as t } from "../../../constants/DIMetadataKey.mjs";
|
|
2
2
|
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as e } 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 s(s, m, i = e.Any(), p) {
|
|
58
58
|
let n;
|
|
59
|
-
if (Reflect.hasOwnMetadata(
|
|
60
|
-
n = Reflect.getOwnMetadata(
|
|
59
|
+
if (Reflect.hasOwnMetadata(t, a(s))) {
|
|
60
|
+
n = Reflect.getOwnMetadata(t, a(s));
|
|
61
61
|
} else {
|
|
62
62
|
n = new Map;
|
|
63
|
-
r(a(s)).forEach((
|
|
64
|
-
if (Reflect.hasOwnMetadata(
|
|
63
|
+
r(a(s)).forEach((e => {
|
|
64
|
+
if (Reflect.hasOwnMetadata(t, e)) o(Reflect.getOwnMetadata(t, e)).forEach(((t, e) => n.set(e, t)));
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
-
Reflect.defineMetadata(
|
|
68
|
-
Reflect.getOwnMetadata(
|
|
67
|
+
Reflect.defineMetadata(t, n, a(s));
|
|
68
|
+
Reflect.getOwnMetadata(t, a(s)).set(m, {
|
|
69
69
|
schema: i,
|
|
70
|
-
fn: p ? p :
|
|
70
|
+
fn: p ? p : t => t
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
function
|
|
74
|
+
function m(e) {
|
|
75
75
|
const s = new Map;
|
|
76
|
-
r(a(
|
|
77
|
-
if (Reflect.hasOwnMetadata(
|
|
76
|
+
r(a(e)).forEach((e => {
|
|
77
|
+
if (Reflect.hasOwnMetadata(t, e)) o(Reflect.getOwnMetadata(t, e)).forEach(((t, e) => s.set(e, t)));
|
|
78
78
|
}));
|
|
79
|
-
o(Reflect.getOwnMetadata(
|
|
79
|
+
o(Reflect.getOwnMetadata(t, a(e)))?.forEach(((t, e) => s.set(e, t)));
|
|
80
80
|
return s;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export { GetObjectConfigurableProperties, SetObjectConfigurableProperty };
|
|
83
|
+
export { m as GetObjectConfigurableProperties, s as 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 t(t, r) {
|
|
14
|
+
Reflect.defineMetadata(e.DI_TARGET_CONTAINER, (() => r), t);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
function r(t) {
|
|
18
|
+
const r = Reflect.getOwnMetadata(e.DI_TARGET_CONTAINER, t);
|
|
19
|
+
return r();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
exports.GetObjectContainer =
|
|
22
|
+
exports.GetObjectContainer = r;
|
|
23
23
|
|
|
24
|
-
exports.SetObjectContainerGetter =
|
|
24
|
+
exports.SetObjectContainerGetter = t;
|
|
@@ -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 e(e, a) {
|
|
8
|
+
Reflect.defineMetadata(t, (() => a), e);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
function a(e) {
|
|
12
|
+
const a = Reflect.getOwnMetadata(t, e);
|
|
13
|
+
return a();
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export { GetObjectContainer, SetObjectContainerGetter };
|
|
16
|
+
export { a as GetObjectContainer, e as 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 c(c, a, n, o) {
|
|
22
|
+
let T;
|
|
23
23
|
if (Reflect.hasOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e.ObjectConstructor(c))) {
|
|
24
|
-
|
|
24
|
+
T = Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, e.ObjectConstructor(c));
|
|
25
25
|
} else {
|
|
26
|
-
|
|
26
|
+
T = 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) => T.set(e, t)))));
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
name:
|
|
35
|
-
transform:
|
|
33
|
+
T.set(a, {
|
|
34
|
+
name: n,
|
|
35
|
+
transform: o
|
|
36
36
|
});
|
|
37
|
-
Reflect.defineMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS,
|
|
37
|
+
Reflect.defineMetadata(t.DI_TARGET_CONSTRUCTOR_INJECTS, T, e.ObjectConstructor(c));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function
|
|
40
|
+
function a(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 GetObjectInjectItemsByPrototype(c) {
|
|
|
52
52
|
return new Map;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
function
|
|
55
|
+
function n(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 o(e) {
|
|
61
61
|
return !!Reflect.getOwnMetadata(t.DI_TARGET_CONSTRUCTOR_AUTOLOAD, e);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
exports.GetObjectInjectItemsByPrototype =
|
|
64
|
+
exports.GetObjectInjectItemsByPrototype = a;
|
|
65
65
|
|
|
66
|
-
exports.GetObjectIsAutoload =
|
|
66
|
+
exports.GetObjectIsAutoload = o;
|
|
67
67
|
|
|
68
|
-
exports.MarkObjectAsAutoload =
|
|
68
|
+
exports.MarkObjectAsAutoload = n;
|
|
69
69
|
|
|
70
|
-
exports.SetObjectInjectItem =
|
|
70
|
+
exports.SetObjectInjectItem = c;
|
|
@@ -12,26 +12,26 @@ import "../../helpers/As.mjs";
|
|
|
12
12
|
|
|
13
13
|
import "../../helpers/ObjectParentConstructor.mjs";
|
|
14
14
|
|
|
15
|
-
function
|
|
16
|
-
let
|
|
15
|
+
function n(e, n, f, o) {
|
|
16
|
+
let c;
|
|
17
17
|
if (Reflect.hasOwnMetadata(t, a(e))) {
|
|
18
|
-
|
|
18
|
+
c = Reflect.getOwnMetadata(t, a(e));
|
|
19
19
|
} else {
|
|
20
|
-
|
|
20
|
+
c = 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) => c.set(e, t)))));
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
name:
|
|
29
|
-
transform:
|
|
27
|
+
c.set(n, {
|
|
28
|
+
name: f,
|
|
29
|
+
transform: o
|
|
30
30
|
});
|
|
31
|
-
Reflect.defineMetadata(t,
|
|
31
|
+
Reflect.defineMetadata(t, c, a(e));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function
|
|
34
|
+
function f(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 GetObjectInjectItemsByPrototype(e) {
|
|
|
46
46
|
return new Map;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
function
|
|
49
|
+
function o(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 c(t) {
|
|
55
55
|
return !!Reflect.getOwnMetadata(e, t);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export { GetObjectInjectItemsByPrototype, GetObjectIsAutoload, MarkObjectAsAutoload, SetObjectInjectItem };
|
|
58
|
+
export { f as GetObjectInjectItemsByPrototype, c as GetObjectIsAutoload, o as MarkObjectAsAutoload, n as SetObjectInjectItem };
|
|
@@ -30,23 +30,23 @@ require("./CamelCase.cjs");
|
|
|
30
30
|
|
|
31
31
|
require("../../helpers/NoCase.cjs");
|
|
32
32
|
|
|
33
|
-
function
|
|
33
|
+
function r(t) {
|
|
34
34
|
return Reflect.getMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, t);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function
|
|
37
|
+
function c(t) {
|
|
38
38
|
return !!Reflect.getMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, t);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
if (
|
|
44
|
-
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME,
|
|
45
|
-
return
|
|
41
|
+
function i(i, a, s = false) {
|
|
42
|
+
if (c(i) && !s || c(i) && r(i) !== a) throw new t.LifetimeLockedException("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
|
|
43
|
+
if (s) Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, true, i);
|
|
44
|
+
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, a, i);
|
|
45
|
+
return i;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
exports.GetObjectLifetime =
|
|
48
|
+
exports.GetObjectLifetime = r;
|
|
49
49
|
|
|
50
|
-
exports.GetObjectLifetimeLocked =
|
|
50
|
+
exports.GetObjectLifetimeLocked = c;
|
|
51
51
|
|
|
52
|
-
exports.SetObjectLifetime =
|
|
52
|
+
exports.SetObjectLifetime = i;
|
|
@@ -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 a } 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 o(t) {
|
|
28
28
|
return Reflect.getMetadata(e, t);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function
|
|
31
|
+
function r(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 i(i, m, s = false) {
|
|
36
|
+
if (r(i) && !s || r(i) && o(i) !== m) throw new a("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
|
|
37
|
+
if (s) Reflect.defineMetadata(t, true, i);
|
|
38
|
+
Reflect.defineMetadata(e, m, i);
|
|
39
|
+
return i;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export { GetObjectLifetime, GetObjectLifetimeLocked, SetObjectLifetime };
|
|
42
|
+
export { o as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
|
|
@@ -10,7 +10,7 @@ const t = Symbol("OWR");
|
|
|
10
10
|
|
|
11
11
|
const a = Symbol("OFR");
|
|
12
12
|
|
|
13
|
-
function
|
|
13
|
+
function n(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 GetObjectWeakRefs(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 c(c, f) {
|
|
24
|
+
const s = n(c);
|
|
25
|
+
const d = new WeakRef(f);
|
|
26
|
+
e.As(Reflect.getOwnMetadata(a, c)).register(f, d);
|
|
27
|
+
s.add(d);
|
|
28
|
+
Reflect.defineMetadata(t, s, c);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function
|
|
31
|
+
function f(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 = c;
|
|
37
37
|
|
|
38
|
-
exports.ClearObjectWeakRefs =
|
|
38
|
+
exports.ClearObjectWeakRefs = f;
|
|
39
39
|
|
|
40
|
-
exports.GetObjectWeakRefs =
|
|
40
|
+
exports.GetObjectWeakRefs = n;
|
|
@@ -4,7 +4,7 @@ const t = Symbol("OWR");
|
|
|
4
4
|
|
|
5
5
|
const a = Symbol("OFR");
|
|
6
6
|
|
|
7
|
-
function
|
|
7
|
+
function n(e) {
|
|
8
8
|
if (!Reflect.hasOwnMetadata(a, e)) Reflect.defineMetadata(a, new FinalizationRegistry((a => {
|
|
9
9
|
const n = Reflect.getOwnMetadata(t, e) || new Set;
|
|
10
10
|
n.delete(a);
|
|
@@ -14,17 +14,17 @@ function GetObjectWeakRefs(e) {
|
|
|
14
14
|
return Reflect.getOwnMetadata(t, e);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
e(Reflect.getOwnMetadata(a,
|
|
21
|
-
|
|
22
|
-
Reflect.defineMetadata(t,
|
|
17
|
+
function f(f, c) {
|
|
18
|
+
const d = n(f);
|
|
19
|
+
const l = new WeakRef(c);
|
|
20
|
+
e(Reflect.getOwnMetadata(a, f)).register(c, l);
|
|
21
|
+
d.add(l);
|
|
22
|
+
Reflect.defineMetadata(t, d, f);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function
|
|
25
|
+
function c(e) {
|
|
26
26
|
if (!Reflect.hasOwnMetadata(t, e)) return;
|
|
27
27
|
Reflect.deleteMetadata(t, e);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export { AppendObjectWeakRefs, ClearObjectWeakRefs, GetObjectWeakRefs };
|
|
30
|
+
export { f as AppendObjectWeakRefs, c as ClearObjectWeakRefs, n as GetObjectWeakRefs };
|