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.mjs
CHANGED
|
@@ -1,460 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { AsyncConstructor as s } from "../src/lib/base/async-constructor/AsyncConstructor.mjs";
|
|
4
|
-
|
|
5
|
-
import { Transient as i } from "../src/decorators/di/Lifetime.mjs";
|
|
6
|
-
|
|
7
|
-
import { MethodNotFoundException as r } from "../src/exceptions/MethodNotFoundException.mjs";
|
|
8
|
-
|
|
9
|
-
import { createContainer as o } from "../src/lib/ioc/DependencyInjectionContainer.mjs";
|
|
10
|
-
|
|
11
|
-
import { randomUUID as n } from "node:crypto";
|
|
12
|
-
|
|
13
|
-
import { GetConfigurableRecords as a, SetIdToInstance as c, SetConfigurableRecordsToInstance as l, SetConfigurableRecords as h, GetConfigurableRecordsFromInstance as d, GetIdFromInstance as m } from "../src/lib/base/internal/ConfigurableRecordsInjection.mjs";
|
|
14
|
-
|
|
15
|
-
import { GetObjectConfigurableProperties as p } from "../src/lib/base/internal/ObjectConfiguration.mjs";
|
|
16
|
-
|
|
17
|
-
import { GetObjectIsAutoload as u, GetObjectInjectItemsByPrototype as f } from "../src/lib/base/internal/ObjectInjection.mjs";
|
|
18
|
-
|
|
19
|
-
import { SetObjectContainerGetter as b } from "../src/lib/base/internal/ObjectContainer.mjs";
|
|
20
|
-
|
|
21
|
-
import { D as y, I as j } from "./Package.5.mjs";
|
|
22
|
-
|
|
23
|
-
import { ObjectConstructor as g } from "../src/lib/helpers/ObjectConstructor.mjs";
|
|
24
|
-
|
|
25
|
-
import { As as w } from "../src/lib/helpers/As.mjs";
|
|
26
|
-
|
|
27
|
-
import { DevNull as O } from "../src/lib/helpers/DevNull.mjs";
|
|
28
|
-
|
|
29
|
-
import { ObjectParentConstructors as P } from "../src/lib/helpers/ObjectParentConstructors.mjs";
|
|
30
|
-
|
|
31
|
-
import { DependencyInjectionException as C } from "../src/exceptions/di/DependencyInjectionException.mjs";
|
|
32
|
-
|
|
33
|
-
import { ConstructorSymbol as R } from "../src/lib/base/internal/ConstructorSymbol.mjs";
|
|
34
|
-
|
|
35
|
-
import { Expect as S } from "../src/decorators/dto/Expect.mjs";
|
|
36
|
-
|
|
37
|
-
import { IndexSignature as N } from "../src/decorators/dto/IndexSignature.mjs";
|
|
38
|
-
|
|
39
|
-
import { asValue as v, asClass as I } from "../src/lib/ioc/Resolvers.mjs";
|
|
40
|
-
|
|
41
|
-
import { GetObjectLifetime as E } from "../src/lib/base/internal/ObjectLifetime.mjs";
|
|
42
|
-
|
|
43
|
-
import { Accept as M } from "../src/decorators/dto/Accept.mjs";
|
|
44
|
-
|
|
45
|
-
import { listModules as A } from "../src/lib/ioc/ListModules.mjs";
|
|
46
|
-
|
|
47
|
-
import { pathToFileURL as T } from "url";
|
|
48
|
-
|
|
49
|
-
import { isClass as L } from "../src/lib/ioc/Utils.mjs";
|
|
50
|
-
|
|
51
|
-
import { IsEmptyObject as k } from "../src/lib/helpers/IsEmptyObject.mjs";
|
|
52
|
-
|
|
53
|
-
import { AppendObjectWeakRefs as D, GetObjectWeakRefs as U, ClearObjectWeakRefs as x } from "../src/lib/base/internal/ObjectWeakRefs.mjs";
|
|
54
|
-
|
|
55
|
-
var B;
|
|
56
|
-
|
|
57
|
-
const _ = Symbol("OBJECT_ID");
|
|
58
|
-
|
|
59
|
-
let F = class LoadObjectOptions extends y {
|
|
60
|
-
static {
|
|
61
|
-
B = _;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
t([ S(y.Alternatives(y.String(), y.Symbol()).optional()), e("design:type", Object) ], F.prototype, B, void 0);
|
|
66
|
-
|
|
67
|
-
t([ S(y.Class((() => tt)).required()), e("design:type", Object) ], F.prototype, "class", void 0);
|
|
68
|
-
|
|
69
|
-
F = t([ N(y.Any()) ], F);
|
|
70
|
-
|
|
71
|
-
const G = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
|
|
72
|
-
|
|
73
|
-
const Y = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
|
|
74
|
-
|
|
75
|
-
class Container {
|
|
76
|
-
#t;
|
|
77
|
-
#e;
|
|
78
|
-
#s;
|
|
79
|
-
constructor(t, e) {
|
|
80
|
-
this.#e = new Set;
|
|
81
|
-
this.#s = false;
|
|
82
|
-
this.injectionNames = new Set;
|
|
83
|
-
this.parent = t;
|
|
84
|
-
this.#t = t ? t.#t.createScope() : o({
|
|
85
|
-
injectionMode: "PROXY",
|
|
86
|
-
strict: false
|
|
87
|
-
});
|
|
88
|
-
if (this.parent) this.parent.#e.add(this);
|
|
89
|
-
this.#t.register(G, v(this));
|
|
90
|
-
if (e) this.#t.register(Y, v(new WeakRef(e)));
|
|
91
|
-
}
|
|
92
|
-
async disposer(t) {
|
|
93
|
-
try {
|
|
94
|
-
await t.getMethod(H, false)();
|
|
95
|
-
} catch (t) {
|
|
96
|
-
O(t);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
buildResolverOptions(t) {
|
|
100
|
-
const e = E(t);
|
|
101
|
-
return {
|
|
102
|
-
lifetime: e,
|
|
103
|
-
dispose: t => this.disposer(t)
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
async processResolved(t, e, s = {}) {
|
|
107
|
-
const i = a(w(t.constructor), e);
|
|
108
|
-
const r = y.isValid(t.constructor, y.Class(tt));
|
|
109
|
-
if (r) {
|
|
110
|
-
c(w(t), e);
|
|
111
|
-
l(w(t), {
|
|
112
|
-
...i,
|
|
113
|
-
...s
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return Promise.resolve(t);
|
|
117
|
-
}
|
|
118
|
-
buildNameAndRegistrationPairFromOptions(t) {
|
|
119
|
-
const e = {};
|
|
120
|
-
const s = t[_] ? t[_] : R(t.class);
|
|
121
|
-
const i = {
|
|
122
|
-
...t,
|
|
123
|
-
class: void 0
|
|
124
|
-
};
|
|
125
|
-
delete i.id;
|
|
126
|
-
delete i.class;
|
|
127
|
-
h(t.class, s, i);
|
|
128
|
-
e[s] = I(t.class, this.buildResolverOptions(t.class));
|
|
129
|
-
return e;
|
|
130
|
-
}
|
|
131
|
-
async buildNameAndRegistrationPairFromGlob(t) {
|
|
132
|
-
const e = [];
|
|
133
|
-
A(t).forEach((t => {
|
|
134
|
-
e.push(new Promise((e => {
|
|
135
|
-
import(T(t.path).toString()).then((t => {
|
|
136
|
-
Object.keys(t).forEach((s => {
|
|
137
|
-
const i = t[s];
|
|
138
|
-
if (L(i) && y.isValid(i, y.Class(tt))) {
|
|
139
|
-
const t = i;
|
|
140
|
-
const s = {};
|
|
141
|
-
s[R(t)] = I(t, this.buildResolverOptions(t));
|
|
142
|
-
return e(s);
|
|
143
|
-
} else {
|
|
144
|
-
return e({});
|
|
145
|
-
}
|
|
146
|
-
}));
|
|
147
|
-
})).catch((() => e({})));
|
|
148
|
-
})));
|
|
149
|
-
}));
|
|
150
|
-
const s = await Promise.all(e);
|
|
151
|
-
let i = {};
|
|
152
|
-
s.forEach((t => {
|
|
153
|
-
i = {
|
|
154
|
-
...i,
|
|
155
|
-
...t
|
|
156
|
-
};
|
|
157
|
-
}));
|
|
158
|
-
return i;
|
|
159
|
-
}
|
|
160
|
-
owner() {
|
|
161
|
-
const t = this.#t.resolve(Y, {
|
|
162
|
-
allowUnregistered: true
|
|
163
|
-
});
|
|
164
|
-
return t ? t.deref() : undefined;
|
|
165
|
-
}
|
|
166
|
-
async load(t) {
|
|
167
|
-
let e = {};
|
|
168
|
-
const s = [];
|
|
169
|
-
t.forEach((t => {
|
|
170
|
-
if (typeof t === "string") {
|
|
171
|
-
s.push(new Promise(((e, s) => this.buildNameAndRegistrationPairFromGlob(t).then(e).catch(s))));
|
|
172
|
-
} else if (L(w(t))) {
|
|
173
|
-
const s = {
|
|
174
|
-
class: w(t)
|
|
175
|
-
};
|
|
176
|
-
e = {
|
|
177
|
-
...e,
|
|
178
|
-
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
179
|
-
};
|
|
180
|
-
} else {
|
|
181
|
-
const s = w(t);
|
|
182
|
-
e = {
|
|
183
|
-
...e,
|
|
184
|
-
...this.buildNameAndRegistrationPairFromOptions(s)
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
}));
|
|
188
|
-
if (s.length) {
|
|
189
|
-
const t = await Promise.all(s);
|
|
190
|
-
t.forEach((t => {
|
|
191
|
-
e = {
|
|
192
|
-
...t,
|
|
193
|
-
...e
|
|
194
|
-
};
|
|
195
|
-
}));
|
|
196
|
-
}
|
|
197
|
-
if (!k(e)) {
|
|
198
|
-
Object.getOwnPropertyNames(e).forEach((t => this.injectionNames.add(t)));
|
|
199
|
-
Object.getOwnPropertySymbols(e).forEach((t => this.injectionNames.add(t)));
|
|
200
|
-
this.#t.register(e);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
async get(t, e = {}) {
|
|
204
|
-
const s = typeof t === "function" ? R(t) : t;
|
|
205
|
-
if (!this.#t.hasRegistration(s) && typeof t === "function" && u(w(t))) {
|
|
206
|
-
await this.load([ {
|
|
207
|
-
id: s,
|
|
208
|
-
class: w(t)
|
|
209
|
-
} ]);
|
|
210
|
-
}
|
|
211
|
-
return (this.#t.getRegistration(s)?.lifetime === "SINGLETON" || this.#t.getRegistration(s)?.lifetime === "MODULE_SINGLETON") && !this.injectionNames.has(s) && this.parent ? await this.parent.get(s, e) : await this.processResolved(this.#t.resolve(s), s, e);
|
|
212
|
-
}
|
|
213
|
-
has(t) {
|
|
214
|
-
if (typeof t === "function") return this.#t.hasRegistration(R(t));
|
|
215
|
-
return this.#t.hasRegistration(t);
|
|
216
|
-
}
|
|
217
|
-
async set(t, e = {}) {
|
|
218
|
-
await this.load([ {
|
|
219
|
-
...e,
|
|
220
|
-
class: t
|
|
221
|
-
} ]);
|
|
222
|
-
return await this.get(t);
|
|
223
|
-
}
|
|
224
|
-
async register(t, e = {}) {
|
|
225
|
-
await this.load([ {
|
|
226
|
-
...e,
|
|
227
|
-
class: t
|
|
228
|
-
} ]);
|
|
229
|
-
}
|
|
230
|
-
async build(t, e = {}) {
|
|
231
|
-
const s = await this.processResolved(this.#t.build(t, this.buildResolverOptions(t)), R(t), e);
|
|
232
|
-
D(this.#t, s);
|
|
233
|
-
return s;
|
|
234
|
-
}
|
|
235
|
-
createScope() {
|
|
236
|
-
return new Container(this, this.owner());
|
|
237
|
-
}
|
|
238
|
-
registerContainerToItsParent() {
|
|
239
|
-
if (this.parent) this.parent.#e.add(this);
|
|
240
|
-
}
|
|
241
|
-
async clear() {
|
|
242
|
-
const t = [];
|
|
243
|
-
this.#e.forEach((e => t.push(new Promise(((t, s) => e.destroy().then(t).catch(s))))));
|
|
244
|
-
await Promise.all(t);
|
|
245
|
-
await this.#t.dispose();
|
|
246
|
-
const e = [];
|
|
247
|
-
U(this.#t).forEach((t => {
|
|
248
|
-
let s = t.deref();
|
|
249
|
-
if (!s) return;
|
|
250
|
-
if (s[H]) {
|
|
251
|
-
e.push(new Promise((t => s ? Promise.resolve(s[H]()).then((() => {
|
|
252
|
-
s = undefined;
|
|
253
|
-
return t();
|
|
254
|
-
})).catch(O) : t())));
|
|
255
|
-
}
|
|
256
|
-
}));
|
|
257
|
-
await Promise.all(e);
|
|
258
|
-
x(this.#t);
|
|
259
|
-
}
|
|
260
|
-
async destroy() {
|
|
261
|
-
if (this.#s) return;
|
|
262
|
-
this.#s = true;
|
|
263
|
-
if (this.parent) this.parent.#e.delete(this);
|
|
264
|
-
await this.clear();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
t([ M(y.Array(y.Alternatives(F.Schema(), y.Class((() => tt)), y.Glob()))), e("design:type", Function), e("design:paramtypes", [ Array ]), e("design:returntype", Promise) ], Container.prototype, "load", null);
|
|
269
|
-
|
|
270
|
-
const $ = Symbol("OBJECT.TYPE");
|
|
271
|
-
|
|
272
|
-
var q;
|
|
273
|
-
|
|
274
|
-
(function(t) {
|
|
275
|
-
t["Unknown"] = "Unknown";
|
|
276
|
-
t["Object"] = "Object";
|
|
277
|
-
t["Provider"] = "Provider";
|
|
278
|
-
t["Controller"] = "Controller";
|
|
279
|
-
t["Component"] = "Component";
|
|
280
|
-
t["Module"] = "Module";
|
|
281
|
-
})(q || (q = {}));
|
|
282
|
-
|
|
283
|
-
function z(t) {
|
|
284
|
-
return e => J(e, t);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
function J(t, e) {
|
|
288
|
-
Reflect.defineMetadata($, y.isValid(t, y.Class(tt)) ? e : q.Unknown, t);
|
|
289
|
-
return t;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function V(t) {
|
|
293
|
-
if (Reflect.hasOwnMetadata($, t)) return Reflect.getOwnMetadata($, t);
|
|
294
|
-
let e = q.Unknown;
|
|
295
|
-
for (const s of P(t)) {
|
|
296
|
-
if (Reflect.hasOwnMetadata($, s)) {
|
|
297
|
-
e = Reflect.getOwnMetadata($, s);
|
|
298
|
-
break;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
J(t, e);
|
|
302
|
-
return V(t);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
var W;
|
|
306
|
-
|
|
307
|
-
var K;
|
|
308
|
-
|
|
309
|
-
const X = Symbol("__init");
|
|
310
|
-
|
|
311
|
-
const H = Symbol("__destroy");
|
|
312
|
-
|
|
313
|
-
const Q = Symbol("anonymous");
|
|
314
|
-
|
|
315
|
-
const Z = Symbol("OBJECT.SYMBOL.PROPERTY");
|
|
316
|
-
|
|
317
|
-
let tt = K = class BaseObject extends s {
|
|
318
|
-
#i;
|
|
319
|
-
#r;
|
|
320
|
-
#o=n();
|
|
321
|
-
#n=false;
|
|
322
|
-
async #a() {
|
|
323
|
-
const t = d(this);
|
|
324
|
-
const e = [];
|
|
325
|
-
p(this).forEach(((s, i) => {
|
|
326
|
-
if (j(i)) return;
|
|
327
|
-
e.push(new Promise(((e, r) => {
|
|
328
|
-
y.validateAsync(t[w(i)], s.schema, {
|
|
329
|
-
targetName: i
|
|
330
|
-
}).then((t => Promise.resolve(s.fn.bind(this)(t)).then((t => {
|
|
331
|
-
this[i] = t;
|
|
332
|
-
return e();
|
|
333
|
-
})).catch(r))).catch(r);
|
|
334
|
-
})));
|
|
335
|
-
}));
|
|
336
|
-
await Promise.all(e);
|
|
337
|
-
}
|
|
338
|
-
async #c() {
|
|
339
|
-
const t = f(this);
|
|
340
|
-
const e = [];
|
|
341
|
-
t.forEach(((t, s) => {
|
|
342
|
-
const i = t.name;
|
|
343
|
-
e.push(new Promise(((e, r) => {
|
|
344
|
-
this.#i.get(i).then((i => {
|
|
345
|
-
Promise.resolve(t.transform(i)).then((t => {
|
|
346
|
-
Reflect.set(this, s, t);
|
|
347
|
-
return e();
|
|
348
|
-
})).catch(r);
|
|
349
|
-
})).catch((t => r(new C("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, t.message ]))));
|
|
350
|
-
})));
|
|
351
|
-
}));
|
|
352
|
-
await Promise.all(e);
|
|
353
|
-
}
|
|
354
|
-
#l() {
|
|
355
|
-
const t = m(this);
|
|
356
|
-
this.#r = t ? t : Q;
|
|
357
|
-
}
|
|
358
|
-
constructor(t) {
|
|
359
|
-
super((async () => {
|
|
360
|
-
this.#l();
|
|
361
|
-
const t = Object.getOwnPropertyDescriptor(this, "then");
|
|
362
|
-
if (t) Object.defineProperty(this, "then", {
|
|
363
|
-
enumerable: false
|
|
364
|
-
});
|
|
365
|
-
await this[X]();
|
|
366
|
-
}));
|
|
367
|
-
this.#i = new Container(t[G], this);
|
|
368
|
-
b(this, this.#i);
|
|
369
|
-
}
|
|
370
|
-
static get className() {
|
|
371
|
-
return this.name;
|
|
372
|
-
}
|
|
373
|
-
get className() {
|
|
374
|
-
return g(this).name;
|
|
375
|
-
}
|
|
376
|
-
async [X](...t) {
|
|
377
|
-
this.#i.registerContainerToItsParent();
|
|
378
|
-
if (!this.#n) {
|
|
379
|
-
await this.#c();
|
|
380
|
-
await this.#a();
|
|
381
|
-
this.#n = true;
|
|
382
|
-
}
|
|
383
|
-
for (const e of t) await e();
|
|
384
|
-
await this.init();
|
|
385
|
-
}
|
|
386
|
-
async [H](...t) {
|
|
387
|
-
await this.#i.destroy();
|
|
388
|
-
for (const e of t) await e();
|
|
389
|
-
await this.destroy();
|
|
390
|
-
}
|
|
391
|
-
async init() {}
|
|
392
|
-
async destroy() {}
|
|
393
|
-
async getObject(t, e = {}) {
|
|
394
|
-
return await this.#i.get(t, e);
|
|
395
|
-
}
|
|
396
|
-
async buildObject(t, e = {}) {
|
|
397
|
-
return this.#i.build(t, e);
|
|
398
|
-
}
|
|
399
|
-
getParent() {
|
|
400
|
-
return this.#i.parent?.owner();
|
|
401
|
-
}
|
|
402
|
-
getModule() {
|
|
403
|
-
let t = this.getParent();
|
|
404
|
-
while (t && V(w(g(t))) !== q.Module) {
|
|
405
|
-
t = this.getParent();
|
|
406
|
-
}
|
|
407
|
-
return w(t);
|
|
408
|
-
}
|
|
409
|
-
get $uuid() {
|
|
410
|
-
return this.#o;
|
|
411
|
-
}
|
|
412
|
-
get $id() {
|
|
413
|
-
return this.#r;
|
|
414
|
-
}
|
|
415
|
-
get $symbol() {
|
|
416
|
-
if (Reflect.hasOwnMetadata(Z, this)) return Reflect.getOwnMetadata(Z, this);
|
|
417
|
-
Reflect.defineMetadata(Z, Symbol(this.$uuid), this);
|
|
418
|
-
return this.$symbol;
|
|
419
|
-
}
|
|
420
|
-
setProperty(t, e) {
|
|
421
|
-
this[t] = e;
|
|
422
|
-
}
|
|
423
|
-
getProperty(t, e) {
|
|
424
|
-
if (this.hasProperty(t)) return w(this[t]);
|
|
425
|
-
return w(e);
|
|
426
|
-
}
|
|
427
|
-
hasProperty(t) {
|
|
428
|
-
return typeof t === "string" ? this.propertyNames().includes(t) : this.propertySymbols().includes(t);
|
|
429
|
-
}
|
|
430
|
-
propertySymbols() {
|
|
431
|
-
return Object.getOwnPropertySymbols(this);
|
|
432
|
-
}
|
|
433
|
-
propertyNames() {
|
|
434
|
-
return Object.getOwnPropertyNames(this);
|
|
435
|
-
}
|
|
436
|
-
hasMethod(t) {
|
|
437
|
-
const e = this.hasProperty(t);
|
|
438
|
-
if (e) return false;
|
|
439
|
-
return typeof this[t] === "function";
|
|
440
|
-
}
|
|
441
|
-
getMethod(t, e = false) {
|
|
442
|
-
if (this.hasMethod(t)) {
|
|
443
|
-
return (...e) => this[t](...e);
|
|
444
|
-
} else if (e) {
|
|
445
|
-
throw new r('Method "{methodName}" not found in "{className}"', {
|
|
446
|
-
methodName: t,
|
|
447
|
-
className: this.constructor.name
|
|
448
|
-
});
|
|
449
|
-
} else {
|
|
450
|
-
return (...t) => O(...t);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
async dispose() {
|
|
454
|
-
await this.destroy();
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
tt = K = t([ i(), z(q.Object), e("design:paramtypes", [ Object ]) ], tt);
|
|
459
|
-
|
|
460
|
-
export { tt as B, Container as C, z as D, V as G, F as L, q as O, J as S, X as _, H as a, _ as b, G as c, Q as d, Y as o };
|
|
1
|
+
import "crypto";
|
package/vendor/Package.14.cjs
CHANGED
|
@@ -8,13 +8,13 @@ const n = require("../src/decorators/di/Lifetime.cjs");
|
|
|
8
8
|
|
|
9
9
|
const r = require("../src/decorators/di/Configurable.cjs");
|
|
10
10
|
|
|
11
|
-
const i = require("./Package.
|
|
11
|
+
const i = require("./Package.2.cjs");
|
|
12
12
|
|
|
13
|
-
const s = require("./Package.
|
|
13
|
+
const s = require("./Package.5.cjs");
|
|
14
14
|
|
|
15
|
-
require("./Package.
|
|
15
|
+
require("./Package.8.cjs");
|
|
16
16
|
|
|
17
|
-
require("./Package.
|
|
17
|
+
require("./Package.10.cjs");
|
|
18
18
|
|
|
19
19
|
const o = require("fs");
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ const u = require("path");
|
|
|
26
26
|
|
|
27
27
|
const f = require("worker_threads");
|
|
28
28
|
|
|
29
|
-
const c = require("./Package.
|
|
29
|
+
const c = require("./Package.12.cjs");
|
|
30
30
|
|
|
31
31
|
const d = require("assert");
|
|
32
32
|
|
package/vendor/Package.14.mjs
CHANGED
|
@@ -6,13 +6,13 @@ import { Singleton as r } from "../src/decorators/di/Lifetime.mjs";
|
|
|
6
6
|
|
|
7
7
|
import { Configurable as i } from "../src/decorators/di/Configurable.mjs";
|
|
8
8
|
|
|
9
|
-
import { D as s } from "./Package.
|
|
9
|
+
import { D as s } from "./Package.2.mjs";
|
|
10
10
|
|
|
11
|
-
import { g as o, c as a, a as l } from "./Package.
|
|
11
|
+
import { g as o, c as a, a as l } from "./Package.5.mjs";
|
|
12
12
|
|
|
13
|
-
import "./Package.
|
|
13
|
+
import "./Package.8.mjs";
|
|
14
14
|
|
|
15
|
-
import "./Package.
|
|
15
|
+
import "./Package.10.mjs";
|
|
16
16
|
|
|
17
17
|
import u from "fs";
|
|
18
18
|
|
|
@@ -24,7 +24,7 @@ import d from "path";
|
|
|
24
24
|
|
|
25
25
|
import h from "worker_threads";
|
|
26
26
|
|
|
27
|
-
import { r as p } from "./Package.
|
|
27
|
+
import { r as p } from "./Package.12.mjs";
|
|
28
28
|
|
|
29
29
|
import y from "assert";
|
|
30
30
|
|