lakutata 2.0.34 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/cacher.cjs +229 -0
- package/com/cacher.d.ts +514 -0
- package/com/cacher.mjs +203 -0
- package/com/database.cjs +11 -5
- package/com/database.mjs +11 -5
- package/com/docker.cjs +26 -18
- package/com/docker.mjs +22 -14
- package/com/entrypoint.cjs +4 -2
- package/com/entrypoint.mjs +4 -2
- package/com/logger.cjs +9 -3
- package/com/logger.mjs +9 -3
- package/decorator/ctrl.cjs +4 -2
- package/decorator/ctrl.mjs +4 -2
- package/decorator/di.cjs +3 -1
- package/decorator/di.mjs +3 -1
- package/decorator/dto.cjs +3 -1
- package/decorator/dto.mjs +3 -1
- package/decorator/orm.cjs +27 -21
- package/decorator/orm.mjs +11 -5
- package/helper.cjs +17 -15
- package/helper.mjs +4 -2
- package/lakutata.cjs +14 -8
- package/lakutata.mjs +10 -4
- package/orm.cjs +25 -19
- package/orm.mjs +22 -16
- package/package.json +6 -1
- package/provider/database.cjs +11 -5
- package/provider/database.mjs +11 -5
- package/provider/passwordHash.cjs +3 -1
- package/provider/passwordHash.mjs +3 -1
- package/src/components/Database.cjs +11 -5
- package/src/components/Database.mjs +11 -5
- package/src/components/Logger.cjs +9 -3
- package/src/components/Logger.mjs +9 -3
- package/src/components/cacher/Cacher.cjs +734 -0
- package/src/components/cacher/Cacher.mjs +720 -0
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +3094 -0
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3066 -0
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +33 -0
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +35 -0
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +38 -0
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +40 -0
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +31 -0
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +33 -0
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +40 -0
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +42 -0
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +43 -0
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +45 -0
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +35 -0
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +37 -0
- package/src/components/cacher/options/CacherOptions.cjs +95 -0
- package/src/components/cacher/options/CacherOptions.mjs +89 -0
- package/src/components/cacher/options/FileCacheOptions.cjs +79 -0
- package/src/components/cacher/options/FileCacheOptions.mjs +73 -0
- package/src/components/cacher/options/MemcacheCacheOptions.cjs +81 -0
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +75 -0
- package/src/components/cacher/options/MongoCacheOptions.cjs +85 -0
- package/src/components/cacher/options/MongoCacheOptions.mjs +79 -0
- package/src/components/cacher/options/MysqlCacheOptions.cjs +85 -0
- package/src/components/cacher/options/MysqlCacheOptions.mjs +79 -0
- package/src/components/cacher/options/PostgresCacheOptions.cjs +89 -0
- package/src/components/cacher/options/PostgresCacheOptions.mjs +83 -0
- package/src/components/cacher/options/RedisCacheOptions.cjs +101 -0
- package/src/components/cacher/options/RedisCacheOptions.mjs +95 -0
- package/src/components/cacher/options/SqliteCacheOptions.cjs +79 -0
- package/src/components/cacher/options/SqliteCacheOptions.mjs +73 -0
- package/src/components/cacher/types/CacheStoreOptions.cjs +1 -0
- package/src/components/cacher/types/CacheStoreOptions.mjs +1 -0
- package/src/components/docker/ConnectionOptionsBuilder.cjs +22 -14
- package/src/components/docker/ConnectionOptionsBuilder.mjs +22 -14
- package/src/components/docker/Docker.cjs +22 -14
- package/src/components/docker/Docker.mjs +22 -14
- package/src/components/docker/lib/DockerContainer.cjs +34 -26
- package/src/components/docker/lib/DockerContainer.mjs +26 -18
- package/src/components/docker/lib/DockerContainerTTY.cjs +18 -10
- package/src/components/docker/lib/DockerContainerTTY.mjs +18 -10
- package/src/components/docker/lib/DockerImage.cjs +11 -9
- package/src/components/docker/lib/DockerImage.mjs +3 -1
- package/src/components/docker/options/DockerPruneOptions.cjs +3 -1
- package/src/components/docker/options/DockerPruneOptions.mjs +3 -1
- package/src/components/docker/options/auth/DockerAuthOptions.cjs +3 -1
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerCommitOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerExecOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerExecOptions.mjs +5 -3
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerKillOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerKillOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerLogsOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerRemoveOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerStopOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerStopOptions.mjs +3 -1
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +3 -1
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +3 -1
- package/src/components/docker/options/image/ImageBuildOptions.cjs +3 -1
- package/src/components/docker/options/image/ImageBuildOptions.mjs +5 -3
- package/src/components/docker/options/image/ImageExportOptions.cjs +3 -1
- package/src/components/docker/options/image/ImageExportOptions.mjs +3 -1
- package/src/components/docker/options/image/ImageImportOptions.cjs +3 -1
- package/src/components/docker/options/image/ImageImportOptions.mjs +3 -1
- package/src/components/docker/options/image/ImagePullOptions.cjs +3 -1
- package/src/components/docker/options/image/ImagePullOptions.mjs +3 -1
- package/src/components/docker/options/image/ImagePushOptions.cjs +3 -1
- package/src/components/docker/options/image/ImagePushOptions.mjs +3 -1
- package/src/components/docker/options/image/ImageRemoveOptions.cjs +3 -1
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +3 -1
- package/src/components/docker/options/image/ImageTagOptions.cjs +3 -1
- package/src/components/docker/options/image/ImageTagOptions.mjs +3 -1
- package/src/components/docker/options/network/NetworkCreateOptions.cjs +3 -1
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +3 -1
- package/src/components/entrypoint/Entrypoint.cjs +4 -2
- package/src/components/entrypoint/Entrypoint.mjs +49 -47
- package/src/components/entrypoint/lib/Controller.cjs +3 -1
- package/src/components/entrypoint/lib/Controller.mjs +3 -1
- package/src/decorators/ctrl/CLIAction.cjs +6 -4
- package/src/decorators/ctrl/CLIAction.mjs +4 -2
- package/src/decorators/ctrl/HTTPAction.cjs +4 -2
- package/src/decorators/ctrl/HTTPAction.mjs +9 -7
- package/src/decorators/ctrl/ServiceAction.cjs +8 -6
- package/src/decorators/ctrl/ServiceAction.mjs +4 -2
- package/src/decorators/ctrl/http/DELETE.cjs +4 -2
- package/src/decorators/ctrl/http/DELETE.mjs +4 -2
- package/src/decorators/ctrl/http/GET.cjs +4 -2
- package/src/decorators/ctrl/http/GET.mjs +4 -2
- package/src/decorators/ctrl/http/HEAD.cjs +4 -2
- package/src/decorators/ctrl/http/HEAD.mjs +4 -2
- package/src/decorators/ctrl/http/OPTIONS.cjs +4 -2
- package/src/decorators/ctrl/http/OPTIONS.mjs +4 -2
- package/src/decorators/ctrl/http/PATCH.cjs +4 -2
- package/src/decorators/ctrl/http/PATCH.mjs +4 -2
- package/src/decorators/ctrl/http/POST.cjs +4 -2
- package/src/decorators/ctrl/http/POST.mjs +4 -2
- package/src/decorators/ctrl/http/PUT.cjs +4 -2
- package/src/decorators/ctrl/http/PUT.mjs +4 -2
- package/src/decorators/di/Configurable.cjs +3 -1
- package/src/decorators/di/Configurable.mjs +3 -1
- package/src/decorators/di/Inject.cjs +11 -9
- package/src/decorators/di/Inject.mjs +10 -8
- package/src/decorators/dto/Accept.cjs +3 -1
- package/src/decorators/dto/Accept.mjs +3 -1
- package/src/decorators/dto/Expect.cjs +3 -1
- package/src/decorators/dto/Expect.mjs +3 -1
- package/src/decorators/dto/IndexSignature.cjs +3 -1
- package/src/decorators/dto/IndexSignature.mjs +3 -1
- package/src/decorators/dto/Return.cjs +3 -1
- package/src/decorators/dto/Return.mjs +3 -1
- package/src/decorators/orm/AfterInsert.cjs +11 -5
- package/src/decorators/orm/AfterInsert.mjs +17 -11
- package/src/decorators/orm/AfterLoad.cjs +15 -9
- package/src/decorators/orm/AfterLoad.mjs +20 -14
- package/src/decorators/orm/AfterRecover.cjs +15 -9
- package/src/decorators/orm/AfterRecover.mjs +16 -10
- package/src/decorators/orm/AfterRemove.cjs +15 -9
- package/src/decorators/orm/AfterRemove.mjs +16 -10
- package/src/decorators/orm/AfterSoftRemove.cjs +11 -5
- package/src/decorators/orm/AfterSoftRemove.mjs +16 -10
- package/src/decorators/orm/AfterUpdate.cjs +11 -5
- package/src/decorators/orm/AfterUpdate.mjs +18 -12
- package/src/decorators/orm/BeforeInsert.cjs +17 -11
- package/src/decorators/orm/BeforeInsert.mjs +15 -9
- package/src/decorators/orm/BeforeRecover.cjs +18 -12
- package/src/decorators/orm/BeforeRecover.mjs +13 -7
- package/src/decorators/orm/BeforeRemove.cjs +18 -12
- package/src/decorators/orm/BeforeRemove.mjs +13 -7
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -11
- package/src/decorators/orm/BeforeSoftRemove.mjs +13 -7
- package/src/decorators/orm/BeforeUpdate.cjs +15 -9
- package/src/decorators/orm/BeforeUpdate.mjs +16 -10
- package/src/decorators/orm/Check.cjs +11 -5
- package/src/decorators/orm/Check.mjs +11 -5
- package/src/decorators/orm/ChildEntity.cjs +16 -10
- package/src/decorators/orm/ChildEntity.mjs +13 -7
- package/src/decorators/orm/Column.cjs +28 -22
- package/src/decorators/orm/Column.mjs +11 -5
- package/src/decorators/orm/CreateDateColumn.cjs +13 -7
- package/src/decorators/orm/CreateDateColumn.mjs +11 -5
- package/src/decorators/orm/DeleteDateColumn.cjs +13 -7
- package/src/decorators/orm/DeleteDateColumn.mjs +11 -5
- package/src/decorators/orm/Entity.cjs +15 -9
- package/src/decorators/orm/Entity.mjs +17 -11
- package/src/decorators/orm/EventSubscriber.cjs +11 -5
- package/src/decorators/orm/EventSubscriber.mjs +11 -5
- package/src/decorators/orm/Exclusion.cjs +11 -5
- package/src/decorators/orm/Exclusion.mjs +17 -11
- package/src/decorators/orm/Generated.cjs +13 -7
- package/src/decorators/orm/Generated.mjs +17 -11
- package/src/decorators/orm/Index.cjs +19 -13
- package/src/decorators/orm/Index.mjs +29 -23
- package/src/decorators/orm/JoinColumn.cjs +15 -9
- package/src/decorators/orm/JoinColumn.mjs +11 -5
- package/src/decorators/orm/JoinTable.cjs +11 -5
- package/src/decorators/orm/JoinTable.mjs +15 -9
- package/src/decorators/orm/ManyToMany.cjs +18 -12
- package/src/decorators/orm/ManyToMany.mjs +22 -16
- package/src/decorators/orm/ManyToOne.cjs +21 -15
- package/src/decorators/orm/ManyToOne.mjs +22 -16
- package/src/decorators/orm/ObjectIdColumn.cjs +11 -5
- package/src/decorators/orm/ObjectIdColumn.mjs +17 -11
- package/src/decorators/orm/OneToMany.cjs +19 -13
- package/src/decorators/orm/OneToMany.mjs +11 -5
- package/src/decorators/orm/OneToOne.cjs +20 -14
- package/src/decorators/orm/OneToOne.mjs +18 -12
- package/src/decorators/orm/PrimaryColumn.cjs +15 -9
- package/src/decorators/orm/PrimaryColumn.mjs +30 -24
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +11 -5
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +13 -7
- package/src/decorators/orm/RelationId.cjs +16 -10
- package/src/decorators/orm/RelationId.mjs +17 -11
- package/src/decorators/orm/TableInheritance.cjs +13 -7
- package/src/decorators/orm/TableInheritance.mjs +15 -9
- package/src/decorators/orm/Tree.cjs +11 -5
- package/src/decorators/orm/Tree.mjs +11 -5
- package/src/decorators/orm/TreeChildren.cjs +11 -5
- package/src/decorators/orm/TreeChildren.mjs +22 -16
- package/src/decorators/orm/TreeLevelColumn.cjs +11 -5
- package/src/decorators/orm/TreeLevelColumn.mjs +11 -5
- package/src/decorators/orm/TreeParent.cjs +17 -11
- package/src/decorators/orm/TreeParent.mjs +11 -5
- package/src/decorators/orm/Unique.cjs +18 -12
- package/src/decorators/orm/Unique.mjs +11 -5
- package/src/decorators/orm/UpdateDateColumn.cjs +13 -7
- package/src/decorators/orm/UpdateDateColumn.mjs +17 -11
- package/src/decorators/orm/VersionColumn.cjs +11 -5
- package/src/decorators/orm/VersionColumn.mjs +11 -5
- package/src/decorators/orm/ViewColumn.cjs +11 -5
- package/src/decorators/orm/ViewColumn.mjs +11 -5
- package/src/decorators/orm/ViewEntity.cjs +13 -7
- package/src/decorators/orm/ViewEntity.mjs +11 -5
- package/src/decorators/orm/VirtualColumn.cjs +11 -5
- package/src/decorators/orm/VirtualColumn.mjs +15 -9
- package/src/lib/base/BaseObject.cjs +3 -1
- package/src/lib/base/BaseObject.mjs +3 -1
- package/src/lib/base/Context.cjs +3 -1
- package/src/lib/base/Context.mjs +3 -1
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +3 -1
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +3 -1
- package/src/lib/base/internal/ControllerEntrypoint.cjs +1 -1
- package/src/lib/base/internal/ControllerEntrypoint.mjs +1 -1
- package/src/lib/base/internal/DataValidator.cjs +16 -14
- package/src/lib/base/internal/DataValidator.mjs +3 -1
- package/src/lib/base/internal/FlexibleDTO.cjs +3 -1
- package/src/lib/base/internal/FlexibleDTO.mjs +3 -1
- package/src/lib/base/internal/MethodValidation.cjs +18 -16
- package/src/lib/base/internal/MethodValidation.mjs +3 -1
- package/src/lib/base/internal/ModuleConfigLoader.cjs +3 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +24 -22
- package/src/lib/base/internal/ObjectConfiguration.cjs +3 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +3 -1
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +3 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +3 -1
- package/src/lib/base/internal/ObjectType.cjs +3 -1
- package/src/lib/base/internal/ObjectType.mjs +3 -1
- package/src/lib/context/CLIContext.cjs +3 -1
- package/src/lib/context/CLIContext.mjs +3 -1
- package/src/lib/context/HTTPContext.cjs +3 -1
- package/src/lib/context/HTTPContext.mjs +3 -1
- package/src/lib/context/ServiceContext.cjs +3 -1
- package/src/lib/context/ServiceContext.mjs +3 -1
- package/src/lib/core/Application.cjs +19 -13
- package/src/lib/core/Application.mjs +15 -9
- package/src/lib/core/Component.cjs +3 -1
- package/src/lib/core/Component.mjs +3 -1
- package/src/lib/core/Container.cjs +2 -0
- package/src/lib/core/Container.mjs +2 -0
- package/src/lib/core/DTO.cjs +3 -1
- package/src/lib/core/DTO.mjs +3 -1
- package/src/lib/core/Module.cjs +4 -2
- package/src/lib/core/Module.mjs +4 -2
- package/src/lib/core/Provider.cjs +3 -1
- package/src/lib/core/Provider.mjs +3 -1
- package/src/lib/helpers/IsSymbol.cjs +3 -1
- package/src/lib/helpers/IsSymbol.mjs +3 -1
- package/src/lib/helpers/NonceStr.cjs +1 -1
- package/src/lib/helpers/NonceStr.mjs +1 -1
- package/src/lib/helpers/ObjectHash.cjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/RandomString.cjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/ioc/DependencyInjectionContainer.cjs +3 -1
- package/src/lib/ioc/DependencyInjectionContainer.mjs +13 -11
- package/src/lib/ioc/Errors.cjs +3 -1
- package/src/lib/ioc/Errors.mjs +3 -1
- package/src/lib/ioc/ListModules.cjs +104 -102
- package/src/lib/ioc/ListModules.mjs +4 -2
- package/src/lib/ioc/LoadModules.cjs +2 -0
- package/src/lib/ioc/LoadModules.mjs +2 -0
- package/src/lib/ioc/Resolvers.cjs +9 -7
- package/src/lib/ioc/Resolvers.mjs +3 -1
- package/src/lib/ioc/Utils.cjs +3 -1
- package/src/lib/ioc/Utils.mjs +3 -1
- package/src/lib/validation/VLD.cjs +3 -1
- package/src/lib/validation/VLD.mjs +3 -1
- package/src/options/ApplicationOptions.cjs +3 -1
- package/src/options/ApplicationOptions.mjs +3 -1
- package/src/options/LoadAnonymousObjectOptions.cjs +3 -1
- package/src/options/LoadAnonymousObjectOptions.mjs +3 -1
- package/src/options/LoadNamedObjectOptions.cjs +3 -1
- package/src/options/LoadNamedObjectOptions.mjs +3 -1
- package/src/options/LoadObjectOptions.cjs +3 -1
- package/src/options/LoadObjectOptions.mjs +3 -1
- package/src/options/ModuleLoadObjectsOptions.cjs +3 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +3 -1
- package/src/options/ModuleOptions.cjs +3 -1
- package/src/options/ModuleOptions.mjs +3 -1
- package/src/options/OverridableNamedObjectOptions.cjs +3 -1
- package/src/options/OverridableNamedObjectOptions.mjs +3 -1
- package/src/options/OverridableObjectOptions.cjs +3 -1
- package/src/options/OverridableObjectOptions.mjs +3 -1
- package/src/providers/Database.cjs +11 -5
- package/src/providers/Database.mjs +11 -5
- package/src/providers/PasswordHash.cjs +17 -15
- package/src/providers/PasswordHash.mjs +212 -210
- package/vendor/Package.10.cjs +0 -2
- package/vendor/Package.10.mjs +0 -2
- package/vendor/Package.11.cjs +1 -9
- package/vendor/Package.11.mjs +1 -9
- package/vendor/Package.12.cjs +5 -79
- package/vendor/Package.12.mjs +5 -73
- package/vendor/{Package.112.cjs → Package.122.cjs} +5501 -5501
- package/vendor/{Package.112.mjs → Package.122.mjs} +5507 -5507
- package/vendor/Package.13.cjs +7 -1
- package/vendor/Package.13.mjs +7 -1
- package/vendor/Package.132.cjs +87 -0
- package/vendor/Package.132.mjs +79 -0
- package/vendor/Package.14.cjs +1 -14055
- package/vendor/Package.14.mjs +1 -14029
- package/vendor/Package.15.cjs +1 -48245
- package/vendor/Package.15.mjs +1 -48209
- package/vendor/Package.16.cjs +14063 -0
- package/vendor/Package.16.mjs +14035 -0
- package/vendor/Package.17.cjs +3 -0
- package/vendor/Package.17.mjs +1 -0
- package/vendor/Package.18.cjs +48255 -0
- package/vendor/Package.18.mjs +48215 -0
- package/vendor/Package.19.cjs +3 -0
- package/vendor/Package.19.mjs +1 -0
- package/vendor/Package.610.cjs +175 -0
- package/vendor/Package.610.mjs +157 -0
- package/vendor/Package.611.cjs +196 -0
- package/vendor/Package.611.mjs +180 -0
- package/vendor/Package.62.cjs +1 -1
- package/vendor/Package.62.mjs +1 -1
- package/vendor/Package.65.cjs +716 -0
- package/vendor/Package.65.mjs +710 -0
- package/vendor/Package.66.cjs +680 -0
- package/vendor/Package.66.mjs +652 -0
- package/vendor/Package.67.cjs +143 -0
- package/vendor/Package.67.mjs +127 -0
- package/vendor/Package.68.cjs +341 -0
- package/vendor/Package.68.mjs +327 -0
- package/vendor/Package.69.cjs +157 -0
- package/vendor/Package.69.mjs +139 -0
|
@@ -2,9 +2,9 @@ import { _ as t, a as r } from "../../vendor/Package.1.mjs";
|
|
|
2
2
|
|
|
3
3
|
import e from "crypto";
|
|
4
4
|
|
|
5
|
-
import { Provider as
|
|
5
|
+
import { Provider as o } from "../lib/core/Provider.mjs";
|
|
6
6
|
|
|
7
|
-
import { Configurable as
|
|
7
|
+
import { Configurable as i } from "../decorators/di/Configurable.mjs";
|
|
8
8
|
|
|
9
9
|
import { D as n } from "../../vendor/Package.2.mjs";
|
|
10
10
|
|
|
@@ -86,14 +86,14 @@ import "../../vendor/Package.9.mjs";
|
|
|
86
86
|
|
|
87
87
|
import "../../vendor/Package.10.mjs";
|
|
88
88
|
|
|
89
|
-
import "url";
|
|
90
|
-
|
|
91
89
|
import "../lib/ioc/Utils.mjs";
|
|
92
90
|
|
|
93
91
|
import "../lib/ioc/FunctionTokenizer.mjs";
|
|
94
92
|
|
|
95
93
|
import "../lib/ioc/LoadModules.mjs";
|
|
96
94
|
|
|
95
|
+
import "url";
|
|
96
|
+
|
|
97
97
|
import "../lib/ioc/Resolvers.mjs";
|
|
98
98
|
|
|
99
99
|
import "../lib/ioc/ParamParser.mjs";
|
|
@@ -136,6 +136,8 @@ import "../lib/base/internal/DataValidator.mjs";
|
|
|
136
136
|
|
|
137
137
|
import "../lib/validation/VLD.mjs";
|
|
138
138
|
|
|
139
|
+
import "../../vendor/Package.11.mjs";
|
|
140
|
+
|
|
139
141
|
import "../exceptions/dto/InvalidValueException.mjs";
|
|
140
142
|
|
|
141
143
|
import "../lib/helpers/IsHtml.mjs";
|
|
@@ -182,7 +184,7 @@ function p(t, r, e) {
|
|
|
182
184
|
if (typeof r === "function") e = r, r = undefined;
|
|
183
185
|
if (typeof t === "function") e = t, t = undefined;
|
|
184
186
|
if (typeof t === "undefined") t = P; else if (typeof t !== "number") throw Error("illegal arguments: " + typeof t);
|
|
185
|
-
function
|
|
187
|
+
function o(r) {
|
|
186
188
|
j((function() {
|
|
187
189
|
try {
|
|
188
190
|
r(null, f(t));
|
|
@@ -193,14 +195,14 @@ function p(t, r, e) {
|
|
|
193
195
|
}
|
|
194
196
|
if (e) {
|
|
195
197
|
if (typeof e !== "function") throw Error("Illegal callback: " + typeof e);
|
|
196
|
-
|
|
198
|
+
o(e);
|
|
197
199
|
} else return new Promise((function(t, r) {
|
|
198
|
-
|
|
200
|
+
o((function(e, o) {
|
|
199
201
|
if (e) {
|
|
200
202
|
r(e);
|
|
201
203
|
return;
|
|
202
204
|
}
|
|
203
|
-
t(
|
|
205
|
+
t(o);
|
|
204
206
|
}));
|
|
205
207
|
}));
|
|
206
208
|
}
|
|
@@ -212,30 +214,30 @@ function m(t, r) {
|
|
|
212
214
|
return V(t, r);
|
|
213
215
|
}
|
|
214
216
|
|
|
215
|
-
function
|
|
216
|
-
function
|
|
217
|
-
if (typeof t === "string" && typeof r === "number") p(r, (function(r,
|
|
218
|
-
V(t,
|
|
219
|
-
})); else if (typeof t === "string" && typeof r === "string") V(t, r, e,
|
|
217
|
+
function c(t, r, e, o) {
|
|
218
|
+
function i(e) {
|
|
219
|
+
if (typeof t === "string" && typeof r === "number") p(r, (function(r, i) {
|
|
220
|
+
V(t, i, e, o);
|
|
221
|
+
})); else if (typeof t === "string" && typeof r === "string") V(t, r, e, o); else j(e.bind(this, Error("Illegal arguments: " + typeof t + ", " + typeof r)));
|
|
220
222
|
}
|
|
221
223
|
if (e) {
|
|
222
224
|
if (typeof e !== "function") throw Error("Illegal callback: " + typeof e);
|
|
223
|
-
|
|
225
|
+
i(e);
|
|
224
226
|
} else return new Promise((function(t, r) {
|
|
225
|
-
|
|
227
|
+
i((function(e, o) {
|
|
226
228
|
if (e) {
|
|
227
229
|
r(e);
|
|
228
230
|
return;
|
|
229
231
|
}
|
|
230
|
-
t(
|
|
232
|
+
t(o);
|
|
231
233
|
}));
|
|
232
234
|
}));
|
|
233
235
|
}
|
|
234
236
|
|
|
235
|
-
function
|
|
237
|
+
function u(t, r) {
|
|
236
238
|
var e = t.length ^ r.length;
|
|
237
|
-
for (var
|
|
238
|
-
e |= t.charCodeAt(
|
|
239
|
+
for (var o = 0; o < t.length; ++o) {
|
|
240
|
+
e |= t.charCodeAt(o) ^ r.charCodeAt(o);
|
|
239
241
|
}
|
|
240
242
|
return e === 0;
|
|
241
243
|
}
|
|
@@ -243,11 +245,11 @@ function c(t, r) {
|
|
|
243
245
|
function h(t, r) {
|
|
244
246
|
if (typeof t !== "string" || typeof r !== "string") throw Error("Illegal arguments: " + typeof t + ", " + typeof r);
|
|
245
247
|
if (r.length !== 60) return false;
|
|
246
|
-
return
|
|
248
|
+
return u(m(t, r.substring(0, r.length - 31)), r);
|
|
247
249
|
}
|
|
248
250
|
|
|
249
|
-
function d(t, r, e,
|
|
250
|
-
function
|
|
251
|
+
function d(t, r, e, o) {
|
|
252
|
+
function i(e) {
|
|
251
253
|
if (typeof t !== "string" || typeof r !== "string") {
|
|
252
254
|
j(e.bind(this, Error("Illegal arguments: " + typeof t + ", " + typeof r)));
|
|
253
255
|
return;
|
|
@@ -256,30 +258,30 @@ function d(t, r, e, i) {
|
|
|
256
258
|
j(e.bind(this, null, false));
|
|
257
259
|
return;
|
|
258
260
|
}
|
|
259
|
-
|
|
260
|
-
if (t) e(t); else e(null,
|
|
261
|
-
}),
|
|
261
|
+
c(t, r.substring(0, 29), (function(t, o) {
|
|
262
|
+
if (t) e(t); else e(null, u(o, r));
|
|
263
|
+
}), o);
|
|
262
264
|
}
|
|
263
265
|
if (e) {
|
|
264
266
|
if (typeof e !== "function") throw Error("Illegal callback: " + typeof e);
|
|
265
|
-
|
|
267
|
+
i(e);
|
|
266
268
|
} else return new Promise((function(t, r) {
|
|
267
|
-
|
|
269
|
+
i((function(e, o) {
|
|
268
270
|
if (e) {
|
|
269
271
|
r(e);
|
|
270
272
|
return;
|
|
271
273
|
}
|
|
272
|
-
t(
|
|
274
|
+
t(o);
|
|
273
275
|
}));
|
|
274
276
|
}));
|
|
275
277
|
}
|
|
276
278
|
|
|
277
|
-
function
|
|
279
|
+
function g(t) {
|
|
278
280
|
if (typeof t !== "string") throw Error("Illegal arguments: " + typeof t);
|
|
279
281
|
return parseInt(t.split("$")[2], 10);
|
|
280
282
|
}
|
|
281
283
|
|
|
282
|
-
function
|
|
284
|
+
function b(t) {
|
|
283
285
|
if (typeof t !== "string") throw Error("Illegal arguments: " + typeof t);
|
|
284
286
|
if (t.length !== 60) throw Error("Illegal hash length: " + t.length + " != 60");
|
|
285
287
|
return t.substring(0, 29);
|
|
@@ -294,10 +296,10 @@ var j = typeof process !== "undefined" && process && typeof process.nextTick ===
|
|
|
294
296
|
|
|
295
297
|
function v(t) {
|
|
296
298
|
var r = 0, e = 0;
|
|
297
|
-
for (var
|
|
298
|
-
e = t.charCodeAt(
|
|
299
|
-
if (e < 128) r += 1; else if (e < 2048) r += 2; else if ((e & 64512) === 55296 && (t.charCodeAt(
|
|
300
|
-
++
|
|
299
|
+
for (var o = 0; o < t.length; ++o) {
|
|
300
|
+
e = t.charCodeAt(o);
|
|
301
|
+
if (e < 128) r += 1; else if (e < 2048) r += 2; else if ((e & 64512) === 55296 && (t.charCodeAt(o + 1) & 64512) === 56320) {
|
|
302
|
+
++o;
|
|
301
303
|
r += 4;
|
|
302
304
|
} else r += 3;
|
|
303
305
|
}
|
|
@@ -305,29 +307,29 @@ function v(t) {
|
|
|
305
307
|
}
|
|
306
308
|
|
|
307
309
|
function I(t) {
|
|
308
|
-
var r = 0, e,
|
|
309
|
-
var
|
|
310
|
+
var r = 0, e, o;
|
|
311
|
+
var i = new Array(v(t));
|
|
310
312
|
for (var n = 0, s = t.length; n < s; ++n) {
|
|
311
313
|
e = t.charCodeAt(n);
|
|
312
314
|
if (e < 128) {
|
|
313
|
-
|
|
315
|
+
i[r++] = e;
|
|
314
316
|
} else if (e < 2048) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
} else if ((e & 64512) === 55296 && ((
|
|
318
|
-
e = 65536 + ((e & 1023) << 10) + (
|
|
317
|
+
i[r++] = e >> 6 | 192;
|
|
318
|
+
i[r++] = e & 63 | 128;
|
|
319
|
+
} else if ((e & 64512) === 55296 && ((o = t.charCodeAt(n + 1)) & 64512) === 56320) {
|
|
320
|
+
e = 65536 + ((e & 1023) << 10) + (o & 1023);
|
|
319
321
|
++n;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
i[r++] = e >> 18 | 240;
|
|
323
|
+
i[r++] = e >> 12 & 63 | 128;
|
|
324
|
+
i[r++] = e >> 6 & 63 | 128;
|
|
325
|
+
i[r++] = e & 63 | 128;
|
|
324
326
|
} else {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
327
|
+
i[r++] = e >> 12 | 224;
|
|
328
|
+
i[r++] = e >> 6 & 63 | 128;
|
|
329
|
+
i[r++] = e & 63 | 128;
|
|
328
330
|
}
|
|
329
331
|
}
|
|
330
|
-
return
|
|
332
|
+
return i;
|
|
331
333
|
}
|
|
332
334
|
|
|
333
335
|
var w = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split("");
|
|
@@ -335,36 +337,36 @@ var w = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split
|
|
|
335
337
|
var k = [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, -1, -1, -1, -1, -1 ];
|
|
336
338
|
|
|
337
339
|
function C(t, r) {
|
|
338
|
-
var e = 0,
|
|
340
|
+
var e = 0, o = [], i, n;
|
|
339
341
|
if (r <= 0 || r > t.length) throw Error("Illegal len: " + r);
|
|
340
342
|
while (e < r) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
i = t[e++] & 255;
|
|
344
|
+
o.push(w[i >> 2 & 63]);
|
|
345
|
+
i = (i & 3) << 4;
|
|
344
346
|
if (e >= r) {
|
|
345
|
-
|
|
347
|
+
o.push(w[i & 63]);
|
|
346
348
|
break;
|
|
347
349
|
}
|
|
348
350
|
n = t[e++] & 255;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
351
|
+
i |= n >> 4 & 15;
|
|
352
|
+
o.push(w[i & 63]);
|
|
353
|
+
i = (n & 15) << 2;
|
|
352
354
|
if (e >= r) {
|
|
353
|
-
|
|
355
|
+
o.push(w[i & 63]);
|
|
354
356
|
break;
|
|
355
357
|
}
|
|
356
358
|
n = t[e++] & 255;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
i |= n >> 6 & 3;
|
|
360
|
+
o.push(w[i & 63]);
|
|
361
|
+
o.push(w[n & 63]);
|
|
360
362
|
}
|
|
361
|
-
return
|
|
363
|
+
return o.join("");
|
|
362
364
|
}
|
|
363
365
|
|
|
364
366
|
function E(t, r) {
|
|
365
|
-
var e = 0,
|
|
367
|
+
var e = 0, o = t.length, i = 0, n = [], s, a, l, f, p, m;
|
|
366
368
|
if (r <= 0) throw Error("Illegal len: " + r);
|
|
367
|
-
while (e <
|
|
369
|
+
while (e < o - 1 && i < r) {
|
|
368
370
|
m = t.charCodeAt(e++);
|
|
369
371
|
s = m < k.length ? k[m] : -1;
|
|
370
372
|
m = t.charCodeAt(e++);
|
|
@@ -373,24 +375,24 @@ function E(t, r) {
|
|
|
373
375
|
p = s << 2 >>> 0;
|
|
374
376
|
p |= (a & 48) >> 4;
|
|
375
377
|
n.push(String.fromCharCode(p));
|
|
376
|
-
if (++
|
|
378
|
+
if (++i >= r || e >= o) break;
|
|
377
379
|
m = t.charCodeAt(e++);
|
|
378
380
|
l = m < k.length ? k[m] : -1;
|
|
379
381
|
if (l == -1) break;
|
|
380
382
|
p = (a & 15) << 4 >>> 0;
|
|
381
383
|
p |= (l & 60) >> 2;
|
|
382
384
|
n.push(String.fromCharCode(p));
|
|
383
|
-
if (++
|
|
385
|
+
if (++i >= r || e >= o) break;
|
|
384
386
|
m = t.charCodeAt(e++);
|
|
385
387
|
f = m < k.length ? k[m] : -1;
|
|
386
388
|
p = (l & 3) << 6 >>> 0;
|
|
387
389
|
p |= f;
|
|
388
390
|
n.push(String.fromCharCode(p));
|
|
389
|
-
++
|
|
391
|
+
++i;
|
|
390
392
|
}
|
|
391
|
-
var
|
|
392
|
-
for (e = 0; e <
|
|
393
|
-
return
|
|
393
|
+
var c = [];
|
|
394
|
+
for (e = 0; e < i; e++) c.push(n[e].charCodeAt(0));
|
|
395
|
+
return c;
|
|
394
396
|
}
|
|
395
397
|
|
|
396
398
|
var A = 16;
|
|
@@ -407,132 +409,132 @@ var O = [ 3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670,
|
|
|
407
409
|
|
|
408
410
|
var D = [ 1332899944, 1700884034, 1701343084, 1684370003, 1668446532, 1869963892 ];
|
|
409
411
|
|
|
410
|
-
function L(t, r, e,
|
|
411
|
-
var
|
|
412
|
+
function L(t, r, e, o) {
|
|
413
|
+
var i, n = t[r], s = t[r + 1];
|
|
412
414
|
n ^= e[0];
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
s ^=
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
n ^=
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
s ^=
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
n ^=
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
s ^=
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
n ^=
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
s ^=
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
n ^=
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
s ^=
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
n ^=
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
s ^=
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
n ^=
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
s ^=
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
n ^=
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
s ^=
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
n ^=
|
|
415
|
+
i = o[n >>> 24];
|
|
416
|
+
i += o[256 | n >> 16 & 255];
|
|
417
|
+
i ^= o[512 | n >> 8 & 255];
|
|
418
|
+
i += o[768 | n & 255];
|
|
419
|
+
s ^= i ^ e[1];
|
|
420
|
+
i = o[s >>> 24];
|
|
421
|
+
i += o[256 | s >> 16 & 255];
|
|
422
|
+
i ^= o[512 | s >> 8 & 255];
|
|
423
|
+
i += o[768 | s & 255];
|
|
424
|
+
n ^= i ^ e[2];
|
|
425
|
+
i = o[n >>> 24];
|
|
426
|
+
i += o[256 | n >> 16 & 255];
|
|
427
|
+
i ^= o[512 | n >> 8 & 255];
|
|
428
|
+
i += o[768 | n & 255];
|
|
429
|
+
s ^= i ^ e[3];
|
|
430
|
+
i = o[s >>> 24];
|
|
431
|
+
i += o[256 | s >> 16 & 255];
|
|
432
|
+
i ^= o[512 | s >> 8 & 255];
|
|
433
|
+
i += o[768 | s & 255];
|
|
434
|
+
n ^= i ^ e[4];
|
|
435
|
+
i = o[n >>> 24];
|
|
436
|
+
i += o[256 | n >> 16 & 255];
|
|
437
|
+
i ^= o[512 | n >> 8 & 255];
|
|
438
|
+
i += o[768 | n & 255];
|
|
439
|
+
s ^= i ^ e[5];
|
|
440
|
+
i = o[s >>> 24];
|
|
441
|
+
i += o[256 | s >> 16 & 255];
|
|
442
|
+
i ^= o[512 | s >> 8 & 255];
|
|
443
|
+
i += o[768 | s & 255];
|
|
444
|
+
n ^= i ^ e[6];
|
|
445
|
+
i = o[n >>> 24];
|
|
446
|
+
i += o[256 | n >> 16 & 255];
|
|
447
|
+
i ^= o[512 | n >> 8 & 255];
|
|
448
|
+
i += o[768 | n & 255];
|
|
449
|
+
s ^= i ^ e[7];
|
|
450
|
+
i = o[s >>> 24];
|
|
451
|
+
i += o[256 | s >> 16 & 255];
|
|
452
|
+
i ^= o[512 | s >> 8 & 255];
|
|
453
|
+
i += o[768 | s & 255];
|
|
454
|
+
n ^= i ^ e[8];
|
|
455
|
+
i = o[n >>> 24];
|
|
456
|
+
i += o[256 | n >> 16 & 255];
|
|
457
|
+
i ^= o[512 | n >> 8 & 255];
|
|
458
|
+
i += o[768 | n & 255];
|
|
459
|
+
s ^= i ^ e[9];
|
|
460
|
+
i = o[s >>> 24];
|
|
461
|
+
i += o[256 | s >> 16 & 255];
|
|
462
|
+
i ^= o[512 | s >> 8 & 255];
|
|
463
|
+
i += o[768 | s & 255];
|
|
464
|
+
n ^= i ^ e[10];
|
|
465
|
+
i = o[n >>> 24];
|
|
466
|
+
i += o[256 | n >> 16 & 255];
|
|
467
|
+
i ^= o[512 | n >> 8 & 255];
|
|
468
|
+
i += o[768 | n & 255];
|
|
469
|
+
s ^= i ^ e[11];
|
|
470
|
+
i = o[s >>> 24];
|
|
471
|
+
i += o[256 | s >> 16 & 255];
|
|
472
|
+
i ^= o[512 | s >> 8 & 255];
|
|
473
|
+
i += o[768 | s & 255];
|
|
474
|
+
n ^= i ^ e[12];
|
|
475
|
+
i = o[n >>> 24];
|
|
476
|
+
i += o[256 | n >> 16 & 255];
|
|
477
|
+
i ^= o[512 | n >> 8 & 255];
|
|
478
|
+
i += o[768 | n & 255];
|
|
479
|
+
s ^= i ^ e[13];
|
|
480
|
+
i = o[s >>> 24];
|
|
481
|
+
i += o[256 | s >> 16 & 255];
|
|
482
|
+
i ^= o[512 | s >> 8 & 255];
|
|
483
|
+
i += o[768 | s & 255];
|
|
484
|
+
n ^= i ^ e[14];
|
|
485
|
+
i = o[n >>> 24];
|
|
486
|
+
i += o[256 | n >> 16 & 255];
|
|
487
|
+
i ^= o[512 | n >> 8 & 255];
|
|
488
|
+
i += o[768 | n & 255];
|
|
489
|
+
s ^= i ^ e[15];
|
|
490
|
+
i = o[s >>> 24];
|
|
491
|
+
i += o[256 | s >> 16 & 255];
|
|
492
|
+
i ^= o[512 | s >> 8 & 255];
|
|
493
|
+
i += o[768 | s & 255];
|
|
494
|
+
n ^= i ^ e[16];
|
|
493
495
|
t[r] = s ^ e[x + 1];
|
|
494
496
|
t[r + 1] = n;
|
|
495
497
|
return t;
|
|
496
498
|
}
|
|
497
499
|
|
|
498
500
|
function R(t, r) {
|
|
499
|
-
for (var e = 0,
|
|
501
|
+
for (var e = 0, o = 0; e < 4; ++e) o = o << 8 | t[r] & 255, r = (r + 1) % t.length;
|
|
500
502
|
return {
|
|
501
|
-
key:
|
|
503
|
+
key: o,
|
|
502
504
|
offp: r
|
|
503
505
|
};
|
|
504
506
|
}
|
|
505
507
|
|
|
506
508
|
function $(t, r, e) {
|
|
507
|
-
var
|
|
508
|
-
for (var l = 0; l < n; l++) a = R(t,
|
|
509
|
-
for (l = 0; l < n; l += 2)
|
|
510
|
-
for (l = 0; l < s; l += 2)
|
|
509
|
+
var o = 0, i = [ 0, 0 ], n = r.length, s = e.length, a;
|
|
510
|
+
for (var l = 0; l < n; l++) a = R(t, o), o = a.offp, r[l] = r[l] ^ a.key;
|
|
511
|
+
for (l = 0; l < n; l += 2) i = L(i, 0, r, e), r[l] = i[0], r[l + 1] = i[1];
|
|
512
|
+
for (l = 0; l < s; l += 2) i = L(i, 0, r, e), e[l] = i[0], e[l + 1] = i[1];
|
|
511
513
|
}
|
|
512
514
|
|
|
513
|
-
function N(t, r, e,
|
|
514
|
-
var
|
|
515
|
-
for (var f = 0; f < s; f++) l = R(r,
|
|
516
|
-
|
|
517
|
-
for (f = 0; f < s; f += 2) l = R(t,
|
|
518
|
-
|
|
519
|
-
for (f = 0; f < a; f += 2) l = R(t,
|
|
520
|
-
|
|
515
|
+
function N(t, r, e, o) {
|
|
516
|
+
var i = 0, n = [ 0, 0 ], s = e.length, a = o.length, l;
|
|
517
|
+
for (var f = 0; f < s; f++) l = R(r, i), i = l.offp, e[f] = e[f] ^ l.key;
|
|
518
|
+
i = 0;
|
|
519
|
+
for (f = 0; f < s; f += 2) l = R(t, i), i = l.offp, n[0] ^= l.key, l = R(t, i),
|
|
520
|
+
i = l.offp, n[1] ^= l.key, n = L(n, 0, e, o), e[f] = n[0], e[f + 1] = n[1];
|
|
521
|
+
for (f = 0; f < a; f += 2) l = R(t, i), i = l.offp, n[0] ^= l.key, l = R(t, i),
|
|
522
|
+
i = l.offp, n[1] ^= l.key, n = L(n, 0, e, o), o[f] = n[0], o[f + 1] = n[1];
|
|
521
523
|
}
|
|
522
524
|
|
|
523
|
-
function T(t, r, e,
|
|
525
|
+
function T(t, r, e, o, i) {
|
|
524
526
|
var n = D.slice(), s = n.length, a;
|
|
525
527
|
if (e < 4 || e > 31) {
|
|
526
528
|
a = Error("Illegal number of rounds (4-31): " + e);
|
|
527
|
-
if (
|
|
528
|
-
j(
|
|
529
|
+
if (o) {
|
|
530
|
+
j(o.bind(this, a));
|
|
529
531
|
return;
|
|
530
532
|
} else throw a;
|
|
531
533
|
}
|
|
532
534
|
if (r.length !== A) {
|
|
533
535
|
a = Error("Illegal salt length: " + r.length + " != " + A);
|
|
534
|
-
if (
|
|
535
|
-
j(
|
|
536
|
+
if (o) {
|
|
537
|
+
j(o.bind(this, a));
|
|
536
538
|
return;
|
|
537
539
|
} else throw a;
|
|
538
540
|
}
|
|
@@ -546,8 +548,8 @@ function T(t, r, e, i, o) {
|
|
|
546
548
|
f = O.slice();
|
|
547
549
|
}
|
|
548
550
|
N(r, t, l, f);
|
|
549
|
-
function
|
|
550
|
-
if (
|
|
551
|
+
function c() {
|
|
552
|
+
if (i) i(p / e);
|
|
551
553
|
if (p < e) {
|
|
552
554
|
var a = Date.now();
|
|
553
555
|
for (;p < e; ) {
|
|
@@ -558,63 +560,63 @@ function T(t, r, e, i, o) {
|
|
|
558
560
|
}
|
|
559
561
|
} else {
|
|
560
562
|
for (p = 0; p < 64; p++) for (m = 0; m < s >> 1; m++) L(n, m << 1, l, f);
|
|
561
|
-
var
|
|
562
|
-
for (p = 0; p < s; p++)
|
|
563
|
-
|
|
564
|
-
if (
|
|
565
|
-
|
|
563
|
+
var u = [];
|
|
564
|
+
for (p = 0; p < s; p++) u.push((n[p] >> 24 & 255) >>> 0), u.push((n[p] >> 16 & 255) >>> 0),
|
|
565
|
+
u.push((n[p] >> 8 & 255) >>> 0), u.push((n[p] & 255) >>> 0);
|
|
566
|
+
if (o) {
|
|
567
|
+
o(null, u);
|
|
566
568
|
return;
|
|
567
|
-
} else return
|
|
569
|
+
} else return u;
|
|
568
570
|
}
|
|
569
|
-
if (
|
|
571
|
+
if (o) j(c);
|
|
570
572
|
}
|
|
571
|
-
if (typeof
|
|
572
|
-
|
|
573
|
+
if (typeof o !== "undefined") {
|
|
574
|
+
c();
|
|
573
575
|
} else {
|
|
574
|
-
var
|
|
575
|
-
while (true) if (typeof (
|
|
576
|
+
var u;
|
|
577
|
+
while (true) if (typeof (u = c()) !== "undefined") return u || [];
|
|
576
578
|
}
|
|
577
579
|
}
|
|
578
580
|
|
|
579
|
-
function V(t, r, e,
|
|
580
|
-
var
|
|
581
|
+
function V(t, r, e, o) {
|
|
582
|
+
var i;
|
|
581
583
|
if (typeof t !== "string" || typeof r !== "string") {
|
|
582
|
-
|
|
584
|
+
i = Error("Invalid string / salt: Not a string");
|
|
583
585
|
if (e) {
|
|
584
|
-
j(e.bind(this,
|
|
586
|
+
j(e.bind(this, i));
|
|
585
587
|
return;
|
|
586
|
-
} else throw
|
|
588
|
+
} else throw i;
|
|
587
589
|
}
|
|
588
590
|
var n, s;
|
|
589
591
|
if (r.charAt(0) !== "$" || r.charAt(1) !== "2") {
|
|
590
|
-
|
|
592
|
+
i = Error("Invalid salt version: " + r.substring(0, 2));
|
|
591
593
|
if (e) {
|
|
592
|
-
j(e.bind(this,
|
|
594
|
+
j(e.bind(this, i));
|
|
593
595
|
return;
|
|
594
|
-
} else throw
|
|
596
|
+
} else throw i;
|
|
595
597
|
}
|
|
596
598
|
if (r.charAt(2) === "$") n = String.fromCharCode(0), s = 3; else {
|
|
597
599
|
n = r.charAt(2);
|
|
598
600
|
if (n !== "a" && n !== "b" && n !== "y" || r.charAt(3) !== "$") {
|
|
599
|
-
|
|
601
|
+
i = Error("Invalid salt revision: " + r.substring(2, 4));
|
|
600
602
|
if (e) {
|
|
601
|
-
j(e.bind(this,
|
|
603
|
+
j(e.bind(this, i));
|
|
602
604
|
return;
|
|
603
|
-
} else throw
|
|
605
|
+
} else throw i;
|
|
604
606
|
}
|
|
605
607
|
s = 4;
|
|
606
608
|
}
|
|
607
609
|
if (r.charAt(s + 2) > "$") {
|
|
608
|
-
|
|
610
|
+
i = Error("Missing salt rounds");
|
|
609
611
|
if (e) {
|
|
610
|
-
j(e.bind(this,
|
|
612
|
+
j(e.bind(this, i));
|
|
611
613
|
return;
|
|
612
|
-
} else throw
|
|
614
|
+
} else throw i;
|
|
613
615
|
}
|
|
614
616
|
var a = parseInt(r.substring(s, s + 1), 10) * 10, l = parseInt(r.substring(s + 1, s + 2), 10), f = a + l, p = r.substring(s + 3, s + 25);
|
|
615
617
|
t += n >= "a" ? "\0" : "";
|
|
616
|
-
var m = I(t),
|
|
617
|
-
function
|
|
618
|
+
var m = I(t), c = E(p, A);
|
|
619
|
+
function u(t) {
|
|
618
620
|
var r = [];
|
|
619
621
|
r.push("$2");
|
|
620
622
|
if (n >= "a") r.push(n);
|
|
@@ -622,14 +624,14 @@ function V(t, r, e, i) {
|
|
|
622
624
|
if (f < 10) r.push("0");
|
|
623
625
|
r.push(f.toString());
|
|
624
626
|
r.push("$");
|
|
625
|
-
r.push(C(
|
|
627
|
+
r.push(C(c, c.length));
|
|
626
628
|
r.push(C(t, D.length * 4 - 1));
|
|
627
629
|
return r.join("");
|
|
628
630
|
}
|
|
629
|
-
if (typeof e == "undefined") return
|
|
630
|
-
T(m,
|
|
631
|
-
if (t) e(t, null); else e(null,
|
|
632
|
-
}),
|
|
631
|
+
if (typeof e == "undefined") return u(T(m, c, f)); else {
|
|
632
|
+
T(m, c, f, (function(t, r) {
|
|
633
|
+
if (t) e(t, null); else e(null, u(r));
|
|
634
|
+
}), o);
|
|
633
635
|
}
|
|
634
636
|
}
|
|
635
637
|
|
|
@@ -646,17 +648,17 @@ const H = {
|
|
|
646
648
|
genSaltSync: f,
|
|
647
649
|
genSalt: p,
|
|
648
650
|
hashSync: m,
|
|
649
|
-
hash:
|
|
651
|
+
hash: c,
|
|
650
652
|
compareSync: h,
|
|
651
653
|
compare: d,
|
|
652
|
-
getRounds:
|
|
653
|
-
getSalt:
|
|
654
|
+
getRounds: g,
|
|
655
|
+
getSalt: b,
|
|
654
656
|
truncates: y,
|
|
655
657
|
encodeBase64: B,
|
|
656
658
|
decodeBase64: F
|
|
657
659
|
};
|
|
658
660
|
|
|
659
|
-
class PasswordHash extends
|
|
661
|
+
class PasswordHash extends o {
|
|
660
662
|
#t;
|
|
661
663
|
get salt() {
|
|
662
664
|
return this.#t;
|
|
@@ -672,6 +674,6 @@ class PasswordHash extends i {
|
|
|
672
674
|
}
|
|
673
675
|
}
|
|
674
676
|
|
|
675
|
-
t([
|
|
677
|
+
t([ i(n.Number().integer().positive().optional().default(10)), r("design:type", Number) ], PasswordHash.prototype, "saltRounds", void 0);
|
|
676
678
|
|
|
677
679
|
export { PasswordHash };
|