lakutata 2.0.96 → 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 +31 -135
- package/com/cacher.mjs +23 -127
- 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 +117 -113
- package/decorator/orm.mjs +71 -67
- 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 +511 -174
- package/src/components/cacher/Cacher.mjs +502 -171
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +547 -35
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +530 -34
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +17 -61
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +19 -63
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +21 -65
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +22 -66
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +7 -45
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +18 -56
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +23 -67
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +23 -67
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +6 -44
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +27 -65
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +11 -55
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +18 -62
- 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 -1608
- package/vendor/Package.internal.11.mjs +16 -1579
- package/vendor/Package.internal.12.cjs +13 -12547
- package/vendor/Package.internal.12.mjs +14 -12530
- package/vendor/Package.internal.13.cjs +22 -357
- package/vendor/Package.internal.13.mjs +23 -358
- package/vendor/Package.internal.14.cjs +17 -786
- package/vendor/Package.internal.14.mjs +18 -787
- package/vendor/Package.internal.15.cjs +18 -72
- package/vendor/Package.internal.15.mjs +19 -71
- package/vendor/Package.internal.16.cjs +13 -977
- package/vendor/Package.internal.16.mjs +14 -966
- package/vendor/Package.internal.17.cjs +19 -43
- package/vendor/Package.internal.17.mjs +20 -44
- package/vendor/Package.internal.18.cjs +16 -262
- package/vendor/Package.internal.18.mjs +17 -263
- package/vendor/Package.internal.19.cjs +16 -428
- package/vendor/Package.internal.19.mjs +17 -429
- package/vendor/Package.internal.2.cjs +29 -86
- package/vendor/Package.internal.2.mjs +30 -83
- package/vendor/Package.internal.20.cjs +18 -556
- package/vendor/Package.internal.20.mjs +19 -551
- package/vendor/Package.internal.21.cjs +19 -400
- package/vendor/Package.internal.21.mjs +20 -401
- package/vendor/Package.internal.22.cjs +56 -913
- package/vendor/Package.internal.22.mjs +57 -908
- package/vendor/Package.internal.23.cjs +15 -218
- package/vendor/Package.internal.23.mjs +17 -220
- package/vendor/Package.internal.24.cjs +16 -990
- package/vendor/Package.internal.24.mjs +17 -991
- package/vendor/Package.internal.25.cjs +32 -9
- package/vendor/Package.internal.25.mjs +33 -8
- package/vendor/Package.internal.26.cjs +15 -121
- package/vendor/Package.internal.26.mjs +16 -120
- package/vendor/Package.internal.27.cjs +18 -139
- package/vendor/Package.internal.27.mjs +19 -138
- package/vendor/Package.internal.28.cjs +21 -5
- package/vendor/Package.internal.28.mjs +22 -4
- package/vendor/Package.internal.29.cjs +36 -19
- package/vendor/Package.internal.29.mjs +37 -18
- package/vendor/Package.internal.3.cjs +532 -14232
- package/vendor/Package.internal.3.mjs +529 -14211
- package/vendor/Package.internal.30.cjs +22 -474
- package/vendor/Package.internal.30.mjs +23 -469
- package/vendor/Package.internal.31.cjs +21 -74
- package/vendor/Package.internal.31.mjs +24 -71
- package/vendor/Package.internal.310.cjs +10 -0
- package/vendor/Package.internal.310.mjs +8 -0
- package/vendor/Package.internal.32.cjs +40 -2
- package/vendor/Package.internal.32.mjs +42 -2
- package/vendor/Package.internal.33.cjs +34 -35
- package/vendor/Package.internal.33.mjs +35 -34
- package/vendor/Package.internal.34.cjs +20 -21
- package/vendor/Package.internal.34.mjs +21 -20
- package/vendor/Package.internal.35.cjs +29 -10
- package/vendor/Package.internal.35.mjs +30 -9
- package/vendor/Package.internal.36.cjs +39 -188
- package/vendor/Package.internal.36.mjs +42 -191
- package/vendor/Package.internal.37.cjs +43 -59
- package/vendor/Package.internal.37.mjs +46 -60
- package/vendor/Package.internal.38.cjs +43 -158
- package/vendor/Package.internal.38.mjs +44 -159
- package/vendor/Package.internal.39.cjs +19 -2070
- package/vendor/Package.internal.39.mjs +20 -2065
- package/vendor/Package.internal.4.cjs +463 -961
- package/vendor/Package.internal.4.mjs +444 -960
- package/vendor/Package.internal.40.cjs +16 -512
- package/vendor/Package.internal.40.mjs +17 -505
- package/vendor/Package.internal.41.cjs +15 -412
- package/vendor/Package.internal.41.mjs +16 -407
- package/vendor/Package.internal.42.cjs +21 -2356
- package/vendor/Package.internal.42.mjs +22 -2345
- package/vendor/Package.internal.43.cjs +17 -56
- package/vendor/Package.internal.43.mjs +18 -63
- package/vendor/Package.internal.44.cjs +25 -146
- package/vendor/Package.internal.44.mjs +26 -145
- package/vendor/Package.internal.45.cjs +31 -626
- package/vendor/Package.internal.45.mjs +33 -628
- package/vendor/Package.internal.46.cjs +16 -238
- package/vendor/Package.internal.46.mjs +17 -239
- package/vendor/Package.internal.47.cjs +16 -220
- package/vendor/Package.internal.47.mjs +17 -215
- package/vendor/Package.internal.48.cjs +23 -2
- package/vendor/Package.internal.48.mjs +25 -2
- package/vendor/Package.internal.49.cjs +24 -355
- package/vendor/Package.internal.49.mjs +27 -352
- package/vendor/Package.internal.5.cjs +4275 -340
- package/vendor/Package.internal.5.mjs +4274 -341
- package/vendor/Package.internal.50.cjs +30 -30
- package/vendor/Package.internal.50.mjs +32 -30
- package/vendor/Package.internal.51.cjs +48322 -38
- package/vendor/Package.internal.51.mjs +48282 -38
- 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 +676 -16
- package/vendor/Package.internal.52.mjs +672 -16
- package/vendor/{Package.internal.180.cjs → Package.internal.522.cjs} +1 -1
- package/vendor/{Package.internal.180.mjs → Package.internal.522.mjs} +2 -2
- package/vendor/Package.internal.53.cjs +7094 -63
- package/vendor/Package.internal.53.mjs +7067 -60
- package/vendor/Package.internal.54.cjs +183 -77
- package/vendor/Package.internal.54.mjs +184 -78
- package/vendor/Package.internal.542.cjs +171 -0
- package/vendor/Package.internal.542.mjs +153 -0
- package/vendor/Package.internal.55.cjs +3982 -56
- package/vendor/Package.internal.55.mjs +3995 -47
- package/vendor/Package.internal.552.cjs +49615 -0
- package/vendor/Package.internal.552.mjs +49572 -0
- package/vendor/Package.internal.56.cjs +838 -20
- package/vendor/Package.internal.56.mjs +839 -19
- package/vendor/Package.internal.57.cjs +14762 -322
- package/vendor/Package.internal.57.mjs +14740 -325
- package/vendor/Package.internal.58.cjs +136 -2
- package/vendor/Package.internal.58.mjs +126 -2
- package/vendor/Package.internal.59.cjs +323 -188
- package/vendor/Package.internal.59.mjs +319 -188
- 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 -69
- package/vendor/Package.internal.100.mjs +0 -67
- package/vendor/Package.internal.101.cjs +0 -123
- package/vendor/Package.internal.101.mjs +0 -121
- package/vendor/Package.internal.102.cjs +0 -16
- package/vendor/Package.internal.102.mjs +0 -8
- package/vendor/Package.internal.103.cjs +0 -4
- package/vendor/Package.internal.103.mjs +0 -2
- package/vendor/Package.internal.104.cjs +0 -4
- package/vendor/Package.internal.104.mjs +0 -2
- package/vendor/Package.internal.105.cjs +0 -112
- package/vendor/Package.internal.105.mjs +0 -98
- package/vendor/Package.internal.106.cjs +0 -88
- package/vendor/Package.internal.106.mjs +0 -84
- package/vendor/Package.internal.107.cjs +0 -58
- package/vendor/Package.internal.107.mjs +0 -52
- package/vendor/Package.internal.108.cjs +0 -20
- package/vendor/Package.internal.108.mjs +0 -18
- package/vendor/Package.internal.109.cjs +0 -96
- package/vendor/Package.internal.109.mjs +0 -96
- package/vendor/Package.internal.110.cjs +0 -113
- package/vendor/Package.internal.110.mjs +0 -113
- package/vendor/Package.internal.111.cjs +0 -2176
- package/vendor/Package.internal.111.mjs +0 -2174
- package/vendor/Package.internal.112.cjs +0 -2466
- package/vendor/Package.internal.112.mjs +0 -2434
- package/vendor/Package.internal.113.cjs +0 -1306
- package/vendor/Package.internal.113.mjs +0 -1292
- package/vendor/Package.internal.114.cjs +0 -33
- package/vendor/Package.internal.114.mjs +0 -31
- package/vendor/Package.internal.115.cjs +0 -20
- package/vendor/Package.internal.115.mjs +0 -18
- package/vendor/Package.internal.116.cjs +0 -21
- package/vendor/Package.internal.116.mjs +0 -21
- package/vendor/Package.internal.117.cjs +0 -52
- package/vendor/Package.internal.117.mjs +0 -52
- package/vendor/Package.internal.118.cjs +0 -141
- package/vendor/Package.internal.118.mjs +0 -141
- package/vendor/Package.internal.119.cjs +0 -2
- package/vendor/Package.internal.119.mjs +0 -1
- package/vendor/Package.internal.120.cjs +0 -6
- package/vendor/Package.internal.120.mjs +0 -4
- package/vendor/Package.internal.121.cjs +0 -4
- package/vendor/Package.internal.121.mjs +0 -2
- package/vendor/Package.internal.122.cjs +0 -4
- package/vendor/Package.internal.122.mjs +0 -2
- package/vendor/Package.internal.123.cjs +0 -4
- package/vendor/Package.internal.123.mjs +0 -2
- package/vendor/Package.internal.124.cjs +0 -49
- package/vendor/Package.internal.124.mjs +0 -47
- package/vendor/Package.internal.125.cjs +0 -14
- package/vendor/Package.internal.125.mjs +0 -14
- package/vendor/Package.internal.126.cjs +0 -12
- package/vendor/Package.internal.126.mjs +0 -12
- package/vendor/Package.internal.127.cjs +0 -20
- package/vendor/Package.internal.127.mjs +0 -18
- package/vendor/Package.internal.128.cjs +0 -118
- package/vendor/Package.internal.128.mjs +0 -116
- package/vendor/Package.internal.129.cjs +0 -18
- package/vendor/Package.internal.129.mjs +0 -16
- package/vendor/Package.internal.130.cjs +0 -19
- package/vendor/Package.internal.130.mjs +0 -17
- package/vendor/Package.internal.131.cjs +0 -8876
- package/vendor/Package.internal.131.mjs +0 -8874
- package/vendor/Package.internal.132.cjs +0 -899
- package/vendor/Package.internal.132.mjs +0 -897
- package/vendor/Package.internal.133.cjs +0 -6769
- package/vendor/Package.internal.133.mjs +0 -6775
- package/vendor/Package.internal.134.cjs +0 -473
- package/vendor/Package.internal.134.mjs +0 -459
- package/vendor/Package.internal.135.cjs +0 -617
- package/vendor/Package.internal.135.mjs +0 -611
- package/vendor/Package.internal.136.cjs +0 -97
- package/vendor/Package.internal.136.mjs +0 -89
- package/vendor/Package.internal.137.cjs +0 -4
- package/vendor/Package.internal.137.mjs +0 -2
- package/vendor/Package.internal.138.cjs +0 -3753
- package/vendor/Package.internal.138.mjs +0 -3751
- package/vendor/Package.internal.139.cjs +0 -561
- package/vendor/Package.internal.139.mjs +0 -559
- 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 -4
- package/vendor/Package.internal.147.mjs +0 -2
- package/vendor/Package.internal.148.cjs +0 -4
- package/vendor/Package.internal.148.mjs +0 -2
- package/vendor/Package.internal.149.cjs +0 -4
- package/vendor/Package.internal.149.mjs +0 -2
- package/vendor/Package.internal.150.cjs +0 -4
- package/vendor/Package.internal.150.mjs +0 -2
- package/vendor/Package.internal.151.cjs +0 -408
- package/vendor/Package.internal.151.mjs +0 -400
- package/vendor/Package.internal.152.cjs +0 -104
- package/vendor/Package.internal.152.mjs +0 -104
- package/vendor/Package.internal.153.cjs +0 -27
- package/vendor/Package.internal.153.mjs +0 -27
- package/vendor/Package.internal.154.cjs +0 -4
- package/vendor/Package.internal.154.mjs +0 -2
- package/vendor/Package.internal.155.cjs +0 -4
- package/vendor/Package.internal.155.mjs +0 -2
- package/vendor/Package.internal.156.cjs +0 -723
- package/vendor/Package.internal.156.mjs +0 -723
- package/vendor/Package.internal.157.cjs +0 -1548
- package/vendor/Package.internal.157.mjs +0 -1540
- package/vendor/Package.internal.158.cjs +0 -364
- package/vendor/Package.internal.158.mjs +0 -364
- package/vendor/Package.internal.159.cjs +0 -107
- package/vendor/Package.internal.159.mjs +0 -107
- package/vendor/Package.internal.160.cjs +0 -636
- package/vendor/Package.internal.160.mjs +0 -622
- package/vendor/Package.internal.161.cjs +0 -543
- package/vendor/Package.internal.161.mjs +0 -533
- package/vendor/Package.internal.162.cjs +0 -605
- package/vendor/Package.internal.162.mjs +0 -605
- package/vendor/Package.internal.163.cjs +0 -139
- package/vendor/Package.internal.163.mjs +0 -131
- package/vendor/Package.internal.164.cjs +0 -119
- package/vendor/Package.internal.164.mjs +0 -111
- package/vendor/Package.internal.165.cjs +0 -1224
- package/vendor/Package.internal.165.mjs +0 -1214
- package/vendor/Package.internal.166.cjs +0 -90
- package/vendor/Package.internal.166.mjs +0 -98
- package/vendor/Package.internal.167.cjs +0 -4
- package/vendor/Package.internal.167.mjs +0 -2
- package/vendor/Package.internal.168.cjs +0 -4
- package/vendor/Package.internal.168.mjs +0 -2
- package/vendor/Package.internal.169.cjs +0 -55
- package/vendor/Package.internal.169.mjs +0 -55
- package/vendor/Package.internal.170.cjs +0 -10
- package/vendor/Package.internal.170.mjs +0 -10
- package/vendor/Package.internal.171.cjs +0 -12
- package/vendor/Package.internal.171.mjs +0 -6
- package/vendor/Package.internal.172.cjs +0 -165
- package/vendor/Package.internal.172.mjs +0 -163
- package/vendor/Package.internal.173.cjs +0 -23
- package/vendor/Package.internal.173.mjs +0 -15
- package/vendor/Package.internal.174.cjs +0 -251
- package/vendor/Package.internal.174.mjs +0 -249
- package/vendor/Package.internal.175.cjs +0 -949
- package/vendor/Package.internal.175.mjs +0 -947
- package/vendor/Package.internal.176.cjs +0 -27
- package/vendor/Package.internal.176.mjs +0 -27
- package/vendor/Package.internal.177.cjs +0 -80
- package/vendor/Package.internal.177.mjs +0 -72
- package/vendor/Package.internal.178.cjs +0 -655
- package/vendor/Package.internal.178.mjs +0 -653
- package/vendor/Package.internal.179.cjs +0 -77
- package/vendor/Package.internal.179.mjs +0 -75
- package/vendor/Package.internal.181.cjs +0 -70
- package/vendor/Package.internal.181.mjs +0 -68
- package/vendor/Package.internal.182.cjs +0 -112
- package/vendor/Package.internal.182.mjs +0 -110
- package/vendor/Package.internal.183.cjs +0 -102
- package/vendor/Package.internal.183.mjs +0 -100
- package/vendor/Package.internal.184.cjs +0 -45450
- package/vendor/Package.internal.184.mjs +0 -45432
- package/vendor/Package.internal.185.cjs +0 -8
- package/vendor/Package.internal.185.mjs +0 -6
- package/vendor/Package.internal.186.cjs +0 -30
- package/vendor/Package.internal.186.mjs +0 -28
- package/vendor/Package.internal.187.cjs +0 -317
- package/vendor/Package.internal.187.mjs +0 -315
- package/vendor/Package.internal.188.cjs +0 -943
- package/vendor/Package.internal.188.mjs +0 -951
- package/vendor/Package.internal.189.cjs +0 -1090
- package/vendor/Package.internal.189.mjs +0 -1090
- package/vendor/Package.internal.190.cjs +0 -165
- package/vendor/Package.internal.190.mjs +0 -165
- package/vendor/Package.internal.191.cjs +0 -15
- package/vendor/Package.internal.191.mjs +0 -13
- package/vendor/Package.internal.192.cjs +0 -14
- package/vendor/Package.internal.192.mjs +0 -12
- package/vendor/Package.internal.193.cjs +0 -49
- package/vendor/Package.internal.193.mjs +0 -47
- package/vendor/Package.internal.194.cjs +0 -493
- package/vendor/Package.internal.194.mjs +0 -471
- 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.199.cjs +0 -4
- package/vendor/Package.internal.199.mjs +0 -2
- package/vendor/Package.internal.200.cjs +0 -4
- package/vendor/Package.internal.200.mjs +0 -2
- package/vendor/Package.internal.201.cjs +0 -4
- package/vendor/Package.internal.201.mjs +0 -2
- package/vendor/Package.internal.202.cjs +0 -4
- package/vendor/Package.internal.202.mjs +0 -2
- package/vendor/Package.internal.60.cjs +0 -27
- package/vendor/Package.internal.60.mjs +0 -27
- package/vendor/Package.internal.61.cjs +0 -4
- package/vendor/Package.internal.61.mjs +0 -2
- package/vendor/Package.internal.62.cjs +0 -200
- package/vendor/Package.internal.62.mjs +0 -200
- package/vendor/Package.internal.63.cjs +0 -4019
- package/vendor/Package.internal.63.mjs +0 -4027
- package/vendor/Package.internal.64.cjs +0 -4
- package/vendor/Package.internal.64.mjs +0 -2
- package/vendor/Package.internal.65.cjs +0 -321
- package/vendor/Package.internal.65.mjs +0 -321
- package/vendor/Package.internal.66.cjs +0 -365
- package/vendor/Package.internal.66.mjs +0 -363
- package/vendor/Package.internal.67.cjs +0 -403
- package/vendor/Package.internal.67.mjs +0 -395
- package/vendor/Package.internal.68.cjs +0 -127
- package/vendor/Package.internal.68.mjs +0 -125
- package/vendor/Package.internal.69.cjs +0 -31
- package/vendor/Package.internal.69.mjs +0 -29
- package/vendor/Package.internal.70.cjs +0 -87
- package/vendor/Package.internal.70.mjs +0 -85
- package/vendor/Package.internal.71.cjs +0 -61
- package/vendor/Package.internal.71.mjs +0 -59
- package/vendor/Package.internal.72.cjs +0 -34
- package/vendor/Package.internal.72.mjs +0 -32
- package/vendor/Package.internal.73.cjs +0 -4
- package/vendor/Package.internal.73.mjs +0 -2
- package/vendor/Package.internal.74.cjs +0 -684
- package/vendor/Package.internal.74.mjs +0 -662
- package/vendor/Package.internal.75.cjs +0 -13896
- package/vendor/Package.internal.75.mjs +0 -13870
- package/vendor/Package.internal.76.cjs +0 -37
- package/vendor/Package.internal.76.mjs +0 -31
- package/vendor/Package.internal.77.cjs +0 -4077
- package/vendor/Package.internal.77.mjs +0 -4077
- package/vendor/Package.internal.78.cjs +0 -1664
- package/vendor/Package.internal.78.mjs +0 -1664
- package/vendor/Package.internal.79.cjs +0 -259
- package/vendor/Package.internal.79.mjs +0 -257
- package/vendor/Package.internal.80.cjs +0 -4964
- package/vendor/Package.internal.80.mjs +0 -4948
- package/vendor/Package.internal.81.cjs +0 -1239
- package/vendor/Package.internal.81.mjs +0 -1225
- package/vendor/Package.internal.82.cjs +0 -340
- package/vendor/Package.internal.82.mjs +0 -326
- package/vendor/Package.internal.83.cjs +0 -34
- package/vendor/Package.internal.83.mjs +0 -32
- package/vendor/Package.internal.84.cjs +0 -88
- package/vendor/Package.internal.84.mjs +0 -88
- package/vendor/Package.internal.85.cjs +0 -55
- package/vendor/Package.internal.85.mjs +0 -55
- package/vendor/Package.internal.86.cjs +0 -15
- package/vendor/Package.internal.86.mjs +0 -13
- package/vendor/Package.internal.87.cjs +0 -1355
- package/vendor/Package.internal.87.mjs +0 -1355
- package/vendor/Package.internal.88.cjs +0 -12
- package/vendor/Package.internal.88.mjs +0 -6
- package/vendor/Package.internal.89.cjs +0 -4
- package/vendor/Package.internal.89.mjs +0 -2
- package/vendor/Package.internal.90.cjs +0 -351
- package/vendor/Package.internal.90.mjs +0 -351
- package/vendor/Package.internal.91.cjs +0 -80
- package/vendor/Package.internal.91.mjs +0 -80
- package/vendor/Package.internal.92.cjs +0 -1445
- package/vendor/Package.internal.92.mjs +0 -1433
- package/vendor/Package.internal.93.cjs +0 -144
- package/vendor/Package.internal.93.mjs +0 -142
- package/vendor/Package.internal.94.cjs +0 -1822
- package/vendor/Package.internal.94.mjs +0 -1814
- package/vendor/Package.internal.95.cjs +0 -130
- package/vendor/Package.internal.95.mjs +0 -124
- package/vendor/Package.internal.96.cjs +0 -208
- package/vendor/Package.internal.96.mjs +0 -208
- package/vendor/Package.internal.97.cjs +0 -1641
- package/vendor/Package.internal.97.mjs +0 -1641
- package/vendor/Package.internal.98.cjs +0 -74
- package/vendor/Package.internal.98.mjs +0 -74
- package/vendor/Package.internal.99.cjs +0 -28
- package/vendor/Package.internal.99.mjs +0 -28
|
@@ -1,1292 +0,0 @@
|
|
|
1
|
-
/* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
|
|
2
|
-
import { c as t } from "./Package.internal.8.mjs";
|
|
3
|
-
|
|
4
|
-
import e, { EventEmitter as s } from "node:events";
|
|
5
|
-
|
|
6
|
-
import i from "node:stream";
|
|
7
|
-
|
|
8
|
-
import r, { StringDecoder as n } from "node:string_decoder";
|
|
9
|
-
|
|
10
|
-
var o = {};
|
|
11
|
-
|
|
12
|
-
var h;
|
|
13
|
-
|
|
14
|
-
function f() {
|
|
15
|
-
if (h) return o;
|
|
16
|
-
h = 1;
|
|
17
|
-
(function(s) {
|
|
18
|
-
var n = t && t.__importDefault || function(t) {
|
|
19
|
-
return t && t.__esModule ? t : {
|
|
20
|
-
default: t
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(s, "__esModule", {
|
|
24
|
-
value: true
|
|
25
|
-
});
|
|
26
|
-
s.Minipass = s.isWritable = s.isReadable = s.isStream = void 0;
|
|
27
|
-
const o = typeof process === "object" && process ? process : {
|
|
28
|
-
stdout: null,
|
|
29
|
-
stderr: null
|
|
30
|
-
};
|
|
31
|
-
const h = e;
|
|
32
|
-
const f = n(i);
|
|
33
|
-
const a = r;
|
|
34
|
-
const l = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof f.default || (0,
|
|
35
|
-
s.isReadable)(t) || (0, s.isWritable)(t));
|
|
36
|
-
s.isStream = l;
|
|
37
|
-
const u = t => !!t && typeof t === "object" && t instanceof h.EventEmitter && typeof t.pipe === "function" && t.pipe !== f.default.Writable.prototype.pipe;
|
|
38
|
-
s.isReadable = u;
|
|
39
|
-
const c = t => !!t && typeof t === "object" && t instanceof h.EventEmitter && typeof t.write === "function" && typeof t.end === "function";
|
|
40
|
-
s.isWritable = c;
|
|
41
|
-
const d = Symbol("EOF");
|
|
42
|
-
const m = Symbol("maybeEmitEnd");
|
|
43
|
-
const p = Symbol("emittedEnd");
|
|
44
|
-
const b = Symbol("emittingEnd");
|
|
45
|
-
const y = Symbol("emittedError");
|
|
46
|
-
const g = Symbol("closed");
|
|
47
|
-
const w = Symbol("read");
|
|
48
|
-
const E = Symbol("flush");
|
|
49
|
-
const S = Symbol("flushChunk");
|
|
50
|
-
const v = Symbol("encoding");
|
|
51
|
-
const j = Symbol("decoder");
|
|
52
|
-
const L = Symbol("flowing");
|
|
53
|
-
const x = Symbol("paused");
|
|
54
|
-
const M = Symbol("resume");
|
|
55
|
-
const P = Symbol("buffer");
|
|
56
|
-
const B = Symbol("pipes");
|
|
57
|
-
const A = Symbol("bufferLength");
|
|
58
|
-
const O = Symbol("bufferPush");
|
|
59
|
-
const R = Symbol("bufferShift");
|
|
60
|
-
const _ = Symbol("objectMode");
|
|
61
|
-
const D = Symbol("destroyed");
|
|
62
|
-
const T = Symbol("error");
|
|
63
|
-
const W = Symbol("emitData");
|
|
64
|
-
const C = Symbol("emitEnd");
|
|
65
|
-
const I = Symbol("emitEnd2");
|
|
66
|
-
const N = Symbol("async");
|
|
67
|
-
const k = Symbol("abort");
|
|
68
|
-
const F = Symbol("aborted");
|
|
69
|
-
const V = Symbol("signal");
|
|
70
|
-
const Y = Symbol("dataListeners");
|
|
71
|
-
const q = Symbol("discarded");
|
|
72
|
-
const z = t => Promise.resolve().then(t);
|
|
73
|
-
const G = t => t();
|
|
74
|
-
const H = t => t === "end" || t === "finish" || t === "prefinish";
|
|
75
|
-
const J = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
|
|
76
|
-
const K = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
|
|
77
|
-
class Pipe {
|
|
78
|
-
src;
|
|
79
|
-
dest;
|
|
80
|
-
opts;
|
|
81
|
-
ondrain;
|
|
82
|
-
constructor(t, e, s) {
|
|
83
|
-
this.src = t;
|
|
84
|
-
this.dest = e;
|
|
85
|
-
this.opts = s;
|
|
86
|
-
this.ondrain = () => t[M]();
|
|
87
|
-
this.dest.on("drain", this.ondrain);
|
|
88
|
-
}
|
|
89
|
-
unpipe() {
|
|
90
|
-
this.dest.removeListener("drain", this.ondrain);
|
|
91
|
-
}
|
|
92
|
-
proxyErrors(t) {}
|
|
93
|
-
end() {
|
|
94
|
-
this.unpipe();
|
|
95
|
-
if (this.opts.end) this.dest.end();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
class PipeProxyErrors extends Pipe {
|
|
99
|
-
unpipe() {
|
|
100
|
-
this.src.removeListener("error", this.proxyErrors);
|
|
101
|
-
super.unpipe();
|
|
102
|
-
}
|
|
103
|
-
constructor(t, e, s) {
|
|
104
|
-
super(t, e, s);
|
|
105
|
-
this.proxyErrors = t => e.emit("error", t);
|
|
106
|
-
t.on("error", this.proxyErrors);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
const Q = t => !!t.objectMode;
|
|
110
|
-
const U = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
|
|
111
|
-
class Minipass extends h.EventEmitter {
|
|
112
|
-
[L]=false;
|
|
113
|
-
[x]=false;
|
|
114
|
-
[B]=[];
|
|
115
|
-
[P]=[];
|
|
116
|
-
[_];
|
|
117
|
-
[v];
|
|
118
|
-
[N];
|
|
119
|
-
[j];
|
|
120
|
-
[d]=false;
|
|
121
|
-
[p]=false;
|
|
122
|
-
[b]=false;
|
|
123
|
-
[g]=false;
|
|
124
|
-
[y]=null;
|
|
125
|
-
[A]=0;
|
|
126
|
-
[D]=false;
|
|
127
|
-
[V];
|
|
128
|
-
[F]=false;
|
|
129
|
-
[Y]=0;
|
|
130
|
-
[q]=false;
|
|
131
|
-
writable=true;
|
|
132
|
-
readable=true;
|
|
133
|
-
constructor(...t) {
|
|
134
|
-
const e = t[0] || {};
|
|
135
|
-
super();
|
|
136
|
-
if (e.objectMode && typeof e.encoding === "string") {
|
|
137
|
-
throw new TypeError("Encoding and objectMode may not be used together");
|
|
138
|
-
}
|
|
139
|
-
if (Q(e)) {
|
|
140
|
-
this[_] = true;
|
|
141
|
-
this[v] = null;
|
|
142
|
-
} else if (U(e)) {
|
|
143
|
-
this[v] = e.encoding;
|
|
144
|
-
this[_] = false;
|
|
145
|
-
} else {
|
|
146
|
-
this[_] = false;
|
|
147
|
-
this[v] = null;
|
|
148
|
-
}
|
|
149
|
-
this[N] = !!e.async;
|
|
150
|
-
this[j] = this[v] ? new a.StringDecoder(this[v]) : null;
|
|
151
|
-
if (e && e.debugExposeBuffer === true) {
|
|
152
|
-
Object.defineProperty(this, "buffer", {
|
|
153
|
-
get: () => this[P]
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
if (e && e.debugExposePipes === true) {
|
|
157
|
-
Object.defineProperty(this, "pipes", {
|
|
158
|
-
get: () => this[B]
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
const {signal: s} = e;
|
|
162
|
-
if (s) {
|
|
163
|
-
this[V] = s;
|
|
164
|
-
if (s.aborted) {
|
|
165
|
-
this[k]();
|
|
166
|
-
} else {
|
|
167
|
-
s.addEventListener("abort", () => this[k]());
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
get bufferLength() {
|
|
172
|
-
return this[A];
|
|
173
|
-
}
|
|
174
|
-
get encoding() {
|
|
175
|
-
return this[v];
|
|
176
|
-
}
|
|
177
|
-
set encoding(t) {
|
|
178
|
-
throw new Error("Encoding must be set at instantiation time");
|
|
179
|
-
}
|
|
180
|
-
setEncoding(t) {
|
|
181
|
-
throw new Error("Encoding must be set at instantiation time");
|
|
182
|
-
}
|
|
183
|
-
get objectMode() {
|
|
184
|
-
return this[_];
|
|
185
|
-
}
|
|
186
|
-
set objectMode(t) {
|
|
187
|
-
throw new Error("objectMode must be set at instantiation time");
|
|
188
|
-
}
|
|
189
|
-
get ["async"]() {
|
|
190
|
-
return this[N];
|
|
191
|
-
}
|
|
192
|
-
set ["async"](t) {
|
|
193
|
-
this[N] = this[N] || !!t;
|
|
194
|
-
}
|
|
195
|
-
[k]() {
|
|
196
|
-
this[F] = true;
|
|
197
|
-
this.emit("abort", this[V]?.reason);
|
|
198
|
-
this.destroy(this[V]?.reason);
|
|
199
|
-
}
|
|
200
|
-
get aborted() {
|
|
201
|
-
return this[F];
|
|
202
|
-
}
|
|
203
|
-
set aborted(t) {}
|
|
204
|
-
write(t, e, s) {
|
|
205
|
-
if (this[F]) return false;
|
|
206
|
-
if (this[d]) throw new Error("write after end");
|
|
207
|
-
if (this[D]) {
|
|
208
|
-
this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
|
|
209
|
-
code: "ERR_STREAM_DESTROYED"
|
|
210
|
-
}));
|
|
211
|
-
return true;
|
|
212
|
-
}
|
|
213
|
-
if (typeof e === "function") {
|
|
214
|
-
s = e;
|
|
215
|
-
e = "utf8";
|
|
216
|
-
}
|
|
217
|
-
if (!e) e = "utf8";
|
|
218
|
-
const i = this[N] ? z : G;
|
|
219
|
-
if (!this[_] && !Buffer.isBuffer(t)) {
|
|
220
|
-
if (K(t)) {
|
|
221
|
-
t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
222
|
-
} else if (J(t)) {
|
|
223
|
-
t = Buffer.from(t);
|
|
224
|
-
} else if (typeof t !== "string") {
|
|
225
|
-
throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
if (this[_]) {
|
|
229
|
-
if (this[L] && this[A] !== 0) this[E](true);
|
|
230
|
-
if (this[L]) this.emit("data", t); else this[O](t);
|
|
231
|
-
if (this[A] !== 0) this.emit("readable");
|
|
232
|
-
if (s) i(s);
|
|
233
|
-
return this[L];
|
|
234
|
-
}
|
|
235
|
-
if (!t.length) {
|
|
236
|
-
if (this[A] !== 0) this.emit("readable");
|
|
237
|
-
if (s) i(s);
|
|
238
|
-
return this[L];
|
|
239
|
-
}
|
|
240
|
-
if (typeof t === "string" && !(e === this[v] && !this[j]?.lastNeed)) {
|
|
241
|
-
t = Buffer.from(t, e);
|
|
242
|
-
}
|
|
243
|
-
if (Buffer.isBuffer(t) && this[v]) {
|
|
244
|
-
t = this[j].write(t);
|
|
245
|
-
}
|
|
246
|
-
if (this[L] && this[A] !== 0) this[E](true);
|
|
247
|
-
if (this[L]) this.emit("data", t); else this[O](t);
|
|
248
|
-
if (this[A] !== 0) this.emit("readable");
|
|
249
|
-
if (s) i(s);
|
|
250
|
-
return this[L];
|
|
251
|
-
}
|
|
252
|
-
read(t) {
|
|
253
|
-
if (this[D]) return null;
|
|
254
|
-
this[q] = false;
|
|
255
|
-
if (this[A] === 0 || t === 0 || t && t > this[A]) {
|
|
256
|
-
this[m]();
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
if (this[_]) t = null;
|
|
260
|
-
if (this[P].length > 1 && !this[_]) {
|
|
261
|
-
this[P] = [ this[v] ? this[P].join("") : Buffer.concat(this[P], this[A]) ];
|
|
262
|
-
}
|
|
263
|
-
const e = this[w](t || null, this[P][0]);
|
|
264
|
-
this[m]();
|
|
265
|
-
return e;
|
|
266
|
-
}
|
|
267
|
-
[w](t, e) {
|
|
268
|
-
if (this[_]) this[R](); else {
|
|
269
|
-
const s = e;
|
|
270
|
-
if (t === s.length || t === null) this[R](); else if (typeof s === "string") {
|
|
271
|
-
this[P][0] = s.slice(t);
|
|
272
|
-
e = s.slice(0, t);
|
|
273
|
-
this[A] -= t;
|
|
274
|
-
} else {
|
|
275
|
-
this[P][0] = s.subarray(t);
|
|
276
|
-
e = s.subarray(0, t);
|
|
277
|
-
this[A] -= t;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
this.emit("data", e);
|
|
281
|
-
if (!this[P].length && !this[d]) this.emit("drain");
|
|
282
|
-
return e;
|
|
283
|
-
}
|
|
284
|
-
end(t, e, s) {
|
|
285
|
-
if (typeof t === "function") {
|
|
286
|
-
s = t;
|
|
287
|
-
t = undefined;
|
|
288
|
-
}
|
|
289
|
-
if (typeof e === "function") {
|
|
290
|
-
s = e;
|
|
291
|
-
e = "utf8";
|
|
292
|
-
}
|
|
293
|
-
if (t !== undefined) this.write(t, e);
|
|
294
|
-
if (s) this.once("end", s);
|
|
295
|
-
this[d] = true;
|
|
296
|
-
this.writable = false;
|
|
297
|
-
if (this[L] || !this[x]) this[m]();
|
|
298
|
-
return this;
|
|
299
|
-
}
|
|
300
|
-
[M]() {
|
|
301
|
-
if (this[D]) return;
|
|
302
|
-
if (!this[Y] && !this[B].length) {
|
|
303
|
-
this[q] = true;
|
|
304
|
-
}
|
|
305
|
-
this[x] = false;
|
|
306
|
-
this[L] = true;
|
|
307
|
-
this.emit("resume");
|
|
308
|
-
if (this[P].length) this[E](); else if (this[d]) this[m](); else this.emit("drain");
|
|
309
|
-
}
|
|
310
|
-
resume() {
|
|
311
|
-
return this[M]();
|
|
312
|
-
}
|
|
313
|
-
pause() {
|
|
314
|
-
this[L] = false;
|
|
315
|
-
this[x] = true;
|
|
316
|
-
this[q] = false;
|
|
317
|
-
}
|
|
318
|
-
get destroyed() {
|
|
319
|
-
return this[D];
|
|
320
|
-
}
|
|
321
|
-
get flowing() {
|
|
322
|
-
return this[L];
|
|
323
|
-
}
|
|
324
|
-
get paused() {
|
|
325
|
-
return this[x];
|
|
326
|
-
}
|
|
327
|
-
[O](t) {
|
|
328
|
-
if (this[_]) this[A] += 1; else this[A] += t.length;
|
|
329
|
-
this[P].push(t);
|
|
330
|
-
}
|
|
331
|
-
[R]() {
|
|
332
|
-
if (this[_]) this[A] -= 1; else this[A] -= this[P][0].length;
|
|
333
|
-
return this[P].shift();
|
|
334
|
-
}
|
|
335
|
-
[E](t = false) {
|
|
336
|
-
do {} while (this[S](this[R]()) && this[P].length);
|
|
337
|
-
if (!t && !this[P].length && !this[d]) this.emit("drain");
|
|
338
|
-
}
|
|
339
|
-
[S](t) {
|
|
340
|
-
this.emit("data", t);
|
|
341
|
-
return this[L];
|
|
342
|
-
}
|
|
343
|
-
pipe(t, e) {
|
|
344
|
-
if (this[D]) return t;
|
|
345
|
-
this[q] = false;
|
|
346
|
-
const s = this[p];
|
|
347
|
-
e = e || {};
|
|
348
|
-
if (t === o.stdout || t === o.stderr) e.end = false; else e.end = e.end !== false;
|
|
349
|
-
e.proxyErrors = !!e.proxyErrors;
|
|
350
|
-
if (s) {
|
|
351
|
-
if (e.end) t.end();
|
|
352
|
-
} else {
|
|
353
|
-
this[B].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
|
|
354
|
-
if (this[N]) z(() => this[M]()); else this[M]();
|
|
355
|
-
}
|
|
356
|
-
return t;
|
|
357
|
-
}
|
|
358
|
-
unpipe(t) {
|
|
359
|
-
const e = this[B].find(e => e.dest === t);
|
|
360
|
-
if (e) {
|
|
361
|
-
if (this[B].length === 1) {
|
|
362
|
-
if (this[L] && this[Y] === 0) {
|
|
363
|
-
this[L] = false;
|
|
364
|
-
}
|
|
365
|
-
this[B] = [];
|
|
366
|
-
} else this[B].splice(this[B].indexOf(e), 1);
|
|
367
|
-
e.unpipe();
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
addListener(t, e) {
|
|
371
|
-
return this.on(t, e);
|
|
372
|
-
}
|
|
373
|
-
on(t, e) {
|
|
374
|
-
const s = super.on(t, e);
|
|
375
|
-
if (t === "data") {
|
|
376
|
-
this[q] = false;
|
|
377
|
-
this[Y]++;
|
|
378
|
-
if (!this[B].length && !this[L]) {
|
|
379
|
-
this[M]();
|
|
380
|
-
}
|
|
381
|
-
} else if (t === "readable" && this[A] !== 0) {
|
|
382
|
-
super.emit("readable");
|
|
383
|
-
} else if (H(t) && this[p]) {
|
|
384
|
-
super.emit(t);
|
|
385
|
-
this.removeAllListeners(t);
|
|
386
|
-
} else if (t === "error" && this[y]) {
|
|
387
|
-
const t = e;
|
|
388
|
-
if (this[N]) z(() => t.call(this, this[y])); else t.call(this, this[y]);
|
|
389
|
-
}
|
|
390
|
-
return s;
|
|
391
|
-
}
|
|
392
|
-
removeListener(t, e) {
|
|
393
|
-
return this.off(t, e);
|
|
394
|
-
}
|
|
395
|
-
off(t, e) {
|
|
396
|
-
const s = super.off(t, e);
|
|
397
|
-
if (t === "data") {
|
|
398
|
-
this[Y] = this.listeners("data").length;
|
|
399
|
-
if (this[Y] === 0 && !this[q] && !this[B].length) {
|
|
400
|
-
this[L] = false;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
return s;
|
|
404
|
-
}
|
|
405
|
-
removeAllListeners(t) {
|
|
406
|
-
const e = super.removeAllListeners(t);
|
|
407
|
-
if (t === "data" || t === undefined) {
|
|
408
|
-
this[Y] = 0;
|
|
409
|
-
if (!this[q] && !this[B].length) {
|
|
410
|
-
this[L] = false;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
return e;
|
|
414
|
-
}
|
|
415
|
-
get emittedEnd() {
|
|
416
|
-
return this[p];
|
|
417
|
-
}
|
|
418
|
-
[m]() {
|
|
419
|
-
if (!this[b] && !this[p] && !this[D] && this[P].length === 0 && this[d]) {
|
|
420
|
-
this[b] = true;
|
|
421
|
-
this.emit("end");
|
|
422
|
-
this.emit("prefinish");
|
|
423
|
-
this.emit("finish");
|
|
424
|
-
if (this[g]) this.emit("close");
|
|
425
|
-
this[b] = false;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
emit(t, ...e) {
|
|
429
|
-
const s = e[0];
|
|
430
|
-
if (t !== "error" && t !== "close" && t !== D && this[D]) {
|
|
431
|
-
return false;
|
|
432
|
-
} else if (t === "data") {
|
|
433
|
-
return !this[_] && !s ? false : this[N] ? (z(() => this[W](s)), true) : this[W](s);
|
|
434
|
-
} else if (t === "end") {
|
|
435
|
-
return this[C]();
|
|
436
|
-
} else if (t === "close") {
|
|
437
|
-
this[g] = true;
|
|
438
|
-
if (!this[p] && !this[D]) return false;
|
|
439
|
-
const t = super.emit("close");
|
|
440
|
-
this.removeAllListeners("close");
|
|
441
|
-
return t;
|
|
442
|
-
} else if (t === "error") {
|
|
443
|
-
this[y] = s;
|
|
444
|
-
super.emit(T, s);
|
|
445
|
-
const t = !this[V] || this.listeners("error").length ? super.emit("error", s) : false;
|
|
446
|
-
this[m]();
|
|
447
|
-
return t;
|
|
448
|
-
} else if (t === "resume") {
|
|
449
|
-
const t = super.emit("resume");
|
|
450
|
-
this[m]();
|
|
451
|
-
return t;
|
|
452
|
-
} else if (t === "finish" || t === "prefinish") {
|
|
453
|
-
const e = super.emit(t);
|
|
454
|
-
this.removeAllListeners(t);
|
|
455
|
-
return e;
|
|
456
|
-
}
|
|
457
|
-
const i = super.emit(t, ...e);
|
|
458
|
-
this[m]();
|
|
459
|
-
return i;
|
|
460
|
-
}
|
|
461
|
-
[W](t) {
|
|
462
|
-
for (const e of this[B]) {
|
|
463
|
-
if (e.dest.write(t) === false) this.pause();
|
|
464
|
-
}
|
|
465
|
-
const e = this[q] ? false : super.emit("data", t);
|
|
466
|
-
this[m]();
|
|
467
|
-
return e;
|
|
468
|
-
}
|
|
469
|
-
[C]() {
|
|
470
|
-
if (this[p]) return false;
|
|
471
|
-
this[p] = true;
|
|
472
|
-
this.readable = false;
|
|
473
|
-
return this[N] ? (z(() => this[I]()), true) : this[I]();
|
|
474
|
-
}
|
|
475
|
-
[I]() {
|
|
476
|
-
if (this[j]) {
|
|
477
|
-
const t = this[j].end();
|
|
478
|
-
if (t) {
|
|
479
|
-
for (const e of this[B]) {
|
|
480
|
-
e.dest.write(t);
|
|
481
|
-
}
|
|
482
|
-
if (!this[q]) super.emit("data", t);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
for (const t of this[B]) {
|
|
486
|
-
t.end();
|
|
487
|
-
}
|
|
488
|
-
const t = super.emit("end");
|
|
489
|
-
this.removeAllListeners("end");
|
|
490
|
-
return t;
|
|
491
|
-
}
|
|
492
|
-
async collect() {
|
|
493
|
-
const t = Object.assign([], {
|
|
494
|
-
dataLength: 0
|
|
495
|
-
});
|
|
496
|
-
if (!this[_]) t.dataLength = 0;
|
|
497
|
-
const e = this.promise();
|
|
498
|
-
this.on("data", e => {
|
|
499
|
-
t.push(e);
|
|
500
|
-
if (!this[_]) t.dataLength += e.length;
|
|
501
|
-
});
|
|
502
|
-
await e;
|
|
503
|
-
return t;
|
|
504
|
-
}
|
|
505
|
-
async concat() {
|
|
506
|
-
if (this[_]) {
|
|
507
|
-
throw new Error("cannot concat in objectMode");
|
|
508
|
-
}
|
|
509
|
-
const t = await this.collect();
|
|
510
|
-
return this[v] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
511
|
-
}
|
|
512
|
-
async promise() {
|
|
513
|
-
return new Promise((t, e) => {
|
|
514
|
-
this.on(D, () => e(new Error("stream destroyed")));
|
|
515
|
-
this.on("error", t => e(t));
|
|
516
|
-
this.on("end", () => t());
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
[Symbol.asyncIterator]() {
|
|
520
|
-
this[q] = false;
|
|
521
|
-
let t = false;
|
|
522
|
-
const e = async () => {
|
|
523
|
-
this.pause();
|
|
524
|
-
t = true;
|
|
525
|
-
return {
|
|
526
|
-
value: undefined,
|
|
527
|
-
done: true
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
const s = () => {
|
|
531
|
-
if (t) return e();
|
|
532
|
-
const s = this.read();
|
|
533
|
-
if (s !== null) return Promise.resolve({
|
|
534
|
-
done: false,
|
|
535
|
-
value: s
|
|
536
|
-
});
|
|
537
|
-
if (this[d]) return e();
|
|
538
|
-
let i;
|
|
539
|
-
let r;
|
|
540
|
-
const n = t => {
|
|
541
|
-
this.off("data", o);
|
|
542
|
-
this.off("end", h);
|
|
543
|
-
this.off(D, f);
|
|
544
|
-
e();
|
|
545
|
-
r(t);
|
|
546
|
-
};
|
|
547
|
-
const o = t => {
|
|
548
|
-
this.off("error", n);
|
|
549
|
-
this.off("end", h);
|
|
550
|
-
this.off(D, f);
|
|
551
|
-
this.pause();
|
|
552
|
-
i({
|
|
553
|
-
value: t,
|
|
554
|
-
done: !!this[d]
|
|
555
|
-
});
|
|
556
|
-
};
|
|
557
|
-
const h = () => {
|
|
558
|
-
this.off("error", n);
|
|
559
|
-
this.off("data", o);
|
|
560
|
-
this.off(D, f);
|
|
561
|
-
e();
|
|
562
|
-
i({
|
|
563
|
-
done: true,
|
|
564
|
-
value: undefined
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
|
-
const f = () => n(new Error("stream destroyed"));
|
|
568
|
-
return new Promise((t, e) => {
|
|
569
|
-
r = e;
|
|
570
|
-
i = t;
|
|
571
|
-
this.once(D, f);
|
|
572
|
-
this.once("error", n);
|
|
573
|
-
this.once("end", h);
|
|
574
|
-
this.once("data", o);
|
|
575
|
-
});
|
|
576
|
-
};
|
|
577
|
-
return {
|
|
578
|
-
next: s,
|
|
579
|
-
throw: e,
|
|
580
|
-
return: e,
|
|
581
|
-
[Symbol.asyncIterator]() {
|
|
582
|
-
return this;
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
[Symbol.iterator]() {
|
|
587
|
-
this[q] = false;
|
|
588
|
-
let t = false;
|
|
589
|
-
const e = () => {
|
|
590
|
-
this.pause();
|
|
591
|
-
this.off(T, e);
|
|
592
|
-
this.off(D, e);
|
|
593
|
-
this.off("end", e);
|
|
594
|
-
t = true;
|
|
595
|
-
return {
|
|
596
|
-
done: true,
|
|
597
|
-
value: undefined
|
|
598
|
-
};
|
|
599
|
-
};
|
|
600
|
-
const s = () => {
|
|
601
|
-
if (t) return e();
|
|
602
|
-
const s = this.read();
|
|
603
|
-
return s === null ? e() : {
|
|
604
|
-
done: false,
|
|
605
|
-
value: s
|
|
606
|
-
};
|
|
607
|
-
};
|
|
608
|
-
this.once("end", e);
|
|
609
|
-
this.once(T, e);
|
|
610
|
-
this.once(D, e);
|
|
611
|
-
return {
|
|
612
|
-
next: s,
|
|
613
|
-
throw: e,
|
|
614
|
-
return: e,
|
|
615
|
-
[Symbol.iterator]() {
|
|
616
|
-
return this;
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
destroy(t) {
|
|
621
|
-
if (this[D]) {
|
|
622
|
-
if (t) this.emit("error", t); else this.emit(D);
|
|
623
|
-
return this;
|
|
624
|
-
}
|
|
625
|
-
this[D] = true;
|
|
626
|
-
this[q] = true;
|
|
627
|
-
this[P].length = 0;
|
|
628
|
-
this[A] = 0;
|
|
629
|
-
const e = this;
|
|
630
|
-
if (typeof e.close === "function" && !this[g]) e.close();
|
|
631
|
-
if (t) this.emit("error", t); else this.emit(D);
|
|
632
|
-
return this;
|
|
633
|
-
}
|
|
634
|
-
static get isStream() {
|
|
635
|
-
return s.isStream;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
s.Minipass = Minipass;
|
|
639
|
-
})(o);
|
|
640
|
-
return o;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
const a = typeof process === "object" && process ? process : {
|
|
644
|
-
stdout: null,
|
|
645
|
-
stderr: null
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
const l = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof i || u(t) || c(t));
|
|
649
|
-
|
|
650
|
-
const u = t => !!t && typeof t === "object" && t instanceof s && typeof t.pipe === "function" && t.pipe !== i.Writable.prototype.pipe;
|
|
651
|
-
|
|
652
|
-
const c = t => !!t && typeof t === "object" && t instanceof s && typeof t.write === "function" && typeof t.end === "function";
|
|
653
|
-
|
|
654
|
-
const d = Symbol("EOF");
|
|
655
|
-
|
|
656
|
-
const m = Symbol("maybeEmitEnd");
|
|
657
|
-
|
|
658
|
-
const p = Symbol("emittedEnd");
|
|
659
|
-
|
|
660
|
-
const b = Symbol("emittingEnd");
|
|
661
|
-
|
|
662
|
-
const y = Symbol("emittedError");
|
|
663
|
-
|
|
664
|
-
const g = Symbol("closed");
|
|
665
|
-
|
|
666
|
-
const w = Symbol("read");
|
|
667
|
-
|
|
668
|
-
const E = Symbol("flush");
|
|
669
|
-
|
|
670
|
-
const S = Symbol("flushChunk");
|
|
671
|
-
|
|
672
|
-
const v = Symbol("encoding");
|
|
673
|
-
|
|
674
|
-
const j = Symbol("decoder");
|
|
675
|
-
|
|
676
|
-
const L = Symbol("flowing");
|
|
677
|
-
|
|
678
|
-
const x = Symbol("paused");
|
|
679
|
-
|
|
680
|
-
const M = Symbol("resume");
|
|
681
|
-
|
|
682
|
-
const P = Symbol("buffer");
|
|
683
|
-
|
|
684
|
-
const B = Symbol("pipes");
|
|
685
|
-
|
|
686
|
-
const A = Symbol("bufferLength");
|
|
687
|
-
|
|
688
|
-
const O = Symbol("bufferPush");
|
|
689
|
-
|
|
690
|
-
const R = Symbol("bufferShift");
|
|
691
|
-
|
|
692
|
-
const _ = Symbol("objectMode");
|
|
693
|
-
|
|
694
|
-
const D = Symbol("destroyed");
|
|
695
|
-
|
|
696
|
-
const T = Symbol("error");
|
|
697
|
-
|
|
698
|
-
const W = Symbol("emitData");
|
|
699
|
-
|
|
700
|
-
const C = Symbol("emitEnd");
|
|
701
|
-
|
|
702
|
-
const I = Symbol("emitEnd2");
|
|
703
|
-
|
|
704
|
-
const N = Symbol("async");
|
|
705
|
-
|
|
706
|
-
const k = Symbol("abort");
|
|
707
|
-
|
|
708
|
-
const F = Symbol("aborted");
|
|
709
|
-
|
|
710
|
-
const V = Symbol("signal");
|
|
711
|
-
|
|
712
|
-
const Y = Symbol("dataListeners");
|
|
713
|
-
|
|
714
|
-
const q = Symbol("discarded");
|
|
715
|
-
|
|
716
|
-
const z = t => Promise.resolve().then(t);
|
|
717
|
-
|
|
718
|
-
const G = t => t();
|
|
719
|
-
|
|
720
|
-
const H = t => t === "end" || t === "finish" || t === "prefinish";
|
|
721
|
-
|
|
722
|
-
const J = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
|
|
723
|
-
|
|
724
|
-
const K = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
|
|
725
|
-
|
|
726
|
-
class Pipe {
|
|
727
|
-
src;
|
|
728
|
-
dest;
|
|
729
|
-
opts;
|
|
730
|
-
ondrain;
|
|
731
|
-
constructor(t, e, s) {
|
|
732
|
-
this.src = t;
|
|
733
|
-
this.dest = e;
|
|
734
|
-
this.opts = s;
|
|
735
|
-
this.ondrain = () => t[M]();
|
|
736
|
-
this.dest.on("drain", this.ondrain);
|
|
737
|
-
}
|
|
738
|
-
unpipe() {
|
|
739
|
-
this.dest.removeListener("drain", this.ondrain);
|
|
740
|
-
}
|
|
741
|
-
proxyErrors(t) {}
|
|
742
|
-
end() {
|
|
743
|
-
this.unpipe();
|
|
744
|
-
if (this.opts.end) this.dest.end();
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
class PipeProxyErrors extends Pipe {
|
|
749
|
-
unpipe() {
|
|
750
|
-
this.src.removeListener("error", this.proxyErrors);
|
|
751
|
-
super.unpipe();
|
|
752
|
-
}
|
|
753
|
-
constructor(t, e, s) {
|
|
754
|
-
super(t, e, s);
|
|
755
|
-
this.proxyErrors = t => e.emit("error", t);
|
|
756
|
-
t.on("error", this.proxyErrors);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
const Q = t => !!t.objectMode;
|
|
761
|
-
|
|
762
|
-
const U = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
|
|
763
|
-
|
|
764
|
-
class Minipass extends s {
|
|
765
|
-
[L]=false;
|
|
766
|
-
[x]=false;
|
|
767
|
-
[B]=[];
|
|
768
|
-
[P]=[];
|
|
769
|
-
[_];
|
|
770
|
-
[v];
|
|
771
|
-
[N];
|
|
772
|
-
[j];
|
|
773
|
-
[d]=false;
|
|
774
|
-
[p]=false;
|
|
775
|
-
[b]=false;
|
|
776
|
-
[g]=false;
|
|
777
|
-
[y]=null;
|
|
778
|
-
[A]=0;
|
|
779
|
-
[D]=false;
|
|
780
|
-
[V];
|
|
781
|
-
[F]=false;
|
|
782
|
-
[Y]=0;
|
|
783
|
-
[q]=false;
|
|
784
|
-
writable=true;
|
|
785
|
-
readable=true;
|
|
786
|
-
constructor(...t) {
|
|
787
|
-
const e = t[0] || {};
|
|
788
|
-
super();
|
|
789
|
-
if (e.objectMode && typeof e.encoding === "string") {
|
|
790
|
-
throw new TypeError("Encoding and objectMode may not be used together");
|
|
791
|
-
}
|
|
792
|
-
if (Q(e)) {
|
|
793
|
-
this[_] = true;
|
|
794
|
-
this[v] = null;
|
|
795
|
-
} else if (U(e)) {
|
|
796
|
-
this[v] = e.encoding;
|
|
797
|
-
this[_] = false;
|
|
798
|
-
} else {
|
|
799
|
-
this[_] = false;
|
|
800
|
-
this[v] = null;
|
|
801
|
-
}
|
|
802
|
-
this[N] = !!e.async;
|
|
803
|
-
this[j] = this[v] ? new n(this[v]) : null;
|
|
804
|
-
if (e && e.debugExposeBuffer === true) {
|
|
805
|
-
Object.defineProperty(this, "buffer", {
|
|
806
|
-
get: () => this[P]
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
if (e && e.debugExposePipes === true) {
|
|
810
|
-
Object.defineProperty(this, "pipes", {
|
|
811
|
-
get: () => this[B]
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
const {signal: s} = e;
|
|
815
|
-
if (s) {
|
|
816
|
-
this[V] = s;
|
|
817
|
-
if (s.aborted) {
|
|
818
|
-
this[k]();
|
|
819
|
-
} else {
|
|
820
|
-
s.addEventListener("abort", () => this[k]());
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
get bufferLength() {
|
|
825
|
-
return this[A];
|
|
826
|
-
}
|
|
827
|
-
get encoding() {
|
|
828
|
-
return this[v];
|
|
829
|
-
}
|
|
830
|
-
set encoding(t) {
|
|
831
|
-
throw new Error("Encoding must be set at instantiation time");
|
|
832
|
-
}
|
|
833
|
-
setEncoding(t) {
|
|
834
|
-
throw new Error("Encoding must be set at instantiation time");
|
|
835
|
-
}
|
|
836
|
-
get objectMode() {
|
|
837
|
-
return this[_];
|
|
838
|
-
}
|
|
839
|
-
set objectMode(t) {
|
|
840
|
-
throw new Error("objectMode must be set at instantiation time");
|
|
841
|
-
}
|
|
842
|
-
get ["async"]() {
|
|
843
|
-
return this[N];
|
|
844
|
-
}
|
|
845
|
-
set ["async"](t) {
|
|
846
|
-
this[N] = this[N] || !!t;
|
|
847
|
-
}
|
|
848
|
-
[k]() {
|
|
849
|
-
this[F] = true;
|
|
850
|
-
this.emit("abort", this[V]?.reason);
|
|
851
|
-
this.destroy(this[V]?.reason);
|
|
852
|
-
}
|
|
853
|
-
get aborted() {
|
|
854
|
-
return this[F];
|
|
855
|
-
}
|
|
856
|
-
set aborted(t) {}
|
|
857
|
-
write(t, e, s) {
|
|
858
|
-
if (this[F]) return false;
|
|
859
|
-
if (this[d]) throw new Error("write after end");
|
|
860
|
-
if (this[D]) {
|
|
861
|
-
this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
|
|
862
|
-
code: "ERR_STREAM_DESTROYED"
|
|
863
|
-
}));
|
|
864
|
-
return true;
|
|
865
|
-
}
|
|
866
|
-
if (typeof e === "function") {
|
|
867
|
-
s = e;
|
|
868
|
-
e = "utf8";
|
|
869
|
-
}
|
|
870
|
-
if (!e) e = "utf8";
|
|
871
|
-
const i = this[N] ? z : G;
|
|
872
|
-
if (!this[_] && !Buffer.isBuffer(t)) {
|
|
873
|
-
if (K(t)) {
|
|
874
|
-
t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
875
|
-
} else if (J(t)) {
|
|
876
|
-
t = Buffer.from(t);
|
|
877
|
-
} else if (typeof t !== "string") {
|
|
878
|
-
throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
if (this[_]) {
|
|
882
|
-
if (this[L] && this[A] !== 0) this[E](true);
|
|
883
|
-
if (this[L]) this.emit("data", t); else this[O](t);
|
|
884
|
-
if (this[A] !== 0) this.emit("readable");
|
|
885
|
-
if (s) i(s);
|
|
886
|
-
return this[L];
|
|
887
|
-
}
|
|
888
|
-
if (!t.length) {
|
|
889
|
-
if (this[A] !== 0) this.emit("readable");
|
|
890
|
-
if (s) i(s);
|
|
891
|
-
return this[L];
|
|
892
|
-
}
|
|
893
|
-
if (typeof t === "string" && !(e === this[v] && !this[j]?.lastNeed)) {
|
|
894
|
-
t = Buffer.from(t, e);
|
|
895
|
-
}
|
|
896
|
-
if (Buffer.isBuffer(t) && this[v]) {
|
|
897
|
-
t = this[j].write(t);
|
|
898
|
-
}
|
|
899
|
-
if (this[L] && this[A] !== 0) this[E](true);
|
|
900
|
-
if (this[L]) this.emit("data", t); else this[O](t);
|
|
901
|
-
if (this[A] !== 0) this.emit("readable");
|
|
902
|
-
if (s) i(s);
|
|
903
|
-
return this[L];
|
|
904
|
-
}
|
|
905
|
-
read(t) {
|
|
906
|
-
if (this[D]) return null;
|
|
907
|
-
this[q] = false;
|
|
908
|
-
if (this[A] === 0 || t === 0 || t && t > this[A]) {
|
|
909
|
-
this[m]();
|
|
910
|
-
return null;
|
|
911
|
-
}
|
|
912
|
-
if (this[_]) t = null;
|
|
913
|
-
if (this[P].length > 1 && !this[_]) {
|
|
914
|
-
this[P] = [ this[v] ? this[P].join("") : Buffer.concat(this[P], this[A]) ];
|
|
915
|
-
}
|
|
916
|
-
const e = this[w](t || null, this[P][0]);
|
|
917
|
-
this[m]();
|
|
918
|
-
return e;
|
|
919
|
-
}
|
|
920
|
-
[w](t, e) {
|
|
921
|
-
if (this[_]) this[R](); else {
|
|
922
|
-
const s = e;
|
|
923
|
-
if (t === s.length || t === null) this[R](); else if (typeof s === "string") {
|
|
924
|
-
this[P][0] = s.slice(t);
|
|
925
|
-
e = s.slice(0, t);
|
|
926
|
-
this[A] -= t;
|
|
927
|
-
} else {
|
|
928
|
-
this[P][0] = s.subarray(t);
|
|
929
|
-
e = s.subarray(0, t);
|
|
930
|
-
this[A] -= t;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
this.emit("data", e);
|
|
934
|
-
if (!this[P].length && !this[d]) this.emit("drain");
|
|
935
|
-
return e;
|
|
936
|
-
}
|
|
937
|
-
end(t, e, s) {
|
|
938
|
-
if (typeof t === "function") {
|
|
939
|
-
s = t;
|
|
940
|
-
t = undefined;
|
|
941
|
-
}
|
|
942
|
-
if (typeof e === "function") {
|
|
943
|
-
s = e;
|
|
944
|
-
e = "utf8";
|
|
945
|
-
}
|
|
946
|
-
if (t !== undefined) this.write(t, e);
|
|
947
|
-
if (s) this.once("end", s);
|
|
948
|
-
this[d] = true;
|
|
949
|
-
this.writable = false;
|
|
950
|
-
if (this[L] || !this[x]) this[m]();
|
|
951
|
-
return this;
|
|
952
|
-
}
|
|
953
|
-
[M]() {
|
|
954
|
-
if (this[D]) return;
|
|
955
|
-
if (!this[Y] && !this[B].length) {
|
|
956
|
-
this[q] = true;
|
|
957
|
-
}
|
|
958
|
-
this[x] = false;
|
|
959
|
-
this[L] = true;
|
|
960
|
-
this.emit("resume");
|
|
961
|
-
if (this[P].length) this[E](); else if (this[d]) this[m](); else this.emit("drain");
|
|
962
|
-
}
|
|
963
|
-
resume() {
|
|
964
|
-
return this[M]();
|
|
965
|
-
}
|
|
966
|
-
pause() {
|
|
967
|
-
this[L] = false;
|
|
968
|
-
this[x] = true;
|
|
969
|
-
this[q] = false;
|
|
970
|
-
}
|
|
971
|
-
get destroyed() {
|
|
972
|
-
return this[D];
|
|
973
|
-
}
|
|
974
|
-
get flowing() {
|
|
975
|
-
return this[L];
|
|
976
|
-
}
|
|
977
|
-
get paused() {
|
|
978
|
-
return this[x];
|
|
979
|
-
}
|
|
980
|
-
[O](t) {
|
|
981
|
-
if (this[_]) this[A] += 1; else this[A] += t.length;
|
|
982
|
-
this[P].push(t);
|
|
983
|
-
}
|
|
984
|
-
[R]() {
|
|
985
|
-
if (this[_]) this[A] -= 1; else this[A] -= this[P][0].length;
|
|
986
|
-
return this[P].shift();
|
|
987
|
-
}
|
|
988
|
-
[E](t = false) {
|
|
989
|
-
do {} while (this[S](this[R]()) && this[P].length);
|
|
990
|
-
if (!t && !this[P].length && !this[d]) this.emit("drain");
|
|
991
|
-
}
|
|
992
|
-
[S](t) {
|
|
993
|
-
this.emit("data", t);
|
|
994
|
-
return this[L];
|
|
995
|
-
}
|
|
996
|
-
pipe(t, e) {
|
|
997
|
-
if (this[D]) return t;
|
|
998
|
-
this[q] = false;
|
|
999
|
-
const s = this[p];
|
|
1000
|
-
e = e || {};
|
|
1001
|
-
if (t === a.stdout || t === a.stderr) e.end = false; else e.end = e.end !== false;
|
|
1002
|
-
e.proxyErrors = !!e.proxyErrors;
|
|
1003
|
-
if (s) {
|
|
1004
|
-
if (e.end) t.end();
|
|
1005
|
-
} else {
|
|
1006
|
-
this[B].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
|
|
1007
|
-
if (this[N]) z(() => this[M]()); else this[M]();
|
|
1008
|
-
}
|
|
1009
|
-
return t;
|
|
1010
|
-
}
|
|
1011
|
-
unpipe(t) {
|
|
1012
|
-
const e = this[B].find(e => e.dest === t);
|
|
1013
|
-
if (e) {
|
|
1014
|
-
if (this[B].length === 1) {
|
|
1015
|
-
if (this[L] && this[Y] === 0) {
|
|
1016
|
-
this[L] = false;
|
|
1017
|
-
}
|
|
1018
|
-
this[B] = [];
|
|
1019
|
-
} else this[B].splice(this[B].indexOf(e), 1);
|
|
1020
|
-
e.unpipe();
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
addListener(t, e) {
|
|
1024
|
-
return this.on(t, e);
|
|
1025
|
-
}
|
|
1026
|
-
on(t, e) {
|
|
1027
|
-
const s = super.on(t, e);
|
|
1028
|
-
if (t === "data") {
|
|
1029
|
-
this[q] = false;
|
|
1030
|
-
this[Y]++;
|
|
1031
|
-
if (!this[B].length && !this[L]) {
|
|
1032
|
-
this[M]();
|
|
1033
|
-
}
|
|
1034
|
-
} else if (t === "readable" && this[A] !== 0) {
|
|
1035
|
-
super.emit("readable");
|
|
1036
|
-
} else if (H(t) && this[p]) {
|
|
1037
|
-
super.emit(t);
|
|
1038
|
-
this.removeAllListeners(t);
|
|
1039
|
-
} else if (t === "error" && this[y]) {
|
|
1040
|
-
const t = e;
|
|
1041
|
-
if (this[N]) z(() => t.call(this, this[y])); else t.call(this, this[y]);
|
|
1042
|
-
}
|
|
1043
|
-
return s;
|
|
1044
|
-
}
|
|
1045
|
-
removeListener(t, e) {
|
|
1046
|
-
return this.off(t, e);
|
|
1047
|
-
}
|
|
1048
|
-
off(t, e) {
|
|
1049
|
-
const s = super.off(t, e);
|
|
1050
|
-
if (t === "data") {
|
|
1051
|
-
this[Y] = this.listeners("data").length;
|
|
1052
|
-
if (this[Y] === 0 && !this[q] && !this[B].length) {
|
|
1053
|
-
this[L] = false;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
return s;
|
|
1057
|
-
}
|
|
1058
|
-
removeAllListeners(t) {
|
|
1059
|
-
const e = super.removeAllListeners(t);
|
|
1060
|
-
if (t === "data" || t === undefined) {
|
|
1061
|
-
this[Y] = 0;
|
|
1062
|
-
if (!this[q] && !this[B].length) {
|
|
1063
|
-
this[L] = false;
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
return e;
|
|
1067
|
-
}
|
|
1068
|
-
get emittedEnd() {
|
|
1069
|
-
return this[p];
|
|
1070
|
-
}
|
|
1071
|
-
[m]() {
|
|
1072
|
-
if (!this[b] && !this[p] && !this[D] && this[P].length === 0 && this[d]) {
|
|
1073
|
-
this[b] = true;
|
|
1074
|
-
this.emit("end");
|
|
1075
|
-
this.emit("prefinish");
|
|
1076
|
-
this.emit("finish");
|
|
1077
|
-
if (this[g]) this.emit("close");
|
|
1078
|
-
this[b] = false;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
emit(t, ...e) {
|
|
1082
|
-
const s = e[0];
|
|
1083
|
-
if (t !== "error" && t !== "close" && t !== D && this[D]) {
|
|
1084
|
-
return false;
|
|
1085
|
-
} else if (t === "data") {
|
|
1086
|
-
return !this[_] && !s ? false : this[N] ? (z(() => this[W](s)), true) : this[W](s);
|
|
1087
|
-
} else if (t === "end") {
|
|
1088
|
-
return this[C]();
|
|
1089
|
-
} else if (t === "close") {
|
|
1090
|
-
this[g] = true;
|
|
1091
|
-
if (!this[p] && !this[D]) return false;
|
|
1092
|
-
const t = super.emit("close");
|
|
1093
|
-
this.removeAllListeners("close");
|
|
1094
|
-
return t;
|
|
1095
|
-
} else if (t === "error") {
|
|
1096
|
-
this[y] = s;
|
|
1097
|
-
super.emit(T, s);
|
|
1098
|
-
const t = !this[V] || this.listeners("error").length ? super.emit("error", s) : false;
|
|
1099
|
-
this[m]();
|
|
1100
|
-
return t;
|
|
1101
|
-
} else if (t === "resume") {
|
|
1102
|
-
const t = super.emit("resume");
|
|
1103
|
-
this[m]();
|
|
1104
|
-
return t;
|
|
1105
|
-
} else if (t === "finish" || t === "prefinish") {
|
|
1106
|
-
const e = super.emit(t);
|
|
1107
|
-
this.removeAllListeners(t);
|
|
1108
|
-
return e;
|
|
1109
|
-
}
|
|
1110
|
-
const i = super.emit(t, ...e);
|
|
1111
|
-
this[m]();
|
|
1112
|
-
return i;
|
|
1113
|
-
}
|
|
1114
|
-
[W](t) {
|
|
1115
|
-
for (const e of this[B]) {
|
|
1116
|
-
if (e.dest.write(t) === false) this.pause();
|
|
1117
|
-
}
|
|
1118
|
-
const e = this[q] ? false : super.emit("data", t);
|
|
1119
|
-
this[m]();
|
|
1120
|
-
return e;
|
|
1121
|
-
}
|
|
1122
|
-
[C]() {
|
|
1123
|
-
if (this[p]) return false;
|
|
1124
|
-
this[p] = true;
|
|
1125
|
-
this.readable = false;
|
|
1126
|
-
return this[N] ? (z(() => this[I]()), true) : this[I]();
|
|
1127
|
-
}
|
|
1128
|
-
[I]() {
|
|
1129
|
-
if (this[j]) {
|
|
1130
|
-
const t = this[j].end();
|
|
1131
|
-
if (t) {
|
|
1132
|
-
for (const e of this[B]) {
|
|
1133
|
-
e.dest.write(t);
|
|
1134
|
-
}
|
|
1135
|
-
if (!this[q]) super.emit("data", t);
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
for (const t of this[B]) {
|
|
1139
|
-
t.end();
|
|
1140
|
-
}
|
|
1141
|
-
const t = super.emit("end");
|
|
1142
|
-
this.removeAllListeners("end");
|
|
1143
|
-
return t;
|
|
1144
|
-
}
|
|
1145
|
-
async collect() {
|
|
1146
|
-
const t = Object.assign([], {
|
|
1147
|
-
dataLength: 0
|
|
1148
|
-
});
|
|
1149
|
-
if (!this[_]) t.dataLength = 0;
|
|
1150
|
-
const e = this.promise();
|
|
1151
|
-
this.on("data", e => {
|
|
1152
|
-
t.push(e);
|
|
1153
|
-
if (!this[_]) t.dataLength += e.length;
|
|
1154
|
-
});
|
|
1155
|
-
await e;
|
|
1156
|
-
return t;
|
|
1157
|
-
}
|
|
1158
|
-
async concat() {
|
|
1159
|
-
if (this[_]) {
|
|
1160
|
-
throw new Error("cannot concat in objectMode");
|
|
1161
|
-
}
|
|
1162
|
-
const t = await this.collect();
|
|
1163
|
-
return this[v] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
1164
|
-
}
|
|
1165
|
-
async promise() {
|
|
1166
|
-
return new Promise((t, e) => {
|
|
1167
|
-
this.on(D, () => e(new Error("stream destroyed")));
|
|
1168
|
-
this.on("error", t => e(t));
|
|
1169
|
-
this.on("end", () => t());
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
[Symbol.asyncIterator]() {
|
|
1173
|
-
this[q] = false;
|
|
1174
|
-
let t = false;
|
|
1175
|
-
const e = async () => {
|
|
1176
|
-
this.pause();
|
|
1177
|
-
t = true;
|
|
1178
|
-
return {
|
|
1179
|
-
value: undefined,
|
|
1180
|
-
done: true
|
|
1181
|
-
};
|
|
1182
|
-
};
|
|
1183
|
-
const s = () => {
|
|
1184
|
-
if (t) return e();
|
|
1185
|
-
const s = this.read();
|
|
1186
|
-
if (s !== null) return Promise.resolve({
|
|
1187
|
-
done: false,
|
|
1188
|
-
value: s
|
|
1189
|
-
});
|
|
1190
|
-
if (this[d]) return e();
|
|
1191
|
-
let i;
|
|
1192
|
-
let r;
|
|
1193
|
-
const n = t => {
|
|
1194
|
-
this.off("data", o);
|
|
1195
|
-
this.off("end", h);
|
|
1196
|
-
this.off(D, f);
|
|
1197
|
-
e();
|
|
1198
|
-
r(t);
|
|
1199
|
-
};
|
|
1200
|
-
const o = t => {
|
|
1201
|
-
this.off("error", n);
|
|
1202
|
-
this.off("end", h);
|
|
1203
|
-
this.off(D, f);
|
|
1204
|
-
this.pause();
|
|
1205
|
-
i({
|
|
1206
|
-
value: t,
|
|
1207
|
-
done: !!this[d]
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
const h = () => {
|
|
1211
|
-
this.off("error", n);
|
|
1212
|
-
this.off("data", o);
|
|
1213
|
-
this.off(D, f);
|
|
1214
|
-
e();
|
|
1215
|
-
i({
|
|
1216
|
-
done: true,
|
|
1217
|
-
value: undefined
|
|
1218
|
-
});
|
|
1219
|
-
};
|
|
1220
|
-
const f = () => n(new Error("stream destroyed"));
|
|
1221
|
-
return new Promise((t, e) => {
|
|
1222
|
-
r = e;
|
|
1223
|
-
i = t;
|
|
1224
|
-
this.once(D, f);
|
|
1225
|
-
this.once("error", n);
|
|
1226
|
-
this.once("end", h);
|
|
1227
|
-
this.once("data", o);
|
|
1228
|
-
});
|
|
1229
|
-
};
|
|
1230
|
-
return {
|
|
1231
|
-
next: s,
|
|
1232
|
-
throw: e,
|
|
1233
|
-
return: e,
|
|
1234
|
-
[Symbol.asyncIterator]() {
|
|
1235
|
-
return this;
|
|
1236
|
-
}
|
|
1237
|
-
};
|
|
1238
|
-
}
|
|
1239
|
-
[Symbol.iterator]() {
|
|
1240
|
-
this[q] = false;
|
|
1241
|
-
let t = false;
|
|
1242
|
-
const e = () => {
|
|
1243
|
-
this.pause();
|
|
1244
|
-
this.off(T, e);
|
|
1245
|
-
this.off(D, e);
|
|
1246
|
-
this.off("end", e);
|
|
1247
|
-
t = true;
|
|
1248
|
-
return {
|
|
1249
|
-
done: true,
|
|
1250
|
-
value: undefined
|
|
1251
|
-
};
|
|
1252
|
-
};
|
|
1253
|
-
const s = () => {
|
|
1254
|
-
if (t) return e();
|
|
1255
|
-
const s = this.read();
|
|
1256
|
-
return s === null ? e() : {
|
|
1257
|
-
done: false,
|
|
1258
|
-
value: s
|
|
1259
|
-
};
|
|
1260
|
-
};
|
|
1261
|
-
this.once("end", e);
|
|
1262
|
-
this.once(T, e);
|
|
1263
|
-
this.once(D, e);
|
|
1264
|
-
return {
|
|
1265
|
-
next: s,
|
|
1266
|
-
throw: e,
|
|
1267
|
-
return: e,
|
|
1268
|
-
[Symbol.iterator]() {
|
|
1269
|
-
return this;
|
|
1270
|
-
}
|
|
1271
|
-
};
|
|
1272
|
-
}
|
|
1273
|
-
destroy(t) {
|
|
1274
|
-
if (this[D]) {
|
|
1275
|
-
if (t) this.emit("error", t); else this.emit(D);
|
|
1276
|
-
return this;
|
|
1277
|
-
}
|
|
1278
|
-
this[D] = true;
|
|
1279
|
-
this[q] = true;
|
|
1280
|
-
this[P].length = 0;
|
|
1281
|
-
this[A] = 0;
|
|
1282
|
-
const e = this;
|
|
1283
|
-
if (typeof e.close === "function" && !this[g]) e.close();
|
|
1284
|
-
if (t) this.emit("error", t); else this.emit(D);
|
|
1285
|
-
return this;
|
|
1286
|
-
}
|
|
1287
|
-
static get isStream() {
|
|
1288
|
-
return l;
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
export { Minipass as M, f as r };
|