lakutata 2.0.95 → 2.0.97
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 +30 -122
- package/com/cacher.mjs +22 -114
- package/com/database.cjs +24 -166
- package/com/database.mjs +24 -166
- package/com/docker.cjs +94 -276
- package/com/docker.mjs +39 -221
- package/com/entrypoint.cjs +33 -119
- package/com/entrypoint.mjs +20 -106
- package/com/logger.cjs +19 -123
- package/com/logger.mjs +19 -123
- package/com/monitor.cjs +24 -88
- package/com/monitor.mjs +20 -84
- package/decorator/asst.cjs +5 -7
- package/decorator/asst.mjs +5 -7
- package/decorator/ctrl.cjs +22 -58
- package/decorator/ctrl.mjs +10 -46
- package/decorator/di.cjs +12 -42
- package/decorator/di.mjs +8 -38
- package/decorator/dto.cjs +13 -43
- package/decorator/dto.mjs +9 -39
- package/decorator/orm.cjs +116 -112
- package/decorator/orm.mjs +70 -66
- package/dtos.cjs +8 -38
- package/dtos.mjs +8 -38
- package/helper.cjs +73 -127
- package/helper.mjs +12 -66
- package/lakutata.cjs +116 -328
- package/lakutata.mjs +60 -272
- package/orm.cjs +854 -173
- package/orm.mjs +866 -65
- package/package.json +1 -1
- package/provider/database.cjs +26 -166
- package/provider/database.mjs +26 -166
- package/provider/passwordHash.cjs +18 -82
- package/provider/passwordHash.mjs +18 -82
- package/src/components/Database.cjs +36 -178
- package/src/components/Database.mjs +68 -210
- package/src/components/Logger.cjs +50 -191
- package/src/components/Logger.mjs +46 -194
- package/src/components/cacher/Cacher.cjs +513 -164
- package/src/components/cacher/Cacher.mjs +503 -160
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +554 -28
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +538 -28
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +17 -47
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +17 -47
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +21 -51
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +22 -52
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +6 -30
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +18 -42
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +20 -50
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +23 -53
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +6 -30
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +27 -51
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +11 -41
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +18 -48
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -6
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -6
- package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
- package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
- package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +4 -6
- package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -6
- package/src/components/cacher/options/FileCacheOptions.cjs +15 -45
- package/src/components/cacher/options/FileCacheOptions.mjs +15 -45
- package/src/components/cacher/options/MemcacheCacheOptions.cjs +16 -46
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -47
- package/src/components/cacher/options/MongoCacheOptions.cjs +9 -39
- package/src/components/cacher/options/MongoCacheOptions.mjs +18 -48
- package/src/components/cacher/options/MysqlCacheOptions.cjs +9 -39
- package/src/components/cacher/options/MysqlCacheOptions.mjs +19 -49
- package/src/components/cacher/options/PostgresCacheOptions.cjs +21 -51
- package/src/components/cacher/options/PostgresCacheOptions.mjs +20 -50
- package/src/components/cacher/options/RedisCacheOptions.cjs +26 -56
- package/src/components/cacher/options/RedisCacheOptions.mjs +9 -39
- package/src/components/cacher/options/SqliteCacheOptions.cjs +15 -45
- package/src/components/cacher/options/SqliteCacheOptions.mjs +14 -44
- package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
- package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.cjs +32 -214
- package/src/components/docker/ConnectionOptionsBuilder.mjs +37 -219
- package/src/components/docker/Docker.cjs +8727 -408
- package/src/components/docker/Docker.mjs +8903 -578
- package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -6
- package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -6
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -6
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -6
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -6
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -6
- package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
- package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
- package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
- package/src/components/docker/lib/DockerContainer.cjs +174 -330
- package/src/components/docker/lib/DockerContainer.mjs +184 -340
- package/src/components/docker/lib/DockerContainerTTY.cjs +52 -260
- package/src/components/docker/lib/DockerContainerTTY.mjs +48 -263
- package/src/components/docker/lib/DockerImage.cjs +69 -131
- package/src/components/docker/lib/DockerImage.mjs +54 -116
- package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
- package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
- package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
- package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
- package/src/components/docker/options/DockerPruneOptions.cjs +14 -44
- package/src/components/docker/options/DockerPruneOptions.mjs +15 -45
- package/src/components/docker/options/auth/DockerAuthOptions.cjs +9 -39
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +15 -45
- package/src/components/docker/options/container/ContainerCommitOptions.cjs +12 -42
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +12 -42
- package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +13 -43
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +12 -42
- package/src/components/docker/options/container/ContainerExecOptions.cjs +9 -39
- package/src/components/docker/options/container/ContainerExecOptions.mjs +11 -41
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +13 -43
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +12 -42
- package/src/components/docker/options/container/ContainerKillOptions.cjs +9 -39
- package/src/components/docker/options/container/ContainerKillOptions.mjs +12 -42
- package/src/components/docker/options/container/ContainerLogsOptions.cjs +15 -45
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +15 -45
- package/src/components/docker/options/container/ContainerRemoveOptions.cjs +9 -39
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +12 -42
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +9 -39
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +43 -73
- package/src/components/docker/options/container/ContainerStopOptions.cjs +12 -42
- package/src/components/docker/options/container/ContainerStopOptions.mjs +9 -39
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +9 -39
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +12 -42
- package/src/components/docker/options/image/ImageBuildOptions.cjs +26 -56
- package/src/components/docker/options/image/ImageBuildOptions.mjs +25 -55
- package/src/components/docker/options/image/ImageExportOptions.cjs +14 -44
- package/src/components/docker/options/image/ImageExportOptions.mjs +14 -44
- package/src/components/docker/options/image/ImageImportOptions.cjs +13 -43
- package/src/components/docker/options/image/ImageImportOptions.mjs +12 -42
- package/src/components/docker/options/image/ImagePullOptions.cjs +9 -39
- package/src/components/docker/options/image/ImagePullOptions.mjs +16 -46
- package/src/components/docker/options/image/ImagePushOptions.cjs +15 -45
- package/src/components/docker/options/image/ImagePushOptions.mjs +15 -45
- package/src/components/docker/options/image/ImageRemoveOptions.cjs +12 -42
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +13 -43
- package/src/components/docker/options/image/ImageTagOptions.cjs +9 -39
- package/src/components/docker/options/image/ImageTagOptions.mjs +12 -42
- package/src/components/docker/options/network/NetworkCreateOptions.cjs +9 -39
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +20 -50
- package/src/components/docker/types/ContainerBind.cjs +1 -1
- package/src/components/docker/types/ContainerBind.mjs +1 -1
- package/src/components/docker/types/ContainerCapability.cjs +1 -1
- package/src/components/docker/types/ContainerCapability.mjs +1 -1
- package/src/components/docker/types/ContainerConfig.cjs +1 -1
- package/src/components/docker/types/ContainerConfig.mjs +1 -1
- package/src/components/docker/types/ContainerDevice.cjs +1 -1
- package/src/components/docker/types/ContainerDevice.mjs +1 -1
- package/src/components/docker/types/ContainerNetwork.cjs +1 -1
- package/src/components/docker/types/ContainerNetwork.mjs +1 -1
- package/src/components/docker/types/ContainerPort.cjs +1 -1
- package/src/components/docker/types/ContainerPort.mjs +1 -1
- package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
- package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
- package/src/components/docker/types/ContainerState.cjs +1 -1
- package/src/components/docker/types/ContainerState.mjs +1 -1
- package/src/components/docker/types/ContainerStats.cjs +1 -1
- package/src/components/docker/types/ContainerStats.mjs +1 -1
- package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
- package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
- package/src/components/docker/types/ImageConfig.cjs +1 -1
- package/src/components/docker/types/ImageConfig.mjs +1 -1
- package/src/components/docker/types/ImageExposePort.cjs +1 -1
- package/src/components/docker/types/ImageExposePort.mjs +1 -1
- package/src/components/docker/types/NetworkInfo.cjs +1 -1
- package/src/components/docker/types/NetworkInfo.mjs +1 -1
- package/src/components/entrypoint/Entrypoint.cjs +1961 -322
- package/src/components/entrypoint/Entrypoint.mjs +1928 -281
- package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -6
- package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -6
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -6
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -6
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -6
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -6
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -6
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -6
- package/src/components/entrypoint/lib/AccessControl.cjs +71 -133
- package/src/components/entrypoint/lib/AccessControl.mjs +75 -137
- package/src/components/entrypoint/lib/AccessControlRule.cjs +19 -81
- package/src/components/entrypoint/lib/AccessControlRule.mjs +23 -85
- package/src/components/entrypoint/lib/Controller.cjs +42 -104
- package/src/components/entrypoint/lib/Controller.mjs +43 -105
- package/src/components/monitor/AliveMonitor.cjs +40 -104
- package/src/components/monitor/AliveMonitor.mjs +50 -114
- package/src/components/monitor/CpuMonitor.cjs +40 -104
- package/src/components/monitor/CpuMonitor.mjs +48 -112
- package/src/components/monitor/EventLoopMonitor.cjs +19 -83
- package/src/components/monitor/EventLoopMonitor.mjs +24 -88
- package/src/components/monitor/HttpRequestMonitor.cjs +41 -105
- package/src/components/monitor/HttpRequestMonitor.mjs +45 -109
- package/src/components/monitor/MemoryMonitor.cjs +87 -151
- package/src/components/monitor/MemoryMonitor.mjs +71 -135
- package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
- package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
- package/src/constants/DIMetadataKey.cjs +3 -3
- package/src/constants/DIMetadataKey.mjs +3 -3
- package/src/constants/DTOMetadataKey.cjs +3 -3
- package/src/constants/DTOMetadataKey.mjs +3 -3
- package/src/decorators/asst/After.cjs +4 -6
- package/src/decorators/asst/After.mjs +5 -7
- package/src/decorators/asst/Before.cjs +4 -6
- package/src/decorators/asst/Before.mjs +5 -7
- package/src/decorators/ctrl/CLIAction.cjs +15 -51
- package/src/decorators/ctrl/CLIAction.mjs +19 -55
- package/src/decorators/ctrl/HTTPAction.cjs +15 -51
- package/src/decorators/ctrl/HTTPAction.mjs +19 -55
- package/src/decorators/ctrl/ServiceAction.cjs +15 -51
- package/src/decorators/ctrl/ServiceAction.mjs +18 -54
- package/src/decorators/ctrl/http/DELETE.cjs +12 -48
- package/src/decorators/ctrl/http/DELETE.mjs +14 -50
- package/src/decorators/ctrl/http/GET.cjs +12 -48
- package/src/decorators/ctrl/http/GET.mjs +14 -50
- package/src/decorators/ctrl/http/HEAD.cjs +12 -48
- package/src/decorators/ctrl/http/HEAD.mjs +14 -50
- package/src/decorators/ctrl/http/OPTIONS.cjs +12 -48
- package/src/decorators/ctrl/http/OPTIONS.mjs +14 -50
- package/src/decorators/ctrl/http/PATCH.cjs +12 -48
- package/src/decorators/ctrl/http/PATCH.mjs +14 -50
- package/src/decorators/ctrl/http/POST.cjs +12 -48
- package/src/decorators/ctrl/http/POST.mjs +14 -50
- package/src/decorators/ctrl/http/PUT.cjs +12 -48
- package/src/decorators/ctrl/http/PUT.mjs +14 -50
- package/src/decorators/di/Autoload.cjs +3 -3
- package/src/decorators/di/Autoload.mjs +3 -3
- package/src/decorators/di/Configurable.cjs +10 -40
- package/src/decorators/di/Configurable.mjs +12 -42
- package/src/decorators/di/Inject.cjs +20 -50
- package/src/decorators/di/Inject.mjs +25 -55
- package/src/decorators/di/Lifetime.cjs +5 -7
- package/src/decorators/di/Lifetime.mjs +15 -17
- package/src/decorators/dto/Accept.cjs +10 -40
- package/src/decorators/dto/Accept.mjs +13 -43
- package/src/decorators/dto/Expect.cjs +11 -41
- package/src/decorators/dto/Expect.mjs +13 -43
- package/src/decorators/dto/IndexSignature.cjs +10 -40
- package/src/decorators/dto/IndexSignature.mjs +13 -43
- package/src/decorators/dto/Return.cjs +10 -40
- package/src/decorators/dto/Return.mjs +13 -43
- package/src/decorators/orm/AfterInsert.cjs +17 -95
- package/src/decorators/orm/AfterInsert.mjs +17 -95
- package/src/decorators/orm/AfterLoad.cjs +17 -95
- package/src/decorators/orm/AfterLoad.mjs +17 -95
- package/src/decorators/orm/AfterRecover.cjs +17 -95
- package/src/decorators/orm/AfterRecover.mjs +17 -95
- package/src/decorators/orm/AfterRemove.cjs +17 -95
- package/src/decorators/orm/AfterRemove.mjs +17 -95
- package/src/decorators/orm/AfterSoftRemove.cjs +17 -95
- package/src/decorators/orm/AfterSoftRemove.mjs +17 -95
- package/src/decorators/orm/AfterUpdate.cjs +17 -95
- package/src/decorators/orm/AfterUpdate.mjs +17 -95
- package/src/decorators/orm/BeforeInsert.cjs +17 -95
- package/src/decorators/orm/BeforeInsert.mjs +17 -95
- package/src/decorators/orm/BeforeRecover.cjs +17 -95
- package/src/decorators/orm/BeforeRecover.mjs +17 -95
- package/src/decorators/orm/BeforeRemove.cjs +17 -95
- package/src/decorators/orm/BeforeRemove.mjs +17 -95
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -95
- package/src/decorators/orm/BeforeSoftRemove.mjs +17 -95
- package/src/decorators/orm/BeforeUpdate.cjs +17 -95
- package/src/decorators/orm/BeforeUpdate.mjs +17 -95
- package/src/decorators/orm/Check.cjs +17 -95
- package/src/decorators/orm/Check.mjs +17 -95
- package/src/decorators/orm/ChildEntity.cjs +17 -95
- package/src/decorators/orm/ChildEntity.mjs +17 -95
- package/src/decorators/orm/Column.cjs +17 -95
- package/src/decorators/orm/Column.mjs +17 -95
- package/src/decorators/orm/CreateDateColumn.cjs +17 -95
- package/src/decorators/orm/CreateDateColumn.mjs +17 -95
- package/src/decorators/orm/DeleteDateColumn.cjs +17 -95
- package/src/decorators/orm/DeleteDateColumn.mjs +17 -95
- package/src/decorators/orm/Entity.cjs +17 -95
- package/src/decorators/orm/Entity.mjs +17 -95
- package/src/decorators/orm/EventSubscriber.cjs +17 -95
- package/src/decorators/orm/EventSubscriber.mjs +17 -95
- package/src/decorators/orm/Exclusion.cjs +17 -95
- package/src/decorators/orm/Exclusion.mjs +17 -95
- package/src/decorators/orm/Generated.cjs +17 -95
- package/src/decorators/orm/Generated.mjs +17 -95
- package/src/decorators/orm/Index.cjs +17 -95
- package/src/decorators/orm/Index.mjs +17 -95
- package/src/decorators/orm/JoinColumn.cjs +17 -95
- package/src/decorators/orm/JoinColumn.mjs +17 -95
- package/src/decorators/orm/JoinTable.cjs +17 -95
- package/src/decorators/orm/JoinTable.mjs +17 -95
- package/src/decorators/orm/ManyToMany.cjs +17 -95
- package/src/decorators/orm/ManyToMany.mjs +17 -95
- package/src/decorators/orm/ManyToOne.cjs +17 -95
- package/src/decorators/orm/ManyToOne.mjs +17 -95
- package/src/decorators/orm/ObjectIdColumn.cjs +17 -95
- package/src/decorators/orm/ObjectIdColumn.mjs +17 -95
- package/src/decorators/orm/OneToMany.cjs +17 -95
- package/src/decorators/orm/OneToMany.mjs +17 -95
- package/src/decorators/orm/OneToOne.cjs +17 -95
- package/src/decorators/orm/OneToOne.mjs +17 -95
- package/src/decorators/orm/PrimaryColumn.cjs +17 -95
- package/src/decorators/orm/PrimaryColumn.mjs +17 -95
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -95
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +17 -95
- package/src/decorators/orm/RelationId.cjs +17 -95
- package/src/decorators/orm/RelationId.mjs +17 -95
- package/src/decorators/orm/TableInheritance.cjs +17 -95
- package/src/decorators/orm/TableInheritance.mjs +17 -95
- package/src/decorators/orm/Tree.cjs +17 -95
- package/src/decorators/orm/Tree.mjs +17 -95
- package/src/decorators/orm/TreeChildren.cjs +17 -95
- package/src/decorators/orm/TreeChildren.mjs +17 -95
- package/src/decorators/orm/TreeLevelColumn.cjs +17 -95
- package/src/decorators/orm/TreeLevelColumn.mjs +17 -95
- package/src/decorators/orm/TreeParent.cjs +17 -95
- package/src/decorators/orm/TreeParent.mjs +17 -95
- package/src/decorators/orm/Unique.cjs +17 -95
- package/src/decorators/orm/Unique.mjs +17 -95
- package/src/decorators/orm/UpdateDateColumn.cjs +17 -95
- package/src/decorators/orm/UpdateDateColumn.mjs +17 -95
- package/src/decorators/orm/VersionColumn.cjs +17 -95
- package/src/decorators/orm/VersionColumn.mjs +17 -95
- package/src/decorators/orm/ViewColumn.cjs +17 -95
- package/src/decorators/orm/ViewColumn.mjs +17 -95
- package/src/decorators/orm/ViewEntity.cjs +17 -95
- package/src/decorators/orm/ViewEntity.mjs +17 -95
- package/src/decorators/orm/VirtualColumn.cjs +17 -95
- package/src/decorators/orm/VirtualColumn.mjs +17 -95
- package/src/dto/PaginationResultDTO.cjs +9 -39
- package/src/dto/PaginationResultDTO.mjs +18 -48
- package/src/dto/PaginationSearchDTO.cjs +9 -39
- package/src/dto/PaginationSearchDTO.mjs +13 -43
- package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -6
- package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -6
- package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -6
- package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -6
- package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -6
- package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -6
- package/src/exceptions/InvalidObjectTypeException.cjs +4 -6
- package/src/exceptions/InvalidObjectTypeException.mjs +4 -6
- package/src/exceptions/MethodNotFoundException.cjs +4 -6
- package/src/exceptions/MethodNotFoundException.mjs +4 -6
- package/src/exceptions/alias/AliasExistsException.cjs +4 -6
- package/src/exceptions/alias/AliasExistsException.mjs +6 -8
- package/src/exceptions/alias/AliasNotFoundException.cjs +4 -6
- package/src/exceptions/alias/AliasNotFoundException.mjs +4 -6
- package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -6
- package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -6
- package/src/exceptions/di/DependencyInjectionException.cjs +4 -6
- package/src/exceptions/di/DependencyInjectionException.mjs +4 -6
- package/src/exceptions/di/LifetimeLockedException.cjs +4 -6
- package/src/exceptions/di/LifetimeLockedException.mjs +4 -6
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -6
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -6
- package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -6
- package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -6
- package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -6
- package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -6
- package/src/exceptions/dto/InvalidValueException.cjs +4 -6
- package/src/exceptions/dto/InvalidValueException.mjs +4 -6
- package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
- package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
- package/src/interfaces/IConstructor.cjs +1 -1
- package/src/interfaces/IConstructor.mjs +1 -1
- package/src/interfaces/IPatRun.cjs +1 -1
- package/src/interfaces/IPatRun.mjs +1 -1
- package/src/lib/base/BaseObject.cjs +51 -259
- package/src/lib/base/BaseObject.mjs +41 -256
- package/src/lib/base/Context.cjs +11 -41
- package/src/lib/base/Context.mjs +23 -53
- package/src/lib/base/EventEmitter.cjs +1398 -47
- package/src/lib/base/EventEmitter.mjs +1397 -46
- package/src/lib/base/abstracts/Exception.cjs +12 -14
- package/src/lib/base/abstracts/Exception.mjs +4 -6
- package/src/lib/base/async-constructor/Append.cjs +1 -1
- package/src/lib/base/async-constructor/Append.mjs +1 -1
- package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
- package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.cjs +9 -39
- package/src/lib/base/internal/ActionOptions.mjs +9 -39
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +54 -116
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +54 -116
- package/src/lib/base/internal/BasicInfo.cjs +13 -15
- package/src/lib/base/internal/BasicInfo.mjs +15 -17
- package/src/lib/base/internal/CamelCase.cjs +1 -1
- package/src/lib/base/internal/CamelCase.mjs +1 -1
- package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +3 -3
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +3 -3
- package/src/lib/base/internal/ConstructorSymbol.cjs +3 -3
- package/src/lib/base/internal/ConstructorSymbol.mjs +3 -3
- package/src/lib/base/internal/ControllerEntrypoint.cjs +16 -24
- package/src/lib/base/internal/ControllerEntrypoint.mjs +39 -47
- package/src/lib/base/internal/DataValidator.cjs +203 -27
- package/src/lib/base/internal/DataValidator.mjs +203 -27
- package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
- package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
- package/src/lib/base/internal/FlexibleDTO.cjs +11 -41
- package/src/lib/base/internal/FlexibleDTO.mjs +13 -43
- package/src/lib/base/internal/GetActionDTOAndOptions.cjs +21 -51
- package/src/lib/base/internal/GetActionDTOAndOptions.mjs +23 -53
- package/src/lib/base/internal/IEEE754.cjs +1 -1
- package/src/lib/base/internal/IEEE754.mjs +1 -1
- package/src/lib/base/internal/MethodAssistantFunction.cjs +15 -17
- package/src/lib/base/internal/MethodAssistantFunction.mjs +8 -10
- package/src/lib/base/internal/MethodValidation.cjs +55 -85
- package/src/lib/base/internal/MethodValidation.mjs +42 -72
- package/src/lib/base/internal/ModuleConfigLoader.cjs +81 -143
- package/src/lib/base/internal/ModuleConfigLoader.mjs +76 -138
- package/src/lib/base/internal/ObjectConfiguration.cjs +26 -56
- package/src/lib/base/internal/ObjectConfiguration.mjs +25 -55
- package/src/lib/base/internal/ObjectContainer.cjs +3 -3
- package/src/lib/base/internal/ObjectContainer.mjs +3 -3
- package/src/lib/base/internal/ObjectInjection.cjs +3 -3
- package/src/lib/base/internal/ObjectInjection.mjs +3 -3
- package/src/lib/base/internal/ObjectLifetime.cjs +5 -7
- package/src/lib/base/internal/ObjectLifetime.mjs +12 -14
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +23 -121
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +14 -114
- package/src/lib/base/internal/ObjectType.cjs +27 -119
- package/src/lib/base/internal/ObjectType.mjs +20 -119
- package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
- package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
- package/src/lib/base/internal/PatternManager.cjs +831 -7
- package/src/lib/base/internal/PatternManager.mjs +835 -11
- package/src/lib/base/internal/StringifyPattern.cjs +5 -9
- package/src/lib/base/internal/StringifyPattern.mjs +5 -9
- package/src/lib/base/internal/ThrowWarning.cjs +1 -1
- package/src/lib/base/internal/ThrowWarning.mjs +1 -1
- package/src/lib/context/CLIContext.cjs +12 -42
- package/src/lib/context/CLIContext.mjs +15 -45
- package/src/lib/context/HTTPContext.cjs +15 -45
- package/src/lib/context/HTTPContext.mjs +14 -44
- package/src/lib/context/ServiceContext.cjs +12 -42
- package/src/lib/context/ServiceContext.mjs +18 -48
- package/src/lib/core/Alias.cjs +46 -48
- package/src/lib/core/Alias.mjs +24 -26
- package/src/lib/core/Application.cjs +486 -351
- package/src/lib/core/Application.mjs +531 -400
- package/src/lib/core/Component.cjs +24 -88
- package/src/lib/core/Component.mjs +28 -92
- package/src/lib/core/Container.cjs +50 -326
- package/src/lib/core/Container.mjs +45 -323
- package/src/lib/core/DTO.cjs +16 -194
- package/src/lib/core/DTO.mjs +12 -197
- package/src/lib/core/Module.cjs +39 -107
- package/src/lib/core/Module.mjs +53 -121
- package/src/lib/core/Provider.cjs +19 -81
- package/src/lib/core/Provider.mjs +25 -87
- package/src/lib/core/Time.cjs +5 -7
- package/src/lib/core/Time.mjs +5 -7
- package/src/lib/helpers/ArrayToSet.cjs +1 -1
- package/src/lib/helpers/ArrayToSet.mjs +1 -1
- package/src/lib/helpers/As.cjs +1 -1
- package/src/lib/helpers/As.mjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
- package/src/lib/helpers/Delay.cjs +1 -1
- package/src/lib/helpers/Delay.mjs +1 -1
- package/src/lib/helpers/DevNull.cjs +1 -1
- package/src/lib/helpers/DevNull.mjs +1 -1
- package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
- package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
- package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
- package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
- package/src/lib/helpers/Glob.cjs +5502 -17
- package/src/lib/helpers/Glob.mjs +5472 -17
- package/src/lib/helpers/GraceExit.cjs +1 -1
- package/src/lib/helpers/GraceExit.mjs +1 -1
- package/src/lib/helpers/HexToIEEE754.cjs +1 -1
- package/src/lib/helpers/HexToIEEE754.mjs +1 -1
- package/src/lib/helpers/HexToSigned.cjs +1 -1
- package/src/lib/helpers/HexToSigned.mjs +1 -1
- package/src/lib/helpers/HexToUnsigned.cjs +1 -1
- package/src/lib/helpers/HexToUnsigned.mjs +1 -1
- package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
- package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
- package/src/lib/helpers/IPToolkit.cjs +1 -1
- package/src/lib/helpers/IPToolkit.mjs +1 -1
- package/src/lib/helpers/IsAbortError.cjs +1 -1
- package/src/lib/helpers/IsAbortError.mjs +1 -1
- package/src/lib/helpers/IsEmptyObject.cjs +1 -1
- package/src/lib/helpers/IsEmptyObject.mjs +1 -1
- package/src/lib/helpers/IsExists.cjs +1 -1
- package/src/lib/helpers/IsExists.mjs +1 -1
- package/src/lib/helpers/IsGlobString.cjs +4 -10
- package/src/lib/helpers/IsGlobString.mjs +3 -11
- package/src/lib/helpers/IsHtml.cjs +5 -5
- package/src/lib/helpers/IsHtml.mjs +6 -6
- package/src/lib/helpers/IsNativeFunction.cjs +1 -1
- package/src/lib/helpers/IsNativeFunction.mjs +1 -1
- package/src/lib/helpers/IsPath.cjs +1 -1
- package/src/lib/helpers/IsPath.mjs +1 -1
- package/src/lib/helpers/IsPromise.cjs +1 -1
- package/src/lib/helpers/IsPromise.mjs +1 -1
- package/src/lib/helpers/IsPromiseLike.cjs +1 -1
- package/src/lib/helpers/IsPromiseLike.mjs +1 -1
- package/src/lib/helpers/IsSymbol.cjs +10 -44
- package/src/lib/helpers/IsSymbol.mjs +9 -45
- package/src/lib/helpers/IsXML.cjs +1711 -6
- package/src/lib/helpers/IsXML.mjs +1712 -7
- package/src/lib/helpers/MD5.cjs +4 -4
- package/src/lib/helpers/MD5.mjs +4 -4
- package/src/lib/helpers/MergeArray.cjs +1 -1
- package/src/lib/helpers/MergeArray.mjs +1 -1
- package/src/lib/helpers/MergeMap.cjs +1 -1
- package/src/lib/helpers/MergeMap.mjs +1 -1
- package/src/lib/helpers/MergeSet.cjs +1 -1
- package/src/lib/helpers/MergeSet.mjs +1 -1
- package/src/lib/helpers/NoCase.cjs +1 -1
- package/src/lib/helpers/NoCase.mjs +1 -1
- package/src/lib/helpers/NonceStr.cjs +2 -6
- package/src/lib/helpers/NonceStr.mjs +4 -8
- package/src/lib/helpers/ObjectConstructor.cjs +1 -1
- package/src/lib/helpers/ObjectConstructor.mjs +1 -1
- package/src/lib/helpers/ObjectHash.cjs +405 -7
- package/src/lib/helpers/ObjectHash.mjs +399 -7
- package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
- package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
- package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
- package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
- package/src/lib/helpers/ObjectPath.cjs +1 -1
- package/src/lib/helpers/ObjectPath.mjs +1 -1
- package/src/lib/helpers/ObjectPrototype.cjs +1 -1
- package/src/lib/helpers/ObjectPrototype.mjs +1 -1
- package/src/lib/helpers/ObjectToMap.cjs +1 -1
- package/src/lib/helpers/ObjectToMap.mjs +1 -1
- package/src/lib/helpers/Paginator.cjs +1 -1
- package/src/lib/helpers/Paginator.mjs +1 -1
- package/src/lib/helpers/RandomString.cjs +172 -11
- package/src/lib/helpers/RandomString.mjs +166 -11
- package/src/lib/helpers/SHA1.cjs +4 -4
- package/src/lib/helpers/SHA1.mjs +4 -4
- package/src/lib/helpers/SHA256.cjs +4 -4
- package/src/lib/helpers/SHA256.mjs +4 -4
- package/src/lib/helpers/SetToArray.cjs +1 -1
- package/src/lib/helpers/SetToArray.mjs +1 -1
- package/src/lib/helpers/SignedToHex.cjs +1 -1
- package/src/lib/helpers/SignedToHex.mjs +1 -1
- package/src/lib/helpers/SortArray.cjs +2 -6
- package/src/lib/helpers/SortArray.mjs +7 -11
- package/src/lib/helpers/SortKeys.cjs +1 -1
- package/src/lib/helpers/SortKeys.mjs +1 -1
- package/src/lib/helpers/SortObject.cjs +1 -1
- package/src/lib/helpers/SortObject.mjs +1 -1
- package/src/lib/helpers/Statistics.cjs +2 -2
- package/src/lib/helpers/Statistics.mjs +2 -2
- package/src/lib/helpers/Templating.cjs +1 -1
- package/src/lib/helpers/Templating.mjs +1 -1
- package/src/lib/helpers/URLBuilder.cjs +417 -38
- package/src/lib/helpers/URLBuilder.mjs +417 -38
- package/src/lib/helpers/UUID.cjs +340 -22
- package/src/lib/helpers/UUID.mjs +340 -22
- package/src/lib/helpers/UniqueArray.cjs +1 -1
- package/src/lib/helpers/UniqueArray.mjs +1 -1
- package/src/lib/helpers/UnsignedToHex.cjs +1 -1
- package/src/lib/helpers/UnsignedToHex.mjs +1 -1
- package/src/lib/ioc/DependencyInjectionContainer.cjs +145 -197
- package/src/lib/ioc/DependencyInjectionContainer.mjs +102 -154
- package/src/lib/ioc/Errors.cjs +27 -57
- package/src/lib/ioc/Errors.mjs +25 -55
- package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
- package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
- package/src/lib/ioc/InjectionMode.cjs +1 -1
- package/src/lib/ioc/InjectionMode.mjs +1 -1
- package/src/lib/ioc/Lifetime.cjs +1 -1
- package/src/lib/ioc/Lifetime.mjs +1 -1
- package/src/lib/ioc/ListModules.cjs +5811 -99
- package/src/lib/ioc/ListModules.mjs +5779 -79
- package/src/lib/ioc/LoadModules.cjs +63 -93
- package/src/lib/ioc/LoadModules.mjs +65 -95
- package/src/lib/ioc/ParamParser.cjs +1 -1
- package/src/lib/ioc/ParamParser.mjs +1 -1
- package/src/lib/ioc/Resolvers.cjs +42 -72
- package/src/lib/ioc/Resolvers.mjs +44 -74
- package/src/lib/ioc/Utils.cjs +28 -58
- package/src/lib/ioc/Utils.mjs +34 -64
- package/src/lib/validation/VLD.cjs +11342 -98
- package/src/lib/validation/VLD.mjs +11298 -80
- package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
- package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
- package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
- package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
- package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
- package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
- package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
- package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
- package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
- package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
- package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
- package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
- package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
- package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
- package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
- package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
- package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
- package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
- package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
- package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
- package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
- package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
- package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
- package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
- package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
- package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
- package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
- package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
- package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
- package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
- package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
- package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
- package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
- package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
- package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
- package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
- package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
- package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
- package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
- package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
- package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
- package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
- package/src/lib/validation/interfaces/Reference.cjs +1 -1
- package/src/lib/validation/interfaces/Reference.mjs +1 -1
- package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
- package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
- package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
- package/src/lib/validation/interfaces/State.cjs +1 -1
- package/src/lib/validation/interfaces/State.mjs +1 -1
- package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
- package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
- package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
- package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
- package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
- package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
- package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
- package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
- package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
- package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
- package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
- package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
- package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
- package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
- package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
- package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
- package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
- package/src/lib/validation/types/CustomValidator.cjs +1 -1
- package/src/lib/validation/types/CustomValidator.mjs +1 -1
- package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
- package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
- package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
- package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
- package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
- package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
- package/src/lib/validation/types/IsUnion.cjs +1 -1
- package/src/lib/validation/types/IsUnion.mjs +1 -1
- package/src/lib/validation/types/LanguageMessages.cjs +1 -1
- package/src/lib/validation/types/LanguageMessages.mjs +1 -1
- package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
- package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
- package/src/lib/validation/types/NullableType.cjs +1 -1
- package/src/lib/validation/types/NullableType.mjs +1 -1
- package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
- package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
- package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
- package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
- package/src/lib/validation/types/PresenceMode.cjs +1 -1
- package/src/lib/validation/types/PresenceMode.mjs +1 -1
- package/src/lib/validation/types/Primitives.cjs +1 -1
- package/src/lib/validation/types/Primitives.mjs +1 -1
- package/src/lib/validation/types/Schema.cjs +1 -1
- package/src/lib/validation/types/Schema.mjs +1 -1
- package/src/lib/validation/types/SchemaFunction.cjs +1 -1
- package/src/lib/validation/types/SchemaFunction.mjs +1 -1
- package/src/lib/validation/types/SchemaLike.cjs +1 -1
- package/src/lib/validation/types/SchemaLike.mjs +1 -1
- package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
- package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
- package/src/lib/validation/types/SchemaMap.cjs +1 -1
- package/src/lib/validation/types/SchemaMap.mjs +1 -1
- package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
- package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
- package/src/lib/validation/types/Types.cjs +1 -1
- package/src/lib/validation/types/Types.mjs +1 -1
- package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
- package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
- package/src/options/ApplicationOptions.cjs +22 -84
- package/src/options/ApplicationOptions.mjs +25 -87
- package/src/options/LoadAnonymousObjectOptions.cjs +20 -82
- package/src/options/LoadAnonymousObjectOptions.mjs +22 -84
- package/src/options/LoadNamedObjectOptions.cjs +20 -82
- package/src/options/LoadNamedObjectOptions.mjs +22 -84
- package/src/options/LoadObjectOptions.cjs +23 -96
- package/src/options/LoadObjectOptions.mjs +18 -98
- package/src/options/ModuleLoadObjectsOptions.cjs +20 -82
- package/src/options/ModuleLoadObjectsOptions.mjs +20 -82
- package/src/options/ModuleOptions.cjs +26 -88
- package/src/options/ModuleOptions.mjs +25 -87
- package/src/options/OverridableNamedObjectOptions.cjs +20 -82
- package/src/options/OverridableNamedObjectOptions.mjs +23 -85
- package/src/options/OverridableObjectOptions.cjs +20 -82
- package/src/options/OverridableObjectOptions.mjs +22 -84
- package/src/providers/Database.cjs +41 -181
- package/src/providers/Database.mjs +74 -214
- package/src/providers/PasswordHash.cjs +541 -89
- package/src/providers/PasswordHash.mjs +535 -89
- package/src/providers/migration/GenerateMigration.cjs +37 -389
- package/src/providers/migration/GenerateMigration.mjs +33 -386
- package/src/types/ActionPattern.cjs +1 -1
- package/src/types/ActionPattern.mjs +1 -1
- package/src/types/ClassDecorator.cjs +1 -1
- package/src/types/ClassDecorator.mjs +1 -1
- package/src/types/ComponentOptions.cjs +1 -1
- package/src/types/ComponentOptions.mjs +1 -1
- package/src/types/JSONSchema.cjs +1 -1
- package/src/types/JSONSchema.mjs +1 -1
- package/src/types/MethodDecorator.cjs +1 -1
- package/src/types/MethodDecorator.mjs +1 -1
- package/src/types/ModuleOptions.cjs +1 -1
- package/src/types/ModuleOptions.mjs +1 -1
- package/src/types/ObjectOptions.cjs +1 -1
- package/src/types/ObjectOptions.mjs +1 -1
- package/src/types/ParameterDecorator.cjs +1 -1
- package/src/types/ParameterDecorator.mjs +1 -1
- package/src/types/PropertyDecorator.cjs +1 -1
- package/src/types/PropertyDecorator.mjs +1 -1
- package/src/types/ProviderOptions.cjs +1 -1
- package/src/types/ProviderOptions.mjs +1 -1
- package/vendor/Package.internal.1.cjs +938 -206
- package/vendor/Package.internal.1.mjs +938 -202
- package/vendor/Package.internal.10.cjs +17 -227
- package/vendor/Package.internal.10.mjs +18 -226
- package/vendor/Package.internal.11.cjs +15 -1610
- package/vendor/Package.internal.11.mjs +16 -1579
- package/vendor/Package.internal.12.cjs +22 -357
- package/vendor/Package.internal.12.mjs +23 -358
- package/vendor/Package.internal.13.cjs +17 -786
- package/vendor/Package.internal.13.mjs +18 -787
- package/vendor/Package.internal.14.cjs +13 -977
- package/vendor/Package.internal.14.mjs +14 -966
- package/vendor/Package.internal.15.cjs +19 -43
- package/vendor/Package.internal.15.mjs +20 -44
- package/vendor/Package.internal.16.cjs +16 -262
- package/vendor/Package.internal.16.mjs +17 -263
- package/vendor/Package.internal.17.cjs +16 -428
- package/vendor/Package.internal.17.mjs +17 -429
- package/vendor/Package.internal.18.cjs +15 -556
- package/vendor/Package.internal.18.mjs +16 -551
- package/vendor/Package.internal.19.cjs +16 -218
- package/vendor/Package.internal.19.mjs +19 -221
- package/vendor/Package.internal.2.cjs +29 -86
- package/vendor/Package.internal.2.mjs +30 -83
- package/vendor/Package.internal.20.cjs +19 -989
- package/vendor/Package.internal.20.mjs +20 -990
- package/vendor/Package.internal.21.cjs +26 -9
- package/vendor/Package.internal.21.mjs +27 -8
- package/vendor/Package.internal.22.cjs +53 -120
- package/vendor/Package.internal.22.mjs +54 -119
- package/vendor/Package.internal.23.cjs +15 -140
- package/vendor/Package.internal.23.mjs +16 -139
- package/vendor/Package.internal.24.cjs +22 -5
- package/vendor/Package.internal.24.mjs +23 -4
- package/vendor/Package.internal.25.cjs +30 -19
- package/vendor/Package.internal.25.mjs +31 -18
- package/vendor/Package.internal.26.cjs +13 -472
- package/vendor/Package.internal.26.mjs +14 -467
- package/vendor/Package.internal.27.cjs +19 -73
- package/vendor/Package.internal.27.mjs +19 -67
- package/vendor/Package.internal.28.cjs +22 -2
- package/vendor/Package.internal.28.mjs +24 -2
- package/vendor/Package.internal.29.cjs +35 -37
- package/vendor/Package.internal.29.mjs +36 -36
- package/vendor/Package.internal.3.cjs +532 -14232
- package/vendor/Package.internal.3.mjs +529 -14211
- package/vendor/Package.internal.30.cjs +21 -21
- package/vendor/Package.internal.30.mjs +22 -20
- package/vendor/Package.internal.31.cjs +25 -10
- package/vendor/Package.internal.31.mjs +26 -9
- package/vendor/Package.internal.310.cjs +10 -0
- package/vendor/Package.internal.310.mjs +8 -0
- package/vendor/Package.internal.32.cjs +39 -188
- package/vendor/Package.internal.32.mjs +42 -191
- package/vendor/Package.internal.33.cjs +35 -58
- package/vendor/Package.internal.33.mjs +36 -57
- package/vendor/Package.internal.34.cjs +20 -161
- package/vendor/Package.internal.34.mjs +26 -167
- package/vendor/Package.internal.35.cjs +32 -2075
- package/vendor/Package.internal.35.mjs +28 -2065
- package/vendor/Package.internal.36.cjs +30 -510
- package/vendor/Package.internal.36.mjs +31 -503
- package/vendor/Package.internal.37.cjs +36 -408
- package/vendor/Package.internal.37.mjs +37 -403
- package/vendor/Package.internal.38.cjs +37 -2349
- package/vendor/Package.internal.38.mjs +38 -2338
- package/vendor/Package.internal.39.cjs +18 -56
- package/vendor/Package.internal.39.mjs +19 -63
- package/vendor/Package.internal.4.cjs +463 -961
- package/vendor/Package.internal.4.mjs +444 -960
- package/vendor/Package.internal.40.cjs +20 -146
- package/vendor/Package.internal.40.mjs +21 -145
- package/vendor/Package.internal.41.cjs +15 -630
- package/vendor/Package.internal.41.mjs +16 -631
- package/vendor/Package.internal.42.cjs +22 -238
- package/vendor/Package.internal.42.mjs +28 -244
- package/vendor/Package.internal.43.cjs +16 -220
- package/vendor/Package.internal.43.mjs +17 -215
- package/vendor/Package.internal.44.cjs +29 -2
- package/vendor/Package.internal.44.mjs +31 -2
- package/vendor/Package.internal.45.cjs +32 -353
- package/vendor/Package.internal.45.mjs +35 -350
- package/vendor/Package.internal.46.cjs +17 -34
- package/vendor/Package.internal.46.mjs +18 -33
- package/vendor/Package.internal.47.cjs +16 -49
- package/vendor/Package.internal.47.mjs +17 -48
- package/vendor/Package.internal.48.cjs +20 -20
- package/vendor/Package.internal.48.mjs +21 -19
- package/vendor/Package.internal.49.cjs +24 -88
- package/vendor/Package.internal.49.mjs +31 -87
- package/vendor/Package.internal.5.cjs +4275 -340
- package/vendor/Package.internal.5.mjs +4274 -341
- package/vendor/Package.internal.50.cjs +34 -80
- package/vendor/Package.internal.50.mjs +35 -79
- package/vendor/Package.internal.51.cjs +48306 -57
- package/vendor/Package.internal.51.mjs +48272 -51
- package/vendor/Package.internal.510.cjs +154 -0
- package/vendor/Package.internal.510.mjs +142 -0
- package/vendor/Package.internal.511.cjs +168 -0
- package/vendor/Package.internal.511.mjs +156 -0
- package/vendor/Package.internal.512.cjs +6 -0
- package/vendor/Package.internal.512.mjs +6 -0
- package/vendor/Package.internal.513.cjs +192 -0
- package/vendor/Package.internal.513.mjs +180 -0
- package/vendor/Package.internal.52.cjs +675 -18
- package/vendor/Package.internal.52.mjs +670 -17
- package/vendor/{Package.internal.176.cjs → Package.internal.522.cjs} +1 -1
- package/vendor/{Package.internal.176.mjs → Package.internal.522.mjs} +2 -2
- package/vendor/Package.internal.53.cjs +7095 -321
- package/vendor/Package.internal.53.mjs +7063 -319
- package/vendor/Package.internal.54.cjs +192 -2
- package/vendor/Package.internal.54.mjs +192 -2
- package/vendor/Package.internal.542.cjs +171 -0
- package/vendor/Package.internal.542.mjs +153 -0
- package/vendor/Package.internal.55.cjs +3945 -127
- package/vendor/Package.internal.55.mjs +3958 -126
- package/vendor/Package.internal.552.cjs +49615 -0
- package/vendor/Package.internal.552.mjs +49572 -0
- package/vendor/Package.internal.56.cjs +837 -18
- package/vendor/Package.internal.56.mjs +838 -19
- package/vendor/Package.internal.57.cjs +14793 -2
- package/vendor/Package.internal.57.mjs +14768 -2
- package/vendor/Package.internal.58.cjs +113 -175
- package/vendor/Package.internal.58.mjs +110 -184
- package/vendor/Package.internal.59.cjs +307 -3990
- package/vendor/Package.internal.59.mjs +307 -4008
- package/vendor/Package.internal.6.cjs +4 -6109
- package/vendor/Package.internal.6.mjs +4 -6103
- package/vendor/Package.internal.7.cjs +6543 -494
- package/vendor/Package.internal.7.mjs +6531 -494
- package/vendor/Package.internal.8.cjs +152 -33
- package/vendor/Package.internal.8.mjs +152 -31
- package/vendor/Package.internal.9.cjs +16 -2160
- package/vendor/Package.internal.9.mjs +17 -2133
- package/vendor/Package.internal.100.cjs +0 -4
- package/vendor/Package.internal.100.mjs +0 -2
- package/vendor/Package.internal.101.cjs +0 -112
- package/vendor/Package.internal.101.mjs +0 -98
- package/vendor/Package.internal.102.cjs +0 -88
- package/vendor/Package.internal.102.mjs +0 -84
- package/vendor/Package.internal.103.cjs +0 -58
- package/vendor/Package.internal.103.mjs +0 -52
- package/vendor/Package.internal.104.cjs +0 -20
- package/vendor/Package.internal.104.mjs +0 -18
- package/vendor/Package.internal.105.cjs +0 -96
- package/vendor/Package.internal.105.mjs +0 -96
- package/vendor/Package.internal.106.cjs +0 -113
- package/vendor/Package.internal.106.mjs +0 -113
- package/vendor/Package.internal.107.cjs +0 -2176
- package/vendor/Package.internal.107.mjs +0 -2174
- package/vendor/Package.internal.108.cjs +0 -2466
- package/vendor/Package.internal.108.mjs +0 -2434
- package/vendor/Package.internal.109.cjs +0 -1306
- package/vendor/Package.internal.109.mjs +0 -1292
- package/vendor/Package.internal.110.cjs +0 -33
- package/vendor/Package.internal.110.mjs +0 -31
- package/vendor/Package.internal.111.cjs +0 -20
- package/vendor/Package.internal.111.mjs +0 -18
- package/vendor/Package.internal.112.cjs +0 -21
- package/vendor/Package.internal.112.mjs +0 -21
- package/vendor/Package.internal.113.cjs +0 -52
- package/vendor/Package.internal.113.mjs +0 -52
- package/vendor/Package.internal.114.cjs +0 -141
- package/vendor/Package.internal.114.mjs +0 -141
- package/vendor/Package.internal.115.cjs +0 -2
- package/vendor/Package.internal.115.mjs +0 -1
- package/vendor/Package.internal.116.cjs +0 -6
- package/vendor/Package.internal.116.mjs +0 -4
- package/vendor/Package.internal.117.cjs +0 -4
- package/vendor/Package.internal.117.mjs +0 -2
- package/vendor/Package.internal.118.cjs +0 -4
- package/vendor/Package.internal.118.mjs +0 -2
- package/vendor/Package.internal.119.cjs +0 -4
- package/vendor/Package.internal.119.mjs +0 -2
- package/vendor/Package.internal.120.cjs +0 -49
- package/vendor/Package.internal.120.mjs +0 -47
- package/vendor/Package.internal.121.cjs +0 -14
- package/vendor/Package.internal.121.mjs +0 -14
- package/vendor/Package.internal.122.cjs +0 -12
- package/vendor/Package.internal.122.mjs +0 -12
- package/vendor/Package.internal.123.cjs +0 -20
- package/vendor/Package.internal.123.mjs +0 -18
- package/vendor/Package.internal.124.cjs +0 -118
- package/vendor/Package.internal.124.mjs +0 -116
- package/vendor/Package.internal.125.cjs +0 -18
- package/vendor/Package.internal.125.mjs +0 -16
- package/vendor/Package.internal.126.cjs +0 -19
- package/vendor/Package.internal.126.mjs +0 -17
- package/vendor/Package.internal.127.cjs +0 -8876
- package/vendor/Package.internal.127.mjs +0 -8874
- package/vendor/Package.internal.128.cjs +0 -899
- package/vendor/Package.internal.128.mjs +0 -897
- package/vendor/Package.internal.129.cjs +0 -6769
- package/vendor/Package.internal.129.mjs +0 -6775
- package/vendor/Package.internal.130.cjs +0 -473
- package/vendor/Package.internal.130.mjs +0 -459
- package/vendor/Package.internal.131.cjs +0 -617
- package/vendor/Package.internal.131.mjs +0 -611
- package/vendor/Package.internal.132.cjs +0 -97
- package/vendor/Package.internal.132.mjs +0 -89
- package/vendor/Package.internal.133.cjs +0 -4
- package/vendor/Package.internal.133.mjs +0 -2
- package/vendor/Package.internal.134.cjs +0 -3753
- package/vendor/Package.internal.134.mjs +0 -3751
- package/vendor/Package.internal.135.cjs +0 -561
- package/vendor/Package.internal.135.mjs +0 -559
- package/vendor/Package.internal.136.cjs +0 -4
- package/vendor/Package.internal.136.mjs +0 -2
- package/vendor/Package.internal.137.cjs +0 -4
- package/vendor/Package.internal.137.mjs +0 -2
- package/vendor/Package.internal.138.cjs +0 -4
- package/vendor/Package.internal.138.mjs +0 -2
- package/vendor/Package.internal.139.cjs +0 -4
- package/vendor/Package.internal.139.mjs +0 -2
- package/vendor/Package.internal.140.cjs +0 -4
- package/vendor/Package.internal.140.mjs +0 -2
- package/vendor/Package.internal.141.cjs +0 -4
- package/vendor/Package.internal.141.mjs +0 -2
- package/vendor/Package.internal.142.cjs +0 -4
- package/vendor/Package.internal.142.mjs +0 -2
- package/vendor/Package.internal.143.cjs +0 -4
- package/vendor/Package.internal.143.mjs +0 -2
- package/vendor/Package.internal.144.cjs +0 -4
- package/vendor/Package.internal.144.mjs +0 -2
- package/vendor/Package.internal.145.cjs +0 -4
- package/vendor/Package.internal.145.mjs +0 -2
- package/vendor/Package.internal.146.cjs +0 -4
- package/vendor/Package.internal.146.mjs +0 -2
- package/vendor/Package.internal.147.cjs +0 -408
- package/vendor/Package.internal.147.mjs +0 -400
- package/vendor/Package.internal.148.cjs +0 -104
- package/vendor/Package.internal.148.mjs +0 -104
- package/vendor/Package.internal.149.cjs +0 -27
- package/vendor/Package.internal.149.mjs +0 -27
- package/vendor/Package.internal.150.cjs +0 -4
- package/vendor/Package.internal.150.mjs +0 -2
- package/vendor/Package.internal.151.cjs +0 -4
- package/vendor/Package.internal.151.mjs +0 -2
- package/vendor/Package.internal.152.cjs +0 -723
- package/vendor/Package.internal.152.mjs +0 -723
- package/vendor/Package.internal.153.cjs +0 -1548
- package/vendor/Package.internal.153.mjs +0 -1540
- package/vendor/Package.internal.154.cjs +0 -364
- package/vendor/Package.internal.154.mjs +0 -364
- package/vendor/Package.internal.155.cjs +0 -107
- package/vendor/Package.internal.155.mjs +0 -107
- package/vendor/Package.internal.156.cjs +0 -636
- package/vendor/Package.internal.156.mjs +0 -622
- package/vendor/Package.internal.157.cjs +0 -543
- package/vendor/Package.internal.157.mjs +0 -533
- package/vendor/Package.internal.158.cjs +0 -605
- package/vendor/Package.internal.158.mjs +0 -605
- package/vendor/Package.internal.159.cjs +0 -139
- package/vendor/Package.internal.159.mjs +0 -131
- package/vendor/Package.internal.160.cjs +0 -119
- package/vendor/Package.internal.160.mjs +0 -111
- package/vendor/Package.internal.161.cjs +0 -1224
- package/vendor/Package.internal.161.mjs +0 -1214
- package/vendor/Package.internal.162.cjs +0 -90
- package/vendor/Package.internal.162.mjs +0 -98
- package/vendor/Package.internal.163.cjs +0 -4
- package/vendor/Package.internal.163.mjs +0 -2
- package/vendor/Package.internal.164.cjs +0 -4
- package/vendor/Package.internal.164.mjs +0 -2
- package/vendor/Package.internal.165.cjs +0 -55
- package/vendor/Package.internal.165.mjs +0 -55
- package/vendor/Package.internal.166.cjs +0 -10
- package/vendor/Package.internal.166.mjs +0 -10
- package/vendor/Package.internal.167.cjs +0 -12
- package/vendor/Package.internal.167.mjs +0 -6
- package/vendor/Package.internal.168.cjs +0 -165
- package/vendor/Package.internal.168.mjs +0 -163
- package/vendor/Package.internal.169.cjs +0 -23
- package/vendor/Package.internal.169.mjs +0 -15
- package/vendor/Package.internal.170.cjs +0 -251
- package/vendor/Package.internal.170.mjs +0 -249
- package/vendor/Package.internal.171.cjs +0 -949
- package/vendor/Package.internal.171.mjs +0 -947
- package/vendor/Package.internal.172.cjs +0 -27
- package/vendor/Package.internal.172.mjs +0 -27
- package/vendor/Package.internal.173.cjs +0 -80
- package/vendor/Package.internal.173.mjs +0 -72
- package/vendor/Package.internal.174.cjs +0 -655
- package/vendor/Package.internal.174.mjs +0 -653
- package/vendor/Package.internal.175.cjs +0 -77
- package/vendor/Package.internal.175.mjs +0 -75
- package/vendor/Package.internal.177.cjs +0 -70
- package/vendor/Package.internal.177.mjs +0 -68
- package/vendor/Package.internal.178.cjs +0 -112
- package/vendor/Package.internal.178.mjs +0 -110
- package/vendor/Package.internal.179.cjs +0 -102
- package/vendor/Package.internal.179.mjs +0 -100
- package/vendor/Package.internal.180.cjs +0 -45450
- package/vendor/Package.internal.180.mjs +0 -45432
- package/vendor/Package.internal.181.cjs +0 -8
- package/vendor/Package.internal.181.mjs +0 -6
- package/vendor/Package.internal.182.cjs +0 -30
- package/vendor/Package.internal.182.mjs +0 -28
- package/vendor/Package.internal.183.cjs +0 -317
- package/vendor/Package.internal.183.mjs +0 -315
- package/vendor/Package.internal.184.cjs +0 -943
- package/vendor/Package.internal.184.mjs +0 -951
- package/vendor/Package.internal.185.cjs +0 -1090
- package/vendor/Package.internal.185.mjs +0 -1090
- package/vendor/Package.internal.186.cjs +0 -165
- package/vendor/Package.internal.186.mjs +0 -165
- package/vendor/Package.internal.187.cjs +0 -15
- package/vendor/Package.internal.187.mjs +0 -13
- package/vendor/Package.internal.188.cjs +0 -14
- package/vendor/Package.internal.188.mjs +0 -12
- package/vendor/Package.internal.189.cjs +0 -49
- package/vendor/Package.internal.189.mjs +0 -47
- package/vendor/Package.internal.190.cjs +0 -493
- package/vendor/Package.internal.190.mjs +0 -471
- package/vendor/Package.internal.191.cjs +0 -4
- package/vendor/Package.internal.191.mjs +0 -2
- package/vendor/Package.internal.192.cjs +0 -4
- package/vendor/Package.internal.192.mjs +0 -2
- package/vendor/Package.internal.193.cjs +0 -4
- package/vendor/Package.internal.193.mjs +0 -2
- package/vendor/Package.internal.194.cjs +0 -4
- package/vendor/Package.internal.194.mjs +0 -2
- package/vendor/Package.internal.195.cjs +0 -4
- package/vendor/Package.internal.195.mjs +0 -2
- package/vendor/Package.internal.196.cjs +0 -4
- package/vendor/Package.internal.196.mjs +0 -2
- package/vendor/Package.internal.197.cjs +0 -4
- package/vendor/Package.internal.197.mjs +0 -2
- package/vendor/Package.internal.198.cjs +0 -4
- package/vendor/Package.internal.198.mjs +0 -2
- package/vendor/Package.internal.60.cjs +0 -4
- package/vendor/Package.internal.60.mjs +0 -2
- package/vendor/Package.internal.61.cjs +0 -321
- package/vendor/Package.internal.61.mjs +0 -321
- package/vendor/Package.internal.62.cjs +0 -365
- package/vendor/Package.internal.62.mjs +0 -363
- package/vendor/Package.internal.63.cjs +0 -403
- package/vendor/Package.internal.63.mjs +0 -395
- package/vendor/Package.internal.64.cjs +0 -127
- package/vendor/Package.internal.64.mjs +0 -125
- package/vendor/Package.internal.65.cjs +0 -31
- package/vendor/Package.internal.65.mjs +0 -29
- package/vendor/Package.internal.66.cjs +0 -87
- package/vendor/Package.internal.66.mjs +0 -85
- package/vendor/Package.internal.67.cjs +0 -61
- package/vendor/Package.internal.67.mjs +0 -59
- package/vendor/Package.internal.68.cjs +0 -34
- package/vendor/Package.internal.68.mjs +0 -32
- package/vendor/Package.internal.69.cjs +0 -4
- package/vendor/Package.internal.69.mjs +0 -2
- package/vendor/Package.internal.70.cjs +0 -684
- package/vendor/Package.internal.70.mjs +0 -662
- package/vendor/Package.internal.71.cjs +0 -13896
- package/vendor/Package.internal.71.mjs +0 -13870
- package/vendor/Package.internal.72.cjs +0 -37
- package/vendor/Package.internal.72.mjs +0 -31
- package/vendor/Package.internal.73.cjs +0 -4077
- package/vendor/Package.internal.73.mjs +0 -4077
- package/vendor/Package.internal.74.cjs +0 -1664
- package/vendor/Package.internal.74.mjs +0 -1664
- package/vendor/Package.internal.75.cjs +0 -259
- package/vendor/Package.internal.75.mjs +0 -257
- package/vendor/Package.internal.76.cjs +0 -4964
- package/vendor/Package.internal.76.mjs +0 -4948
- package/vendor/Package.internal.77.cjs +0 -1239
- package/vendor/Package.internal.77.mjs +0 -1225
- package/vendor/Package.internal.78.cjs +0 -340
- package/vendor/Package.internal.78.mjs +0 -326
- package/vendor/Package.internal.79.cjs +0 -34
- package/vendor/Package.internal.79.mjs +0 -32
- package/vendor/Package.internal.80.cjs +0 -88
- package/vendor/Package.internal.80.mjs +0 -88
- package/vendor/Package.internal.81.cjs +0 -55
- package/vendor/Package.internal.81.mjs +0 -55
- package/vendor/Package.internal.82.cjs +0 -15
- package/vendor/Package.internal.82.mjs +0 -13
- package/vendor/Package.internal.83.cjs +0 -1355
- package/vendor/Package.internal.83.mjs +0 -1355
- package/vendor/Package.internal.84.cjs +0 -12
- package/vendor/Package.internal.84.mjs +0 -6
- package/vendor/Package.internal.85.cjs +0 -4
- package/vendor/Package.internal.85.mjs +0 -2
- package/vendor/Package.internal.86.cjs +0 -351
- package/vendor/Package.internal.86.mjs +0 -351
- package/vendor/Package.internal.87.cjs +0 -80
- package/vendor/Package.internal.87.mjs +0 -80
- package/vendor/Package.internal.88.cjs +0 -1445
- package/vendor/Package.internal.88.mjs +0 -1433
- package/vendor/Package.internal.89.cjs +0 -144
- package/vendor/Package.internal.89.mjs +0 -142
- package/vendor/Package.internal.90.cjs +0 -1822
- package/vendor/Package.internal.90.mjs +0 -1814
- package/vendor/Package.internal.91.cjs +0 -130
- package/vendor/Package.internal.91.mjs +0 -124
- package/vendor/Package.internal.92.cjs +0 -208
- package/vendor/Package.internal.92.mjs +0 -208
- package/vendor/Package.internal.93.cjs +0 -1641
- package/vendor/Package.internal.93.mjs +0 -1641
- package/vendor/Package.internal.94.cjs +0 -74
- package/vendor/Package.internal.94.mjs +0 -74
- package/vendor/Package.internal.95.cjs +0 -28
- package/vendor/Package.internal.95.mjs +0 -28
- package/vendor/Package.internal.96.cjs +0 -69
- package/vendor/Package.internal.96.mjs +0 -67
- package/vendor/Package.internal.97.cjs +0 -123
- package/vendor/Package.internal.97.mjs +0 -121
- package/vendor/Package.internal.98.cjs +0 -16
- package/vendor/Package.internal.98.mjs +0 -8
- package/vendor/Package.internal.99.cjs +0 -4
- package/vendor/Package.internal.99.mjs +0 -2
|
@@ -1,999 +1,29 @@
|
|
|
1
|
-
/* Build Date: Mon Nov 24 2025
|
|
1
|
+
/* Build Date: Mon Nov 24 2025 18:10:51 GMT+0800 (China Standard Time) */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
const e = require("./Package.internal.
|
|
5
|
-
|
|
6
|
-
exports.sqlFormatter = {};
|
|
7
|
-
|
|
8
|
-
var E = {};
|
|
9
|
-
|
|
10
|
-
var t = {};
|
|
11
|
-
|
|
12
|
-
var T = {};
|
|
13
|
-
|
|
14
|
-
var n = {};
|
|
15
|
-
|
|
16
|
-
(function(e) {
|
|
17
|
-
e.__esModule = true;
|
|
18
|
-
var E = /[\\^$.*+?()[\]{}|]/g;
|
|
19
|
-
var t = RegExp(E.source);
|
|
20
|
-
function T(e) {
|
|
21
|
-
return e && t.test(e) ? e.replace(E, "\\$&") : e || "";
|
|
22
|
-
}
|
|
23
|
-
e["default"] = T;
|
|
24
|
-
})(n);
|
|
4
|
+
const e = require("./Package.internal.51.cjs");
|
|
25
5
|
|
|
26
6
|
var r = {};
|
|
27
7
|
|
|
28
|
-
(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(function(e) {
|
|
32
|
-
e["WHITESPACE"] = "whitespace";
|
|
33
|
-
e["WORD"] = "word";
|
|
34
|
-
e["STRING"] = "string";
|
|
35
|
-
e["RESERVED"] = "reserved";
|
|
36
|
-
e["RESERVED_TOP_LEVEL"] = "reserved-top-level";
|
|
37
|
-
e["RESERVED_TOP_LEVEL_NO_INDENT"] = "reserved-top-level-no-indent";
|
|
38
|
-
e["RESERVED_NEWLINE"] = "reserved-newline";
|
|
39
|
-
e["OPERATOR"] = "operator";
|
|
40
|
-
e["NO_SPACE_OPERATOR"] = "no-space-operator";
|
|
41
|
-
e["OPEN_PAREN"] = "open-paren";
|
|
42
|
-
e["CLOSE_PAREN"] = "close-paren";
|
|
43
|
-
e["LINE_COMMENT"] = "line-comment";
|
|
44
|
-
e["BLOCK_COMMENT"] = "block-comment";
|
|
45
|
-
e["NUMBER"] = "number";
|
|
46
|
-
e["PLACEHOLDER"] = "placeholder";
|
|
47
|
-
e["SERVERVARIABLE"] = "servervariable";
|
|
48
|
-
})(e.TokenTypes || (e.TokenTypes = {}));
|
|
49
|
-
})(r);
|
|
50
|
-
|
|
51
|
-
(function(E) {
|
|
52
|
-
var t = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
53
|
-
return e && e.__esModule ? e : {
|
|
54
|
-
default: e
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
E.__esModule = true;
|
|
58
|
-
var T = t(n);
|
|
59
|
-
var R = r;
|
|
60
|
-
var o = function() {
|
|
61
|
-
function e(e) {
|
|
62
|
-
this.WHITESPACE_REGEX = /^(\s+)/u;
|
|
63
|
-
this.NUMBER_REGEX = /^((-\s*)?[0-9]+(\.[0-9]+)?|0x[0-9a-fA-F]+|0b[01]+|([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}))\b/u;
|
|
64
|
-
this.AMBIGUOS_OPERATOR_REGEX = /^(\?\||\?&)/u;
|
|
65
|
-
this.OPERATOR_REGEX = /^(!=|<>|>>|<<|==|<=|>=|!<|!>|\|\|\/|\|\/|\|\||~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|:=|=>|&&|@>|<@|#-|@@|@|.)/u;
|
|
66
|
-
this.NO_SPACE_OPERATOR_REGEX = /^(::|->>|->|#>>|#>)/u;
|
|
67
|
-
this.BLOCK_COMMENT_REGEX = /^(\/\*[^]*?(?:\*\/|$))/u;
|
|
68
|
-
this.LINE_COMMENT_REGEX = this.createLineCommentRegex(e.lineCommentTypes);
|
|
69
|
-
this.RESERVED_TOP_LEVEL_REGEX = this.createReservedWordRegex(e.reservedTopLevelWords);
|
|
70
|
-
this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX = this.createReservedWordRegex(e.reservedTopLevelWordsNoIndent);
|
|
71
|
-
this.RESERVED_NEWLINE_REGEX = this.createReservedWordRegex(e.reservedNewlineWords);
|
|
72
|
-
this.RESERVED_PLAIN_REGEX = this.createReservedWordRegex(e.reservedWords);
|
|
73
|
-
this.WORD_REGEX = this.createWordRegex(e.specialWordChars);
|
|
74
|
-
this.STRING_REGEX = this.createStringRegex(e.stringTypes);
|
|
75
|
-
this.OPEN_PAREN_REGEX = this.createParenRegex(e.openParens);
|
|
76
|
-
this.CLOSE_PAREN_REGEX = this.createParenRegex(e.closeParens);
|
|
77
|
-
this.INDEXED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(e.indexedPlaceholderTypes, "[0-9]*");
|
|
78
|
-
this.IDENT_NAMED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(e.namedPlaceholderTypes, "[a-zA-Z0-9._$]+");
|
|
79
|
-
this.STRING_NAMED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(e.namedPlaceholderTypes, this.createStringPattern(e.stringTypes));
|
|
80
|
-
}
|
|
81
|
-
e.prototype.createLineCommentRegex = function(e) {
|
|
82
|
-
var E = "((?<!#)>|(?:[^>]))";
|
|
83
|
-
return new RegExp("^((?:".concat(e.map(function(e) {
|
|
84
|
-
return (0, T["default"])(e);
|
|
85
|
-
}).join("|"), ")").concat(E, ".*?(?:\r\n|\r|\n|$))"), "u");
|
|
86
|
-
};
|
|
87
|
-
e.prototype.createReservedWordRegex = function(e) {
|
|
88
|
-
var E = e.join("|").replace(/ /gu, "\\s+");
|
|
89
|
-
return new RegExp("^(".concat(E, ")\\b"), "iu");
|
|
90
|
-
};
|
|
91
|
-
e.prototype.createWordRegex = function(e) {
|
|
92
|
-
return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(e.join(""), "]+)"), "u");
|
|
93
|
-
};
|
|
94
|
-
e.prototype.createStringRegex = function(e) {
|
|
95
|
-
return new RegExp("^(" + this.createStringPattern(e) + ")", "u");
|
|
96
|
-
};
|
|
97
|
-
e.prototype.createStringPattern = function(e) {
|
|
98
|
-
var E = {
|
|
99
|
-
"``": "((`[^`]*($|`))+)",
|
|
100
|
-
"[]": "((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",
|
|
101
|
-
'""': '(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',
|
|
102
|
-
"''": "(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",
|
|
103
|
-
"N''": "((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)",
|
|
104
|
-
"E''": "(((E|e)'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)"
|
|
105
|
-
};
|
|
106
|
-
return e.map(function(e) {
|
|
107
|
-
return E[e];
|
|
108
|
-
}).join("|");
|
|
109
|
-
};
|
|
110
|
-
e.prototype.createParenRegex = function(e) {
|
|
111
|
-
var E = this;
|
|
112
|
-
return new RegExp("^(" + e.map(function(e) {
|
|
113
|
-
return E.escapeParen(e);
|
|
114
|
-
}).join("|") + ")", "iu");
|
|
115
|
-
};
|
|
116
|
-
e.prototype.escapeParen = function(e) {
|
|
117
|
-
if (e.length === 1) {
|
|
118
|
-
return (0, T["default"])(e);
|
|
119
|
-
} else {
|
|
120
|
-
return "\\b" + e + "\\b";
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
e.prototype.createPlaceholderRegex = function(e, E) {
|
|
124
|
-
if (!e || e.length === 0) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
var t = e.map(T["default"]).join("|");
|
|
128
|
-
return new RegExp("^((?:".concat(t, ")(?:").concat(E, "))"), "u");
|
|
129
|
-
};
|
|
130
|
-
e.prototype.tokenize = function(e) {
|
|
131
|
-
if (!e) return [];
|
|
132
|
-
var E = [];
|
|
133
|
-
var t;
|
|
134
|
-
while (e.length) {
|
|
135
|
-
t = this.getNextToken(e, t);
|
|
136
|
-
e = e.substring(t.value.length);
|
|
137
|
-
E.push(t);
|
|
138
|
-
}
|
|
139
|
-
return E;
|
|
140
|
-
};
|
|
141
|
-
e.prototype.getNextToken = function(e, E) {
|
|
142
|
-
return this.getWhitespaceToken(e) || this.getCommentToken(e) || this.getStringToken(e) || this.getOpenParenToken(e) || this.getCloseParenToken(e) || this.getAmbiguosOperatorToken(e) || this.getNoSpaceOperatorToken(e) || this.getServerVariableToken(e) || this.getPlaceholderToken(e) || this.getNumberToken(e) || this.getReservedWordToken(e, E) || this.getWordToken(e) || this.getOperatorToken(e);
|
|
143
|
-
};
|
|
144
|
-
e.prototype.getWhitespaceToken = function(e) {
|
|
145
|
-
return this.getTokenOnFirstMatch({
|
|
146
|
-
input: e,
|
|
147
|
-
type: R.TokenTypes.WHITESPACE,
|
|
148
|
-
regex: this.WHITESPACE_REGEX
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
e.prototype.getCommentToken = function(e) {
|
|
152
|
-
return this.getLineCommentToken(e) || this.getBlockCommentToken(e);
|
|
153
|
-
};
|
|
154
|
-
e.prototype.getLineCommentToken = function(e) {
|
|
155
|
-
return this.getTokenOnFirstMatch({
|
|
156
|
-
input: e,
|
|
157
|
-
type: R.TokenTypes.LINE_COMMENT,
|
|
158
|
-
regex: this.LINE_COMMENT_REGEX
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
e.prototype.getBlockCommentToken = function(e) {
|
|
162
|
-
return this.getTokenOnFirstMatch({
|
|
163
|
-
input: e,
|
|
164
|
-
type: R.TokenTypes.BLOCK_COMMENT,
|
|
165
|
-
regex: this.BLOCK_COMMENT_REGEX
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
e.prototype.getStringToken = function(e) {
|
|
169
|
-
return this.getTokenOnFirstMatch({
|
|
170
|
-
input: e,
|
|
171
|
-
type: R.TokenTypes.STRING,
|
|
172
|
-
regex: this.STRING_REGEX
|
|
173
|
-
});
|
|
174
|
-
};
|
|
175
|
-
e.prototype.getOpenParenToken = function(e) {
|
|
176
|
-
return this.getTokenOnFirstMatch({
|
|
177
|
-
input: e,
|
|
178
|
-
type: R.TokenTypes.OPEN_PAREN,
|
|
179
|
-
regex: this.OPEN_PAREN_REGEX
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
e.prototype.getCloseParenToken = function(e) {
|
|
183
|
-
return this.getTokenOnFirstMatch({
|
|
184
|
-
input: e,
|
|
185
|
-
type: R.TokenTypes.CLOSE_PAREN,
|
|
186
|
-
regex: this.CLOSE_PAREN_REGEX
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
e.prototype.getPlaceholderToken = function(e) {
|
|
190
|
-
return this.getIdentNamedPlaceholderToken(e) || this.getStringNamedPlaceholderToken(e) || this.getIndexedPlaceholderToken(e);
|
|
191
|
-
};
|
|
192
|
-
e.prototype.getServerVariableToken = function(e) {
|
|
193
|
-
return this.getTokenOnFirstMatch({
|
|
194
|
-
input: e,
|
|
195
|
-
type: R.TokenTypes.SERVERVARIABLE,
|
|
196
|
-
regex: /(^@@\w+)/iu
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
e.prototype.getIdentNamedPlaceholderToken = function(e) {
|
|
200
|
-
return this.getPlaceholderTokenWithKey({
|
|
201
|
-
input: e,
|
|
202
|
-
regex: this.IDENT_NAMED_PLACEHOLDER_REGEX,
|
|
203
|
-
parseKey: function(e) {
|
|
204
|
-
return e.slice(1);
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
e.prototype.getStringNamedPlaceholderToken = function(e) {
|
|
209
|
-
var E = this;
|
|
210
|
-
return this.getPlaceholderTokenWithKey({
|
|
211
|
-
input: e,
|
|
212
|
-
regex: this.STRING_NAMED_PLACEHOLDER_REGEX,
|
|
213
|
-
parseKey: function(e) {
|
|
214
|
-
return E.getEscapedPlaceholderKey({
|
|
215
|
-
key: e.slice(2, -1),
|
|
216
|
-
quoteChar: e.slice(-1)
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
};
|
|
221
|
-
e.prototype.getIndexedPlaceholderToken = function(e) {
|
|
222
|
-
return this.getPlaceholderTokenWithKey({
|
|
223
|
-
input: e,
|
|
224
|
-
regex: this.INDEXED_PLACEHOLDER_REGEX,
|
|
225
|
-
parseKey: function(e) {
|
|
226
|
-
return e.slice(1);
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
e.prototype.getPlaceholderTokenWithKey = function(e) {
|
|
231
|
-
var E = e.input, t = e.regex, T = e.parseKey;
|
|
232
|
-
var n = this.getTokenOnFirstMatch({
|
|
233
|
-
input: E,
|
|
234
|
-
regex: t,
|
|
235
|
-
type: R.TokenTypes.PLACEHOLDER
|
|
236
|
-
});
|
|
237
|
-
if (n) {
|
|
238
|
-
n.key = T(n.value);
|
|
239
|
-
}
|
|
240
|
-
return n;
|
|
241
|
-
};
|
|
242
|
-
e.prototype.getEscapedPlaceholderKey = function(e) {
|
|
243
|
-
var E = e.key, t = e.quoteChar;
|
|
244
|
-
return E.replace(new RegExp((0, T["default"])("\\" + t), "gu"), t);
|
|
245
|
-
};
|
|
246
|
-
e.prototype.getNumberToken = function(e) {
|
|
247
|
-
return this.getTokenOnFirstMatch({
|
|
248
|
-
input: e,
|
|
249
|
-
type: R.TokenTypes.NUMBER,
|
|
250
|
-
regex: this.NUMBER_REGEX
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
e.prototype.getOperatorToken = function(e) {
|
|
254
|
-
return this.getTokenOnFirstMatch({
|
|
255
|
-
input: e,
|
|
256
|
-
type: R.TokenTypes.OPERATOR,
|
|
257
|
-
regex: this.OPERATOR_REGEX
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
e.prototype.getAmbiguosOperatorToken = function(e) {
|
|
261
|
-
return this.getTokenOnFirstMatch({
|
|
262
|
-
input: e,
|
|
263
|
-
type: R.TokenTypes.OPERATOR,
|
|
264
|
-
regex: this.AMBIGUOS_OPERATOR_REGEX
|
|
265
|
-
});
|
|
266
|
-
};
|
|
267
|
-
e.prototype.getNoSpaceOperatorToken = function(e) {
|
|
268
|
-
return this.getTokenOnFirstMatch({
|
|
269
|
-
input: e,
|
|
270
|
-
type: R.TokenTypes.NO_SPACE_OPERATOR,
|
|
271
|
-
regex: this.NO_SPACE_OPERATOR_REGEX
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
e.prototype.getReservedWordToken = function(e, E) {
|
|
275
|
-
if (E && E.value && E.value === ".") {
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
return this.getToplevelReservedToken(e) || this.getNewlineReservedToken(e) || this.getTopLevelReservedTokenNoIndent(e) || this.getPlainReservedToken(e);
|
|
279
|
-
};
|
|
280
|
-
e.prototype.getToplevelReservedToken = function(e) {
|
|
281
|
-
return this.getTokenOnFirstMatch({
|
|
282
|
-
input: e,
|
|
283
|
-
type: R.TokenTypes.RESERVED_TOP_LEVEL,
|
|
284
|
-
regex: this.RESERVED_TOP_LEVEL_REGEX
|
|
285
|
-
});
|
|
286
|
-
};
|
|
287
|
-
e.prototype.getNewlineReservedToken = function(e) {
|
|
288
|
-
return this.getTokenOnFirstMatch({
|
|
289
|
-
input: e,
|
|
290
|
-
type: R.TokenTypes.RESERVED_NEWLINE,
|
|
291
|
-
regex: this.RESERVED_NEWLINE_REGEX
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
e.prototype.getPlainReservedToken = function(e) {
|
|
295
|
-
return this.getTokenOnFirstMatch({
|
|
296
|
-
input: e,
|
|
297
|
-
type: R.TokenTypes.RESERVED,
|
|
298
|
-
regex: this.RESERVED_PLAIN_REGEX
|
|
299
|
-
});
|
|
300
|
-
};
|
|
301
|
-
e.prototype.getTopLevelReservedTokenNoIndent = function(e) {
|
|
302
|
-
return this.getTokenOnFirstMatch({
|
|
303
|
-
input: e,
|
|
304
|
-
type: R.TokenTypes.RESERVED_TOP_LEVEL_NO_INDENT,
|
|
305
|
-
regex: this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
|
-
e.prototype.getWordToken = function(e) {
|
|
309
|
-
return this.getTokenOnFirstMatch({
|
|
310
|
-
input: e,
|
|
311
|
-
type: R.TokenTypes.WORD,
|
|
312
|
-
regex: this.WORD_REGEX
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
e.prototype.getTokenOnFirstMatch = function(e) {
|
|
316
|
-
var E = e.input, t = e.type, T = e.regex;
|
|
317
|
-
var n = E.match(T);
|
|
318
|
-
if (n) {
|
|
319
|
-
return {
|
|
320
|
-
type: t,
|
|
321
|
-
value: n[1]
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
return e;
|
|
326
|
-
}();
|
|
327
|
-
E["default"] = o;
|
|
328
|
-
})(T);
|
|
329
|
-
|
|
330
|
-
var R = {};
|
|
331
|
-
|
|
332
|
-
var o = {};
|
|
333
|
-
|
|
334
|
-
var N = {};
|
|
335
|
-
|
|
336
|
-
(function(e) {
|
|
337
|
-
e.__esModule = true;
|
|
338
|
-
var E = function(e) {
|
|
339
|
-
if (e === void 0) {
|
|
340
|
-
e = [];
|
|
341
|
-
}
|
|
342
|
-
return e[e.length - 1];
|
|
343
|
-
};
|
|
344
|
-
e["default"] = E;
|
|
345
|
-
})(N);
|
|
346
|
-
|
|
347
|
-
(function(E) {
|
|
348
|
-
var t = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
349
|
-
return e && e.__esModule ? e : {
|
|
350
|
-
default: e
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
E.__esModule = true;
|
|
354
|
-
var T = t(N);
|
|
355
|
-
var n = "top-level";
|
|
356
|
-
var r = "block-level";
|
|
357
|
-
var R = function() {
|
|
358
|
-
function e(e) {
|
|
359
|
-
this.indent = e;
|
|
360
|
-
this.indentTypes = [];
|
|
361
|
-
this.indent = e || " ";
|
|
362
|
-
}
|
|
363
|
-
e.prototype.getIndent = function() {
|
|
364
|
-
return new Array(this.indentTypes.length).fill(this.indent).join("");
|
|
365
|
-
};
|
|
366
|
-
e.prototype.increaseTopLevel = function() {
|
|
367
|
-
this.indentTypes.push(n);
|
|
368
|
-
};
|
|
369
|
-
e.prototype.increaseBlockLevel = function() {
|
|
370
|
-
this.indentTypes.push(r);
|
|
371
|
-
};
|
|
372
|
-
e.prototype.decreaseTopLevel = function() {
|
|
373
|
-
if ((0, T["default"])(this.indentTypes) === n) {
|
|
374
|
-
this.indentTypes.pop();
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
e.prototype.decreaseBlockLevel = function() {
|
|
378
|
-
while (this.indentTypes.length > 0) {
|
|
379
|
-
var e = this.indentTypes.pop();
|
|
380
|
-
if (e !== n) {
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
e.prototype.resetIndentation = function() {
|
|
386
|
-
this.indentTypes = [];
|
|
387
|
-
};
|
|
388
|
-
return e;
|
|
389
|
-
}();
|
|
390
|
-
E["default"] = R;
|
|
391
|
-
})(o);
|
|
392
|
-
|
|
393
|
-
var A = {};
|
|
394
|
-
|
|
395
|
-
(function(e) {
|
|
396
|
-
e.__esModule = true;
|
|
397
|
-
var E = r;
|
|
398
|
-
var t = 50;
|
|
399
|
-
var T = function() {
|
|
400
|
-
function e() {
|
|
401
|
-
this.level = 0;
|
|
402
|
-
}
|
|
403
|
-
e.prototype.beginIfPossible = function(e, E) {
|
|
404
|
-
if (this.level === 0 && this.isInlineBlock(e, E)) {
|
|
405
|
-
this.level = 1;
|
|
406
|
-
} else if (this.level > 0) {
|
|
407
|
-
this.level++;
|
|
408
|
-
} else {
|
|
409
|
-
this.level = 0;
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
e.prototype.end = function() {
|
|
413
|
-
this.level--;
|
|
414
|
-
};
|
|
415
|
-
e.prototype.isActive = function() {
|
|
416
|
-
return this.level > 0;
|
|
417
|
-
};
|
|
418
|
-
e.prototype.isInlineBlock = function(e, T) {
|
|
419
|
-
var n = 0;
|
|
420
|
-
var r = 0;
|
|
421
|
-
for (var R = T; R < e.length; R++) {
|
|
422
|
-
var o = e[R];
|
|
423
|
-
n += o.value.length;
|
|
424
|
-
if (n > t) {
|
|
425
|
-
return false;
|
|
426
|
-
}
|
|
427
|
-
if (o.type === E.TokenTypes.OPEN_PAREN) {
|
|
428
|
-
r++;
|
|
429
|
-
} else if (o.type === E.TokenTypes.CLOSE_PAREN) {
|
|
430
|
-
r--;
|
|
431
|
-
if (r === 0) {
|
|
432
|
-
return true;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
if (this.isForbiddenToken(o)) {
|
|
436
|
-
return false;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
return false;
|
|
440
|
-
};
|
|
441
|
-
e.prototype.isForbiddenToken = function(e) {
|
|
442
|
-
var t = e.type, T = e.value;
|
|
443
|
-
return t === E.TokenTypes.RESERVED_TOP_LEVEL || t === E.TokenTypes.RESERVED_NEWLINE || t === E.TokenTypes.LINE_COMMENT || t === E.TokenTypes.BLOCK_COMMENT || T === ";";
|
|
444
|
-
};
|
|
445
|
-
return e;
|
|
446
|
-
}();
|
|
447
|
-
e["default"] = T;
|
|
448
|
-
})(A);
|
|
449
|
-
|
|
450
|
-
var I = {};
|
|
451
|
-
|
|
452
|
-
(function(e) {
|
|
453
|
-
e.__esModule = true;
|
|
454
|
-
var E = function() {
|
|
455
|
-
function e(e) {
|
|
456
|
-
this.params = e;
|
|
457
|
-
this.index = 0;
|
|
458
|
-
this.params = e;
|
|
459
|
-
}
|
|
460
|
-
e.prototype.get = function(e) {
|
|
461
|
-
var E = e.key, t = e.value;
|
|
462
|
-
if (!this.params) {
|
|
463
|
-
return t;
|
|
464
|
-
}
|
|
465
|
-
if (E) {
|
|
466
|
-
return this.params[E];
|
|
467
|
-
}
|
|
468
|
-
return this.params[this.index++];
|
|
469
|
-
};
|
|
470
|
-
return e;
|
|
471
|
-
}();
|
|
472
|
-
e["default"] = E;
|
|
473
|
-
})(I);
|
|
8
|
+
Object.defineProperty(r, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
474
11
|
|
|
475
|
-
|
|
476
|
-
var t = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
477
|
-
return e && e.__esModule ? e : {
|
|
478
|
-
default: e
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
E.__esModule = true;
|
|
482
|
-
var T = r;
|
|
483
|
-
var n = t(o);
|
|
484
|
-
var R = t(A);
|
|
485
|
-
var N = t(I);
|
|
486
|
-
var O = [ " ", "\t" ];
|
|
487
|
-
var i = function(e) {
|
|
488
|
-
var E = e.length - 1;
|
|
489
|
-
while (E >= 0 && O.includes(e[E])) {
|
|
490
|
-
E--;
|
|
491
|
-
}
|
|
492
|
-
return e.substring(0, E + 1);
|
|
493
|
-
};
|
|
494
|
-
var S = function() {
|
|
495
|
-
function e(e, E, t) {
|
|
496
|
-
this.cfg = e;
|
|
497
|
-
this.tokenizer = E;
|
|
498
|
-
this.tokenOverride = t;
|
|
499
|
-
this.tokens = [];
|
|
500
|
-
this.previousReservedWord = {
|
|
501
|
-
type: null,
|
|
502
|
-
value: null
|
|
503
|
-
};
|
|
504
|
-
this.previousNonWhiteSpace = {
|
|
505
|
-
type: null,
|
|
506
|
-
value: null
|
|
507
|
-
};
|
|
508
|
-
this.index = 0;
|
|
509
|
-
this.indentation = new n["default"](this.cfg.indent);
|
|
510
|
-
this.inlineBlock = new R["default"];
|
|
511
|
-
this.params = new N["default"](this.cfg.params);
|
|
512
|
-
}
|
|
513
|
-
e.prototype.format = function(e) {
|
|
514
|
-
this.tokens = this.tokenizer.tokenize(e);
|
|
515
|
-
var E = this.getFormattedQueryFromTokens();
|
|
516
|
-
return E.trim();
|
|
517
|
-
};
|
|
518
|
-
e.prototype.getFormattedQueryFromTokens = function() {
|
|
519
|
-
var e = this;
|
|
520
|
-
var E = "";
|
|
521
|
-
this.tokens.forEach(function(t, n) {
|
|
522
|
-
e.index = n;
|
|
523
|
-
if (e.tokenOverride) t = e.tokenOverride(t, e.previousReservedWord) || t;
|
|
524
|
-
if (t.type === T.TokenTypes.WHITESPACE) {
|
|
525
|
-
E = e.formatWhitespace(t, E);
|
|
526
|
-
} else if (t.type === T.TokenTypes.LINE_COMMENT) {
|
|
527
|
-
E = e.formatLineComment(t, E);
|
|
528
|
-
} else if (t.type === T.TokenTypes.BLOCK_COMMENT) {
|
|
529
|
-
E = e.formatBlockComment(t, E);
|
|
530
|
-
} else if (t.type === T.TokenTypes.RESERVED_TOP_LEVEL || t.type === T.TokenTypes.RESERVED_TOP_LEVEL_NO_INDENT || t.type === T.TokenTypes.RESERVED_NEWLINE || t.type === T.TokenTypes.RESERVED) {
|
|
531
|
-
E = e.formatReserved(t, E);
|
|
532
|
-
} else if (t.type === T.TokenTypes.OPEN_PAREN) {
|
|
533
|
-
E = e.formatOpeningParentheses(t, E);
|
|
534
|
-
} else if (t.type === T.TokenTypes.CLOSE_PAREN) {
|
|
535
|
-
E = e.formatClosingParentheses(t, E);
|
|
536
|
-
} else if (t.type === T.TokenTypes.NO_SPACE_OPERATOR) {
|
|
537
|
-
E = e.formatWithoutSpaces(t, E);
|
|
538
|
-
} else if (t.type === T.TokenTypes.PLACEHOLDER || t.type === T.TokenTypes.SERVERVARIABLE) {
|
|
539
|
-
E = e.formatPlaceholder(t, E);
|
|
540
|
-
} else if (t.value === ",") {
|
|
541
|
-
E = e.formatComma(t, E);
|
|
542
|
-
} else if (t.value === ":") {
|
|
543
|
-
E = e.formatWithSpaceAfter(t, E);
|
|
544
|
-
} else if (t.value === ".") {
|
|
545
|
-
E = e.formatWithoutSpaces(t, E);
|
|
546
|
-
} else if (t.value === ";") {
|
|
547
|
-
E = e.formatQuerySeparator(t, E);
|
|
548
|
-
} else {
|
|
549
|
-
E = e.formatWithSpaces(t, E);
|
|
550
|
-
}
|
|
551
|
-
if (t.type !== T.TokenTypes.WHITESPACE) {
|
|
552
|
-
e.previousNonWhiteSpace = t;
|
|
553
|
-
}
|
|
554
|
-
});
|
|
555
|
-
return E;
|
|
556
|
-
};
|
|
557
|
-
e.prototype.formatWhitespace = function(e, E) {
|
|
558
|
-
if (this.cfg.linesBetweenQueries === "preserve" && /((\r\n|\n)(\r\n|\n)+)/u.test(e.value) && this.previousToken().value === ";") {
|
|
559
|
-
return E.replace(/(\n|\r\n)$/u, "") + e.value;
|
|
560
|
-
}
|
|
561
|
-
return E;
|
|
562
|
-
};
|
|
563
|
-
e.prototype.formatReserved = function(e, E) {
|
|
564
|
-
if (e.type === T.TokenTypes.RESERVED_NEWLINE && this.previousReservedWord && this.previousReservedWord.value && e.value.toUpperCase() === "AND" && this.previousReservedWord.value.toUpperCase() === "BETWEEN") {
|
|
565
|
-
e.type = T.TokenTypes.RESERVED;
|
|
566
|
-
}
|
|
567
|
-
if (e.type === T.TokenTypes.RESERVED_TOP_LEVEL) {
|
|
568
|
-
E = this.formatTopLevelReservedWord(e, E);
|
|
569
|
-
} else if (e.type === T.TokenTypes.RESERVED_TOP_LEVEL_NO_INDENT) {
|
|
570
|
-
E = this.formatTopLevelReservedWordNoIndent(e, E);
|
|
571
|
-
} else if (e.type === T.TokenTypes.RESERVED_NEWLINE) {
|
|
572
|
-
E = this.formatNewlineReservedWord(e, E);
|
|
573
|
-
} else {
|
|
574
|
-
E = this.formatWithSpaces(e, E);
|
|
575
|
-
}
|
|
576
|
-
this.previousReservedWord = e;
|
|
577
|
-
return E;
|
|
578
|
-
};
|
|
579
|
-
e.prototype.formatLineComment = function(e, E) {
|
|
580
|
-
return this.addNewline(E + e.value);
|
|
581
|
-
};
|
|
582
|
-
e.prototype.formatBlockComment = function(e, E) {
|
|
583
|
-
return this.addNewline(this.addNewline(E) + this.indentComment(e.value));
|
|
584
|
-
};
|
|
585
|
-
e.prototype.indentComment = function(e) {
|
|
586
|
-
return e.replace(/\n[ \t]*/gu, "\n" + this.indentation.getIndent() + " ");
|
|
587
|
-
};
|
|
588
|
-
e.prototype.formatTopLevelReservedWordNoIndent = function(e, E) {
|
|
589
|
-
this.indentation.decreaseTopLevel();
|
|
590
|
-
E = this.addNewline(E) + this.equalizeWhitespace(this.formatReservedWord(e.value));
|
|
591
|
-
return this.addNewline(E);
|
|
592
|
-
};
|
|
593
|
-
e.prototype.formatTopLevelReservedWord = function(e, E) {
|
|
594
|
-
var t = this.previousNonWhiteSpace.value !== "," && ![ "GRANT" ].includes("".concat(this.previousNonWhiteSpace.value).toUpperCase());
|
|
595
|
-
if (t) {
|
|
596
|
-
this.indentation.decreaseTopLevel();
|
|
597
|
-
E = this.addNewline(E);
|
|
598
|
-
}
|
|
599
|
-
E = E + this.equalizeWhitespace(this.formatReservedWord(e.value)) + " ";
|
|
600
|
-
if (t) this.indentation.increaseTopLevel();
|
|
601
|
-
return E;
|
|
602
|
-
};
|
|
603
|
-
e.prototype.formatNewlineReservedWord = function(e, E) {
|
|
604
|
-
return this.addNewline(E) + this.equalizeWhitespace(this.formatReservedWord(e.value)) + " ";
|
|
605
|
-
};
|
|
606
|
-
e.prototype.equalizeWhitespace = function(e) {
|
|
607
|
-
return e.replace(/\s+/gu, " ");
|
|
608
|
-
};
|
|
609
|
-
e.prototype.formatOpeningParentheses = function(e, E) {
|
|
610
|
-
e.value = this.formatCase(e.value);
|
|
611
|
-
var t = this.previousToken().type;
|
|
612
|
-
if (t !== T.TokenTypes.WHITESPACE && t !== T.TokenTypes.OPEN_PAREN && t !== T.TokenTypes.LINE_COMMENT) {
|
|
613
|
-
E = i(E);
|
|
614
|
-
}
|
|
615
|
-
E += e.value;
|
|
616
|
-
this.inlineBlock.beginIfPossible(this.tokens, this.index);
|
|
617
|
-
if (!this.inlineBlock.isActive()) {
|
|
618
|
-
this.indentation.increaseBlockLevel();
|
|
619
|
-
E = this.addNewline(E);
|
|
620
|
-
}
|
|
621
|
-
return E;
|
|
622
|
-
};
|
|
623
|
-
e.prototype.formatClosingParentheses = function(e, E) {
|
|
624
|
-
e.value = this.formatCase(e.value);
|
|
625
|
-
if (this.inlineBlock.isActive()) {
|
|
626
|
-
this.inlineBlock.end();
|
|
627
|
-
return this.formatWithSpaceAfter(e, E);
|
|
628
|
-
} else {
|
|
629
|
-
this.indentation.decreaseBlockLevel();
|
|
630
|
-
return this.formatWithSpaces(e, this.addNewline(E));
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
e.prototype.formatPlaceholder = function(e, E) {
|
|
634
|
-
return E + this.params.get(e) + " ";
|
|
635
|
-
};
|
|
636
|
-
e.prototype.formatComma = function(e, E) {
|
|
637
|
-
E = i(E) + e.value + " ";
|
|
638
|
-
if (this.inlineBlock.isActive()) {
|
|
639
|
-
return E;
|
|
640
|
-
} else if (/^LIMIT$/iu.test(this.previousReservedWord.value)) {
|
|
641
|
-
return E;
|
|
642
|
-
} else {
|
|
643
|
-
return this.addNewline(E);
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
e.prototype.formatWithSpaceAfter = function(e, E) {
|
|
647
|
-
return i(E) + e.value + " ";
|
|
648
|
-
};
|
|
649
|
-
e.prototype.formatWithoutSpaces = function(e, E) {
|
|
650
|
-
return i(E) + e.value;
|
|
651
|
-
};
|
|
652
|
-
e.prototype.formatWithSpaces = function(e, E) {
|
|
653
|
-
var t = e.type === T.TokenTypes.RESERVED ? this.formatReservedWord(e.value) : e.value;
|
|
654
|
-
return E + t + " ";
|
|
655
|
-
};
|
|
656
|
-
e.prototype.formatReservedWord = function(e) {
|
|
657
|
-
return this.formatCase(e);
|
|
658
|
-
};
|
|
659
|
-
e.prototype.formatQuerySeparator = function(e, E) {
|
|
660
|
-
this.indentation.resetIndentation();
|
|
661
|
-
var t = "\n";
|
|
662
|
-
if (this.cfg.linesBetweenQueries !== "preserve") {
|
|
663
|
-
t = "\n".repeat(this.cfg.linesBetweenQueries || 1);
|
|
664
|
-
}
|
|
665
|
-
return i(E) + e.value + t;
|
|
666
|
-
};
|
|
667
|
-
e.prototype.addNewline = function(e) {
|
|
668
|
-
e = i(e);
|
|
669
|
-
if (!e.endsWith("\n")) e += "\n";
|
|
670
|
-
return e + this.indentation.getIndent();
|
|
671
|
-
};
|
|
672
|
-
e.prototype.previousToken = function() {
|
|
673
|
-
return this.tokens[this.index - 1] || {
|
|
674
|
-
type: null,
|
|
675
|
-
value: null
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
e.prototype.formatCase = function(e) {
|
|
679
|
-
if (this.cfg.reservedWordCase === "upper") return e.toUpperCase();
|
|
680
|
-
if (this.cfg.reservedWordCase === "lower") return e.toLowerCase();
|
|
681
|
-
return e;
|
|
682
|
-
};
|
|
683
|
-
return e;
|
|
684
|
-
}();
|
|
685
|
-
E["default"] = S;
|
|
686
|
-
})(R);
|
|
687
|
-
|
|
688
|
-
(function(E) {
|
|
689
|
-
var t = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
690
|
-
return e && e.__esModule ? e : {
|
|
691
|
-
default: e
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
E.__esModule = true;
|
|
695
|
-
var n = t(T);
|
|
696
|
-
var r = t(R);
|
|
697
|
-
var o = function() {
|
|
698
|
-
function e(e) {
|
|
699
|
-
this.cfg = e;
|
|
700
|
-
}
|
|
701
|
-
e.prototype.format = function(e) {
|
|
702
|
-
return new r["default"](this.cfg, this.tokenizer(), this.tokenOverride).format(e);
|
|
703
|
-
};
|
|
704
|
-
e.prototype.tokenize = function(e) {
|
|
705
|
-
return this.tokenizer().tokenize(e);
|
|
706
|
-
};
|
|
707
|
-
e.prototype.tokenizer = function() {
|
|
708
|
-
return new n["default"](this.getTokenizerConfig());
|
|
709
|
-
};
|
|
710
|
-
return e;
|
|
711
|
-
}();
|
|
712
|
-
E["default"] = o;
|
|
713
|
-
})(t);
|
|
714
|
-
|
|
715
|
-
(function(E) {
|
|
716
|
-
var T = e.commonjsGlobal && e.commonjsGlobal.__extends || function() {
|
|
717
|
-
var e = function(E, t) {
|
|
718
|
-
e = Object.setPrototypeOf || {
|
|
719
|
-
__proto__: []
|
|
720
|
-
} instanceof Array && function(e, E) {
|
|
721
|
-
e.__proto__ = E;
|
|
722
|
-
} || function(e, E) {
|
|
723
|
-
for (var t in E) if (Object.prototype.hasOwnProperty.call(E, t)) e[t] = E[t];
|
|
724
|
-
};
|
|
725
|
-
return e(E, t);
|
|
726
|
-
};
|
|
727
|
-
return function(E, t) {
|
|
728
|
-
if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
729
|
-
e(E, t);
|
|
730
|
-
function T() {
|
|
731
|
-
this.constructor = E;
|
|
732
|
-
}
|
|
733
|
-
E.prototype = t === null ? Object.create(t) : (T.prototype = t.prototype, new T);
|
|
734
|
-
};
|
|
735
|
-
}();
|
|
736
|
-
var n = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
737
|
-
return e && e.__esModule ? e : {
|
|
738
|
-
default: e
|
|
739
|
-
};
|
|
740
|
-
};
|
|
741
|
-
E.__esModule = true;
|
|
742
|
-
var r = n(t);
|
|
743
|
-
var R = function(e) {
|
|
744
|
-
T(E, e);
|
|
745
|
-
function E() {
|
|
746
|
-
return e !== null && e.apply(this, arguments) || this;
|
|
747
|
-
}
|
|
748
|
-
E.prototype.getTokenizerConfig = function() {
|
|
749
|
-
return {
|
|
750
|
-
reservedWords: o,
|
|
751
|
-
reservedTopLevelWords: N,
|
|
752
|
-
reservedNewlineWords: I,
|
|
753
|
-
reservedTopLevelWordsNoIndent: A,
|
|
754
|
-
stringTypes: [ '""', "''", "``", "[]" ],
|
|
755
|
-
openParens: [ "(" ],
|
|
756
|
-
closeParens: [ ")" ],
|
|
757
|
-
indexedPlaceholderTypes: [ "?" ],
|
|
758
|
-
namedPlaceholderTypes: [ ":" ],
|
|
759
|
-
lineCommentTypes: [ "--" ],
|
|
760
|
-
specialWordChars: [ "#", "@" ]
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
return E;
|
|
764
|
-
}(r["default"]);
|
|
765
|
-
E["default"] = R;
|
|
766
|
-
var o = [ "ABS", "ACTIVATE", "ALIAS", "ALL", "ALLOCATE", "ALLOW", "ALTER", "ANY", "ARE", "ARRAY", "AS", "ASC", "ASENSITIVE", "ASSOCIATE", "ASUTIME", "ASYMMETRIC", "AT", "ATOMIC", "ATTRIBUTES", "AUDIT", "AUTHORIZATION", "AUX", "AUXILIARY", "AVG", "BEFORE", "BEGIN", "BETWEEN", "BIGINT", "BINARY", "BLOB", "BOOLEAN", "BOTH", "BUFFERPOOL", "BY", "CACHE", "CALL", "CALLED", "CAPTURE", "CARDINALITY", "CASCADED", "CASE", "CAST", "CCSID", "CEIL", "CEILING", "CHAR", "CHARACTER", "CHARACTER_LENGTH", "CHAR_LENGTH", "CHECK", "CLOB", "CLONE", "CLOSE", "CLUSTER", "COALESCE", "COLLATE", "COLLECT", "COLLECTION", "COLLID", "COLUMN", "COMMENT", "COMMIT", "CONCAT", "CONDITION", "CONNECT", "CONNECTION", "CONSTRAINT", "CONTAINS", "CONTINUE", "CONVERT", "CORR", "CORRESPONDING", "COUNT", "COUNT_BIG", "COVAR_POP", "COVAR_SAMP", "CREATE", "CROSS", "CUBE", "CUME_DIST", "CURRENT", "CURRENT_DATE", "CURRENT_DEFAULT_TRANSFORM_GROUP", "CURRENT_LC_CTYPE", "CURRENT_PATH", "CURRENT_ROLE", "CURRENT_SCHEMA", "CURRENT_SERVER", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_TIMEZONE", "CURRENT_TRANSFORM_GROUP_FOR_TYPE", "CURRENT_USER", "CURSOR", "CYCLE", "DATA", "DATABASE", "DATAPARTITIONNAME", "DATAPARTITIONNUM", "DATE", "DAY", "DAYS", "DB2GENERAL", "DB2GENRL", "DB2SQL", "DBINFO", "DBPARTITIONNAME", "DBPARTITIONNUM", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULTS", "DEFINITION", "DELETE", "DENSERANK", "DENSE_RANK", "DEREF", "DESCRIBE", "DESCRIPTOR", "DETERMINISTIC", "DIAGNOSTICS", "DISABLE", "DISALLOW", "DISCONNECT", "DISTINCT", "DO", "DOCUMENT", "DOUBLE", "DROP", "DSSIZE", "DYNAMIC", "EACH", "EDITPROC", "ELEMENT", "ELSE", "ELSEIF", "ENABLE", "ENCODING", "ENCRYPTION", "END", "END-EXEC", "ENDING", "ERASE", "ESCAPE", "EVERY", "EXCEPTION", "EXCLUDING", "EXCLUSIVE", "EXEC", "EXECUTE", "EXISTS", "EXIT", "EXP", "EXPLAIN", "EXTENDED", "EXTERNAL", "EXTRACT", "FALSE", "FENCED", "FETCH", "FIELDPROC", "FILE", "FILTER", "FINAL", "FIRST", "FLOAT", "FLOOR", "FOR", "FOREIGN", "FREE", "FULL", "FUNCTION", "FUSION", "GENERAL", "GENERATED", "GET", "GLOBAL", "GOTO", "GRANT", "GRAPHIC", "GROUP", "GROUPING", "HANDLER", "HASH", "HASHED_VALUE", "HINT", "HOLD", "HOUR", "HOURS", "IDENTITY", "IF", "IMMEDIATE", "IN", "INCLUDING", "INCLUSIVE", "INCREMENT", "INDEX", "INDICATOR", "INDICATORS", "INF", "INFINITY", "INHERIT", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INT", "INTEGER", "INTEGRITY", "INTERSECTION", "INTERVAL", "INTO", "IS", "ISOBID", "ISOLATION", "ITERATE", "JAR", "JAVA", "KEEP", "KEY", "LABEL", "LANGUAGE", "LARGE", "LATERAL", "LC_CTYPE", "LEADING", "LEAVE", "LEFT", "LIKE", "LINKTYPE", "LN", "LOCAL", "LOCALDATE", "LOCALE", "LOCALTIME", "LOCALTIMESTAMP", "LOCATOR", "LOCATORS", "LOCK", "LOCKMAX", "LOCKSIZE", "LONG", "LOOP", "LOWER", "MAINTAINED", "MATCH", "MATERIALIZED", "MAX", "MAXVALUE", "MEMBER", "MERGE", "METHOD", "MICROSECOND", "MICROSECONDS", "MIN", "MINUTE", "MINUTES", "MINVALUE", "MOD", "MODE", "MODIFIES", "MODULE", "MONTH", "MONTHS", "MULTISET", "NAN", "NATIONAL", "NATURAL", "NCHAR", "NCLOB", "NEW", "NEW_TABLE", "NEXTVAL", "NO", "NOCACHE", "NOCYCLE", "NODENAME", "NODENUMBER", "NOMAXVALUE", "NOMINVALUE", "NONE", "NOORDER", "NORMALIZE", "NORMALIZED", "NOT", "NULL", "NULLIF", "NULLS", "NUMERIC", "NUMPARTS", "OBID", "OCTET_LENGTH", "OF", "OFFSET", "OLD", "OLD_TABLE", "ON", "ONLY", "OPEN", "OPTIMIZATION", "OPTIMIZE", "OPTION", "ORDER", "OUT", "OUTER", "OVER", "OVERLAPS", "OVERLAY", "OVERRIDING", "PACKAGE", "PADDED", "PAGESIZE", "PARAMETER", "PART", "PARTITION", "PARTITIONED", "PARTITIONING", "PARTITIONS", "PASSWORD", "PATH", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "PIECESIZE", "PLAN", "POSITION", "POWER", "PRECISION", "PREPARE", "PREVVAL", "PRIMARY", "PRIQTY", "PRIVILEGES", "PROCEDURE", "PROGRAM", "PSID", "PUBLIC", "QUERY", "QUERYNO", "RANGE", "RANK", "READ", "READS", "REAL", "RECOVERY", "RECURSIVE", "REF", "REFERENCES", "REFERENCING", "REFRESH", "REGR_AVGX", "REGR_AVGY", "REGR_COUNT", "REGR_INTERCEPT", "REGR_R2", "REGR_SLOPE", "REGR_SXX", "REGR_SXY", "REGR_SYY", "RELEASE", "RENAME", "REPEAT", "RESET", "RESIGNAL", "RESTART", "RESTRICT", "RESULT", "RESULT_SET_LOCATOR", "RETURN", "RETURNS", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUND_CEILING", "ROUND_DOWN", "ROUND_FLOOR", "ROUND_HALF_DOWN", "ROUND_HALF_EVEN", "ROUND_HALF_UP", "ROUND_UP", "ROUTINE", "ROW", "ROWNUMBER", "ROWS", "ROWSET", "ROW_NUMBER", "RRN", "RUN", "SAVEPOINT", "SCHEMA", "SCOPE", "SCRATCHPAD", "SCROLL", "SEARCH", "SECOND", "SECONDS", "SECQTY", "SECURITY", "SENSITIVE", "SEQUENCE", "SESSION", "SESSION_USER", "SIGNAL", "SIMILAR", "SIMPLE", "SMALLINT", "SNAN", "SOME", "SOURCE", "SPECIFIC", "SPECIFICTYPE", "SQL", "SQLEXCEPTION", "SQLID", "SQLSTATE", "SQLWARNING", "SQRT", "STACKED", "STANDARD", "START", "STARTING", "STATEMENT", "STATIC", "STATMENT", "STAY", "STDDEV_POP", "STDDEV_SAMP", "STOGROUP", "STORES", "STYLE", "SUBMULTISET", "SUBSTRING", "SUM", "SUMMARY", "SYMMETRIC", "SYNONYM", "SYSFUN", "SYSIBM", "SYSPROC", "SYSTEM", "SYSTEM_USER", "TABLE", "TABLESAMPLE", "TABLESPACE", "THEN", "TIME", "TIMESTAMP", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TRAILING", "TRANSACTION", "TRANSLATE", "TRANSLATION", "TREAT", "TRIGGER", "TRIM", "TRUE", "TRUNCATE", "TYPE", "UESCAPE", "UNDO", "UNIQUE", "UNKNOWN", "UNNEST", "UNTIL", "UPPER", "USAGE", "USER", "USING", "VALIDPROC", "VALUE", "VARCHAR", "VARIABLE", "VARIANT", "VARYING", "VAR_POP", "VAR_SAMP", "VCAT", "VERSION", "VIEW", "VOLATILE", "VOLUMES", "WHEN", "WHENEVER", "WHILE", "WIDTH_BUCKET", "WINDOW", "WITH", "WITHIN", "WITHOUT", "WLM", "WRITE", "XMLELEMENT", "XMLEXISTS", "XMLNAMESPACES", "YEAR", "YEARS" ];
|
|
767
|
-
var N = [ "ADD", "AFTER", "ALTER COLUMN", "ALTER TABLE", "DELETE FROM", "EXCEPT", "FETCH FIRST", "FROM", "GROUP BY", "GO", "HAVING", "INSERT INTO", "INTERSECT", "LIMIT", "ORDER BY", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UPDATE", "VALUES", "WHERE" ];
|
|
768
|
-
var A = [ "INTERSECT", "INTERSECT ALL", "MINUS", "UNION", "UNION ALL" ];
|
|
769
|
-
var I = [ "AND", "CROSS JOIN", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN" ];
|
|
770
|
-
})(E);
|
|
771
|
-
|
|
772
|
-
var O = {};
|
|
12
|
+
exports.Check_2 = r.Check = s;
|
|
773
13
|
|
|
774
|
-
(
|
|
775
|
-
var T = e.commonjsGlobal && e.commonjsGlobal.__extends || function() {
|
|
776
|
-
var e = function(E, t) {
|
|
777
|
-
e = Object.setPrototypeOf || {
|
|
778
|
-
__proto__: []
|
|
779
|
-
} instanceof Array && function(e, E) {
|
|
780
|
-
e.__proto__ = E;
|
|
781
|
-
} || function(e, E) {
|
|
782
|
-
for (var t in E) if (Object.prototype.hasOwnProperty.call(E, t)) e[t] = E[t];
|
|
783
|
-
};
|
|
784
|
-
return e(E, t);
|
|
785
|
-
};
|
|
786
|
-
return function(E, t) {
|
|
787
|
-
if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
788
|
-
e(E, t);
|
|
789
|
-
function T() {
|
|
790
|
-
this.constructor = E;
|
|
791
|
-
}
|
|
792
|
-
E.prototype = t === null ? Object.create(t) : (T.prototype = t.prototype, new T);
|
|
793
|
-
};
|
|
794
|
-
}();
|
|
795
|
-
var n = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
796
|
-
return e && e.__esModule ? e : {
|
|
797
|
-
default: e
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
E.__esModule = true;
|
|
801
|
-
var r = n(t);
|
|
802
|
-
var R = function(e) {
|
|
803
|
-
T(E, e);
|
|
804
|
-
function E() {
|
|
805
|
-
return e !== null && e.apply(this, arguments) || this;
|
|
806
|
-
}
|
|
807
|
-
E.prototype.getTokenizerConfig = function() {
|
|
808
|
-
return {
|
|
809
|
-
reservedWords: o,
|
|
810
|
-
reservedTopLevelWords: N,
|
|
811
|
-
reservedNewlineWords: I,
|
|
812
|
-
reservedTopLevelWordsNoIndent: A,
|
|
813
|
-
stringTypes: [ '""', "''", "``" ],
|
|
814
|
-
openParens: [ "(", "[", "{" ],
|
|
815
|
-
closeParens: [ ")", "]", "}" ],
|
|
816
|
-
namedPlaceholderTypes: [ "$" ],
|
|
817
|
-
lineCommentTypes: [ "#", "--" ],
|
|
818
|
-
specialWordChars: []
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
return E;
|
|
822
|
-
}(r["default"]);
|
|
823
|
-
E["default"] = R;
|
|
824
|
-
var o = [ "ALL", "ALTER", "ANALYZE", "AND", "ANY", "ARRAY", "AS", "ASC", "BEGIN", "BETWEEN", "BINARY", "BOOLEAN", "BREAK", "BUCKET", "BUILD", "BY", "CALL", "CASE", "CAST", "CLUSTER", "COLLATE", "COLLECTION", "COMMIT", "CONNECT", "CONTINUE", "CORRELATE", "COVER", "CREATE", "DATABASE", "DATASET", "DATASTORE", "DECLARE", "DECREMENT", "DELETE", "DERIVED", "DESC", "DESCRIBE", "DISTINCT", "DO", "DROP", "EACH", "ELEMENT", "ELSE", "END", "EVERY", "EXCEPT", "EXCLUDE", "EXECUTE", "EXISTS", "EXPLAIN", "FALSE", "FETCH", "FIRST", "FLATTEN", "FOR", "FORCE", "FROM", "FUNCTION", "GRANT", "GROUP", "GSI", "HAVING", "IF", "IGNORE", "ILIKE", "IN", "INCLUDE", "INCREMENT", "INDEX", "INFER", "INLINE", "INNER", "INSERT", "INTERSECT", "INTO", "IS", "JOIN", "KEY", "KEYS", "KEYSPACE", "KNOWN", "LAST", "LEFT", "LET", "LETTING", "LIKE", "LIMIT", "LSM", "MAP", "MAPPING", "MATCHED", "MATERIALIZED", "MERGE", "MISSING", "NAMESPACE", "NEST", "NOT", "NULL", "NUMBER", "OBJECT", "OFFSET", "ON", "OPTION", "OR", "ORDER", "OUTER", "OVER", "PARSE", "PARTITION", "PASSWORD", "PATH", "POOL", "PREPARE", "PRIMARY", "PRIVATE", "PRIVILEGE", "PROCEDURE", "PUBLIC", "RAW", "REALM", "REDUCE", "RENAME", "RETURN", "RETURNING", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "SATISFIES", "SCHEMA", "SELECT", "SELF", "SEMI", "SET", "SHOW", "SOME", "START", "STATISTICS", "STRING", "SYSTEM", "THEN", "TO", "TRANSACTION", "TRIGGER", "TRUE", "TRUNCATE", "UNDER", "UNION", "UNIQUE", "UNKNOWN", "UNNEST", "UNSET", "UPDATE", "UPSERT", "USE", "USER", "USING", "VALIDATE", "VALUE", "VALUED", "VALUES", "VIA", "VIEW", "WHEN", "WHERE", "WHILE", "WITH", "WITHIN", "WORK", "XOR" ];
|
|
825
|
-
var N = [ "DELETE FROM", "EXCEPT ALL", "EXCEPT", "EXPLAIN DELETE FROM", "EXPLAIN UPDATE", "EXPLAIN UPSERT", "FROM", "GROUP BY", "HAVING", "INFER", "INSERT INTO", "LET", "LIMIT", "MERGE", "NEST", "ORDER BY", "PREPARE", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UNNEST", "UPDATE", "UPSERT", "USE KEYS", "VALUES", "WHERE" ];
|
|
826
|
-
var A = [ "INTERSECT", "INTERSECT ALL", "MINUS", "UNION", "UNION ALL" ];
|
|
827
|
-
var I = [ "AND", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN", "XOR" ];
|
|
828
|
-
})(O);
|
|
14
|
+
const t = e.requireGlobals();
|
|
829
15
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
(function(E) {
|
|
833
|
-
var T = e.commonjsGlobal && e.commonjsGlobal.__extends || function() {
|
|
834
|
-
var e = function(E, t) {
|
|
835
|
-
e = Object.setPrototypeOf || {
|
|
836
|
-
__proto__: []
|
|
837
|
-
} instanceof Array && function(e, E) {
|
|
838
|
-
e.__proto__ = E;
|
|
839
|
-
} || function(e, E) {
|
|
840
|
-
for (var t in E) if (Object.prototype.hasOwnProperty.call(E, t)) e[t] = E[t];
|
|
841
|
-
};
|
|
842
|
-
return e(E, t);
|
|
843
|
-
};
|
|
844
|
-
return function(E, t) {
|
|
845
|
-
if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
846
|
-
e(E, t);
|
|
847
|
-
function T() {
|
|
848
|
-
this.constructor = E;
|
|
849
|
-
}
|
|
850
|
-
E.prototype = t === null ? Object.create(t) : (T.prototype = t.prototype, new T);
|
|
851
|
-
};
|
|
852
|
-
}();
|
|
853
|
-
var n = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
854
|
-
return e && e.__esModule ? e : {
|
|
855
|
-
default: e
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
|
-
E.__esModule = true;
|
|
859
|
-
var R = n(t);
|
|
860
|
-
var o = r;
|
|
861
|
-
var N = function(e) {
|
|
862
|
-
T(E, e);
|
|
863
|
-
function E() {
|
|
864
|
-
var E = e !== null && e.apply(this, arguments) || this;
|
|
865
|
-
E.tokenOverride = function(e, E) {
|
|
866
|
-
if (e.type === o.TokenTypes.RESERVED_TOP_LEVEL && E.value && e.value.toUpperCase() === "SET" && E.value.toUpperCase() === "BY") {
|
|
867
|
-
e.type = o.TokenTypes.RESERVED;
|
|
868
|
-
return e;
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
return E;
|
|
872
|
-
}
|
|
873
|
-
E.prototype.getTokenizerConfig = function() {
|
|
874
|
-
return {
|
|
875
|
-
reservedWords: A,
|
|
876
|
-
reservedTopLevelWords: I,
|
|
877
|
-
reservedNewlineWords: i,
|
|
878
|
-
reservedTopLevelWordsNoIndent: O,
|
|
879
|
-
stringTypes: [ '""', "N''", "''", "``" ],
|
|
880
|
-
openParens: [ "(", "CASE" ],
|
|
881
|
-
closeParens: [ ")", "END" ],
|
|
882
|
-
indexedPlaceholderTypes: [ "?" ],
|
|
883
|
-
namedPlaceholderTypes: [ ":" ],
|
|
884
|
-
lineCommentTypes: [ "--" ],
|
|
885
|
-
specialWordChars: [ "_", "$", "#", ".", "@" ]
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
return E;
|
|
889
|
-
}(R["default"]);
|
|
890
|
-
E["default"] = N;
|
|
891
|
-
var A = [ "A", "ACCESSIBLE", "AGENT", "AGGREGATE", "ALL", "ALTER", "ANY", "ARRAY", "AS", "ASC", "AT", "ATTRIBUTE", "AUTHID", "AVG", "BETWEEN", "BFILE_BASE", "BINARY_INTEGER", "BINARY", "BLOB_BASE", "BLOCK", "BODY", "BOOLEAN", "BOTH", "BOUND", "BREADTH", "BULK", "BY", "BYTE", "C", "CALL", "CALLING", "CASCADE", "CASE", "CHAR_BASE", "CHAR", "CHARACTER", "CHARSET", "CHARSETFORM", "CHARSETID", "CHECK", "CLOB_BASE", "CLONE", "CLOSE", "CLUSTER", "CLUSTERS", "COALESCE", "COLAUTH", "COLLECT", "COLUMNS", "COMMENT", "COMMIT", "COMMITTED", "COMPILED", "COMPRESS", "CONNECT", "CONSTANT", "CONSTRUCTOR", "CONTEXT", "CONTINUE", "CONVERT", "COUNT", "CRASH", "CREATE", "CREDENTIAL", "CURRENT", "CURRVAL", "CURSOR", "CUSTOMDATUM", "DANGLING", "DATA", "DATE_BASE", "DATE", "DAY", "DECIMAL", "DEFAULT", "DEFINE", "DELETE", "DEPTH", "DESC", "DETERMINISTIC", "DIRECTORY", "DISTINCT", "DO", "DOUBLE", "DROP", "DURATION", "ELEMENT", "ELSIF", "EMPTY", "END", "ESCAPE", "EXCEPTIONS", "EXCLUSIVE", "EXECUTE", "EXISTS", "EXIT", "EXTENDS", "EXTERNAL", "EXTRACT", "FALSE", "FETCH", "FINAL", "FIRST", "FIXED", "FLOAT", "FOR", "FORALL", "FORCE", "FROM", "FUNCTION", "GENERAL", "GOTO", "GRANT", "GROUP", "HASH", "HEAP", "HIDDEN", "HOUR", "IDENTIFIED", "IF", "IMMEDIATE", "IN", "INCLUDING", "INDEX", "INDEXES", "INDICATOR", "INDICES", "INFINITE", "INSTANTIABLE", "INT", "INTEGER", "INTERFACE", "INTERVAL", "INTO", "INVALIDATE", "IS", "ISOLATION", "JAVA", "LANGUAGE", "LARGE", "LEADING", "LENGTH", "LEVEL", "LIBRARY", "LIKE", "LIKE2", "LIKE4", "LIKEC", "LIMITED", "LOCAL", "LOCK", "LONG", "MAP", "MAX", "MAXLEN", "MEMBER", "MERGE", "MIN", "MINUTE", "MLSLABEL", "MOD", "MODE", "MONTH", "MULTISET", "NAME", "NAN", "NATIONAL", "NATIVE", "NATURAL", "NATURALN", "NCHAR", "NEW", "NEXTVAL", "NOCOMPRESS", "NOCOPY", "NOT", "NOWAIT", "NULL", "NULLIF", "NUMBER_BASE", "NUMBER", "OBJECT", "OCICOLL", "OCIDATE", "OCIDATETIME", "OCIDURATION", "OCIINTERVAL", "OCILOBLOCATOR", "OCINUMBER", "OCIRAW", "OCIREF", "OCIREFCURSOR", "OCIROWID", "OCISTRING", "OCITYPE", "OF", "OLD", "ON", "ONLY", "OPAQUE", "OPEN", "OPERATOR", "OPTION", "ORACLE", "ORADATA", "ORDER", "ORGANIZATION", "ORLANY", "ORLVARY", "OTHERS", "OUT", "OVERLAPS", "OVERRIDING", "PACKAGE", "PARALLEL_ENABLE", "PARAMETER", "PARAMETERS", "PARENT", "PARTITION", "PASCAL", "PCTFREE", "PIPE", "PIPELINED", "PLS_INTEGER", "PLUGGABLE", "POSITIVE", "POSITIVEN", "PRAGMA", "PRECISION", "PRIOR", "PRIVATE", "PROCEDURE", "PUBLIC", "RAISE", "RANGE", "RAW", "READ", "REAL", "RECORD", "REF", "REFERENCE", "RELEASE", "RELIES_ON", "REM", "REMAINDER", "RENAME", "RESOURCE", "RESULT_CACHE", "RESULT", "RETURN", "RETURNING", "REVERSE", "REVOKE", "ROLLBACK", "ROW", "ROWID", "ROWNUM", "ROWTYPE", "SAMPLE", "SAVE", "SAVEPOINT", "SB1", "SB2", "SB4", "SEARCH", "SECOND", "SEGMENT", "SELF", "SEPARATE", "SEQUENCE", "SERIALIZABLE", "SHARE", "SHORT", "SIZE_T", "SIZE", "SMALLINT", "SOME", "SPACE", "SPARSE", "SQL", "SQLCODE", "SQLDATA", "SQLERRM", "SQLNAME", "SQLSTATE", "STANDARD", "START", "STATIC", "STDDEV", "STORED", "STRING", "STRUCT", "STYLE", "SUBMULTISET", "SUBPARTITION", "SUBSTITUTABLE", "SUBTYPE", "SUCCESSFUL", "SUM", "SYNONYM", "SYSDATE", "TABAUTH", "TABLE", "TDO", "THE", "THEN", "TIME", "TIMESTAMP", "TIMEZONE_ABBR", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TIMEZONE_REGION", "TO", "TRAILING", "TRANSACTION", "TRANSACTIONAL", "TRIGGER", "TRUE", "TRUSTED", "TYPE", "UB1", "UB2", "UB4", "UID", "UNDER", "UNIQUE", "UNPLUG", "UNSIGNED", "UNTRUSTED", "USE", "USER", "USING", "VALIDATE", "VALIST", "VALUE", "VARCHAR", "VARCHAR2", "VARIABLE", "VARIANCE", "VARRAY", "VARYING", "VIEW", "VIEWS", "VOID", "WHENEVER", "WHILE", "WITH", "WORK", "WRAPPED", "WRITE", "YEAR", "ZONE" ];
|
|
892
|
-
var I = [ "ADD", "ALTER COLUMN", "ALTER TABLE", "BEGIN", "CONNECT BY", "DECLARE", "DELETE FROM", "DELETE", "END", "EXCEPT", "EXCEPTION", "FETCH FIRST", "FROM", "GROUP BY", "HAVING", "INSERT INTO", "INSERT", "LIMIT", "LOOP", "MODIFY", "ORDER BY", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "START WITH", "UPDATE", "VALUES", "WHERE" ];
|
|
893
|
-
var O = [ "INTERSECT", "INTERSECT ALL", "MINUS", "UNION", "UNION ALL" ];
|
|
894
|
-
var i = [ "AND", "CROSS APPLY", "CROSS JOIN", "ELSE", "END", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER APPLY", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN", "WHEN", "XOR" ];
|
|
895
|
-
})(i);
|
|
16
|
+
const n = e.error;
|
|
896
17
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
for (var t in E) if (Object.prototype.hasOwnProperty.call(E, t)) e[t] = E[t];
|
|
908
|
-
};
|
|
909
|
-
return e(E, t);
|
|
910
|
-
};
|
|
911
|
-
return function(E, t) {
|
|
912
|
-
if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
913
|
-
e(E, t);
|
|
914
|
-
function T() {
|
|
915
|
-
this.constructor = E;
|
|
916
|
-
}
|
|
917
|
-
E.prototype = t === null ? Object.create(t) : (T.prototype = t.prototype, new T);
|
|
918
|
-
};
|
|
919
|
-
}();
|
|
920
|
-
var n = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
921
|
-
return e && e.__esModule ? e : {
|
|
922
|
-
default: e
|
|
923
|
-
};
|
|
924
|
-
};
|
|
925
|
-
E.__esModule = true;
|
|
926
|
-
var r = n(t);
|
|
927
|
-
var R = function(e) {
|
|
928
|
-
T(E, e);
|
|
929
|
-
function E() {
|
|
930
|
-
return e !== null && e.apply(this, arguments) || this;
|
|
931
|
-
}
|
|
932
|
-
E.prototype.getTokenizerConfig = function() {
|
|
933
|
-
return {
|
|
934
|
-
reservedWords: o,
|
|
935
|
-
reservedTopLevelWords: N,
|
|
936
|
-
reservedNewlineWords: I,
|
|
937
|
-
reservedTopLevelWordsNoIndent: A,
|
|
938
|
-
stringTypes: [ '""', "N''", "''", "``", "[]", "E''" ],
|
|
939
|
-
openParens: [ "(", "CASE" ],
|
|
940
|
-
closeParens: [ ")", "END" ],
|
|
941
|
-
indexedPlaceholderTypes: [ "?" ],
|
|
942
|
-
namedPlaceholderTypes: [ "@", ":", "%", "$" ],
|
|
943
|
-
lineCommentTypes: [ "#", "--" ],
|
|
944
|
-
specialWordChars: []
|
|
945
|
-
};
|
|
946
|
-
};
|
|
947
|
-
return E;
|
|
948
|
-
}(r["default"]);
|
|
949
|
-
E["default"] = R;
|
|
950
|
-
var o = [ "ACCESSIBLE", "ACTION", "AGAINST", "AGGREGATE", "ALGORITHM", "ALL", "ALTER", "ANALYSE", "ANALYZE", "AS", "ASC", "AUTOCOMMIT", "AUTO_INCREMENT", "BACKUP", "BEGIN", "BETWEEN", "BINLOG", "BOTH", "CASCADE", "CASE", "CHANGE", "CHANGED", "CHARACTER SET", "CHARSET", "CHECK", "CHECKSUM", "COLLATE", "COLLATION", "COLUMN", "COLUMNS", "COMMENT", "COMMIT", "COMMITTED", "COMPRESSED", "CONCURRENT", "CONSTRAINT", "CONTAINS", "CONVERT", "COUNT", "CREATE", "CROSS", "CURRENT_TIMESTAMP", "DATABASE", "DATABASES", "DAY_HOUR", "DAY_MINUTE", "DAY_SECOND", "DAY", "DEFAULT", "DEFINER", "DELAYED", "DELETE", "DESC", "DESCRIBE", "DETERMINISTIC", "DISTINCT", "DISTINCTROW", "DIV", "DO", "DROP", "DUMPFILE", "DUPLICATE", "DYNAMIC", "ELSE", "ENCLOSED", "END", "ENGINE", "ENGINES", "ENGINE_TYPE", "ESCAPE", "ESCAPED", "EVENTS", "EXEC", "EXECUTE", "EXISTS", "EXPLAIN", "EXTENDED", "FAST", "FETCH", "FIELDS", "FILE", "FIRST", "FIXED", "FLUSH", "FOR", "FORCE", "FOREIGN", "FULL", "FULLTEXT", "FUNCTION", "GLOBAL", "GRANTS", "GROUP_CONCAT", "HEAP", "HIGH_PRIORITY", "HOSTS", "HOUR", "HOUR_MINUTE", "HOUR_SECOND", "IDENTIFIED", "IF", "IFNULL", "IGNORE", "IN", "INDEX", "INDEXES", "INFILE", "INSERT", "INSERT_ID", "INSERT_METHOD", "INTERVAL", "INTO", "INVOKER", "IS", "ISOLATION", "KEY", "KEYS", "KILL", "LAST_INSERT_ID", "LEADING", "LEVEL", "LIKE", "LINEAR", "LINES", "LOAD", "LOCAL", "LOCK", "LOCKS", "LOGS", "LOW_PRIORITY", "MARIA", "MASTER", "MASTER_CONNECT_RETRY", "MASTER_HOST", "MASTER_LOG_FILE", "MATCH", "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", "MAX_UPDATES_PER_HOUR", "MAX_USER_CONNECTIONS", "MEDIUM", "MERGE", "MINUTE", "MINUTE_SECOND", "MIN_ROWS", "MODE", "MONTH", "MRG_MYISAM", "MYISAM", "NAMES", "NATURAL", "NOT", "NOW()", "NULL", "OFFSET", "ON DELETE", "ON UPDATE", "ON", "ONLY", "OPEN", "OPTIMIZE", "OPTION", "OPTIONALLY", "OUTFILE", "PACK_KEYS", "PAGE", "PARTIAL", "PARTITION", "PARTITIONS", "PASSWORD", "PRIMARY", "PRIVILEGES", "PROCEDURE", "PROCESS", "PROCESSLIST", "PURGE", "QUICK", "RAID0", "RAID_CHUNKS", "RAID_CHUNKSIZE", "RAID_TYPE", "RANGE", "READ", "READ_ONLY", "READ_WRITE", "REFERENCES", "REGEXP", "RELOAD", "RENAME", "REPAIR", "REPEATABLE", "REPLACE", "REPLICATION", "RESET", "RESTORE", "RESTRICT", "RETURN", "RETURNS", "REVOKE", "RLIKE", "ROLLBACK", "ROW", "ROWS", "ROW_FORMAT", "SECOND", "SECURITY", "SEPARATOR", "SERIALIZABLE", "SESSION", "SHARE", "SHOW", "SHUTDOWN", "SLAVE", "SONAME", "SOUNDS", "SQL", "SQL_AUTO_IS_NULL", "SQL_BIG_RESULT", "SQL_BIG_SELECTS", "SQL_BIG_TABLES", "SQL_BUFFER_RESULT", "SQL_CACHE", "SQL_CALC_FOUND_ROWS", "SQL_LOG_BIN", "SQL_LOG_OFF", "SQL_LOG_UPDATE", "SQL_LOW_PRIORITY_UPDATES", "SQL_MAX_JOIN_SIZE", "SQL_NO_CACHE", "SQL_QUOTE_SHOW_CREATE", "SQL_SAFE_UPDATES", "SQL_SELECT_LIMIT", "SQL_SLAVE_SKIP_COUNTER", "SQL_SMALL_RESULT", "SQL_WARNINGS", "START", "STARTING", "STATUS", "STOP", "STORAGE", "STRAIGHT_JOIN", "STRING", "STRIPED", "SUPER", "TABLE", "TABLES", "TEMPORARY", "TERMINATED", "THEN", "TO", "TRAILING", "TRANSACTIONAL", "TRIGGER", "TRUE", "TRUNCATE", "TYPE", "TYPES", "UNCOMMITTED", "UNIQUE", "UNLOCK", "UNSIGNED", "USAGE", "USE", "USING", "VARIABLES", "VIEW", "WHEN", "WITH", "WORK", "WRITE", "YEAR_MONTH" ];
|
|
951
|
-
var N = [ "ADD", "AFTER", "ALTER COLUMN", "ALTER TABLE", "CREATE OR REPLACE", "DECLARE", "DELETE FROM", "EXCEPT", "FETCH FIRST", "FROM", "GO", "GRANT", "GROUP BY", "HAVING", "INSERT INTO", "INSERT", "LIMIT", "MODIFY", "ORDER BY", "RETURNING", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UPDATE", "VALUES", "WHERE" ];
|
|
952
|
-
var A = [ "INTERSECT ALL", "INTERSECT", "MINUS", "UNION ALL", "UNION" ];
|
|
953
|
-
var I = [ "AND", "CROSS APPLY", "CROSS JOIN", "ELSE", "INNER JOIN", "FULL JOIN", "FULL OUTER JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "NATURAL JOIN", "OR", "OUTER APPLY", "OUTER JOIN", "RENAME", "RIGHT JOIN", "RIGHT OUTER JOIN", "JOIN", "WHEN", "XOR" ];
|
|
954
|
-
})(S);
|
|
955
|
-
|
|
956
|
-
(function(t) {
|
|
957
|
-
var T = e.commonjsGlobal && e.commonjsGlobal.__importDefault || function(e) {
|
|
958
|
-
return e && e.__esModule ? e : {
|
|
959
|
-
default: e
|
|
960
|
-
};
|
|
961
|
-
};
|
|
962
|
-
t.__esModule = true;
|
|
963
|
-
t.tokenize = t.format = void 0;
|
|
964
|
-
var n = T(E);
|
|
965
|
-
var r = T(O);
|
|
966
|
-
var R = T(i);
|
|
967
|
-
var o = T(S);
|
|
968
|
-
var N = function(e, E) {
|
|
969
|
-
if (E === void 0) {
|
|
970
|
-
E = {};
|
|
971
|
-
}
|
|
972
|
-
switch (E.language) {
|
|
973
|
-
case "db2":
|
|
974
|
-
return new n["default"](E).format(e);
|
|
975
|
-
|
|
976
|
-
case "n1ql":
|
|
977
|
-
return new r["default"](E).format(e);
|
|
978
|
-
|
|
979
|
-
case "pl/sql":
|
|
980
|
-
return new R["default"](E).format(e);
|
|
981
|
-
|
|
982
|
-
case "sql":
|
|
983
|
-
default:
|
|
984
|
-
return new o["default"](E).format(e);
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
t.format = N;
|
|
988
|
-
var A = function(e, E) {
|
|
989
|
-
if (E === void 0) {
|
|
990
|
-
E = {};
|
|
991
|
-
}
|
|
992
|
-
return new o["default"](E).tokenize(e);
|
|
993
|
-
};
|
|
994
|
-
t.tokenize = A;
|
|
995
|
-
t["default"] = {
|
|
996
|
-
format: t.format,
|
|
997
|
-
tokenize: t.tokenize
|
|
18
|
+
function s(e, r) {
|
|
19
|
+
const s = r ? e : undefined;
|
|
20
|
+
const o = r ? r : e;
|
|
21
|
+
if (!o) throw new n.TypeORMError(`Check expression is required`);
|
|
22
|
+
return function(e, r) {
|
|
23
|
+
(0, t.getMetadataArgsStorage)().checks.push({
|
|
24
|
+
target: r ? e.constructor : e,
|
|
25
|
+
name: s,
|
|
26
|
+
expression: o
|
|
27
|
+
});
|
|
998
28
|
};
|
|
999
|
-
}
|
|
29
|
+
}
|