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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("../../../lib/helpers/URLBuilder.cjs");
|
|
10
|
+
|
|
11
|
+
require("buffer");
|
|
12
|
+
|
|
13
|
+
require("../../../../vendor/Package.5.cjs");
|
|
14
|
+
|
|
15
|
+
async function s(s) {
|
|
16
|
+
try {
|
|
17
|
+
require.resolve("memjs");
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw new Error('MemJS package is required for this driver. Run "npm install memjs".');
|
|
20
|
+
}
|
|
21
|
+
const t = (await Promise.resolve().then((() => require("../../../../vendor/Package.67.cjs")))).KeyvMemcache;
|
|
22
|
+
const a = new r.URLBuilder;
|
|
23
|
+
a.host = s.host;
|
|
24
|
+
a.port = s.port;
|
|
25
|
+
a.username = s.username;
|
|
26
|
+
a.password = s.password;
|
|
27
|
+
return new e.index_default({
|
|
28
|
+
store: new t(a.toString()),
|
|
29
|
+
namespace: s.namespace
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.CreateMemcacheCacheAdapter = s;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { i as e } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import { URLBuilder as r } from "../../../lib/helpers/URLBuilder.mjs";
|
|
4
|
+
|
|
5
|
+
import "buffer";
|
|
6
|
+
|
|
7
|
+
import "../../../../vendor/Package.5.mjs";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// -- Shims --
|
|
11
|
+
import cjsUrl from 'node:url';
|
|
12
|
+
import cjsPath from 'node:path';
|
|
13
|
+
import cjsModule from 'node:module';
|
|
14
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
16
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
17
|
+
async function o(o) {
|
|
18
|
+
try {
|
|
19
|
+
require.resolve("memjs");
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw new Error('MemJS package is required for this driver. Run "npm install memjs".');
|
|
22
|
+
}
|
|
23
|
+
const s = (await import("../../../../vendor/Package.67.mjs")).KeyvMemcache;
|
|
24
|
+
const a = new r;
|
|
25
|
+
a.host = o.host;
|
|
26
|
+
a.port = o.port;
|
|
27
|
+
a.username = o.username;
|
|
28
|
+
a.password = o.password;
|
|
29
|
+
return new e({
|
|
30
|
+
store: new s(a.toString()),
|
|
31
|
+
namespace: o.namespace
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { o as CreateMemcacheCacheAdapter };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("../../../lib/helpers/URLBuilder.cjs");
|
|
10
|
+
|
|
11
|
+
require("buffer");
|
|
12
|
+
|
|
13
|
+
require("../../../../vendor/Package.5.cjs");
|
|
14
|
+
|
|
15
|
+
async function o(o) {
|
|
16
|
+
try {
|
|
17
|
+
require.resolve("mongodb");
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw new Error('MongoDB package is required for this driver. Run "npm install mongodb".');
|
|
20
|
+
}
|
|
21
|
+
const n = (await Promise.resolve().then((() => require("../../../../vendor/Package.68.cjs")))).KeyvMongo;
|
|
22
|
+
const t = new r.URLBuilder;
|
|
23
|
+
t.protocol = "mongodb";
|
|
24
|
+
t.host = o.host;
|
|
25
|
+
t.port = o.port;
|
|
26
|
+
t.username = o.username;
|
|
27
|
+
t.password = o.password;
|
|
28
|
+
return new e.index_default({
|
|
29
|
+
store: new n(t.toString(), {
|
|
30
|
+
db: o.database,
|
|
31
|
+
namespace: o.namespace,
|
|
32
|
+
collection: o.collection
|
|
33
|
+
}),
|
|
34
|
+
namespace: o.namespace
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.CreateMongoCacheAdapter = o;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { i as o } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import { URLBuilder as e } from "../../../lib/helpers/URLBuilder.mjs";
|
|
4
|
+
|
|
5
|
+
import "buffer";
|
|
6
|
+
|
|
7
|
+
import "../../../../vendor/Package.5.mjs";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// -- Shims --
|
|
11
|
+
import cjsUrl from 'node:url';
|
|
12
|
+
import cjsPath from 'node:path';
|
|
13
|
+
import cjsModule from 'node:module';
|
|
14
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
16
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
17
|
+
async function r(r) {
|
|
18
|
+
try {
|
|
19
|
+
require.resolve("mongodb");
|
|
20
|
+
} catch (o) {
|
|
21
|
+
throw new Error('MongoDB package is required for this driver. Run "npm install mongodb".');
|
|
22
|
+
}
|
|
23
|
+
const n = (await import("../../../../vendor/Package.68.mjs")).KeyvMongo;
|
|
24
|
+
const a = new e;
|
|
25
|
+
a.protocol = "mongodb";
|
|
26
|
+
a.host = r.host;
|
|
27
|
+
a.port = r.port;
|
|
28
|
+
a.username = r.username;
|
|
29
|
+
a.password = r.password;
|
|
30
|
+
return new o({
|
|
31
|
+
store: new n(a.toString(), {
|
|
32
|
+
db: r.database,
|
|
33
|
+
namespace: r.namespace,
|
|
34
|
+
collection: r.collection
|
|
35
|
+
}),
|
|
36
|
+
namespace: r.namespace
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { r as CreateMongoCacheAdapter };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
require("buffer");
|
|
10
|
+
|
|
11
|
+
async function r(r) {
|
|
12
|
+
try {
|
|
13
|
+
require.resolve("mysql2");
|
|
14
|
+
} catch (e) {
|
|
15
|
+
throw new Error('MySQL2 package is required for this driver. Run "npm install mysql2".');
|
|
16
|
+
}
|
|
17
|
+
const a = (await Promise.resolve().then((() => require("../../../../vendor/Package.611.cjs")))).KeyvMysql;
|
|
18
|
+
return new e.index_default({
|
|
19
|
+
store: new a({
|
|
20
|
+
host: r.host,
|
|
21
|
+
port: r.port,
|
|
22
|
+
user: r.username,
|
|
23
|
+
password: r.password,
|
|
24
|
+
database: r.database,
|
|
25
|
+
table: r.table
|
|
26
|
+
}),
|
|
27
|
+
namespace: r.namespace
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.CreateMysqlCacheAdapter = r;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { i as e } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import "buffer";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// -- Shims --
|
|
7
|
+
import cjsUrl from 'node:url';
|
|
8
|
+
import cjsPath from 'node:path';
|
|
9
|
+
import cjsModule from 'node:module';
|
|
10
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
12
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
13
|
+
async function r(r) {
|
|
14
|
+
try {
|
|
15
|
+
require.resolve("mysql2");
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw new Error('MySQL2 package is required for this driver. Run "npm install mysql2".');
|
|
18
|
+
}
|
|
19
|
+
const a = (await import("../../../../vendor/Package.611.mjs")).KeyvMysql;
|
|
20
|
+
return new e({
|
|
21
|
+
store: new a({
|
|
22
|
+
host: r.host,
|
|
23
|
+
port: r.port,
|
|
24
|
+
user: r.username,
|
|
25
|
+
password: r.password,
|
|
26
|
+
database: r.database,
|
|
27
|
+
table: r.table
|
|
28
|
+
}),
|
|
29
|
+
namespace: r.namespace
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { r as CreateMysqlCacheAdapter };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("../../../lib/helpers/URLBuilder.cjs");
|
|
10
|
+
|
|
11
|
+
require("buffer");
|
|
12
|
+
|
|
13
|
+
require("../../../../vendor/Package.5.cjs");
|
|
14
|
+
|
|
15
|
+
async function s(s) {
|
|
16
|
+
try {
|
|
17
|
+
require.resolve("pg");
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw new Error('Node-Postgres package is required for this driver. Run "npm install pg".');
|
|
20
|
+
}
|
|
21
|
+
const t = (await Promise.resolve().then((() => require("../../../../vendor/Package.610.cjs")))).KeyvPostgres;
|
|
22
|
+
const a = new r.URLBuilder;
|
|
23
|
+
a.protocol = "postgresql";
|
|
24
|
+
a.host = s.host;
|
|
25
|
+
a.port = s.port;
|
|
26
|
+
a.username = s.username;
|
|
27
|
+
a.password = s.password;
|
|
28
|
+
a.pathname = s.database;
|
|
29
|
+
return new e.index_default({
|
|
30
|
+
store: new t({
|
|
31
|
+
uri: a.toString(),
|
|
32
|
+
table: s.table,
|
|
33
|
+
schema: s.schema,
|
|
34
|
+
max: s.maxPoolSize
|
|
35
|
+
}),
|
|
36
|
+
namespace: s.namespace
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.CreatePostgresCacheAdapter = s;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { i as e } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import { URLBuilder as r } from "../../../lib/helpers/URLBuilder.mjs";
|
|
4
|
+
|
|
5
|
+
import "buffer";
|
|
6
|
+
|
|
7
|
+
import "../../../../vendor/Package.5.mjs";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// -- Shims --
|
|
11
|
+
import cjsUrl from 'node:url';
|
|
12
|
+
import cjsPath from 'node:path';
|
|
13
|
+
import cjsModule from 'node:module';
|
|
14
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
16
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
17
|
+
async function o(o) {
|
|
18
|
+
try {
|
|
19
|
+
require.resolve("pg");
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw new Error('Node-Postgres package is required for this driver. Run "npm install pg".');
|
|
22
|
+
}
|
|
23
|
+
const a = (await import("../../../../vendor/Package.610.mjs")).KeyvPostgres;
|
|
24
|
+
const s = new r;
|
|
25
|
+
s.protocol = "postgresql";
|
|
26
|
+
s.host = o.host;
|
|
27
|
+
s.port = o.port;
|
|
28
|
+
s.username = o.username;
|
|
29
|
+
s.password = o.password;
|
|
30
|
+
s.pathname = o.database;
|
|
31
|
+
return new e({
|
|
32
|
+
store: new a({
|
|
33
|
+
uri: s.toString(),
|
|
34
|
+
table: o.table,
|
|
35
|
+
schema: o.schema,
|
|
36
|
+
max: o.maxPoolSize
|
|
37
|
+
}),
|
|
38
|
+
namespace: o.namespace
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { o as CreatePostgresCacheAdapter };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
require("buffer");
|
|
10
|
+
|
|
11
|
+
async function r(r) {
|
|
12
|
+
try {
|
|
13
|
+
require.resolve("redis");
|
|
14
|
+
} catch (e) {
|
|
15
|
+
throw new Error('Node-Redis package is required for this driver. Run "npm install redis".');
|
|
16
|
+
}
|
|
17
|
+
const t = (await Promise.resolve().then((() => require("../../../../vendor/Package.66.cjs")))).default;
|
|
18
|
+
return new e.index_default({
|
|
19
|
+
store: new t({
|
|
20
|
+
username: r.username,
|
|
21
|
+
password: r.password,
|
|
22
|
+
database: r.database,
|
|
23
|
+
socket: {
|
|
24
|
+
host: r.host,
|
|
25
|
+
port: r.port,
|
|
26
|
+
tls: r.tls,
|
|
27
|
+
keepAlive: r.keepAlive,
|
|
28
|
+
reconnectStrategy: r.reconnect ? 10 : false
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
namespace: r.namespace,
|
|
32
|
+
keyPrefixSeparator: r.keyPrefixSeparator,
|
|
33
|
+
clearBatchSize: r.clearBatchSize,
|
|
34
|
+
useUnlink: r.useUnlink,
|
|
35
|
+
noNamespaceAffectsAll: r.noNamespaceAffectsAll,
|
|
36
|
+
connectionTimeout: r.connectTimeout,
|
|
37
|
+
throwOnConnectError: r.throwOnConnectError
|
|
38
|
+
}),
|
|
39
|
+
namespace: r.namespace
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.CreateRedisCacheAdapter = r;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { i as e } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import "buffer";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// -- Shims --
|
|
7
|
+
import cjsUrl from 'node:url';
|
|
8
|
+
import cjsPath from 'node:path';
|
|
9
|
+
import cjsModule from 'node:module';
|
|
10
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
12
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
13
|
+
async function r(r) {
|
|
14
|
+
try {
|
|
15
|
+
require.resolve("redis");
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw new Error('Node-Redis package is required for this driver. Run "npm install redis".');
|
|
18
|
+
}
|
|
19
|
+
const a = (await import("../../../../vendor/Package.66.mjs")).default;
|
|
20
|
+
return new e({
|
|
21
|
+
store: new a({
|
|
22
|
+
username: r.username,
|
|
23
|
+
password: r.password,
|
|
24
|
+
database: r.database,
|
|
25
|
+
socket: {
|
|
26
|
+
host: r.host,
|
|
27
|
+
port: r.port,
|
|
28
|
+
tls: r.tls,
|
|
29
|
+
keepAlive: r.keepAlive,
|
|
30
|
+
reconnectStrategy: r.reconnect ? 10 : false
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
namespace: r.namespace,
|
|
34
|
+
keyPrefixSeparator: r.keyPrefixSeparator,
|
|
35
|
+
clearBatchSize: r.clearBatchSize,
|
|
36
|
+
useUnlink: r.useUnlink,
|
|
37
|
+
noNamespaceAffectsAll: r.noNamespaceAffectsAll,
|
|
38
|
+
connectionTimeout: r.connectTimeout,
|
|
39
|
+
throwOnConnectError: r.throwOnConnectError
|
|
40
|
+
}),
|
|
41
|
+
namespace: r.namespace
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { r as CreateRedisCacheAdapter };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.65.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("../../../lib/helpers/URLBuilder.cjs");
|
|
10
|
+
|
|
11
|
+
require("buffer");
|
|
12
|
+
|
|
13
|
+
require("../../../../vendor/Package.5.cjs");
|
|
14
|
+
|
|
15
|
+
async function t(t) {
|
|
16
|
+
try {
|
|
17
|
+
require.resolve("sqlite3");
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw new Error('SQLite3 package is required for this driver. Run "npm install sqlite3".');
|
|
20
|
+
}
|
|
21
|
+
const i = (await Promise.resolve().then((() => require("../../../../vendor/Package.69.cjs")))).KeyvSqlite;
|
|
22
|
+
const a = new r.URLBuilder;
|
|
23
|
+
a.protocol = "sqlite";
|
|
24
|
+
a.pathname = t.database;
|
|
25
|
+
return new e.index_default({
|
|
26
|
+
store: new i({
|
|
27
|
+
uri: a.toString(),
|
|
28
|
+
table: t.table,
|
|
29
|
+
busyTimeout: t.busyTimeout
|
|
30
|
+
}),
|
|
31
|
+
namespace: t.namespace
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CreateSqliteCacheAdapter = t;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { i as e } from "../../../../vendor/Package.65.mjs";
|
|
2
|
+
|
|
3
|
+
import { URLBuilder as r } from "../../../lib/helpers/URLBuilder.mjs";
|
|
4
|
+
|
|
5
|
+
import "buffer";
|
|
6
|
+
|
|
7
|
+
import "../../../../vendor/Package.5.mjs";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// -- Shims --
|
|
11
|
+
import cjsUrl from 'node:url';
|
|
12
|
+
import cjsPath from 'node:path';
|
|
13
|
+
import cjsModule from 'node:module';
|
|
14
|
+
const __filename = cjsUrl.fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = cjsPath.dirname(__filename);
|
|
16
|
+
const require = cjsModule.createRequire(import.meta.url);
|
|
17
|
+
async function t(t) {
|
|
18
|
+
try {
|
|
19
|
+
require.resolve("sqlite3");
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw new Error('SQLite3 package is required for this driver. Run "npm install sqlite3".');
|
|
22
|
+
}
|
|
23
|
+
const a = (await import("../../../../vendor/Package.69.mjs")).KeyvSqlite;
|
|
24
|
+
const i = new r;
|
|
25
|
+
i.protocol = "sqlite";
|
|
26
|
+
i.pathname = t.database;
|
|
27
|
+
return new e({
|
|
28
|
+
store: new a({
|
|
29
|
+
uri: i.toString(),
|
|
30
|
+
table: t.table,
|
|
31
|
+
busyTimeout: t.busyTimeout
|
|
32
|
+
}),
|
|
33
|
+
namespace: t.namespace
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { t as CreateSqliteCacheAdapter };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const e = require("../../../../vendor/Package.1.cjs");
|
|
8
|
+
|
|
9
|
+
const r = require("../../../../vendor/Package.2.cjs");
|
|
10
|
+
|
|
11
|
+
const t = require("../../../decorators/dto/Expect.cjs");
|
|
12
|
+
|
|
13
|
+
const s = require("./FileCacheOptions.cjs");
|
|
14
|
+
|
|
15
|
+
const i = require("./MemcacheCacheOptions.cjs");
|
|
16
|
+
|
|
17
|
+
const a = require("./MongoCacheOptions.cjs");
|
|
18
|
+
|
|
19
|
+
const c = require("./PostgresCacheOptions.cjs");
|
|
20
|
+
|
|
21
|
+
const o = require("./MysqlCacheOptions.cjs");
|
|
22
|
+
|
|
23
|
+
const n = require("./SqliteCacheOptions.cjs");
|
|
24
|
+
|
|
25
|
+
const p = require("./RedisCacheOptions.cjs");
|
|
26
|
+
|
|
27
|
+
require("../../../lib/base/internal/DataValidator.cjs");
|
|
28
|
+
|
|
29
|
+
require("../../../../vendor/Package.4.cjs");
|
|
30
|
+
|
|
31
|
+
require("../../../../vendor/Package.5.cjs");
|
|
32
|
+
|
|
33
|
+
require("node:util/types");
|
|
34
|
+
|
|
35
|
+
require("../../../lib/validation/VLD.cjs");
|
|
36
|
+
|
|
37
|
+
require("../../../../vendor/Package.11.cjs");
|
|
38
|
+
|
|
39
|
+
require("url");
|
|
40
|
+
|
|
41
|
+
require("../../../../vendor/Package.10.cjs");
|
|
42
|
+
|
|
43
|
+
require("util");
|
|
44
|
+
|
|
45
|
+
require("../../../exceptions/dto/InvalidValueException.cjs");
|
|
46
|
+
|
|
47
|
+
require("../../../lib/base/abstracts/Exception.cjs");
|
|
48
|
+
|
|
49
|
+
require("../../../lib/base/internal/BasicInfo.cjs");
|
|
50
|
+
|
|
51
|
+
require("../../../lib/helpers/As.cjs");
|
|
52
|
+
|
|
53
|
+
require("../../../../vendor/Package.6.cjs");
|
|
54
|
+
|
|
55
|
+
require("../../../../vendor/Package.7.cjs");
|
|
56
|
+
|
|
57
|
+
require("../../../lib/base/internal/ThrowWarning.cjs");
|
|
58
|
+
|
|
59
|
+
require("../../../lib/helpers/Templating.cjs");
|
|
60
|
+
|
|
61
|
+
require("../../../lib/base/internal/CamelCase.cjs");
|
|
62
|
+
|
|
63
|
+
require("../../../lib/helpers/NoCase.cjs");
|
|
64
|
+
|
|
65
|
+
require("../../../../vendor/Package.9.cjs");
|
|
66
|
+
|
|
67
|
+
require("../../../lib/helpers/IsHtml.cjs");
|
|
68
|
+
|
|
69
|
+
require("../../../lib/helpers/IsXML.cjs");
|
|
70
|
+
|
|
71
|
+
require("../../../constants/DTOMetadataKey.cjs");
|
|
72
|
+
|
|
73
|
+
require("../../../lib/helpers/ObjectConstructor.cjs");
|
|
74
|
+
|
|
75
|
+
require("../../../lib/helpers/ObjectParentConstructors.cjs");
|
|
76
|
+
|
|
77
|
+
require("../../../lib/helpers/ObjectParentConstructor.cjs");
|
|
78
|
+
|
|
79
|
+
require("../../../lib/helpers/ObjectPrototype.cjs");
|
|
80
|
+
|
|
81
|
+
class CacherOptions extends r.DTO {}
|
|
82
|
+
|
|
83
|
+
e.__decorate([ t.Expect(r.DTO.Alternatives(r.DTO.Array(r.DTO.Alternatives(s.FileCacheOptions.Schema(), p.RedisCacheOptions.Schema(), i.MemcacheCacheOptions.Schema(), a.MongoCacheOptions.Schema(), n.SqliteCacheOptions.Schema(), c.PostgresCacheOptions.Schema(), o.MysqlCacheOptions.Schema())), s.FileCacheOptions.Schema(), p.RedisCacheOptions.Schema(), i.MemcacheCacheOptions.Schema(), a.MongoCacheOptions.Schema(), n.SqliteCacheOptions.Schema(), c.PostgresCacheOptions.Schema(), o.MysqlCacheOptions.Schema()).optional()), e.__metadata("design:type", Object) ], CacherOptions.prototype, "stores", void 0);
|
|
84
|
+
|
|
85
|
+
e.__decorate([ t.Expect(r.DTO.Number().positive().integer().optional()), e.__metadata("design:type", Number) ], CacherOptions.prototype, "ttl", void 0);
|
|
86
|
+
|
|
87
|
+
e.__decorate([ t.Expect(r.DTO.Number().positive().integer().optional()), e.__metadata("design:type", Number) ], CacherOptions.prototype, "refreshThreshold", void 0);
|
|
88
|
+
|
|
89
|
+
e.__decorate([ t.Expect(r.DTO.Boolean().optional()), e.__metadata("design:type", Boolean) ], CacherOptions.prototype, "refreshAllStores", void 0);
|
|
90
|
+
|
|
91
|
+
e.__decorate([ t.Expect(r.DTO.Boolean().optional()), e.__metadata("design:type", Boolean) ], CacherOptions.prototype, "nonBlocking", void 0);
|
|
92
|
+
|
|
93
|
+
e.__decorate([ t.Expect(r.DTO.String().optional()), e.__metadata("design:type", String) ], CacherOptions.prototype, "cacheId", void 0);
|
|
94
|
+
|
|
95
|
+
exports.CacherOptions = CacherOptions;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { _ as e, a as o } from "../../../../vendor/Package.1.mjs";
|
|
2
|
+
|
|
3
|
+
import { D as t } from "../../../../vendor/Package.2.mjs";
|
|
4
|
+
|
|
5
|
+
import { Expect as r } from "../../../decorators/dto/Expect.mjs";
|
|
6
|
+
|
|
7
|
+
import { FileCacheOptions as i } from "./FileCacheOptions.mjs";
|
|
8
|
+
|
|
9
|
+
import { MemcacheCacheOptions as s } from "./MemcacheCacheOptions.mjs";
|
|
10
|
+
|
|
11
|
+
import { MongoCacheOptions as m } from "./MongoCacheOptions.mjs";
|
|
12
|
+
|
|
13
|
+
import { PostgresCacheOptions as a } from "./PostgresCacheOptions.mjs";
|
|
14
|
+
|
|
15
|
+
import { MysqlCacheOptions as p } from "./MysqlCacheOptions.mjs";
|
|
16
|
+
|
|
17
|
+
import { SqliteCacheOptions as n } from "./SqliteCacheOptions.mjs";
|
|
18
|
+
|
|
19
|
+
import { RedisCacheOptions as c } from "./RedisCacheOptions.mjs";
|
|
20
|
+
|
|
21
|
+
import "../../../lib/base/internal/DataValidator.mjs";
|
|
22
|
+
|
|
23
|
+
import "../../../../vendor/Package.4.mjs";
|
|
24
|
+
|
|
25
|
+
import "../../../../vendor/Package.5.mjs";
|
|
26
|
+
|
|
27
|
+
import "node:util/types";
|
|
28
|
+
|
|
29
|
+
import "../../../lib/validation/VLD.mjs";
|
|
30
|
+
|
|
31
|
+
import "../../../../vendor/Package.11.mjs";
|
|
32
|
+
|
|
33
|
+
import "url";
|
|
34
|
+
|
|
35
|
+
import "../../../../vendor/Package.10.mjs";
|
|
36
|
+
|
|
37
|
+
import "util";
|
|
38
|
+
|
|
39
|
+
import "../../../exceptions/dto/InvalidValueException.mjs";
|
|
40
|
+
|
|
41
|
+
import "../../../lib/base/abstracts/Exception.mjs";
|
|
42
|
+
|
|
43
|
+
import "../../../lib/base/internal/BasicInfo.mjs";
|
|
44
|
+
|
|
45
|
+
import "../../../lib/helpers/As.mjs";
|
|
46
|
+
|
|
47
|
+
import "../../../../vendor/Package.6.mjs";
|
|
48
|
+
|
|
49
|
+
import "../../../../vendor/Package.7.mjs";
|
|
50
|
+
|
|
51
|
+
import "../../../lib/base/internal/ThrowWarning.mjs";
|
|
52
|
+
|
|
53
|
+
import "../../../lib/helpers/Templating.mjs";
|
|
54
|
+
|
|
55
|
+
import "../../../lib/base/internal/CamelCase.mjs";
|
|
56
|
+
|
|
57
|
+
import "../../../lib/helpers/NoCase.mjs";
|
|
58
|
+
|
|
59
|
+
import "../../../../vendor/Package.9.mjs";
|
|
60
|
+
|
|
61
|
+
import "../../../lib/helpers/IsHtml.mjs";
|
|
62
|
+
|
|
63
|
+
import "../../../lib/helpers/IsXML.mjs";
|
|
64
|
+
|
|
65
|
+
import "../../../constants/DTOMetadataKey.mjs";
|
|
66
|
+
|
|
67
|
+
import "../../../lib/helpers/ObjectConstructor.mjs";
|
|
68
|
+
|
|
69
|
+
import "../../../lib/helpers/ObjectParentConstructors.mjs";
|
|
70
|
+
|
|
71
|
+
import "../../../lib/helpers/ObjectParentConstructor.mjs";
|
|
72
|
+
|
|
73
|
+
import "../../../lib/helpers/ObjectPrototype.mjs";
|
|
74
|
+
|
|
75
|
+
class CacherOptions extends t {}
|
|
76
|
+
|
|
77
|
+
e([ r(t.Alternatives(t.Array(t.Alternatives(i.Schema(), c.Schema(), s.Schema(), m.Schema(), n.Schema(), a.Schema(), p.Schema())), i.Schema(), c.Schema(), s.Schema(), m.Schema(), n.Schema(), a.Schema(), p.Schema()).optional()), o("design:type", Object) ], CacherOptions.prototype, "stores", void 0);
|
|
78
|
+
|
|
79
|
+
e([ r(t.Number().positive().integer().optional()), o("design:type", Number) ], CacherOptions.prototype, "ttl", void 0);
|
|
80
|
+
|
|
81
|
+
e([ r(t.Number().positive().integer().optional()), o("design:type", Number) ], CacherOptions.prototype, "refreshThreshold", void 0);
|
|
82
|
+
|
|
83
|
+
e([ r(t.Boolean().optional()), o("design:type", Boolean) ], CacherOptions.prototype, "refreshAllStores", void 0);
|
|
84
|
+
|
|
85
|
+
e([ r(t.Boolean().optional()), o("design:type", Boolean) ], CacherOptions.prototype, "nonBlocking", void 0);
|
|
86
|
+
|
|
87
|
+
e([ r(t.String().optional()), o("design:type", String) ], CacherOptions.prototype, "cacheId", void 0);
|
|
88
|
+
|
|
89
|
+
export { CacherOptions };
|