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