lakutata 2.0.95 → 2.0.96
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 +56 -44
- package/com/cacher.mjs +56 -44
- package/com/database.cjs +74 -74
- package/com/database.mjs +74 -74
- package/com/docker.cjs +85 -85
- package/com/docker.mjs +85 -85
- package/com/entrypoint.cjs +44 -44
- package/com/entrypoint.mjs +44 -44
- package/com/logger.cjs +51 -51
- package/com/logger.mjs +51 -51
- package/com/monitor.cjs +32 -32
- package/com/monitor.mjs +32 -32
- package/decorator/asst.cjs +5 -5
- package/decorator/asst.mjs +5 -5
- package/decorator/ctrl.cjs +22 -22
- package/decorator/ctrl.mjs +22 -22
- package/decorator/di.cjs +17 -17
- package/decorator/di.mjs +17 -17
- package/decorator/dto.cjs +17 -17
- package/decorator/dto.mjs +17 -17
- package/decorator/orm.cjs +47 -47
- package/decorator/orm.mjs +47 -47
- package/dtos.cjs +17 -17
- package/dtos.mjs +17 -17
- package/helper.cjs +32 -32
- package/helper.mjs +32 -32
- package/lakutata.cjs +110 -110
- package/lakutata.mjs +110 -110
- package/orm.cjs +47 -47
- package/orm.mjs +48 -48
- package/package.json +1 -1
- package/provider/database.cjs +73 -73
- package/provider/database.mjs +73 -73
- package/provider/passwordHash.cjs +31 -31
- package/provider/passwordHash.mjs +31 -31
- package/src/components/Database.cjs +74 -74
- package/src/components/Database.mjs +74 -74
- package/src/components/Logger.cjs +51 -51
- package/src/components/Logger.mjs +51 -51
- package/src/components/cacher/Cacher.cjs +60 -48
- package/src/components/cacher/Cacher.mjs +60 -48
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +25 -11
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +31 -17
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +29 -15
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +38 -24
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +41 -27
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +37 -23
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +28 -14
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +26 -12
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +39 -25
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +29 -15
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +26 -12
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +26 -12
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +29 -15
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +29 -15
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -4
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -4
- 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 -4
- package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -4
- package/src/components/cacher/options/FileCacheOptions.cjs +17 -17
- package/src/components/cacher/options/FileCacheOptions.mjs +17 -17
- package/src/components/cacher/options/MemcacheCacheOptions.cjs +17 -17
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -17
- package/src/components/cacher/options/MongoCacheOptions.cjs +17 -17
- package/src/components/cacher/options/MongoCacheOptions.mjs +17 -17
- package/src/components/cacher/options/MysqlCacheOptions.cjs +17 -17
- package/src/components/cacher/options/MysqlCacheOptions.mjs +17 -17
- package/src/components/cacher/options/PostgresCacheOptions.cjs +17 -17
- package/src/components/cacher/options/PostgresCacheOptions.mjs +17 -17
- package/src/components/cacher/options/RedisCacheOptions.cjs +17 -17
- package/src/components/cacher/options/RedisCacheOptions.mjs +17 -17
- package/src/components/cacher/options/SqliteCacheOptions.cjs +17 -17
- package/src/components/cacher/options/SqliteCacheOptions.mjs +17 -17
- package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
- package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.cjs +85 -85
- package/src/components/docker/ConnectionOptionsBuilder.mjs +85 -85
- package/src/components/docker/Docker.cjs +85 -85
- package/src/components/docker/Docker.mjs +85 -85
- package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -4
- package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -4
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -4
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -4
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -4
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -4
- 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 +72 -72
- package/src/components/docker/lib/DockerContainer.mjs +72 -72
- package/src/components/docker/lib/DockerContainerTTY.cjs +72 -72
- package/src/components/docker/lib/DockerContainerTTY.mjs +72 -72
- package/src/components/docker/lib/DockerImage.cjs +30 -30
- package/src/components/docker/lib/DockerImage.mjs +30 -30
- 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 +17 -17
- package/src/components/docker/options/DockerPruneOptions.mjs +17 -17
- package/src/components/docker/options/auth/DockerAuthOptions.cjs +17 -17
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerCommitOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerExecOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerExecOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerKillOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerKillOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerLogsOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerRemoveOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerStopOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerStopOptions.mjs +17 -17
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +17 -17
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +17 -17
- package/src/components/docker/options/image/ImageBuildOptions.cjs +17 -17
- package/src/components/docker/options/image/ImageBuildOptions.mjs +17 -17
- package/src/components/docker/options/image/ImageExportOptions.cjs +17 -17
- package/src/components/docker/options/image/ImageExportOptions.mjs +17 -17
- package/src/components/docker/options/image/ImageImportOptions.cjs +17 -17
- package/src/components/docker/options/image/ImageImportOptions.mjs +17 -17
- package/src/components/docker/options/image/ImagePullOptions.cjs +17 -17
- package/src/components/docker/options/image/ImagePullOptions.mjs +17 -17
- package/src/components/docker/options/image/ImagePushOptions.cjs +17 -17
- package/src/components/docker/options/image/ImagePushOptions.mjs +17 -17
- package/src/components/docker/options/image/ImageRemoveOptions.cjs +17 -17
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +17 -17
- package/src/components/docker/options/image/ImageTagOptions.cjs +17 -17
- package/src/components/docker/options/image/ImageTagOptions.mjs +17 -17
- package/src/components/docker/options/network/NetworkCreateOptions.cjs +17 -17
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +17 -17
- 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 +44 -44
- package/src/components/entrypoint/Entrypoint.mjs +44 -44
- package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -4
- package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -4
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -4
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -4
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -4
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -4
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -4
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -4
- package/src/components/entrypoint/lib/AccessControl.cjs +30 -30
- package/src/components/entrypoint/lib/AccessControl.mjs +30 -30
- package/src/components/entrypoint/lib/AccessControlRule.cjs +30 -30
- package/src/components/entrypoint/lib/AccessControlRule.mjs +30 -30
- package/src/components/entrypoint/lib/Controller.cjs +30 -30
- package/src/components/entrypoint/lib/Controller.mjs +30 -30
- package/src/components/monitor/AliveMonitor.cjs +31 -31
- package/src/components/monitor/AliveMonitor.mjs +31 -31
- package/src/components/monitor/CpuMonitor.cjs +32 -32
- package/src/components/monitor/CpuMonitor.mjs +32 -32
- package/src/components/monitor/EventLoopMonitor.cjs +31 -31
- package/src/components/monitor/EventLoopMonitor.mjs +31 -31
- package/src/components/monitor/HttpRequestMonitor.cjs +32 -32
- package/src/components/monitor/HttpRequestMonitor.mjs +32 -32
- package/src/components/monitor/MemoryMonitor.cjs +32 -32
- package/src/components/monitor/MemoryMonitor.mjs +32 -32
- 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 +2 -2
- package/src/constants/DIMetadataKey.mjs +2 -2
- package/src/constants/DTOMetadataKey.cjs +2 -2
- package/src/constants/DTOMetadataKey.mjs +2 -2
- package/src/decorators/asst/After.cjs +4 -4
- package/src/decorators/asst/After.mjs +4 -4
- package/src/decorators/asst/Before.cjs +4 -4
- package/src/decorators/asst/Before.mjs +4 -4
- package/src/decorators/ctrl/CLIAction.cjs +22 -22
- package/src/decorators/ctrl/CLIAction.mjs +22 -22
- package/src/decorators/ctrl/HTTPAction.cjs +22 -22
- package/src/decorators/ctrl/HTTPAction.mjs +22 -22
- package/src/decorators/ctrl/ServiceAction.cjs +22 -22
- package/src/decorators/ctrl/ServiceAction.mjs +22 -22
- package/src/decorators/ctrl/http/DELETE.cjs +22 -22
- package/src/decorators/ctrl/http/DELETE.mjs +22 -22
- package/src/decorators/ctrl/http/GET.cjs +22 -22
- package/src/decorators/ctrl/http/GET.mjs +22 -22
- package/src/decorators/ctrl/http/HEAD.cjs +22 -22
- package/src/decorators/ctrl/http/HEAD.mjs +22 -22
- package/src/decorators/ctrl/http/OPTIONS.cjs +22 -22
- package/src/decorators/ctrl/http/OPTIONS.mjs +22 -22
- package/src/decorators/ctrl/http/PATCH.cjs +22 -22
- package/src/decorators/ctrl/http/PATCH.mjs +22 -22
- package/src/decorators/ctrl/http/POST.cjs +22 -22
- package/src/decorators/ctrl/http/POST.mjs +22 -22
- package/src/decorators/ctrl/http/PUT.cjs +22 -22
- package/src/decorators/ctrl/http/PUT.mjs +22 -22
- package/src/decorators/di/Autoload.cjs +2 -2
- package/src/decorators/di/Autoload.mjs +2 -2
- package/src/decorators/di/Configurable.cjs +17 -17
- package/src/decorators/di/Configurable.mjs +17 -17
- package/src/decorators/di/Inject.cjs +17 -17
- package/src/decorators/di/Inject.mjs +17 -17
- package/src/decorators/di/Lifetime.cjs +5 -5
- package/src/decorators/di/Lifetime.mjs +5 -5
- package/src/decorators/dto/Accept.cjs +17 -17
- package/src/decorators/dto/Accept.mjs +17 -17
- package/src/decorators/dto/Expect.cjs +17 -17
- package/src/decorators/dto/Expect.mjs +17 -17
- package/src/decorators/dto/IndexSignature.cjs +17 -17
- package/src/decorators/dto/IndexSignature.mjs +17 -17
- package/src/decorators/dto/Return.cjs +17 -17
- package/src/decorators/dto/Return.mjs +17 -17
- package/src/decorators/orm/AfterInsert.cjs +46 -46
- package/src/decorators/orm/AfterInsert.mjs +46 -46
- package/src/decorators/orm/AfterLoad.cjs +46 -46
- package/src/decorators/orm/AfterLoad.mjs +46 -46
- package/src/decorators/orm/AfterRecover.cjs +46 -46
- package/src/decorators/orm/AfterRecover.mjs +46 -46
- package/src/decorators/orm/AfterRemove.cjs +46 -46
- package/src/decorators/orm/AfterRemove.mjs +46 -46
- package/src/decorators/orm/AfterSoftRemove.cjs +46 -46
- package/src/decorators/orm/AfterSoftRemove.mjs +46 -46
- package/src/decorators/orm/AfterUpdate.cjs +46 -46
- package/src/decorators/orm/AfterUpdate.mjs +46 -46
- package/src/decorators/orm/BeforeInsert.cjs +46 -46
- package/src/decorators/orm/BeforeInsert.mjs +46 -46
- package/src/decorators/orm/BeforeRecover.cjs +46 -46
- package/src/decorators/orm/BeforeRecover.mjs +46 -46
- package/src/decorators/orm/BeforeRemove.cjs +46 -46
- package/src/decorators/orm/BeforeRemove.mjs +46 -46
- package/src/decorators/orm/BeforeSoftRemove.cjs +46 -46
- package/src/decorators/orm/BeforeSoftRemove.mjs +46 -46
- package/src/decorators/orm/BeforeUpdate.cjs +46 -46
- package/src/decorators/orm/BeforeUpdate.mjs +46 -46
- package/src/decorators/orm/Check.cjs +46 -46
- package/src/decorators/orm/Check.mjs +46 -46
- package/src/decorators/orm/ChildEntity.cjs +46 -46
- package/src/decorators/orm/ChildEntity.mjs +46 -46
- package/src/decorators/orm/Column.cjs +46 -46
- package/src/decorators/orm/Column.mjs +46 -46
- package/src/decorators/orm/CreateDateColumn.cjs +46 -46
- package/src/decorators/orm/CreateDateColumn.mjs +46 -46
- package/src/decorators/orm/DeleteDateColumn.cjs +46 -46
- package/src/decorators/orm/DeleteDateColumn.mjs +46 -46
- package/src/decorators/orm/Entity.cjs +46 -46
- package/src/decorators/orm/Entity.mjs +46 -46
- package/src/decorators/orm/EventSubscriber.cjs +46 -46
- package/src/decorators/orm/EventSubscriber.mjs +46 -46
- package/src/decorators/orm/Exclusion.cjs +46 -46
- package/src/decorators/orm/Exclusion.mjs +46 -46
- package/src/decorators/orm/Generated.cjs +46 -46
- package/src/decorators/orm/Generated.mjs +46 -46
- package/src/decorators/orm/Index.cjs +46 -46
- package/src/decorators/orm/Index.mjs +46 -46
- package/src/decorators/orm/JoinColumn.cjs +46 -46
- package/src/decorators/orm/JoinColumn.mjs +46 -46
- package/src/decorators/orm/JoinTable.cjs +46 -46
- package/src/decorators/orm/JoinTable.mjs +46 -46
- package/src/decorators/orm/ManyToMany.cjs +46 -46
- package/src/decorators/orm/ManyToMany.mjs +46 -46
- package/src/decorators/orm/ManyToOne.cjs +46 -46
- package/src/decorators/orm/ManyToOne.mjs +46 -46
- package/src/decorators/orm/ObjectIdColumn.cjs +46 -46
- package/src/decorators/orm/ObjectIdColumn.mjs +46 -46
- package/src/decorators/orm/OneToMany.cjs +46 -46
- package/src/decorators/orm/OneToMany.mjs +46 -46
- package/src/decorators/orm/OneToOne.cjs +46 -46
- package/src/decorators/orm/OneToOne.mjs +46 -46
- package/src/decorators/orm/PrimaryColumn.cjs +46 -46
- package/src/decorators/orm/PrimaryColumn.mjs +46 -46
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +46 -46
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +46 -46
- package/src/decorators/orm/RelationId.cjs +46 -46
- package/src/decorators/orm/RelationId.mjs +46 -46
- package/src/decorators/orm/TableInheritance.cjs +46 -46
- package/src/decorators/orm/TableInheritance.mjs +46 -46
- package/src/decorators/orm/Tree.cjs +46 -46
- package/src/decorators/orm/Tree.mjs +46 -46
- package/src/decorators/orm/TreeChildren.cjs +46 -46
- package/src/decorators/orm/TreeChildren.mjs +46 -46
- package/src/decorators/orm/TreeLevelColumn.cjs +46 -46
- package/src/decorators/orm/TreeLevelColumn.mjs +46 -46
- package/src/decorators/orm/TreeParent.cjs +46 -46
- package/src/decorators/orm/TreeParent.mjs +46 -46
- package/src/decorators/orm/Unique.cjs +46 -46
- package/src/decorators/orm/Unique.mjs +46 -46
- package/src/decorators/orm/UpdateDateColumn.cjs +46 -46
- package/src/decorators/orm/UpdateDateColumn.mjs +46 -46
- package/src/decorators/orm/VersionColumn.cjs +46 -46
- package/src/decorators/orm/VersionColumn.mjs +46 -46
- package/src/decorators/orm/ViewColumn.cjs +46 -46
- package/src/decorators/orm/ViewColumn.mjs +46 -46
- package/src/decorators/orm/ViewEntity.cjs +46 -46
- package/src/decorators/orm/ViewEntity.mjs +46 -46
- package/src/decorators/orm/VirtualColumn.cjs +46 -46
- package/src/decorators/orm/VirtualColumn.mjs +46 -46
- package/src/dto/PaginationResultDTO.cjs +17 -17
- package/src/dto/PaginationResultDTO.mjs +17 -17
- package/src/dto/PaginationSearchDTO.cjs +17 -17
- package/src/dto/PaginationSearchDTO.mjs +17 -17
- package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -4
- package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -4
- package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -4
- package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -4
- package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -4
- package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -4
- package/src/exceptions/InvalidObjectTypeException.cjs +4 -4
- package/src/exceptions/InvalidObjectTypeException.mjs +4 -4
- package/src/exceptions/MethodNotFoundException.cjs +4 -4
- package/src/exceptions/MethodNotFoundException.mjs +4 -4
- package/src/exceptions/alias/AliasExistsException.cjs +4 -4
- package/src/exceptions/alias/AliasExistsException.mjs +4 -4
- package/src/exceptions/alias/AliasNotFoundException.cjs +4 -4
- package/src/exceptions/alias/AliasNotFoundException.mjs +4 -4
- package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -4
- package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -4
- package/src/exceptions/di/DependencyInjectionException.cjs +4 -4
- package/src/exceptions/di/DependencyInjectionException.mjs +4 -4
- package/src/exceptions/di/LifetimeLockedException.cjs +4 -4
- package/src/exceptions/di/LifetimeLockedException.mjs +4 -4
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -4
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -4
- package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -4
- package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -4
- package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -4
- package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -4
- package/src/exceptions/dto/InvalidValueException.cjs +4 -4
- package/src/exceptions/dto/InvalidValueException.mjs +4 -4
- 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 +30 -30
- package/src/lib/base/BaseObject.mjs +30 -30
- package/src/lib/base/Context.cjs +17 -17
- package/src/lib/base/Context.mjs +17 -17
- package/src/lib/base/EventEmitter.cjs +2 -2
- package/src/lib/base/EventEmitter.mjs +2 -2
- package/src/lib/base/abstracts/Exception.cjs +4 -4
- package/src/lib/base/abstracts/Exception.mjs +4 -4
- 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 +17 -17
- package/src/lib/base/internal/ActionOptions.mjs +17 -17
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +30 -30
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +30 -30
- package/src/lib/base/internal/BasicInfo.cjs +4 -4
- package/src/lib/base/internal/BasicInfo.mjs +4 -4
- 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 +2 -2
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +2 -2
- package/src/lib/base/internal/ConstructorSymbol.cjs +2 -2
- package/src/lib/base/internal/ConstructorSymbol.mjs +2 -2
- package/src/lib/base/internal/ControllerEntrypoint.cjs +9 -9
- package/src/lib/base/internal/ControllerEntrypoint.mjs +9 -9
- package/src/lib/base/internal/DataValidator.cjs +13 -13
- package/src/lib/base/internal/DataValidator.mjs +13 -13
- 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 +17 -17
- package/src/lib/base/internal/FlexibleDTO.mjs +17 -17
- package/src/lib/base/internal/GetActionDTOAndOptions.cjs +17 -17
- package/src/lib/base/internal/GetActionDTOAndOptions.mjs +17 -17
- 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 +4 -4
- package/src/lib/base/internal/MethodAssistantFunction.mjs +4 -4
- package/src/lib/base/internal/MethodValidation.cjs +17 -17
- package/src/lib/base/internal/MethodValidation.mjs +17 -17
- package/src/lib/base/internal/ModuleConfigLoader.cjs +30 -30
- package/src/lib/base/internal/ModuleConfigLoader.mjs +30 -30
- package/src/lib/base/internal/ObjectConfiguration.cjs +17 -17
- package/src/lib/base/internal/ObjectConfiguration.mjs +17 -17
- package/src/lib/base/internal/ObjectContainer.cjs +2 -2
- package/src/lib/base/internal/ObjectContainer.mjs +2 -2
- package/src/lib/base/internal/ObjectInjection.cjs +2 -2
- package/src/lib/base/internal/ObjectInjection.mjs +2 -2
- package/src/lib/base/internal/ObjectLifetime.cjs +5 -5
- package/src/lib/base/internal/ObjectLifetime.mjs +5 -5
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +17 -17
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +17 -17
- package/src/lib/base/internal/ObjectType.cjs +30 -30
- package/src/lib/base/internal/ObjectType.mjs +30 -30
- 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 +3 -3
- package/src/lib/base/internal/PatternManager.mjs +3 -3
- package/src/lib/base/internal/StringifyPattern.cjs +4 -4
- package/src/lib/base/internal/StringifyPattern.mjs +4 -4
- package/src/lib/base/internal/ThrowWarning.cjs +1 -1
- package/src/lib/base/internal/ThrowWarning.mjs +1 -1
- package/src/lib/context/CLIContext.cjs +17 -17
- package/src/lib/context/CLIContext.mjs +17 -17
- package/src/lib/context/HTTPContext.cjs +17 -17
- package/src/lib/context/HTTPContext.mjs +17 -17
- package/src/lib/context/ServiceContext.cjs +17 -17
- package/src/lib/context/ServiceContext.mjs +17 -17
- package/src/lib/core/Alias.cjs +4 -4
- package/src/lib/core/Alias.mjs +4 -4
- package/src/lib/core/Application.cjs +110 -110
- package/src/lib/core/Application.mjs +110 -110
- package/src/lib/core/Component.cjs +31 -31
- package/src/lib/core/Component.mjs +31 -31
- package/src/lib/core/Container.cjs +30 -30
- package/src/lib/core/Container.mjs +30 -30
- package/src/lib/core/DTO.cjs +17 -17
- package/src/lib/core/DTO.mjs +17 -17
- package/src/lib/core/Module.cjs +33 -33
- package/src/lib/core/Module.mjs +33 -33
- package/src/lib/core/Provider.cjs +30 -30
- package/src/lib/core/Provider.mjs +30 -30
- package/src/lib/core/Time.cjs +5 -5
- package/src/lib/core/Time.mjs +5 -5
- 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 +4 -4
- package/src/lib/helpers/Glob.mjs +4 -4
- 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 +3 -3
- package/src/lib/helpers/IsGlobString.mjs +3 -3
- package/src/lib/helpers/IsHtml.cjs +2 -2
- package/src/lib/helpers/IsHtml.mjs +2 -2
- 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 +17 -17
- package/src/lib/helpers/IsSymbol.mjs +17 -17
- package/src/lib/helpers/IsXML.cjs +3 -3
- package/src/lib/helpers/IsXML.mjs +3 -3
- package/src/lib/helpers/MD5.cjs +3 -3
- package/src/lib/helpers/MD5.mjs +3 -3
- 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 +3 -3
- package/src/lib/helpers/NonceStr.mjs +3 -3
- package/src/lib/helpers/ObjectConstructor.cjs +1 -1
- package/src/lib/helpers/ObjectConstructor.mjs +1 -1
- package/src/lib/helpers/ObjectHash.cjs +2 -2
- package/src/lib/helpers/ObjectHash.mjs +2 -2
- 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 +3 -3
- package/src/lib/helpers/RandomString.mjs +3 -3
- package/src/lib/helpers/SHA1.cjs +3 -3
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.cjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/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 +4 -4
- package/src/lib/helpers/SortArray.mjs +4 -4
- 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 +4 -4
- package/src/lib/helpers/URLBuilder.mjs +4 -4
- package/src/lib/helpers/UUID.cjs +2 -2
- package/src/lib/helpers/UUID.mjs +2 -2
- 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 +30 -30
- package/src/lib/ioc/DependencyInjectionContainer.mjs +30 -30
- package/src/lib/ioc/Errors.cjs +17 -17
- package/src/lib/ioc/Errors.mjs +17 -17
- 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 +29 -29
- package/src/lib/ioc/ListModules.mjs +29 -29
- package/src/lib/ioc/LoadModules.cjs +17 -17
- package/src/lib/ioc/LoadModules.mjs +17 -17
- package/src/lib/ioc/ParamParser.cjs +1 -1
- package/src/lib/ioc/ParamParser.mjs +1 -1
- package/src/lib/ioc/Resolvers.cjs +17 -17
- package/src/lib/ioc/Resolvers.mjs +17 -17
- package/src/lib/ioc/Utils.cjs +17 -17
- package/src/lib/ioc/Utils.mjs +17 -17
- package/src/lib/validation/VLD.cjs +6 -6
- package/src/lib/validation/VLD.mjs +6 -6
- 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 +30 -30
- package/src/options/ApplicationOptions.mjs +30 -30
- package/src/options/LoadAnonymousObjectOptions.cjs +30 -30
- package/src/options/LoadAnonymousObjectOptions.mjs +30 -30
- package/src/options/LoadNamedObjectOptions.cjs +30 -30
- package/src/options/LoadNamedObjectOptions.mjs +30 -30
- package/src/options/LoadObjectOptions.cjs +30 -30
- package/src/options/LoadObjectOptions.mjs +30 -30
- package/src/options/ModuleLoadObjectsOptions.cjs +30 -30
- package/src/options/ModuleLoadObjectsOptions.mjs +30 -30
- package/src/options/ModuleOptions.cjs +30 -30
- package/src/options/ModuleOptions.mjs +30 -30
- package/src/options/OverridableNamedObjectOptions.cjs +30 -30
- package/src/options/OverridableNamedObjectOptions.mjs +30 -30
- package/src/options/OverridableObjectOptions.cjs +30 -30
- package/src/options/OverridableObjectOptions.mjs +30 -30
- package/src/providers/Database.cjs +73 -73
- package/src/providers/Database.mjs +73 -73
- package/src/providers/PasswordHash.cjs +31 -31
- package/src/providers/PasswordHash.mjs +31 -31
- package/src/providers/migration/GenerateMigration.cjs +110 -110
- package/src/providers/migration/GenerateMigration.mjs +110 -110
- 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 +1 -1
- package/vendor/Package.internal.1.mjs +1 -1
- package/vendor/Package.internal.10.cjs +1 -1
- package/vendor/Package.internal.10.mjs +1 -1
- package/vendor/Package.internal.100.cjs +67 -2
- package/vendor/Package.internal.100.mjs +67 -2
- package/vendor/Package.internal.101.cjs +113 -102
- package/vendor/Package.internal.101.mjs +116 -93
- package/vendor/Package.internal.102.cjs +9 -81
- package/vendor/Package.internal.102.mjs +5 -81
- package/vendor/Package.internal.103.cjs +2 -56
- package/vendor/Package.internal.103.mjs +2 -52
- package/vendor/Package.internal.104.cjs +2 -18
- package/vendor/Package.internal.104.mjs +2 -18
- package/vendor/Package.internal.105.cjs +103 -87
- package/vendor/Package.internal.105.mjs +90 -88
- package/vendor/Package.internal.106.cjs +72 -97
- package/vendor/Package.internal.106.mjs +70 -99
- package/vendor/Package.internal.107.cjs +38 -2156
- package/vendor/Package.internal.107.mjs +37 -2159
- package/vendor/Package.internal.108.cjs +13 -2459
- package/vendor/Package.internal.108.mjs +13 -2429
- package/vendor/Package.internal.109.cjs +70 -1280
- package/vendor/Package.internal.109.mjs +73 -1269
- package/vendor/Package.internal.11.cjs +98 -100
- package/vendor/Package.internal.11.mjs +134 -134
- package/vendor/Package.internal.110.cjs +108 -28
- package/vendor/Package.internal.110.mjs +109 -27
- package/vendor/Package.internal.111.cjs +2169 -13
- package/vendor/Package.internal.111.mjs +2169 -13
- package/vendor/Package.internal.112.cjs +2456 -11
- package/vendor/Package.internal.112.mjs +2425 -12
- package/vendor/Package.internal.113.cjs +1289 -35
- package/vendor/Package.internal.113.mjs +1277 -37
- package/vendor/Package.internal.114.cjs +23 -131
- package/vendor/Package.internal.114.mjs +26 -136
- package/vendor/Package.internal.115.cjs +19 -1
- package/vendor/Package.internal.115.mjs +18 -1
- package/vendor/Package.internal.116.cjs +18 -3
- package/vendor/Package.internal.116.mjs +20 -3
- package/vendor/Package.internal.117.cjs +50 -2
- package/vendor/Package.internal.117.mjs +52 -2
- package/vendor/Package.internal.118.cjs +139 -2
- package/vendor/Package.internal.118.mjs +141 -2
- package/vendor/Package.internal.119.cjs +1 -3
- package/vendor/Package.internal.119.mjs +1 -2
- package/vendor/Package.internal.12.cjs +12469 -270
- package/vendor/Package.internal.12.mjs +12452 -271
- package/vendor/Package.internal.120.cjs +3 -46
- package/vendor/Package.internal.120.mjs +3 -46
- package/vendor/Package.internal.121.cjs +2 -12
- package/vendor/Package.internal.121.mjs +2 -14
- package/vendor/Package.internal.122.cjs +2 -10
- package/vendor/Package.internal.122.mjs +2 -12
- package/vendor/Package.internal.123.cjs +2 -18
- package/vendor/Package.internal.123.mjs +2 -18
- package/vendor/Package.internal.124.cjs +35 -104
- package/vendor/Package.internal.124.mjs +35 -104
- package/vendor/Package.internal.125.cjs +12 -16
- package/vendor/Package.internal.125.mjs +13 -15
- package/vendor/Package.internal.126.cjs +10 -17
- package/vendor/Package.internal.126.mjs +12 -17
- package/vendor/Package.internal.127.cjs +12 -8868
- package/vendor/Package.internal.127.mjs +12 -8868
- package/vendor/Package.internal.128.cjs +88 -869
- package/vendor/Package.internal.128.mjs +98 -879
- package/vendor/Package.internal.129.cjs +10 -6761
- package/vendor/Package.internal.129.mjs +10 -6769
- package/vendor/Package.internal.13.cjs +267 -701
- package/vendor/Package.internal.13.mjs +269 -703
- package/vendor/Package.internal.130.cjs +12 -466
- package/vendor/Package.internal.130.mjs +12 -454
- package/vendor/Package.internal.131.cjs +8819 -560
- package/vendor/Package.internal.131.mjs +8821 -558
- package/vendor/Package.internal.132.cjs +878 -76
- package/vendor/Package.internal.132.mjs +881 -73
- package/vendor/Package.internal.133.cjs +6767 -2
- package/vendor/Package.internal.133.mjs +6775 -2
- package/vendor/Package.internal.134.cjs +446 -3726
- package/vendor/Package.internal.134.mjs +440 -3732
- package/vendor/Package.internal.135.cjs +577 -521
- package/vendor/Package.internal.135.mjs +573 -521
- package/vendor/Package.internal.136.cjs +95 -2
- package/vendor/Package.internal.136.mjs +89 -2
- package/vendor/Package.internal.137.cjs +2 -2
- package/vendor/Package.internal.137.mjs +2 -2
- package/vendor/Package.internal.138.cjs +3751 -2
- package/vendor/Package.internal.138.mjs +3751 -2
- package/vendor/Package.internal.139.cjs +559 -2
- package/vendor/Package.internal.139.mjs +559 -2
- package/vendor/Package.internal.14.cjs +710 -905
- package/vendor/Package.internal.14.mjs +711 -894
- package/vendor/Package.internal.140.cjs +2 -2
- package/vendor/Package.internal.140.mjs +2 -2
- package/vendor/Package.internal.141.cjs +2 -2
- package/vendor/Package.internal.141.mjs +2 -2
- package/vendor/Package.internal.142.cjs +2 -2
- package/vendor/Package.internal.142.mjs +2 -2
- package/vendor/Package.internal.143.cjs +2 -2
- package/vendor/Package.internal.143.mjs +2 -2
- package/vendor/Package.internal.144.cjs +2 -2
- package/vendor/Package.internal.144.mjs +2 -2
- package/vendor/Package.internal.145.cjs +2 -2
- package/vendor/Package.internal.145.mjs +2 -2
- package/vendor/Package.internal.146.cjs +2 -2
- package/vendor/Package.internal.146.mjs +2 -2
- package/vendor/Package.internal.147.cjs +2 -406
- package/vendor/Package.internal.147.mjs +2 -400
- package/vendor/Package.internal.148.cjs +2 -102
- package/vendor/Package.internal.148.mjs +2 -104
- package/vendor/Package.internal.149.cjs +2 -25
- package/vendor/Package.internal.149.mjs +2 -27
- package/vendor/Package.internal.15.cjs +70 -40
- package/vendor/Package.internal.15.mjs +72 -44
- package/vendor/Package.internal.150.cjs +2 -2
- package/vendor/Package.internal.150.mjs +2 -2
- package/vendor/Package.internal.151.cjs +406 -2
- package/vendor/Package.internal.151.mjs +400 -2
- package/vendor/Package.internal.152.cjs +78 -697
- package/vendor/Package.internal.152.mjs +79 -698
- package/vendor/Package.internal.153.cjs +19 -1540
- package/vendor/Package.internal.153.mjs +21 -1534
- package/vendor/Package.internal.154.cjs +2 -362
- package/vendor/Package.internal.154.mjs +2 -364
- package/vendor/Package.internal.155.cjs +2 -105
- package/vendor/Package.internal.155.mjs +2 -107
- package/vendor/Package.internal.156.cjs +680 -593
- package/vendor/Package.internal.156.mjs +683 -582
- package/vendor/Package.internal.157.cjs +1444 -439
- package/vendor/Package.internal.157.mjs +1439 -432
- package/vendor/Package.internal.158.cjs +325 -566
- package/vendor/Package.internal.158.mjs +326 -567
- package/vendor/Package.internal.159.cjs +94 -126
- package/vendor/Package.internal.159.mjs +95 -119
- package/vendor/Package.internal.16.cjs +950 -232
- package/vendor/Package.internal.16.mjs +942 -236
- package/vendor/Package.internal.160.cjs +602 -85
- package/vendor/Package.internal.160.mjs +594 -83
- package/vendor/Package.internal.161.cjs +459 -1140
- package/vendor/Package.internal.161.mjs +460 -1141
- package/vendor/Package.internal.162.cjs +588 -73
- package/vendor/Package.internal.162.mjs +588 -81
- package/vendor/Package.internal.163.cjs +137 -2
- package/vendor/Package.internal.163.mjs +131 -2
- package/vendor/Package.internal.164.cjs +117 -2
- package/vendor/Package.internal.164.mjs +111 -2
- package/vendor/Package.internal.165.cjs +1204 -35
- package/vendor/Package.internal.165.mjs +1195 -36
- package/vendor/Package.internal.166.cjs +86 -6
- package/vendor/Package.internal.166.mjs +95 -7
- package/vendor/Package.internal.167.cjs +2 -10
- package/vendor/Package.internal.167.mjs +2 -6
- package/vendor/Package.internal.168.cjs +2 -163
- package/vendor/Package.internal.168.mjs +2 -163
- package/vendor/Package.internal.169.cjs +46 -14
- package/vendor/Package.internal.169.mjs +49 -9
- package/vendor/Package.internal.17.cjs +41 -429
- package/vendor/Package.internal.17.mjs +42 -430
- package/vendor/Package.internal.170.cjs +6 -247
- package/vendor/Package.internal.170.mjs +7 -246
- package/vendor/Package.internal.171.cjs +7 -944
- package/vendor/Package.internal.171.mjs +4 -945
- package/vendor/Package.internal.172.cjs +157 -19
- package/vendor/Package.internal.172.mjs +160 -24
- package/vendor/Package.internal.173.cjs +10 -67
- package/vendor/Package.internal.173.mjs +10 -67
- package/vendor/Package.internal.174.cjs +229 -633
- package/vendor/Package.internal.174.mjs +227 -631
- package/vendor/Package.internal.175.cjs +927 -55
- package/vendor/Package.internal.175.mjs +926 -54
- package/vendor/Package.internal.176.cjs +19 -1133
- package/vendor/Package.internal.176.mjs +25 -1031
- package/vendor/Package.internal.177.cjs +69 -59
- package/vendor/Package.internal.177.mjs +63 -59
- package/vendor/Package.internal.178.cjs +624 -81
- package/vendor/Package.internal.178.mjs +624 -81
- package/vendor/Package.internal.179.cjs +60 -85
- package/vendor/Package.internal.179.mjs +60 -85
- package/vendor/Package.internal.18.cjs +233 -528
- package/vendor/Package.internal.18.mjs +234 -523
- package/vendor/Package.internal.180.cjs +940 -45249
- package/vendor/Package.internal.180.mjs +869 -45268
- package/vendor/Package.internal.181.cjs +66 -4
- package/vendor/Package.internal.181.mjs +66 -4
- package/vendor/Package.internal.182.cjs +103 -21
- package/vendor/Package.internal.182.mjs +103 -21
- package/vendor/Package.internal.183.cjs +84 -299
- package/vendor/Package.internal.183.mjs +84 -299
- package/vendor/Package.internal.184.cjs +45316 -809
- package/vendor/Package.internal.184.mjs +45270 -789
- package/vendor/Package.internal.185.cjs +4 -1086
- package/vendor/Package.internal.185.mjs +4 -1088
- package/vendor/Package.internal.186.cjs +21 -156
- package/vendor/Package.internal.186.mjs +20 -157
- package/vendor/Package.internal.187.cjs +310 -8
- package/vendor/Package.internal.187.mjs +310 -8
- package/vendor/Package.internal.188.cjs +936 -7
- package/vendor/Package.internal.188.mjs +947 -8
- package/vendor/Package.internal.189.cjs +1072 -31
- package/vendor/Package.internal.189.mjs +1074 -31
- package/vendor/Package.internal.19.cjs +427 -217
- package/vendor/Package.internal.19.mjs +433 -223
- package/vendor/Package.internal.190.cjs +134 -462
- package/vendor/Package.internal.190.mjs +135 -441
- package/vendor/Package.internal.191.cjs +13 -2
- package/vendor/Package.internal.191.mjs +13 -2
- package/vendor/Package.internal.192.cjs +12 -2
- package/vendor/Package.internal.192.mjs +12 -2
- package/vendor/Package.internal.193.cjs +47 -2
- package/vendor/Package.internal.193.mjs +47 -2
- package/vendor/Package.internal.194.cjs +491 -2
- package/vendor/Package.internal.194.mjs +471 -2
- package/vendor/Package.internal.195.cjs +2 -2
- package/vendor/Package.internal.195.mjs +2 -2
- package/vendor/Package.internal.196.cjs +2 -2
- package/vendor/Package.internal.196.mjs +2 -2
- package/vendor/Package.internal.197.cjs +2 -2
- package/vendor/Package.internal.197.mjs +2 -2
- package/vendor/Package.internal.198.cjs +2 -2
- package/vendor/Package.internal.198.mjs +2 -2
- package/vendor/Package.internal.199.cjs +4 -0
- package/vendor/Package.internal.199.mjs +2 -0
- package/vendor/Package.internal.2.cjs +1 -1
- package/vendor/Package.internal.2.mjs +1 -1
- package/vendor/Package.internal.20.cjs +525 -957
- package/vendor/Package.internal.20.mjs +521 -959
- package/vendor/Package.internal.200.cjs +4 -0
- package/vendor/Package.internal.200.mjs +2 -0
- package/vendor/Package.internal.201.cjs +4 -0
- package/vendor/Package.internal.201.mjs +2 -0
- package/vendor/Package.internal.202.cjs +4 -0
- package/vendor/Package.internal.202.mjs +2 -0
- package/vendor/Package.internal.21.cjs +406 -8
- package/vendor/Package.internal.21.mjs +408 -8
- package/vendor/Package.internal.22.cjs +913 -123
- package/vendor/Package.internal.22.mjs +909 -123
- package/vendor/Package.internal.23.cjs +214 -136
- package/vendor/Package.internal.23.mjs +215 -135
- package/vendor/Package.internal.24.cjs +996 -5
- package/vendor/Package.internal.24.mjs +998 -5
- package/vendor/Package.internal.25.cjs +8 -20
- package/vendor/Package.internal.25.mjs +7 -19
- package/vendor/Package.internal.26.cjs +120 -473
- package/vendor/Package.internal.26.mjs +120 -469
- package/vendor/Package.internal.27.cjs +127 -60
- package/vendor/Package.internal.27.mjs +128 -57
- package/vendor/Package.internal.28.cjs +6 -2
- package/vendor/Package.internal.28.mjs +6 -2
- package/vendor/Package.internal.29.cjs +16 -35
- package/vendor/Package.internal.29.mjs +16 -35
- package/vendor/Package.internal.3.cjs +1 -1
- package/vendor/Package.internal.3.mjs +1 -1
- package/vendor/Package.internal.30.cjs +473 -21
- package/vendor/Package.internal.30.mjs +472 -24
- package/vendor/Package.internal.31.cjs +77 -9
- package/vendor/Package.internal.31.mjs +73 -9
- package/vendor/Package.internal.32.cjs +2 -189
- package/vendor/Package.internal.32.mjs +2 -191
- package/vendor/Package.internal.33.cjs +31 -53
- package/vendor/Package.internal.33.mjs +32 -54
- package/vendor/Package.internal.34.cjs +20 -160
- package/vendor/Package.internal.34.mjs +24 -166
- package/vendor/Package.internal.35.cjs +10 -2072
- package/vendor/Package.internal.35.mjs +10 -2068
- package/vendor/Package.internal.36.cjs +186 -517
- package/vendor/Package.internal.36.mjs +189 -512
- package/vendor/Package.internal.37.cjs +57 -413
- package/vendor/Package.internal.37.mjs +57 -409
- package/vendor/Package.internal.38.cjs +132 -2329
- package/vendor/Package.internal.38.mjs +133 -2318
- package/vendor/Package.internal.39.cjs +2063 -50
- package/vendor/Package.internal.39.mjs +2058 -57
- package/vendor/Package.internal.4.cjs +1 -1
- package/vendor/Package.internal.4.mjs +1 -1
- package/vendor/Package.internal.40.cjs +507 -137
- package/vendor/Package.internal.40.mjs +504 -140
- package/vendor/Package.internal.41.cjs +355 -573
- package/vendor/Package.internal.41.mjs +353 -577
- package/vendor/Package.internal.42.cjs +2315 -196
- package/vendor/Package.internal.42.mjs +2307 -200
- package/vendor/Package.internal.43.cjs +57 -222
- package/vendor/Package.internal.43.mjs +64 -217
- package/vendor/Package.internal.44.cjs +150 -2
- package/vendor/Package.internal.44.mjs +150 -2
- package/vendor/Package.internal.45.cjs +591 -317
- package/vendor/Package.internal.45.mjs +596 -316
- package/vendor/Package.internal.46.cjs +236 -31
- package/vendor/Package.internal.46.mjs +238 -31
- package/vendor/Package.internal.47.cjs +217 -46
- package/vendor/Package.internal.47.mjs +213 -46
- package/vendor/Package.internal.48.cjs +2 -23
- package/vendor/Package.internal.48.mjs +2 -23
- package/vendor/Package.internal.49.cjs +354 -87
- package/vendor/Package.internal.49.mjs +351 -82
- package/vendor/Package.internal.5.cjs +1 -1
- package/vendor/Package.internal.5.mjs +1 -1
- package/vendor/Package.internal.50.cjs +33 -79
- package/vendor/Package.internal.50.mjs +33 -79
- package/vendor/Package.internal.51.cjs +46 -81
- package/vendor/Package.internal.51.mjs +45 -68
- package/vendor/Package.internal.52.cjs +18 -21
- package/vendor/Package.internal.52.mjs +18 -21
- package/vendor/Package.internal.53.cjs +78 -335
- package/vendor/Package.internal.53.mjs +73 -336
- package/vendor/Package.internal.54.cjs +86 -2
- package/vendor/Package.internal.54.mjs +86 -2
- package/vendor/Package.internal.55.cjs +64 -172
- package/vendor/Package.internal.55.mjs +58 -174
- package/vendor/Package.internal.56.cjs +23 -22
- package/vendor/Package.internal.56.mjs +23 -24
- package/vendor/Package.internal.57.cjs +353 -2
- package/vendor/Package.internal.57.mjs +353 -2
- package/vendor/Package.internal.58.cjs +2 -198
- package/vendor/Package.internal.58.mjs +2 -200
- package/vendor/Package.internal.59.cjs +127 -3945
- package/vendor/Package.internal.59.mjs +126 -3958
- package/vendor/Package.internal.6.cjs +2 -2
- package/vendor/Package.internal.6.mjs +2 -2
- package/vendor/Package.internal.60.cjs +25 -2
- package/vendor/Package.internal.60.mjs +27 -2
- package/vendor/Package.internal.61.cjs +2 -319
- package/vendor/Package.internal.61.mjs +2 -321
- package/vendor/Package.internal.62.cjs +175 -340
- package/vendor/Package.internal.62.mjs +177 -340
- package/vendor/Package.internal.63.cjs +3959 -343
- package/vendor/Package.internal.63.mjs +3967 -335
- package/vendor/Package.internal.64.cjs +2 -125
- package/vendor/Package.internal.64.mjs +2 -125
- package/vendor/Package.internal.65.cjs +314 -24
- package/vendor/Package.internal.65.mjs +316 -24
- package/vendor/Package.internal.66.cjs +347 -69
- package/vendor/Package.internal.66.mjs +350 -72
- package/vendor/Package.internal.67.cjs +386 -44
- package/vendor/Package.internal.67.mjs +386 -50
- package/vendor/Package.internal.68.cjs +115 -22
- package/vendor/Package.internal.68.mjs +114 -21
- package/vendor/Package.internal.69.cjs +29 -2
- package/vendor/Package.internal.69.mjs +29 -2
- package/vendor/Package.internal.7.cjs +1 -1
- package/vendor/Package.internal.7.mjs +1 -1
- package/vendor/Package.internal.70.cjs +67 -664
- package/vendor/Package.internal.70.mjs +67 -644
- package/vendor/Package.internal.71.cjs +41 -13876
- package/vendor/Package.internal.71.mjs +41 -13852
- package/vendor/Package.internal.72.cjs +26 -29
- package/vendor/Package.internal.72.mjs +27 -26
- package/vendor/Package.internal.73.cjs +2 -4075
- package/vendor/Package.internal.73.mjs +2 -4077
- package/vendor/Package.internal.74.cjs +654 -1634
- package/vendor/Package.internal.74.mjs +633 -1635
- package/vendor/Package.internal.75.cjs +13834 -197
- package/vendor/Package.internal.75.mjs +13810 -197
- package/vendor/Package.internal.76.cjs +25 -4952
- package/vendor/Package.internal.76.mjs +23 -4940
- package/vendor/Package.internal.77.cjs +3975 -1137
- package/vendor/Package.internal.77.mjs +3979 -1127
- package/vendor/Package.internal.78.cjs +1635 -311
- package/vendor/Package.internal.78.mjs +1637 -299
- package/vendor/Package.internal.79.cjs +248 -23
- package/vendor/Package.internal.79.mjs +251 -26
- package/vendor/Package.internal.8.cjs +1 -1
- package/vendor/Package.internal.8.mjs +1 -1
- package/vendor/Package.internal.80.cjs +4941 -65
- package/vendor/Package.internal.80.mjs +4926 -66
- package/vendor/Package.internal.81.cjs +1221 -37
- package/vendor/Package.internal.81.mjs +1208 -38
- package/vendor/Package.internal.82.cjs +334 -9
- package/vendor/Package.internal.82.mjs +322 -9
- package/vendor/Package.internal.83.cjs +32 -1353
- package/vendor/Package.internal.83.mjs +32 -1355
- package/vendor/Package.internal.84.cjs +82 -6
- package/vendor/Package.internal.84.mjs +86 -4
- package/vendor/Package.internal.85.cjs +53 -2
- package/vendor/Package.internal.85.mjs +55 -2
- package/vendor/Package.internal.86.cjs +8 -344
- package/vendor/Package.internal.86.mjs +8 -346
- package/vendor/Package.internal.87.cjs +1351 -76
- package/vendor/Package.internal.87.mjs +1352 -77
- package/vendor/Package.internal.88.cjs +6 -1439
- package/vendor/Package.internal.88.mjs +4 -1431
- package/vendor/Package.internal.89.cjs +2 -142
- package/vendor/Package.internal.89.mjs +2 -142
- package/vendor/Package.internal.9.cjs +1 -1
- package/vendor/Package.internal.9.mjs +1 -1
- package/vendor/Package.internal.90.cjs +274 -1745
- package/vendor/Package.internal.90.mjs +275 -1738
- package/vendor/Package.internal.91.cjs +67 -117
- package/vendor/Package.internal.91.mjs +69 -113
- package/vendor/Package.internal.92.cjs +1388 -151
- package/vendor/Package.internal.92.mjs +1377 -152
- package/vendor/Package.internal.93.cjs +94 -1591
- package/vendor/Package.internal.93.mjs +94 -1593
- package/vendor/Package.internal.94.cjs +1802 -54
- package/vendor/Package.internal.94.mjs +1799 -59
- package/vendor/Package.internal.95.cjs +126 -24
- package/vendor/Package.internal.95.mjs +121 -25
- package/vendor/Package.internal.96.cjs +189 -50
- package/vendor/Package.internal.96.mjs +194 -53
- package/vendor/Package.internal.97.cjs +1611 -93
- package/vendor/Package.internal.97.mjs +1615 -95
- package/vendor/Package.internal.98.cjs +66 -8
- package/vendor/Package.internal.98.mjs +71 -5
- package/vendor/Package.internal.99.cjs +26 -2
- package/vendor/Package.internal.99.mjs +28 -2
|
@@ -1,2174 +1,52 @@
|
|
|
1
|
-
/* Build Date: Mon Nov 24 2025
|
|
2
|
-
import {
|
|
1
|
+
/* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
|
|
2
|
+
import { r } from "./Package.internal.86.mjs";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { r as t } from "./Package.internal.83.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
var n;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
var e;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (t.length > a) {
|
|
17
|
-
throw new TypeError("pattern is too long");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const l = {
|
|
22
|
-
"[:alnum:]": [ "\\p{L}\\p{Nl}\\p{Nd}", true ],
|
|
23
|
-
"[:alpha:]": [ "\\p{L}\\p{Nl}", true ],
|
|
24
|
-
"[:ascii:]": [ "\\x" + "00-\\x" + "7f", false ],
|
|
25
|
-
"[:blank:]": [ "\\p{Zs}\\t", true ],
|
|
26
|
-
"[:cntrl:]": [ "\\p{Cc}", true ],
|
|
27
|
-
"[:digit:]": [ "\\p{Nd}", true ],
|
|
28
|
-
"[:graph:]": [ "\\p{Z}\\p{C}", true, true ],
|
|
29
|
-
"[:lower:]": [ "\\p{Ll}", true ],
|
|
30
|
-
"[:print:]": [ "\\p{C}", true ],
|
|
31
|
-
"[:punct:]": [ "\\p{P}", true ],
|
|
32
|
-
"[:space:]": [ "\\p{Z}\\t\\r\\n\\v\\f", true ],
|
|
33
|
-
"[:upper:]": [ "\\p{Lu}", true ],
|
|
34
|
-
"[:word:]": [ "\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true ],
|
|
35
|
-
"[:xdigit:]": [ "A-Fa-f0-9", false ]
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const c = t => t.replace(/[[\]\\-]/g, "\\$&");
|
|
39
|
-
|
|
40
|
-
const p = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
41
|
-
|
|
42
|
-
const f = t => t.join("");
|
|
43
|
-
|
|
44
|
-
const u = (t, s) => {
|
|
45
|
-
const e = s;
|
|
46
|
-
if (t.charAt(e) !== "[") {
|
|
47
|
-
throw new Error("not in a brace expression");
|
|
48
|
-
}
|
|
49
|
-
const i = [];
|
|
50
|
-
const n = [];
|
|
51
|
-
let r = e + 1;
|
|
52
|
-
let o = false;
|
|
53
|
-
let a = false;
|
|
54
|
-
let h = false;
|
|
55
|
-
let u = false;
|
|
56
|
-
let d = e;
|
|
57
|
-
let g = "";
|
|
58
|
-
t: while (r < t.length) {
|
|
59
|
-
const s = t.charAt(r);
|
|
60
|
-
if ((s === "!" || s === "^") && r === e + 1) {
|
|
61
|
-
u = true;
|
|
62
|
-
r++;
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
if (s === "]" && o && !h) {
|
|
66
|
-
d = r + 1;
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
o = true;
|
|
70
|
-
if (s === "\\") {
|
|
71
|
-
if (!h) {
|
|
72
|
-
h = true;
|
|
73
|
-
r++;
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (s === "[" && !h) {
|
|
78
|
-
for (const [s, [o, h, c]] of Object.entries(l)) {
|
|
79
|
-
if (t.startsWith(s, r)) {
|
|
80
|
-
if (g) {
|
|
81
|
-
return [ "$.", false, t.length - e, true ];
|
|
82
|
-
}
|
|
83
|
-
r += s.length;
|
|
84
|
-
if (c) n.push(o); else i.push(o);
|
|
85
|
-
a = a || h;
|
|
86
|
-
continue t;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
h = false;
|
|
91
|
-
if (g) {
|
|
92
|
-
if (s > g) {
|
|
93
|
-
i.push(c(g) + "-" + c(s));
|
|
94
|
-
} else if (s === g) {
|
|
95
|
-
i.push(c(s));
|
|
96
|
-
}
|
|
97
|
-
g = "";
|
|
98
|
-
r++;
|
|
99
|
-
continue;
|
|
100
|
-
}
|
|
101
|
-
if (t.startsWith("-]", r + 1)) {
|
|
102
|
-
i.push(c(s + "-"));
|
|
103
|
-
r += 2;
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
if (t.startsWith("-", r + 1)) {
|
|
107
|
-
g = s;
|
|
108
|
-
r += 2;
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
i.push(c(s));
|
|
112
|
-
r++;
|
|
113
|
-
}
|
|
114
|
-
if (d < r) {
|
|
115
|
-
return [ "", false, 0, false ];
|
|
116
|
-
}
|
|
117
|
-
if (!i.length && !n.length) {
|
|
118
|
-
return [ "$.", false, t.length - e, true ];
|
|
119
|
-
}
|
|
120
|
-
if (n.length === 0 && i.length === 1 && /^\\?.$/.test(i[0]) && !u) {
|
|
121
|
-
const t = i[0].length === 2 ? i[0].slice(-1) : i[0];
|
|
122
|
-
return [ p(t), false, d - e, false ];
|
|
123
|
-
}
|
|
124
|
-
const m = "[" + (u ? "^" : "") + f(i) + "]";
|
|
125
|
-
const w = "[" + (u ? "" : "^") + f(n) + "]";
|
|
126
|
-
const b = i.length && n.length ? "(" + m + "|" + w + ")" : i.length ? m : w;
|
|
127
|
-
return [ b, a, d - e, true ];
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const d = (t, {windowsPathsNoEscape: s = false, magicalBraces: e = true} = {}) => {
|
|
131
|
-
if (e) {
|
|
132
|
-
return s ? t.replace(/\[([^\/\\])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
133
|
-
}
|
|
134
|
-
return s ? t.replace(/\[([^\/\\{}])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
const g = new Set([ "!", "?", "+", "*", "@" ]);
|
|
138
|
-
|
|
139
|
-
const m = t => g.has(t);
|
|
140
|
-
|
|
141
|
-
const w = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
142
|
-
|
|
143
|
-
const b = "(?!\\.)";
|
|
144
|
-
|
|
145
|
-
const y = new Set([ "[", "." ]);
|
|
146
|
-
|
|
147
|
-
const S = new Set([ "..", "." ]);
|
|
148
|
-
|
|
149
|
-
const x = new Set("().*{}+?[]^$\\!");
|
|
150
|
-
|
|
151
|
-
const k = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
152
|
-
|
|
153
|
-
const C = "[^/]";
|
|
154
|
-
|
|
155
|
-
const M = C + "*?";
|
|
156
|
-
|
|
157
|
-
const E = C + "+?";
|
|
158
|
-
|
|
159
|
-
class AST {
|
|
160
|
-
type;
|
|
161
|
-
#t;
|
|
162
|
-
#s;
|
|
163
|
-
#e=false;
|
|
164
|
-
#i=[];
|
|
165
|
-
#n;
|
|
166
|
-
#r;
|
|
167
|
-
#o;
|
|
168
|
-
#a=false;
|
|
169
|
-
#h;
|
|
170
|
-
#l;
|
|
171
|
-
#c=false;
|
|
172
|
-
constructor(t, s, e = {}) {
|
|
173
|
-
this.type = t;
|
|
174
|
-
if (t) this.#s = true;
|
|
175
|
-
this.#n = s;
|
|
176
|
-
this.#t = this.#n ? this.#n.#t : this;
|
|
177
|
-
this.#h = this.#t === this ? e : this.#t.#h;
|
|
178
|
-
this.#o = this.#t === this ? [] : this.#t.#o;
|
|
179
|
-
if (t === "!" && !this.#t.#a) this.#o.push(this);
|
|
180
|
-
this.#r = this.#n ? this.#n.#i.length : 0;
|
|
181
|
-
}
|
|
182
|
-
get hasMagic() {
|
|
183
|
-
if (this.#s !== undefined) return this.#s;
|
|
184
|
-
for (const t of this.#i) {
|
|
185
|
-
if (typeof t === "string") continue;
|
|
186
|
-
if (t.type || t.hasMagic) return this.#s = true;
|
|
187
|
-
}
|
|
188
|
-
return this.#s;
|
|
189
|
-
}
|
|
190
|
-
toString() {
|
|
191
|
-
if (this.#l !== undefined) return this.#l;
|
|
192
|
-
if (!this.type) {
|
|
193
|
-
return this.#l = this.#i.map(t => String(t)).join("");
|
|
194
|
-
} else {
|
|
195
|
-
return this.#l = this.type + "(" + this.#i.map(t => String(t)).join("|") + ")";
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
#p() {
|
|
199
|
-
if (this !== this.#t) throw new Error("should only call on root");
|
|
200
|
-
if (this.#a) return this;
|
|
201
|
-
this.toString();
|
|
202
|
-
this.#a = true;
|
|
203
|
-
let t;
|
|
204
|
-
while (t = this.#o.pop()) {
|
|
205
|
-
if (t.type !== "!") continue;
|
|
206
|
-
let s = t;
|
|
207
|
-
let e = s.#n;
|
|
208
|
-
while (e) {
|
|
209
|
-
for (let i = s.#r + 1; !e.type && i < e.#i.length; i++) {
|
|
210
|
-
for (const s of t.#i) {
|
|
211
|
-
if (typeof s === "string") {
|
|
212
|
-
throw new Error("string part in extglob AST??");
|
|
213
|
-
}
|
|
214
|
-
s.copyIn(e.#i[i]);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
s = e;
|
|
218
|
-
e = s.#n;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return this;
|
|
222
|
-
}
|
|
223
|
-
push(...t) {
|
|
224
|
-
for (const s of t) {
|
|
225
|
-
if (s === "") continue;
|
|
226
|
-
if (typeof s !== "string" && !(s instanceof AST && s.#n === this)) {
|
|
227
|
-
throw new Error("invalid part: " + s);
|
|
228
|
-
}
|
|
229
|
-
this.#i.push(s);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
toJSON() {
|
|
233
|
-
const t = this.type === null ? this.#i.slice().map(t => typeof t === "string" ? t : t.toJSON()) : [ this.type, ...this.#i.map(t => t.toJSON()) ];
|
|
234
|
-
if (this.isStart() && !this.type) t.unshift([]);
|
|
235
|
-
if (this.isEnd() && (this === this.#t || this.#t.#a && this.#n?.type === "!")) {
|
|
236
|
-
t.push({});
|
|
237
|
-
}
|
|
238
|
-
return t;
|
|
239
|
-
}
|
|
240
|
-
isStart() {
|
|
241
|
-
if (this.#t === this) return true;
|
|
242
|
-
if (!this.#n?.isStart()) return false;
|
|
243
|
-
if (this.#r === 0) return true;
|
|
244
|
-
const t = this.#n;
|
|
245
|
-
for (let s = 0; s < this.#r; s++) {
|
|
246
|
-
const e = t.#i[s];
|
|
247
|
-
if (!(e instanceof AST && e.type === "!")) {
|
|
248
|
-
return false;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return true;
|
|
252
|
-
}
|
|
253
|
-
isEnd() {
|
|
254
|
-
if (this.#t === this) return true;
|
|
255
|
-
if (this.#n?.type === "!") return true;
|
|
256
|
-
if (!this.#n?.isEnd()) return false;
|
|
257
|
-
if (!this.type) return this.#n?.isEnd();
|
|
258
|
-
const t = this.#n ? this.#n.#i.length : 0;
|
|
259
|
-
return this.#r === t - 1;
|
|
260
|
-
}
|
|
261
|
-
copyIn(t) {
|
|
262
|
-
if (typeof t === "string") this.push(t); else this.push(t.clone(this));
|
|
263
|
-
}
|
|
264
|
-
clone(t) {
|
|
265
|
-
const s = new AST(this.type, t);
|
|
266
|
-
for (const t of this.#i) {
|
|
267
|
-
s.copyIn(t);
|
|
268
|
-
}
|
|
269
|
-
return s;
|
|
270
|
-
}
|
|
271
|
-
static #f(t, s, e, i) {
|
|
272
|
-
let n = false;
|
|
273
|
-
let r = false;
|
|
274
|
-
let o = -1;
|
|
275
|
-
let a = false;
|
|
276
|
-
if (s.type === null) {
|
|
277
|
-
let h = e;
|
|
278
|
-
let l = "";
|
|
279
|
-
while (h < t.length) {
|
|
280
|
-
const e = t.charAt(h++);
|
|
281
|
-
if (n || e === "\\") {
|
|
282
|
-
n = !n;
|
|
283
|
-
l += e;
|
|
284
|
-
continue;
|
|
285
|
-
}
|
|
286
|
-
if (r) {
|
|
287
|
-
if (h === o + 1) {
|
|
288
|
-
if (e === "^" || e === "!") {
|
|
289
|
-
a = true;
|
|
290
|
-
}
|
|
291
|
-
} else if (e === "]" && !(h === o + 2 && a)) {
|
|
292
|
-
r = false;
|
|
293
|
-
}
|
|
294
|
-
l += e;
|
|
295
|
-
continue;
|
|
296
|
-
} else if (e === "[") {
|
|
297
|
-
r = true;
|
|
298
|
-
o = h;
|
|
299
|
-
a = false;
|
|
300
|
-
l += e;
|
|
301
|
-
continue;
|
|
302
|
-
}
|
|
303
|
-
if (!i.noext && m(e) && t.charAt(h) === "(") {
|
|
304
|
-
s.push(l);
|
|
305
|
-
l = "";
|
|
306
|
-
const n = new AST(e, s);
|
|
307
|
-
h = AST.#f(t, n, h, i);
|
|
308
|
-
s.push(n);
|
|
309
|
-
continue;
|
|
310
|
-
}
|
|
311
|
-
l += e;
|
|
312
|
-
}
|
|
313
|
-
s.push(l);
|
|
314
|
-
return h;
|
|
315
|
-
}
|
|
316
|
-
let h = e + 1;
|
|
317
|
-
let l = new AST(null, s);
|
|
318
|
-
const c = [];
|
|
319
|
-
let p = "";
|
|
320
|
-
while (h < t.length) {
|
|
321
|
-
const e = t.charAt(h++);
|
|
322
|
-
if (n || e === "\\") {
|
|
323
|
-
n = !n;
|
|
324
|
-
p += e;
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
if (r) {
|
|
328
|
-
if (h === o + 1) {
|
|
329
|
-
if (e === "^" || e === "!") {
|
|
330
|
-
a = true;
|
|
331
|
-
}
|
|
332
|
-
} else if (e === "]" && !(h === o + 2 && a)) {
|
|
333
|
-
r = false;
|
|
334
|
-
}
|
|
335
|
-
p += e;
|
|
336
|
-
continue;
|
|
337
|
-
} else if (e === "[") {
|
|
338
|
-
r = true;
|
|
339
|
-
o = h;
|
|
340
|
-
a = false;
|
|
341
|
-
p += e;
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
if (m(e) && t.charAt(h) === "(") {
|
|
345
|
-
l.push(p);
|
|
346
|
-
p = "";
|
|
347
|
-
const s = new AST(e, l);
|
|
348
|
-
l.push(s);
|
|
349
|
-
h = AST.#f(t, s, h, i);
|
|
350
|
-
continue;
|
|
351
|
-
}
|
|
352
|
-
if (e === "|") {
|
|
353
|
-
l.push(p);
|
|
354
|
-
p = "";
|
|
355
|
-
c.push(l);
|
|
356
|
-
l = new AST(null, s);
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
if (e === ")") {
|
|
360
|
-
if (p === "" && s.#i.length === 0) {
|
|
361
|
-
s.#c = true;
|
|
362
|
-
}
|
|
363
|
-
l.push(p);
|
|
364
|
-
p = "";
|
|
365
|
-
s.push(...c, l);
|
|
366
|
-
return h;
|
|
367
|
-
}
|
|
368
|
-
p += e;
|
|
369
|
-
}
|
|
370
|
-
s.type = null;
|
|
371
|
-
s.#s = undefined;
|
|
372
|
-
s.#i = [ t.substring(e - 1) ];
|
|
373
|
-
return h;
|
|
374
|
-
}
|
|
375
|
-
static fromGlob(t, s = {}) {
|
|
376
|
-
const e = new AST(null, undefined, s);
|
|
377
|
-
AST.#f(t, e, 0, s);
|
|
378
|
-
return e;
|
|
379
|
-
}
|
|
380
|
-
toMMPattern() {
|
|
381
|
-
if (this !== this.#t) return this.#t.toMMPattern();
|
|
382
|
-
const t = this.toString();
|
|
383
|
-
const [s, e, i, n] = this.toRegExpSource();
|
|
384
|
-
const r = i || this.#s || this.#h.nocase && !this.#h.nocaseMagicOnly && t.toUpperCase() !== t.toLowerCase();
|
|
385
|
-
if (!r) {
|
|
386
|
-
return e;
|
|
387
|
-
}
|
|
388
|
-
const o = (this.#h.nocase ? "i" : "") + (n ? "u" : "");
|
|
389
|
-
return Object.assign(new RegExp(`^${s}$`, o), {
|
|
390
|
-
_src: s,
|
|
391
|
-
_glob: t
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
get options() {
|
|
395
|
-
return this.#h;
|
|
396
|
-
}
|
|
397
|
-
toRegExpSource(t) {
|
|
398
|
-
const s = t ?? !!this.#h.dot;
|
|
399
|
-
if (this.#t === this) this.#p();
|
|
400
|
-
if (!this.type) {
|
|
401
|
-
const e = this.isStart() && this.isEnd() && !this.#i.some(t => typeof t !== "string");
|
|
402
|
-
const i = this.#i.map(s => {
|
|
403
|
-
const [i, n, r, o] = typeof s === "string" ? AST.#u(s, this.#s, e) : s.toRegExpSource(t);
|
|
404
|
-
this.#s = this.#s || r;
|
|
405
|
-
this.#e = this.#e || o;
|
|
406
|
-
return i;
|
|
407
|
-
}).join("");
|
|
408
|
-
let n = "";
|
|
409
|
-
if (this.isStart()) {
|
|
410
|
-
if (typeof this.#i[0] === "string") {
|
|
411
|
-
const e = this.#i.length === 1 && S.has(this.#i[0]);
|
|
412
|
-
if (!e) {
|
|
413
|
-
const e = y;
|
|
414
|
-
const r = s && e.has(i.charAt(0)) || i.startsWith("\\.") && e.has(i.charAt(2)) || i.startsWith("\\.\\.") && e.has(i.charAt(4));
|
|
415
|
-
const o = !s && !t && e.has(i.charAt(0));
|
|
416
|
-
n = r ? w : o ? b : "";
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
let r = "";
|
|
421
|
-
if (this.isEnd() && this.#t.#a && this.#n?.type === "!") {
|
|
422
|
-
r = "(?:$|\\/)";
|
|
423
|
-
}
|
|
424
|
-
const o = n + i + r;
|
|
425
|
-
return [ o, d(i), this.#s = !!this.#s, this.#e ];
|
|
426
|
-
}
|
|
427
|
-
const e = this.type === "*" || this.type === "+";
|
|
428
|
-
const i = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
429
|
-
let n = this.#d(s);
|
|
430
|
-
if (this.isStart() && this.isEnd() && !n && this.type !== "!") {
|
|
431
|
-
const t = this.toString();
|
|
432
|
-
this.#i = [ t ];
|
|
433
|
-
this.type = null;
|
|
434
|
-
this.#s = undefined;
|
|
435
|
-
return [ t, d(this.toString()), false, false ];
|
|
436
|
-
}
|
|
437
|
-
let r = !e || t || s || !b ? "" : this.#d(true);
|
|
438
|
-
if (r === n) {
|
|
439
|
-
r = "";
|
|
440
|
-
}
|
|
441
|
-
if (r) {
|
|
442
|
-
n = `(?:${n})(?:${r})*?`;
|
|
443
|
-
}
|
|
444
|
-
let o = "";
|
|
445
|
-
if (this.type === "!" && this.#c) {
|
|
446
|
-
o = (this.isStart() && !s ? b : "") + E;
|
|
447
|
-
} else {
|
|
448
|
-
const e = this.type === "!" ? "))" + (this.isStart() && !s && !t ? b : "") + M + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && r ? ")" : this.type === "*" && r ? `)?` : `)${this.type}`;
|
|
449
|
-
o = i + n + e;
|
|
450
|
-
}
|
|
451
|
-
return [ o, d(n), this.#s = !!this.#s, this.#e ];
|
|
452
|
-
}
|
|
453
|
-
#d(t) {
|
|
454
|
-
return this.#i.map(s => {
|
|
455
|
-
if (typeof s === "string") {
|
|
456
|
-
throw new Error("string type in extglob ast??");
|
|
457
|
-
}
|
|
458
|
-
const [e, i, n, r] = s.toRegExpSource(t);
|
|
459
|
-
this.#e = this.#e || r;
|
|
460
|
-
return e;
|
|
461
|
-
}).filter(t => !(this.isStart() && this.isEnd()) || !!t).join("|");
|
|
462
|
-
}
|
|
463
|
-
static #u(t, s, e = false) {
|
|
464
|
-
let i = false;
|
|
465
|
-
let n = "";
|
|
466
|
-
let r = false;
|
|
467
|
-
for (let o = 0; o < t.length; o++) {
|
|
468
|
-
const a = t.charAt(o);
|
|
469
|
-
if (i) {
|
|
470
|
-
i = false;
|
|
471
|
-
n += (x.has(a) ? "\\" : "") + a;
|
|
472
|
-
continue;
|
|
473
|
-
}
|
|
474
|
-
if (a === "\\") {
|
|
475
|
-
if (o === t.length - 1) {
|
|
476
|
-
n += "\\\\";
|
|
477
|
-
} else {
|
|
478
|
-
i = true;
|
|
479
|
-
}
|
|
480
|
-
continue;
|
|
481
|
-
}
|
|
482
|
-
if (a === "[") {
|
|
483
|
-
const [e, i, a, h] = u(t, o);
|
|
484
|
-
if (a) {
|
|
485
|
-
n += e;
|
|
486
|
-
r = r || i;
|
|
487
|
-
o += a - 1;
|
|
488
|
-
s = s || h;
|
|
489
|
-
continue;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
if (a === "*") {
|
|
493
|
-
n += e && t === "*" ? E : M;
|
|
494
|
-
s = true;
|
|
495
|
-
continue;
|
|
496
|
-
}
|
|
497
|
-
if (a === "?") {
|
|
498
|
-
n += C;
|
|
499
|
-
s = true;
|
|
500
|
-
continue;
|
|
501
|
-
}
|
|
502
|
-
n += k(a);
|
|
503
|
-
}
|
|
504
|
-
return [ n, d(t), !!s, r ];
|
|
505
|
-
}
|
|
10
|
+
function o() {
|
|
11
|
+
if (e) return n;
|
|
12
|
+
e = 1;
|
|
13
|
+
n = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
14
|
+
return n;
|
|
506
15
|
}
|
|
507
16
|
|
|
508
|
-
|
|
509
|
-
if (e) {
|
|
510
|
-
return s ? t.replace(/[?*()[\]{}]/g, "[$&]") : t.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
511
|
-
}
|
|
512
|
-
return s ? t.replace(/[?*()[\]]/g, "[$&]") : t.replace(/[?*()[\]\\]/g, "\\$&");
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
const v = (t, s, e = {}) => {
|
|
516
|
-
h(s);
|
|
517
|
-
if (!e.nocomment && s.charAt(0) === "#") {
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
|
-
return new Minimatch(s, e).match(t);
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
const L = /^\*+([^+@!?\*\[\(]*)$/;
|
|
524
|
-
|
|
525
|
-
const P = t => s => !s.startsWith(".") && s.endsWith(t);
|
|
526
|
-
|
|
527
|
-
const T = t => s => s.endsWith(t);
|
|
528
|
-
|
|
529
|
-
const W = t => {
|
|
530
|
-
t = t.toLowerCase();
|
|
531
|
-
return s => !s.startsWith(".") && s.toLowerCase().endsWith(t);
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
const N = t => {
|
|
535
|
-
t = t.toLowerCase();
|
|
536
|
-
return s => s.toLowerCase().endsWith(t);
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
const R = /^\*+\.\*+$/;
|
|
540
|
-
|
|
541
|
-
const $ = t => !t.startsWith(".") && t.includes(".");
|
|
542
|
-
|
|
543
|
-
const G = t => t !== "." && t !== ".." && t.includes(".");
|
|
544
|
-
|
|
545
|
-
const j = /^\.\*+$/;
|
|
17
|
+
var a;
|
|
546
18
|
|
|
547
|
-
|
|
19
|
+
var f;
|
|
548
20
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
const U = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
556
|
-
|
|
557
|
-
const F = ([t, s = ""]) => {
|
|
558
|
-
const e = J([ t ]);
|
|
559
|
-
if (!s) return e;
|
|
560
|
-
s = s.toLowerCase();
|
|
561
|
-
return t => e(t) && t.toLowerCase().endsWith(s);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
const z = ([t, s = ""]) => {
|
|
565
|
-
const e = Z([ t ]);
|
|
566
|
-
if (!s) return e;
|
|
567
|
-
s = s.toLowerCase();
|
|
568
|
-
return t => e(t) && t.toLowerCase().endsWith(s);
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
const _ = ([t, s = ""]) => {
|
|
572
|
-
const e = Z([ t ]);
|
|
573
|
-
return !s ? e : t => e(t) && t.endsWith(s);
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
const H = ([t, s = ""]) => {
|
|
577
|
-
const e = J([ t ]);
|
|
578
|
-
return !s ? e : t => e(t) && t.endsWith(s);
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
const J = ([t]) => {
|
|
582
|
-
const s = t.length;
|
|
583
|
-
return t => t.length === s && !t.startsWith(".");
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
const Z = ([t]) => {
|
|
587
|
-
const s = t.length;
|
|
588
|
-
return t => t.length === s && t !== "." && t !== "..";
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
const q = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
592
|
-
|
|
593
|
-
const K = {
|
|
594
|
-
win32: {
|
|
595
|
-
sep: "\\"
|
|
596
|
-
},
|
|
597
|
-
posix: {
|
|
598
|
-
sep: "/"
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
const Q = q === "win32" ? K.win32.sep : K.posix.sep;
|
|
603
|
-
|
|
604
|
-
v.sep = Q;
|
|
605
|
-
|
|
606
|
-
const V = Symbol("globstar **");
|
|
607
|
-
|
|
608
|
-
v.GLOBSTAR = V;
|
|
609
|
-
|
|
610
|
-
const X = "[^/]";
|
|
611
|
-
|
|
612
|
-
const Y = X + "*?";
|
|
613
|
-
|
|
614
|
-
const tt = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
615
|
-
|
|
616
|
-
const st = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
617
|
-
|
|
618
|
-
const et = (t, s = {}) => e => v(e, t, s);
|
|
619
|
-
|
|
620
|
-
v.filter = et;
|
|
621
|
-
|
|
622
|
-
const it = (t, s = {}) => Object.assign({}, t, s);
|
|
623
|
-
|
|
624
|
-
const nt = t => {
|
|
625
|
-
if (!t || typeof t !== "object" || !Object.keys(t).length) {
|
|
626
|
-
return v;
|
|
627
|
-
}
|
|
628
|
-
const s = v;
|
|
629
|
-
const e = (e, i, n = {}) => s(e, i, it(t, n));
|
|
630
|
-
return Object.assign(e, {
|
|
631
|
-
Minimatch: class Minimatch extends s.Minimatch {
|
|
632
|
-
constructor(s, e = {}) {
|
|
633
|
-
super(s, it(t, e));
|
|
634
|
-
}
|
|
635
|
-
static defaults(e) {
|
|
636
|
-
return s.defaults(it(t, e)).Minimatch;
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
AST: class AST extends s.AST {
|
|
640
|
-
constructor(s, e, i = {}) {
|
|
641
|
-
super(s, e, it(t, i));
|
|
642
|
-
}
|
|
643
|
-
static fromGlob(e, i = {}) {
|
|
644
|
-
return s.AST.fromGlob(e, it(t, i));
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
unescape: (e, i = {}) => s.unescape(e, it(t, i)),
|
|
648
|
-
escape: (e, i = {}) => s.escape(e, it(t, i)),
|
|
649
|
-
filter: (e, i = {}) => s.filter(e, it(t, i)),
|
|
650
|
-
defaults: e => s.defaults(it(t, e)),
|
|
651
|
-
makeRe: (e, i = {}) => s.makeRe(e, it(t, i)),
|
|
652
|
-
braceExpand: (e, i = {}) => s.braceExpand(e, it(t, i)),
|
|
653
|
-
match: (e, i, n = {}) => s.match(e, i, it(t, n)),
|
|
654
|
-
sep: s.sep,
|
|
655
|
-
GLOBSTAR: V
|
|
656
|
-
});
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
v.defaults = nt;
|
|
660
|
-
|
|
661
|
-
const rt = (s, e = {}) => {
|
|
662
|
-
h(s);
|
|
663
|
-
if (e.nobrace || !/\{(?:(?!\{).)*\}/.test(s)) {
|
|
664
|
-
return [ s ];
|
|
665
|
-
}
|
|
666
|
-
return t(s);
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
v.braceExpand = rt;
|
|
670
|
-
|
|
671
|
-
const ot = (t, s = {}) => new Minimatch(t, s).makeRe();
|
|
672
|
-
|
|
673
|
-
v.makeRe = ot;
|
|
674
|
-
|
|
675
|
-
const at = (t, s, e = {}) => {
|
|
676
|
-
const i = new Minimatch(s, e);
|
|
677
|
-
t = t.filter(t => i.match(t));
|
|
678
|
-
if (i.options.nonull && !t.length) {
|
|
679
|
-
t.push(s);
|
|
680
|
-
}
|
|
681
|
-
return t;
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
v.match = at;
|
|
685
|
-
|
|
686
|
-
const ht = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
687
|
-
|
|
688
|
-
const lt = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
689
|
-
|
|
690
|
-
class Minimatch {
|
|
691
|
-
options;
|
|
692
|
-
set;
|
|
693
|
-
pattern;
|
|
694
|
-
windowsPathsNoEscape;
|
|
695
|
-
nonegate;
|
|
696
|
-
negate;
|
|
697
|
-
comment;
|
|
698
|
-
empty;
|
|
699
|
-
preserveMultipleSlashes;
|
|
700
|
-
partial;
|
|
701
|
-
globSet;
|
|
702
|
-
globParts;
|
|
703
|
-
nocase;
|
|
704
|
-
isWindows;
|
|
705
|
-
platform;
|
|
706
|
-
windowsNoMagicRoot;
|
|
707
|
-
regexp;
|
|
708
|
-
constructor(t, s = {}) {
|
|
709
|
-
h(t);
|
|
710
|
-
s = s || {};
|
|
711
|
-
this.options = s;
|
|
712
|
-
this.pattern = t;
|
|
713
|
-
this.platform = s.platform || q;
|
|
714
|
-
this.isWindows = this.platform === "win32";
|
|
715
|
-
this.windowsPathsNoEscape = !!s.windowsPathsNoEscape || s.allowWindowsEscape === false;
|
|
716
|
-
if (this.windowsPathsNoEscape) {
|
|
717
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
718
|
-
}
|
|
719
|
-
this.preserveMultipleSlashes = !!s.preserveMultipleSlashes;
|
|
720
|
-
this.regexp = null;
|
|
721
|
-
this.negate = false;
|
|
722
|
-
this.nonegate = !!s.nonegate;
|
|
723
|
-
this.comment = false;
|
|
724
|
-
this.empty = false;
|
|
725
|
-
this.partial = !!s.partial;
|
|
726
|
-
this.nocase = !!this.options.nocase;
|
|
727
|
-
this.windowsNoMagicRoot = s.windowsNoMagicRoot !== undefined ? s.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
728
|
-
this.globSet = [];
|
|
729
|
-
this.globParts = [];
|
|
730
|
-
this.set = [];
|
|
731
|
-
this.make();
|
|
732
|
-
}
|
|
733
|
-
hasMagic() {
|
|
734
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
735
|
-
return true;
|
|
736
|
-
}
|
|
737
|
-
for (const t of this.set) {
|
|
738
|
-
for (const s of t) {
|
|
739
|
-
if (typeof s !== "string") return true;
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
return false;
|
|
743
|
-
}
|
|
744
|
-
debug(...t) {}
|
|
745
|
-
make() {
|
|
746
|
-
const t = this.pattern;
|
|
747
|
-
const s = this.options;
|
|
748
|
-
if (!s.nocomment && t.charAt(0) === "#") {
|
|
749
|
-
this.comment = true;
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
if (!t) {
|
|
753
|
-
this.empty = true;
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
this.parseNegate();
|
|
757
|
-
this.globSet = [ ...new Set(this.braceExpand()) ];
|
|
758
|
-
if (s.debug) {
|
|
759
|
-
this.debug = (...t) => console.error(...t);
|
|
760
|
-
}
|
|
761
|
-
this.debug(this.pattern, this.globSet);
|
|
762
|
-
const e = this.globSet.map(t => this.slashSplit(t));
|
|
763
|
-
this.globParts = this.preprocess(e);
|
|
764
|
-
this.debug(this.pattern, this.globParts);
|
|
765
|
-
let i = this.globParts.map((t, s, e) => {
|
|
766
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
767
|
-
const s = t[0] === "" && t[1] === "" && (t[2] === "?" || !ht.test(t[2])) && !ht.test(t[3]);
|
|
768
|
-
const e = /^[a-z]:/i.test(t[0]);
|
|
769
|
-
if (s) {
|
|
770
|
-
return [ ...t.slice(0, 4), ...t.slice(4).map(t => this.parse(t)) ];
|
|
771
|
-
} else if (e) {
|
|
772
|
-
return [ t[0], ...t.slice(1).map(t => this.parse(t)) ];
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return t.map(t => this.parse(t));
|
|
776
|
-
});
|
|
777
|
-
this.debug(this.pattern, i);
|
|
778
|
-
this.set = i.filter(t => t.indexOf(false) === -1);
|
|
779
|
-
if (this.isWindows) {
|
|
780
|
-
for (let t = 0; t < this.set.length; t++) {
|
|
781
|
-
const s = this.set[t];
|
|
782
|
-
if (s[0] === "" && s[1] === "" && this.globParts[t][2] === "?" && typeof s[3] === "string" && /^[a-z]:$/i.test(s[3])) {
|
|
783
|
-
s[2] = "?";
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
this.debug(this.pattern, this.set);
|
|
788
|
-
}
|
|
789
|
-
preprocess(t) {
|
|
790
|
-
if (this.options.noglobstar) {
|
|
791
|
-
for (let s = 0; s < t.length; s++) {
|
|
792
|
-
for (let e = 0; e < t[s].length; e++) {
|
|
793
|
-
if (t[s][e] === "**") {
|
|
794
|
-
t[s][e] = "*";
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
const {optimizationLevel: s = 1} = this.options;
|
|
800
|
-
if (s >= 2) {
|
|
801
|
-
t = this.firstPhasePreProcess(t);
|
|
802
|
-
t = this.secondPhasePreProcess(t);
|
|
803
|
-
} else if (s >= 1) {
|
|
804
|
-
t = this.levelOneOptimize(t);
|
|
805
|
-
} else {
|
|
806
|
-
t = this.adjascentGlobstarOptimize(t);
|
|
807
|
-
}
|
|
808
|
-
return t;
|
|
809
|
-
}
|
|
810
|
-
adjascentGlobstarOptimize(t) {
|
|
811
|
-
return t.map(t => {
|
|
812
|
-
let s = -1;
|
|
813
|
-
while (-1 !== (s = t.indexOf("**", s + 1))) {
|
|
814
|
-
let e = s;
|
|
815
|
-
while (t[e + 1] === "**") {
|
|
816
|
-
e++;
|
|
817
|
-
}
|
|
818
|
-
if (e !== s) {
|
|
819
|
-
t.splice(s, e - s);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
return t;
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
levelOneOptimize(t) {
|
|
826
|
-
return t.map(t => {
|
|
827
|
-
t = t.reduce((t, s) => {
|
|
828
|
-
const e = t[t.length - 1];
|
|
829
|
-
if (s === "**" && e === "**") {
|
|
830
|
-
return t;
|
|
831
|
-
}
|
|
832
|
-
if (s === "..") {
|
|
833
|
-
if (e && e !== ".." && e !== "." && e !== "**") {
|
|
834
|
-
t.pop();
|
|
835
|
-
return t;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
t.push(s);
|
|
839
|
-
return t;
|
|
840
|
-
}, []);
|
|
841
|
-
return t.length === 0 ? [ "" ] : t;
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
levelTwoFileOptimize(t) {
|
|
845
|
-
if (!Array.isArray(t)) {
|
|
846
|
-
t = this.slashSplit(t);
|
|
847
|
-
}
|
|
848
|
-
let s = false;
|
|
849
|
-
do {
|
|
850
|
-
s = false;
|
|
851
|
-
if (!this.preserveMultipleSlashes) {
|
|
852
|
-
for (let e = 1; e < t.length - 1; e++) {
|
|
853
|
-
const i = t[e];
|
|
854
|
-
if (e === 1 && i === "" && t[0] === "") continue;
|
|
855
|
-
if (i === "." || i === "") {
|
|
856
|
-
s = true;
|
|
857
|
-
t.splice(e, 1);
|
|
858
|
-
e--;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
if (t[0] === "." && t.length === 2 && (t[1] === "." || t[1] === "")) {
|
|
862
|
-
s = true;
|
|
863
|
-
t.pop();
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
let e = 0;
|
|
867
|
-
while (-1 !== (e = t.indexOf("..", e + 1))) {
|
|
868
|
-
const i = t[e - 1];
|
|
869
|
-
if (i && i !== "." && i !== ".." && i !== "**") {
|
|
870
|
-
s = true;
|
|
871
|
-
t.splice(e - 1, 2);
|
|
872
|
-
e -= 2;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
} while (s);
|
|
876
|
-
return t.length === 0 ? [ "" ] : t;
|
|
877
|
-
}
|
|
878
|
-
firstPhasePreProcess(t) {
|
|
879
|
-
let s = false;
|
|
880
|
-
do {
|
|
881
|
-
s = false;
|
|
882
|
-
for (let e of t) {
|
|
883
|
-
let i = -1;
|
|
884
|
-
while (-1 !== (i = e.indexOf("**", i + 1))) {
|
|
885
|
-
let n = i;
|
|
886
|
-
while (e[n + 1] === "**") {
|
|
887
|
-
n++;
|
|
888
|
-
}
|
|
889
|
-
if (n > i) {
|
|
890
|
-
e.splice(i + 1, n - i);
|
|
891
|
-
}
|
|
892
|
-
let r = e[i + 1];
|
|
893
|
-
const o = e[i + 2];
|
|
894
|
-
const a = e[i + 3];
|
|
895
|
-
if (r !== "..") continue;
|
|
896
|
-
if (!o || o === "." || o === ".." || !a || a === "." || a === "..") {
|
|
897
|
-
continue;
|
|
898
|
-
}
|
|
899
|
-
s = true;
|
|
900
|
-
e.splice(i, 1);
|
|
901
|
-
const h = e.slice(0);
|
|
902
|
-
h[i] = "**";
|
|
903
|
-
t.push(h);
|
|
904
|
-
i--;
|
|
905
|
-
}
|
|
906
|
-
if (!this.preserveMultipleSlashes) {
|
|
907
|
-
for (let t = 1; t < e.length - 1; t++) {
|
|
908
|
-
const i = e[t];
|
|
909
|
-
if (t === 1 && i === "" && e[0] === "") continue;
|
|
910
|
-
if (i === "." || i === "") {
|
|
911
|
-
s = true;
|
|
912
|
-
e.splice(t, 1);
|
|
913
|
-
t--;
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
if (e[0] === "." && e.length === 2 && (e[1] === "." || e[1] === "")) {
|
|
917
|
-
s = true;
|
|
918
|
-
e.pop();
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
let n = 0;
|
|
922
|
-
while (-1 !== (n = e.indexOf("..", n + 1))) {
|
|
923
|
-
const t = e[n - 1];
|
|
924
|
-
if (t && t !== "." && t !== ".." && t !== "**") {
|
|
925
|
-
s = true;
|
|
926
|
-
const t = n === 1 && e[n + 1] === "**";
|
|
927
|
-
const i = t ? [ "." ] : [];
|
|
928
|
-
e.splice(n - 1, 2, ...i);
|
|
929
|
-
if (e.length === 0) e.push("");
|
|
930
|
-
n -= 2;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
} while (s);
|
|
935
|
-
return t;
|
|
936
|
-
}
|
|
937
|
-
secondPhasePreProcess(t) {
|
|
938
|
-
for (let s = 0; s < t.length - 1; s++) {
|
|
939
|
-
for (let e = s + 1; e < t.length; e++) {
|
|
940
|
-
const i = this.partsMatch(t[s], t[e], !this.preserveMultipleSlashes);
|
|
941
|
-
if (i) {
|
|
942
|
-
t[s] = [];
|
|
943
|
-
t[e] = i;
|
|
944
|
-
break;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
return t.filter(t => t.length);
|
|
949
|
-
}
|
|
950
|
-
partsMatch(t, s, e = false) {
|
|
951
|
-
let i = 0;
|
|
952
|
-
let n = 0;
|
|
953
|
-
let r = [];
|
|
954
|
-
let o = "";
|
|
955
|
-
while (i < t.length && n < s.length) {
|
|
956
|
-
if (t[i] === s[n]) {
|
|
957
|
-
r.push(o === "b" ? s[n] : t[i]);
|
|
958
|
-
i++;
|
|
959
|
-
n++;
|
|
960
|
-
} else if (e && t[i] === "**" && s[n] === t[i + 1]) {
|
|
961
|
-
r.push(t[i]);
|
|
962
|
-
i++;
|
|
963
|
-
} else if (e && s[n] === "**" && t[i] === s[n + 1]) {
|
|
964
|
-
r.push(s[n]);
|
|
965
|
-
n++;
|
|
966
|
-
} else if (t[i] === "*" && s[n] && (this.options.dot || !s[n].startsWith(".")) && s[n] !== "**") {
|
|
967
|
-
if (o === "b") return false;
|
|
968
|
-
o = "a";
|
|
969
|
-
r.push(t[i]);
|
|
970
|
-
i++;
|
|
971
|
-
n++;
|
|
972
|
-
} else if (s[n] === "*" && t[i] && (this.options.dot || !t[i].startsWith(".")) && t[i] !== "**") {
|
|
973
|
-
if (o === "a") return false;
|
|
974
|
-
o = "b";
|
|
975
|
-
r.push(s[n]);
|
|
976
|
-
i++;
|
|
977
|
-
n++;
|
|
978
|
-
} else {
|
|
979
|
-
return false;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return t.length === s.length && r;
|
|
983
|
-
}
|
|
984
|
-
parseNegate() {
|
|
985
|
-
if (this.nonegate) return;
|
|
986
|
-
const t = this.pattern;
|
|
987
|
-
let s = false;
|
|
988
|
-
let e = 0;
|
|
989
|
-
for (let i = 0; i < t.length && t.charAt(i) === "!"; i++) {
|
|
990
|
-
s = !s;
|
|
991
|
-
e++;
|
|
992
|
-
}
|
|
993
|
-
if (e) this.pattern = t.slice(e);
|
|
994
|
-
this.negate = s;
|
|
995
|
-
}
|
|
996
|
-
matchOne(t, s, e = false) {
|
|
997
|
-
const i = this.options;
|
|
998
|
-
if (this.isWindows) {
|
|
999
|
-
const e = typeof t[0] === "string" && /^[a-z]:$/i.test(t[0]);
|
|
1000
|
-
const i = !e && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]);
|
|
1001
|
-
const n = typeof s[0] === "string" && /^[a-z]:$/i.test(s[0]);
|
|
1002
|
-
const r = !n && s[0] === "" && s[1] === "" && s[2] === "?" && typeof s[3] === "string" && /^[a-z]:$/i.test(s[3]);
|
|
1003
|
-
const o = i ? 3 : e ? 0 : undefined;
|
|
1004
|
-
const a = r ? 3 : n ? 0 : undefined;
|
|
1005
|
-
if (typeof o === "number" && typeof a === "number") {
|
|
1006
|
-
const [e, i] = [ t[o], s[a] ];
|
|
1007
|
-
if (e.toLowerCase() === i.toLowerCase()) {
|
|
1008
|
-
s[a] = e;
|
|
1009
|
-
if (a > o) {
|
|
1010
|
-
s = s.slice(a);
|
|
1011
|
-
} else if (o > a) {
|
|
1012
|
-
t = t.slice(o);
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
const {optimizationLevel: n = 1} = this.options;
|
|
1018
|
-
if (n >= 2) {
|
|
1019
|
-
t = this.levelTwoFileOptimize(t);
|
|
1020
|
-
}
|
|
1021
|
-
this.debug("matchOne", this, {
|
|
1022
|
-
file: t,
|
|
1023
|
-
pattern: s
|
|
1024
|
-
});
|
|
1025
|
-
this.debug("matchOne", t.length, s.length);
|
|
1026
|
-
for (var r = 0, o = 0, a = t.length, h = s.length; r < a && o < h; r++, o++) {
|
|
1027
|
-
this.debug("matchOne loop");
|
|
1028
|
-
var l = s[o];
|
|
1029
|
-
var c = t[r];
|
|
1030
|
-
this.debug(s, l, c);
|
|
1031
|
-
if (l === false) {
|
|
1032
|
-
return false;
|
|
1033
|
-
}
|
|
1034
|
-
if (l === V) {
|
|
1035
|
-
this.debug("GLOBSTAR", [ s, l, c ]);
|
|
1036
|
-
var p = r;
|
|
1037
|
-
var f = o + 1;
|
|
1038
|
-
if (f === h) {
|
|
1039
|
-
this.debug("** at the end");
|
|
1040
|
-
for (;r < a; r++) {
|
|
1041
|
-
if (t[r] === "." || t[r] === ".." || !i.dot && t[r].charAt(0) === ".") return false;
|
|
1042
|
-
}
|
|
1043
|
-
return true;
|
|
1044
|
-
}
|
|
1045
|
-
while (p < a) {
|
|
1046
|
-
var u = t[p];
|
|
1047
|
-
this.debug("\nglobstar while", t, p, s, f, u);
|
|
1048
|
-
if (this.matchOne(t.slice(p), s.slice(f), e)) {
|
|
1049
|
-
this.debug("globstar found match!", p, a, u);
|
|
1050
|
-
return true;
|
|
1051
|
-
} else {
|
|
1052
|
-
if (u === "." || u === ".." || !i.dot && u.charAt(0) === ".") {
|
|
1053
|
-
this.debug("dot detected!", t, p, s, f);
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1057
|
-
p++;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
if (e) {
|
|
1061
|
-
this.debug("\n>>> no match, partial?", t, p, s, f);
|
|
1062
|
-
if (p === a) {
|
|
1063
|
-
return true;
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
return false;
|
|
1067
|
-
}
|
|
1068
|
-
let n;
|
|
1069
|
-
if (typeof l === "string") {
|
|
1070
|
-
n = c === l;
|
|
1071
|
-
this.debug("string match", l, c, n);
|
|
1072
|
-
} else {
|
|
1073
|
-
n = l.test(c);
|
|
1074
|
-
this.debug("pattern match", l, c, n);
|
|
1075
|
-
}
|
|
1076
|
-
if (!n) return false;
|
|
1077
|
-
}
|
|
1078
|
-
if (r === a && o === h) {
|
|
1079
|
-
return true;
|
|
1080
|
-
} else if (r === a) {
|
|
1081
|
-
return e;
|
|
1082
|
-
} else if (o === h) {
|
|
1083
|
-
return r === a - 1 && t[r] === "";
|
|
1084
|
-
} else {
|
|
1085
|
-
throw new Error("wtf?");
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
braceExpand() {
|
|
1089
|
-
return rt(this.pattern, this.options);
|
|
1090
|
-
}
|
|
1091
|
-
parse(t) {
|
|
1092
|
-
h(t);
|
|
1093
|
-
const s = this.options;
|
|
1094
|
-
if (t === "**") return V;
|
|
1095
|
-
if (t === "") return "";
|
|
1096
|
-
let e;
|
|
1097
|
-
let i = null;
|
|
1098
|
-
if (e = t.match(B)) {
|
|
1099
|
-
i = s.dot ? I : D;
|
|
1100
|
-
} else if (e = t.match(L)) {
|
|
1101
|
-
i = (s.nocase ? s.dot ? N : W : s.dot ? T : P)(e[1]);
|
|
1102
|
-
} else if (e = t.match(U)) {
|
|
1103
|
-
i = (s.nocase ? s.dot ? z : F : s.dot ? _ : H)(e);
|
|
1104
|
-
} else if (e = t.match(R)) {
|
|
1105
|
-
i = s.dot ? G : $;
|
|
1106
|
-
} else if (e = t.match(j)) {
|
|
1107
|
-
i = O;
|
|
1108
|
-
}
|
|
1109
|
-
const n = AST.fromGlob(t, this.options).toMMPattern();
|
|
1110
|
-
if (i && typeof n === "object") {
|
|
1111
|
-
Reflect.defineProperty(n, "test", {
|
|
1112
|
-
value: i
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
return n;
|
|
1116
|
-
}
|
|
1117
|
-
makeRe() {
|
|
1118
|
-
if (this.regexp || this.regexp === false) return this.regexp;
|
|
1119
|
-
const t = this.set;
|
|
1120
|
-
if (!t.length) {
|
|
1121
|
-
this.regexp = false;
|
|
1122
|
-
return this.regexp;
|
|
1123
|
-
}
|
|
1124
|
-
const s = this.options;
|
|
1125
|
-
const e = s.noglobstar ? Y : s.dot ? tt : st;
|
|
1126
|
-
const i = new Set(s.nocase ? [ "i" ] : []);
|
|
1127
|
-
let n = t.map(t => {
|
|
1128
|
-
const s = t.map(t => {
|
|
1129
|
-
if (t instanceof RegExp) {
|
|
1130
|
-
for (const s of t.flags.split("")) i.add(s);
|
|
1131
|
-
}
|
|
1132
|
-
return typeof t === "string" ? lt(t) : t === V ? V : t._src;
|
|
1133
|
-
});
|
|
1134
|
-
s.forEach((t, i) => {
|
|
1135
|
-
const n = s[i + 1];
|
|
1136
|
-
const r = s[i - 1];
|
|
1137
|
-
if (t !== V || r === V) {
|
|
1138
|
-
return;
|
|
1139
|
-
}
|
|
1140
|
-
if (r === undefined) {
|
|
1141
|
-
if (n !== undefined && n !== V) {
|
|
1142
|
-
s[i + 1] = "(?:\\/|" + e + "\\/)?" + n;
|
|
1143
|
-
} else {
|
|
1144
|
-
s[i] = e;
|
|
1145
|
-
}
|
|
1146
|
-
} else if (n === undefined) {
|
|
1147
|
-
s[i - 1] = r + "(?:\\/|\\/" + e + ")?";
|
|
1148
|
-
} else if (n !== V) {
|
|
1149
|
-
s[i - 1] = r + "(?:\\/|\\/" + e + "\\/)" + n;
|
|
1150
|
-
s[i + 1] = V;
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
const n = s.filter(t => t !== V);
|
|
1154
|
-
if (this.partial && n.length >= 1) {
|
|
1155
|
-
const t = [];
|
|
1156
|
-
for (let s = 1; s <= n.length; s++) {
|
|
1157
|
-
t.push(n.slice(0, s).join("/"));
|
|
1158
|
-
}
|
|
1159
|
-
return "(?:" + t.join("|") + ")";
|
|
1160
|
-
}
|
|
1161
|
-
return n.join("/");
|
|
1162
|
-
}).join("|");
|
|
1163
|
-
const [r, o] = t.length > 1 ? [ "(?:", ")" ] : [ "", "" ];
|
|
1164
|
-
n = "^" + r + n + o + "$";
|
|
1165
|
-
if (this.partial) {
|
|
1166
|
-
n = "^(?:\\/|" + r + n.slice(1, -1) + o + ")$";
|
|
1167
|
-
}
|
|
1168
|
-
if (this.negate) n = "^(?!" + n + ").+$";
|
|
1169
|
-
try {
|
|
1170
|
-
this.regexp = new RegExp(n, [ ...i ].join(""));
|
|
1171
|
-
} catch (t) {
|
|
1172
|
-
this.regexp = false;
|
|
1173
|
-
}
|
|
1174
|
-
return this.regexp;
|
|
1175
|
-
}
|
|
1176
|
-
slashSplit(t) {
|
|
1177
|
-
if (this.preserveMultipleSlashes) {
|
|
1178
|
-
return t.split("/");
|
|
1179
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(t)) {
|
|
1180
|
-
return [ "", ...t.split(/\/+/) ];
|
|
1181
|
-
} else {
|
|
1182
|
-
return t.split(/\/+/);
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
match(t, s = this.partial) {
|
|
1186
|
-
this.debug("match", t, this.pattern);
|
|
1187
|
-
if (this.comment) {
|
|
1188
|
-
return false;
|
|
1189
|
-
}
|
|
1190
|
-
if (this.empty) {
|
|
1191
|
-
return t === "";
|
|
1192
|
-
}
|
|
1193
|
-
if (t === "/" && s) {
|
|
1194
|
-
return true;
|
|
1195
|
-
}
|
|
1196
|
-
const e = this.options;
|
|
1197
|
-
if (this.isWindows) {
|
|
1198
|
-
t = t.split("\\").join("/");
|
|
1199
|
-
}
|
|
1200
|
-
const i = this.slashSplit(t);
|
|
1201
|
-
this.debug(this.pattern, "split", i);
|
|
1202
|
-
const n = this.set;
|
|
1203
|
-
this.debug(this.pattern, "set", n);
|
|
1204
|
-
let r = i[i.length - 1];
|
|
1205
|
-
if (!r) {
|
|
1206
|
-
for (let t = i.length - 2; !r && t >= 0; t--) {
|
|
1207
|
-
r = i[t];
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
for (let t = 0; t < n.length; t++) {
|
|
1211
|
-
const o = n[t];
|
|
1212
|
-
let a = i;
|
|
1213
|
-
if (e.matchBase && o.length === 1) {
|
|
1214
|
-
a = [ r ];
|
|
1215
|
-
}
|
|
1216
|
-
const h = this.matchOne(a, o, s);
|
|
1217
|
-
if (h) {
|
|
1218
|
-
if (e.flipNegate) {
|
|
1219
|
-
return true;
|
|
1220
|
-
}
|
|
1221
|
-
return !this.negate;
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
if (e.flipNegate) {
|
|
1225
|
-
return false;
|
|
1226
|
-
}
|
|
1227
|
-
return this.negate;
|
|
1228
|
-
}
|
|
1229
|
-
static defaults(t) {
|
|
1230
|
-
return v.defaults(t).Minimatch;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
v.AST = AST;
|
|
1235
|
-
|
|
1236
|
-
v.Minimatch = Minimatch;
|
|
1237
|
-
|
|
1238
|
-
v.escape = A;
|
|
1239
|
-
|
|
1240
|
-
v.unescape = d;
|
|
1241
|
-
|
|
1242
|
-
const ct = t => t.length >= 1;
|
|
1243
|
-
|
|
1244
|
-
const pt = t => t.length >= 1;
|
|
1245
|
-
|
|
1246
|
-
class Pattern {
|
|
1247
|
-
#g;
|
|
1248
|
-
#m;
|
|
1249
|
-
#w;
|
|
1250
|
-
length;
|
|
1251
|
-
#b;
|
|
1252
|
-
#y;
|
|
1253
|
-
#S;
|
|
1254
|
-
#x;
|
|
1255
|
-
#k;
|
|
1256
|
-
#C;
|
|
1257
|
-
#M=true;
|
|
1258
|
-
constructor(t, s, e, i) {
|
|
1259
|
-
if (!ct(t)) {
|
|
1260
|
-
throw new TypeError("empty pattern list");
|
|
1261
|
-
}
|
|
1262
|
-
if (!pt(s)) {
|
|
1263
|
-
throw new TypeError("empty glob list");
|
|
1264
|
-
}
|
|
1265
|
-
if (s.length !== t.length) {
|
|
1266
|
-
throw new TypeError("mismatched pattern list and glob list lengths");
|
|
1267
|
-
}
|
|
1268
|
-
this.length = t.length;
|
|
1269
|
-
if (e < 0 || e >= this.length) {
|
|
1270
|
-
throw new TypeError("index out of range");
|
|
1271
|
-
}
|
|
1272
|
-
this.#g = t;
|
|
1273
|
-
this.#m = s;
|
|
1274
|
-
this.#w = e;
|
|
1275
|
-
this.#b = i;
|
|
1276
|
-
if (this.#w === 0) {
|
|
1277
|
-
if (this.isUNC()) {
|
|
1278
|
-
const [t, s, e, i, ...n] = this.#g;
|
|
1279
|
-
const [r, o, a, h, ...l] = this.#m;
|
|
1280
|
-
if (n[0] === "") {
|
|
1281
|
-
n.shift();
|
|
1282
|
-
l.shift();
|
|
1283
|
-
}
|
|
1284
|
-
const c = [ t, s, e, i, "" ].join("/");
|
|
1285
|
-
const p = [ r, o, a, h, "" ].join("/");
|
|
1286
|
-
this.#g = [ c, ...n ];
|
|
1287
|
-
this.#m = [ p, ...l ];
|
|
1288
|
-
this.length = this.#g.length;
|
|
1289
|
-
} else if (this.isDrive() || this.isAbsolute()) {
|
|
1290
|
-
const [t, ...s] = this.#g;
|
|
1291
|
-
const [e, ...i] = this.#m;
|
|
1292
|
-
if (s[0] === "") {
|
|
1293
|
-
s.shift();
|
|
1294
|
-
i.shift();
|
|
1295
|
-
}
|
|
1296
|
-
const n = t + "/";
|
|
1297
|
-
const r = e + "/";
|
|
1298
|
-
this.#g = [ n, ...s ];
|
|
1299
|
-
this.#m = [ r, ...i ];
|
|
1300
|
-
this.length = this.#g.length;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
pattern() {
|
|
1305
|
-
return this.#g[this.#w];
|
|
1306
|
-
}
|
|
1307
|
-
isString() {
|
|
1308
|
-
return typeof this.#g[this.#w] === "string";
|
|
1309
|
-
}
|
|
1310
|
-
isGlobstar() {
|
|
1311
|
-
return this.#g[this.#w] === V;
|
|
1312
|
-
}
|
|
1313
|
-
isRegExp() {
|
|
1314
|
-
return this.#g[this.#w] instanceof RegExp;
|
|
1315
|
-
}
|
|
1316
|
-
globString() {
|
|
1317
|
-
return this.#S = this.#S || (this.#w === 0 ? this.isAbsolute() ? this.#m[0] + this.#m.slice(1).join("/") : this.#m.join("/") : this.#m.slice(this.#w).join("/"));
|
|
1318
|
-
}
|
|
1319
|
-
hasMore() {
|
|
1320
|
-
return this.length > this.#w + 1;
|
|
1321
|
-
}
|
|
1322
|
-
rest() {
|
|
1323
|
-
if (this.#y !== undefined) return this.#y;
|
|
1324
|
-
if (!this.hasMore()) return this.#y = null;
|
|
1325
|
-
this.#y = new Pattern(this.#g, this.#m, this.#w + 1, this.#b);
|
|
1326
|
-
this.#y.#C = this.#C;
|
|
1327
|
-
this.#y.#k = this.#k;
|
|
1328
|
-
this.#y.#x = this.#x;
|
|
1329
|
-
return this.#y;
|
|
1330
|
-
}
|
|
1331
|
-
isUNC() {
|
|
1332
|
-
const t = this.#g;
|
|
1333
|
-
return this.#k !== undefined ? this.#k : this.#k = this.#b === "win32" && this.#w === 0 && t[0] === "" && t[1] === "" && typeof t[2] === "string" && !!t[2] && typeof t[3] === "string" && !!t[3];
|
|
1334
|
-
}
|
|
1335
|
-
isDrive() {
|
|
1336
|
-
const t = this.#g;
|
|
1337
|
-
return this.#x !== undefined ? this.#x : this.#x = this.#b === "win32" && this.#w === 0 && this.length > 1 && typeof t[0] === "string" && /^[a-z]:$/i.test(t[0]);
|
|
1338
|
-
}
|
|
1339
|
-
isAbsolute() {
|
|
1340
|
-
const t = this.#g;
|
|
1341
|
-
return this.#C !== undefined ? this.#C : this.#C = t[0] === "" && t.length > 1 || this.isDrive() || this.isUNC();
|
|
1342
|
-
}
|
|
1343
|
-
root() {
|
|
1344
|
-
const t = this.#g[0];
|
|
1345
|
-
return typeof t === "string" && this.isAbsolute() && this.#w === 0 ? t : "";
|
|
1346
|
-
}
|
|
1347
|
-
checkFollowGlobstar() {
|
|
1348
|
-
return !(this.#w === 0 || !this.isGlobstar() || !this.#M);
|
|
1349
|
-
}
|
|
1350
|
-
markFollowGlobstar() {
|
|
1351
|
-
if (this.#w === 0 || !this.isGlobstar() || !this.#M) return false;
|
|
1352
|
-
this.#M = false;
|
|
1353
|
-
return true;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
const ft = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
1358
|
-
|
|
1359
|
-
class Ignore {
|
|
1360
|
-
relative;
|
|
1361
|
-
relativeChildren;
|
|
1362
|
-
absolute;
|
|
1363
|
-
absoluteChildren;
|
|
1364
|
-
platform;
|
|
1365
|
-
mmopts;
|
|
1366
|
-
constructor(t, {nobrace: s, nocase: e, noext: i, noglobstar: n, platform: r = ft}) {
|
|
1367
|
-
this.relative = [];
|
|
1368
|
-
this.absolute = [];
|
|
1369
|
-
this.relativeChildren = [];
|
|
1370
|
-
this.absoluteChildren = [];
|
|
1371
|
-
this.platform = r;
|
|
1372
|
-
this.mmopts = {
|
|
1373
|
-
dot: true,
|
|
1374
|
-
nobrace: s,
|
|
1375
|
-
nocase: e,
|
|
1376
|
-
noext: i,
|
|
1377
|
-
noglobstar: n,
|
|
1378
|
-
optimizationLevel: 2,
|
|
1379
|
-
platform: r,
|
|
1380
|
-
nocomment: true,
|
|
1381
|
-
nonegate: true
|
|
1382
|
-
};
|
|
1383
|
-
for (const s of t) this.add(s);
|
|
1384
|
-
}
|
|
1385
|
-
add(t) {
|
|
1386
|
-
const s = new Minimatch(t, this.mmopts);
|
|
1387
|
-
for (let t = 0; t < s.set.length; t++) {
|
|
1388
|
-
const e = s.set[t];
|
|
1389
|
-
const i = s.globParts[t];
|
|
1390
|
-
if (!e || !i) {
|
|
1391
|
-
throw new Error("invalid pattern object");
|
|
1392
|
-
}
|
|
1393
|
-
while (e[0] === "." && i[0] === ".") {
|
|
1394
|
-
e.shift();
|
|
1395
|
-
i.shift();
|
|
1396
|
-
}
|
|
1397
|
-
const n = new Pattern(e, i, 0, this.platform);
|
|
1398
|
-
const r = new Minimatch(n.globString(), this.mmopts);
|
|
1399
|
-
const o = i[i.length - 1] === "**";
|
|
1400
|
-
const a = n.isAbsolute();
|
|
1401
|
-
if (a) this.absolute.push(r); else this.relative.push(r);
|
|
1402
|
-
if (o) {
|
|
1403
|
-
if (a) this.absoluteChildren.push(r); else this.relativeChildren.push(r);
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
ignored(t) {
|
|
1408
|
-
const s = t.fullpath();
|
|
1409
|
-
const e = `${s}/`;
|
|
1410
|
-
const i = t.relative() || ".";
|
|
1411
|
-
const n = `${i}/`;
|
|
1412
|
-
for (const t of this.relative) {
|
|
1413
|
-
if (t.match(i) || t.match(n)) return true;
|
|
1414
|
-
}
|
|
1415
|
-
for (const t of this.absolute) {
|
|
1416
|
-
if (t.match(s) || t.match(e)) return true;
|
|
1417
|
-
}
|
|
1418
|
-
return false;
|
|
1419
|
-
}
|
|
1420
|
-
childrenIgnored(t) {
|
|
1421
|
-
const s = t.fullpath() + "/";
|
|
1422
|
-
const e = (t.relative() || ".") + "/";
|
|
1423
|
-
for (const t of this.relativeChildren) {
|
|
1424
|
-
if (t.match(e)) return true;
|
|
1425
|
-
}
|
|
1426
|
-
for (const t of this.absoluteChildren) {
|
|
1427
|
-
if (t.match(s)) return true;
|
|
1428
|
-
}
|
|
1429
|
-
return false;
|
|
1430
|
-
}
|
|
21
|
+
function u() {
|
|
22
|
+
if (f) return a;
|
|
23
|
+
f = 1;
|
|
24
|
+
var t = r();
|
|
25
|
+
a = t.getPrototypeOf || null;
|
|
26
|
+
return a;
|
|
1431
27
|
}
|
|
1432
28
|
|
|
1433
|
-
|
|
1434
|
-
store;
|
|
1435
|
-
constructor(t = new Map) {
|
|
1436
|
-
this.store = t;
|
|
1437
|
-
}
|
|
1438
|
-
copy() {
|
|
1439
|
-
return new HasWalkedCache(new Map(this.store));
|
|
1440
|
-
}
|
|
1441
|
-
hasWalked(t, s) {
|
|
1442
|
-
return this.store.get(t.fullpath())?.has(s.globString());
|
|
1443
|
-
}
|
|
1444
|
-
storeWalked(t, s) {
|
|
1445
|
-
const e = t.fullpath();
|
|
1446
|
-
const i = this.store.get(e);
|
|
1447
|
-
if (i) i.add(s.globString()); else this.store.set(e, new Set([ s.globString() ]));
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
29
|
+
var i;
|
|
1450
30
|
|
|
1451
|
-
|
|
1452
|
-
store=new Map;
|
|
1453
|
-
add(t, s, e) {
|
|
1454
|
-
const i = (s ? 2 : 0) | (e ? 1 : 0);
|
|
1455
|
-
const n = this.store.get(t);
|
|
1456
|
-
this.store.set(t, n === undefined ? i : i & n);
|
|
1457
|
-
}
|
|
1458
|
-
entries() {
|
|
1459
|
-
return [ ...this.store.entries() ].map(([t, s]) => [ t, !!(s & 2), !!(s & 1) ]);
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
class SubWalks {
|
|
1464
|
-
store=new Map;
|
|
1465
|
-
add(t, s) {
|
|
1466
|
-
if (!t.canReaddir()) {
|
|
1467
|
-
return;
|
|
1468
|
-
}
|
|
1469
|
-
const e = this.store.get(t);
|
|
1470
|
-
if (e) {
|
|
1471
|
-
if (!e.find(t => t.globString() === s.globString())) {
|
|
1472
|
-
e.push(s);
|
|
1473
|
-
}
|
|
1474
|
-
} else this.store.set(t, [ s ]);
|
|
1475
|
-
}
|
|
1476
|
-
get(t) {
|
|
1477
|
-
const s = this.store.get(t);
|
|
1478
|
-
if (!s) {
|
|
1479
|
-
throw new Error("attempting to walk unknown path");
|
|
1480
|
-
}
|
|
1481
|
-
return s;
|
|
1482
|
-
}
|
|
1483
|
-
entries() {
|
|
1484
|
-
return this.keys().map(t => [ t, this.store.get(t) ]);
|
|
1485
|
-
}
|
|
1486
|
-
keys() {
|
|
1487
|
-
return [ ...this.store.keys() ].filter(t => t.canReaddir());
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
31
|
+
var c;
|
|
1490
32
|
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
this.dot = !!t.dot;
|
|
1503
|
-
this.hasWalkedCache = s ? s.copy() : new HasWalkedCache;
|
|
1504
|
-
}
|
|
1505
|
-
processPatterns(t, s) {
|
|
1506
|
-
this.patterns = s;
|
|
1507
|
-
const e = s.map(s => [ t, s ]);
|
|
1508
|
-
for (let [t, s] of e) {
|
|
1509
|
-
this.hasWalkedCache.storeWalked(t, s);
|
|
1510
|
-
const e = s.root();
|
|
1511
|
-
const i = s.isAbsolute() && this.opts.absolute !== false;
|
|
1512
|
-
if (e) {
|
|
1513
|
-
t = t.resolve(e === "/" && this.opts.root !== undefined ? this.opts.root : e);
|
|
1514
|
-
const i = s.rest();
|
|
1515
|
-
if (!i) {
|
|
1516
|
-
this.matches.add(t, true, false);
|
|
1517
|
-
continue;
|
|
1518
|
-
} else {
|
|
1519
|
-
s = i;
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
if (t.isENOENT()) continue;
|
|
1523
|
-
let n;
|
|
1524
|
-
let r;
|
|
1525
|
-
let o = false;
|
|
1526
|
-
while (typeof (n = s.pattern()) === "string" && (r = s.rest())) {
|
|
1527
|
-
const e = t.resolve(n);
|
|
1528
|
-
t = e;
|
|
1529
|
-
s = r;
|
|
1530
|
-
o = true;
|
|
1531
|
-
}
|
|
1532
|
-
n = s.pattern();
|
|
1533
|
-
r = s.rest();
|
|
1534
|
-
if (o) {
|
|
1535
|
-
if (this.hasWalkedCache.hasWalked(t, s)) continue;
|
|
1536
|
-
this.hasWalkedCache.storeWalked(t, s);
|
|
1537
|
-
}
|
|
1538
|
-
if (typeof n === "string") {
|
|
1539
|
-
const s = n === ".." || n === "" || n === ".";
|
|
1540
|
-
this.matches.add(t.resolve(n), i, s);
|
|
1541
|
-
continue;
|
|
1542
|
-
} else if (n === V) {
|
|
1543
|
-
if (!t.isSymbolicLink() || this.follow || s.checkFollowGlobstar()) {
|
|
1544
|
-
this.subwalks.add(t, s);
|
|
1545
|
-
}
|
|
1546
|
-
const e = r?.pattern();
|
|
1547
|
-
const n = r?.rest();
|
|
1548
|
-
if (!r || (e === "" || e === ".") && !n) {
|
|
1549
|
-
this.matches.add(t, i, e === "" || e === ".");
|
|
1550
|
-
} else {
|
|
1551
|
-
if (e === "..") {
|
|
1552
|
-
const s = t.parent || t;
|
|
1553
|
-
if (!n) this.matches.add(s, i, true); else if (!this.hasWalkedCache.hasWalked(s, n)) {
|
|
1554
|
-
this.subwalks.add(s, n);
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
} else if (n instanceof RegExp) {
|
|
1559
|
-
this.subwalks.add(t, s);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
return this;
|
|
1563
|
-
}
|
|
1564
|
-
subwalkTargets() {
|
|
1565
|
-
return this.subwalks.keys();
|
|
1566
|
-
}
|
|
1567
|
-
child() {
|
|
1568
|
-
return new Processor(this.opts, this.hasWalkedCache);
|
|
1569
|
-
}
|
|
1570
|
-
filterEntries(t, s) {
|
|
1571
|
-
const e = this.subwalks.get(t);
|
|
1572
|
-
const i = this.child();
|
|
1573
|
-
for (const t of s) {
|
|
1574
|
-
for (const s of e) {
|
|
1575
|
-
const e = s.isAbsolute();
|
|
1576
|
-
const n = s.pattern();
|
|
1577
|
-
const r = s.rest();
|
|
1578
|
-
if (n === V) {
|
|
1579
|
-
i.testGlobstar(t, s, r, e);
|
|
1580
|
-
} else if (n instanceof RegExp) {
|
|
1581
|
-
i.testRegExp(t, n, r, e);
|
|
1582
|
-
} else {
|
|
1583
|
-
i.testString(t, n, r, e);
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
33
|
+
function l() {
|
|
34
|
+
if (c) return i;
|
|
35
|
+
c = 1;
|
|
36
|
+
var r = o();
|
|
37
|
+
var n = u();
|
|
38
|
+
var e = t();
|
|
39
|
+
i = r ? function t(n) {
|
|
40
|
+
return r(n);
|
|
41
|
+
} : n ? function r(t) {
|
|
42
|
+
if (!t || typeof t !== "object" && typeof t !== "function") {
|
|
43
|
+
throw new TypeError("getProto: not an object");
|
|
1586
44
|
}
|
|
1587
|
-
return
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
this.matches.add(t, i, false);
|
|
1593
|
-
}
|
|
1594
|
-
if (t.canReaddir()) {
|
|
1595
|
-
if (this.follow || !t.isSymbolicLink()) {
|
|
1596
|
-
this.subwalks.add(t, s);
|
|
1597
|
-
} else if (t.isSymbolicLink()) {
|
|
1598
|
-
if (e && s.checkFollowGlobstar()) {
|
|
1599
|
-
this.subwalks.add(t, e);
|
|
1600
|
-
} else if (s.markFollowGlobstar()) {
|
|
1601
|
-
this.subwalks.add(t, s);
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
if (e) {
|
|
1607
|
-
const s = e.pattern();
|
|
1608
|
-
if (typeof s === "string" && s !== ".." && s !== "" && s !== ".") {
|
|
1609
|
-
this.testString(t, s, e.rest(), i);
|
|
1610
|
-
} else if (s === "..") {
|
|
1611
|
-
const s = t.parent || t;
|
|
1612
|
-
this.subwalks.add(s, e);
|
|
1613
|
-
} else if (s instanceof RegExp) {
|
|
1614
|
-
this.testRegExp(t, s, e.rest(), i);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
testRegExp(t, s, e, i) {
|
|
1619
|
-
if (!s.test(t.name)) return;
|
|
1620
|
-
if (!e) {
|
|
1621
|
-
this.matches.add(t, i, false);
|
|
1622
|
-
} else {
|
|
1623
|
-
this.subwalks.add(t, e);
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
testString(t, s, e, i) {
|
|
1627
|
-
if (!t.isNamed(s)) return;
|
|
1628
|
-
if (!e) {
|
|
1629
|
-
this.matches.add(t, i, false);
|
|
1630
|
-
} else {
|
|
1631
|
-
this.subwalks.add(t, e);
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
45
|
+
return n(t);
|
|
46
|
+
} : e ? function r(t) {
|
|
47
|
+
return e(t);
|
|
48
|
+
} : null;
|
|
49
|
+
return i;
|
|
1634
50
|
}
|
|
1635
51
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
class GlobUtil {
|
|
1639
|
-
path;
|
|
1640
|
-
patterns;
|
|
1641
|
-
opts;
|
|
1642
|
-
seen=new Set;
|
|
1643
|
-
paused=false;
|
|
1644
|
-
aborted=false;
|
|
1645
|
-
#E=[];
|
|
1646
|
-
#A;
|
|
1647
|
-
#v;
|
|
1648
|
-
signal;
|
|
1649
|
-
maxDepth;
|
|
1650
|
-
includeChildMatches;
|
|
1651
|
-
constructor(t, s, e) {
|
|
1652
|
-
this.patterns = t;
|
|
1653
|
-
this.path = s;
|
|
1654
|
-
this.opts = e;
|
|
1655
|
-
this.#v = !e.posix && e.platform === "win32" ? "\\" : "/";
|
|
1656
|
-
this.includeChildMatches = e.includeChildMatches !== false;
|
|
1657
|
-
if (e.ignore || !this.includeChildMatches) {
|
|
1658
|
-
this.#A = ut(e.ignore ?? [], e);
|
|
1659
|
-
if (!this.includeChildMatches && typeof this.#A.add !== "function") {
|
|
1660
|
-
const t = "cannot ignore child matches, ignore lacks add() method.";
|
|
1661
|
-
throw new Error(t);
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
this.maxDepth = e.maxDepth || Infinity;
|
|
1665
|
-
if (e.signal) {
|
|
1666
|
-
this.signal = e.signal;
|
|
1667
|
-
this.signal.addEventListener("abort", () => {
|
|
1668
|
-
this.#E.length = 0;
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
#L(t) {
|
|
1673
|
-
return this.seen.has(t) || !!this.#A?.ignored?.(t);
|
|
1674
|
-
}
|
|
1675
|
-
#P(t) {
|
|
1676
|
-
return !!this.#A?.childrenIgnored?.(t);
|
|
1677
|
-
}
|
|
1678
|
-
pause() {
|
|
1679
|
-
this.paused = true;
|
|
1680
|
-
}
|
|
1681
|
-
resume() {
|
|
1682
|
-
if (this.signal?.aborted) return;
|
|
1683
|
-
this.paused = false;
|
|
1684
|
-
let t = undefined;
|
|
1685
|
-
while (!this.paused && (t = this.#E.shift())) {
|
|
1686
|
-
t();
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
onResume(t) {
|
|
1690
|
-
if (this.signal?.aborted) return;
|
|
1691
|
-
if (!this.paused) {
|
|
1692
|
-
t();
|
|
1693
|
-
} else {
|
|
1694
|
-
this.#E.push(t);
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
async matchCheck(t, s) {
|
|
1698
|
-
if (s && this.opts.nodir) return undefined;
|
|
1699
|
-
let e;
|
|
1700
|
-
if (this.opts.realpath) {
|
|
1701
|
-
e = t.realpathCached() || await t.realpath();
|
|
1702
|
-
if (!e) return undefined;
|
|
1703
|
-
t = e;
|
|
1704
|
-
}
|
|
1705
|
-
const i = t.isUnknown() || this.opts.stat;
|
|
1706
|
-
const n = i ? await t.lstat() : t;
|
|
1707
|
-
if (this.opts.follow && this.opts.nodir && n?.isSymbolicLink()) {
|
|
1708
|
-
const t = await n.realpath();
|
|
1709
|
-
if (t && (t.isUnknown() || this.opts.stat)) {
|
|
1710
|
-
await t.lstat();
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
return this.matchCheckTest(n, s);
|
|
1714
|
-
}
|
|
1715
|
-
matchCheckTest(t, s) {
|
|
1716
|
-
return t && (this.maxDepth === Infinity || t.depth() <= this.maxDepth) && (!s || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#L(t) ? t : undefined;
|
|
1717
|
-
}
|
|
1718
|
-
matchCheckSync(t, s) {
|
|
1719
|
-
if (s && this.opts.nodir) return undefined;
|
|
1720
|
-
let e;
|
|
1721
|
-
if (this.opts.realpath) {
|
|
1722
|
-
e = t.realpathCached() || t.realpathSync();
|
|
1723
|
-
if (!e) return undefined;
|
|
1724
|
-
t = e;
|
|
1725
|
-
}
|
|
1726
|
-
const i = t.isUnknown() || this.opts.stat;
|
|
1727
|
-
const n = i ? t.lstatSync() : t;
|
|
1728
|
-
if (this.opts.follow && this.opts.nodir && n?.isSymbolicLink()) {
|
|
1729
|
-
const t = n.realpathSync();
|
|
1730
|
-
if (t && (t?.isUnknown() || this.opts.stat)) {
|
|
1731
|
-
t.lstatSync();
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
return this.matchCheckTest(n, s);
|
|
1735
|
-
}
|
|
1736
|
-
matchFinish(t, s) {
|
|
1737
|
-
if (this.#L(t)) return;
|
|
1738
|
-
if (!this.includeChildMatches && this.#A?.add) {
|
|
1739
|
-
const s = `${t.relativePosix()}/**`;
|
|
1740
|
-
this.#A.add(s);
|
|
1741
|
-
}
|
|
1742
|
-
const e = this.opts.absolute === undefined ? s : this.opts.absolute;
|
|
1743
|
-
this.seen.add(t);
|
|
1744
|
-
const i = this.opts.mark && t.isDirectory() ? this.#v : "";
|
|
1745
|
-
if (this.opts.withFileTypes) {
|
|
1746
|
-
this.matchEmit(t);
|
|
1747
|
-
} else if (e) {
|
|
1748
|
-
const s = this.opts.posix ? t.fullpathPosix() : t.fullpath();
|
|
1749
|
-
this.matchEmit(s + i);
|
|
1750
|
-
} else {
|
|
1751
|
-
const s = this.opts.posix ? t.relativePosix() : t.relative();
|
|
1752
|
-
const e = this.opts.dotRelative && !s.startsWith(".." + this.#v) ? "." + this.#v : "";
|
|
1753
|
-
this.matchEmit(!s ? "." + i : e + s + i);
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
async match(t, s, e) {
|
|
1757
|
-
const i = await this.matchCheck(t, e);
|
|
1758
|
-
if (i) this.matchFinish(i, s);
|
|
1759
|
-
}
|
|
1760
|
-
matchSync(t, s, e) {
|
|
1761
|
-
const i = this.matchCheckSync(t, e);
|
|
1762
|
-
if (i) this.matchFinish(i, s);
|
|
1763
|
-
}
|
|
1764
|
-
walkCB(t, s, e) {
|
|
1765
|
-
if (this.signal?.aborted) e();
|
|
1766
|
-
this.walkCB2(t, s, new Processor(this.opts), e);
|
|
1767
|
-
}
|
|
1768
|
-
walkCB2(t, s, e, i) {
|
|
1769
|
-
if (this.#P(t)) return i();
|
|
1770
|
-
if (this.signal?.aborted) i();
|
|
1771
|
-
if (this.paused) {
|
|
1772
|
-
this.onResume(() => this.walkCB2(t, s, e, i));
|
|
1773
|
-
return;
|
|
1774
|
-
}
|
|
1775
|
-
e.processPatterns(t, s);
|
|
1776
|
-
let n = 1;
|
|
1777
|
-
const r = () => {
|
|
1778
|
-
if (--n === 0) i();
|
|
1779
|
-
};
|
|
1780
|
-
for (const [t, s, i] of e.matches.entries()) {
|
|
1781
|
-
if (this.#L(t)) continue;
|
|
1782
|
-
n++;
|
|
1783
|
-
this.match(t, s, i).then(() => r());
|
|
1784
|
-
}
|
|
1785
|
-
for (const t of e.subwalkTargets()) {
|
|
1786
|
-
if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
|
|
1787
|
-
continue;
|
|
1788
|
-
}
|
|
1789
|
-
n++;
|
|
1790
|
-
const s = t.readdirCached();
|
|
1791
|
-
if (t.calledReaddir()) this.walkCB3(t, s, e, r); else {
|
|
1792
|
-
t.readdirCB((s, i) => this.walkCB3(t, i, e, r), true);
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
r();
|
|
1796
|
-
}
|
|
1797
|
-
walkCB3(t, s, e, i) {
|
|
1798
|
-
e = e.filterEntries(t, s);
|
|
1799
|
-
let n = 1;
|
|
1800
|
-
const r = () => {
|
|
1801
|
-
if (--n === 0) i();
|
|
1802
|
-
};
|
|
1803
|
-
for (const [t, s, i] of e.matches.entries()) {
|
|
1804
|
-
if (this.#L(t)) continue;
|
|
1805
|
-
n++;
|
|
1806
|
-
this.match(t, s, i).then(() => r());
|
|
1807
|
-
}
|
|
1808
|
-
for (const [t, s] of e.subwalks.entries()) {
|
|
1809
|
-
n++;
|
|
1810
|
-
this.walkCB2(t, s, e.child(), r);
|
|
1811
|
-
}
|
|
1812
|
-
r();
|
|
1813
|
-
}
|
|
1814
|
-
walkCBSync(t, s, e) {
|
|
1815
|
-
if (this.signal?.aborted) e();
|
|
1816
|
-
this.walkCB2Sync(t, s, new Processor(this.opts), e);
|
|
1817
|
-
}
|
|
1818
|
-
walkCB2Sync(t, s, e, i) {
|
|
1819
|
-
if (this.#P(t)) return i();
|
|
1820
|
-
if (this.signal?.aborted) i();
|
|
1821
|
-
if (this.paused) {
|
|
1822
|
-
this.onResume(() => this.walkCB2Sync(t, s, e, i));
|
|
1823
|
-
return;
|
|
1824
|
-
}
|
|
1825
|
-
e.processPatterns(t, s);
|
|
1826
|
-
let n = 1;
|
|
1827
|
-
const r = () => {
|
|
1828
|
-
if (--n === 0) i();
|
|
1829
|
-
};
|
|
1830
|
-
for (const [t, s, i] of e.matches.entries()) {
|
|
1831
|
-
if (this.#L(t)) continue;
|
|
1832
|
-
this.matchSync(t, s, i);
|
|
1833
|
-
}
|
|
1834
|
-
for (const t of e.subwalkTargets()) {
|
|
1835
|
-
if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
|
|
1836
|
-
continue;
|
|
1837
|
-
}
|
|
1838
|
-
n++;
|
|
1839
|
-
const s = t.readdirSync();
|
|
1840
|
-
this.walkCB3Sync(t, s, e, r);
|
|
1841
|
-
}
|
|
1842
|
-
r();
|
|
1843
|
-
}
|
|
1844
|
-
walkCB3Sync(t, s, e, i) {
|
|
1845
|
-
e = e.filterEntries(t, s);
|
|
1846
|
-
let n = 1;
|
|
1847
|
-
const r = () => {
|
|
1848
|
-
if (--n === 0) i();
|
|
1849
|
-
};
|
|
1850
|
-
for (const [t, s, i] of e.matches.entries()) {
|
|
1851
|
-
if (this.#L(t)) continue;
|
|
1852
|
-
this.matchSync(t, s, i);
|
|
1853
|
-
}
|
|
1854
|
-
for (const [t, s] of e.subwalks.entries()) {
|
|
1855
|
-
n++;
|
|
1856
|
-
this.walkCB2Sync(t, s, e.child(), r);
|
|
1857
|
-
}
|
|
1858
|
-
r();
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
class GlobWalker extends GlobUtil {
|
|
1863
|
-
matches=new Set;
|
|
1864
|
-
constructor(t, s, e) {
|
|
1865
|
-
super(t, s, e);
|
|
1866
|
-
}
|
|
1867
|
-
matchEmit(t) {
|
|
1868
|
-
this.matches.add(t);
|
|
1869
|
-
}
|
|
1870
|
-
async walk() {
|
|
1871
|
-
if (this.signal?.aborted) throw this.signal.reason;
|
|
1872
|
-
if (this.path.isUnknown()) {
|
|
1873
|
-
await this.path.lstat();
|
|
1874
|
-
}
|
|
1875
|
-
await new Promise((t, s) => {
|
|
1876
|
-
this.walkCB(this.path, this.patterns, () => {
|
|
1877
|
-
if (this.signal?.aborted) {
|
|
1878
|
-
s(this.signal.reason);
|
|
1879
|
-
} else {
|
|
1880
|
-
t(this.matches);
|
|
1881
|
-
}
|
|
1882
|
-
});
|
|
1883
|
-
});
|
|
1884
|
-
return this.matches;
|
|
1885
|
-
}
|
|
1886
|
-
walkSync() {
|
|
1887
|
-
if (this.signal?.aborted) throw this.signal.reason;
|
|
1888
|
-
if (this.path.isUnknown()) {
|
|
1889
|
-
this.path.lstatSync();
|
|
1890
|
-
}
|
|
1891
|
-
this.walkCBSync(this.path, this.patterns, () => {
|
|
1892
|
-
if (this.signal?.aborted) throw this.signal.reason;
|
|
1893
|
-
});
|
|
1894
|
-
return this.matches;
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
class GlobStream extends GlobUtil {
|
|
1899
|
-
results;
|
|
1900
|
-
constructor(t, s, e) {
|
|
1901
|
-
super(t, s, e);
|
|
1902
|
-
this.results = new o({
|
|
1903
|
-
signal: this.signal,
|
|
1904
|
-
objectMode: true
|
|
1905
|
-
});
|
|
1906
|
-
this.results.on("drain", () => this.resume());
|
|
1907
|
-
this.results.on("resume", () => this.resume());
|
|
1908
|
-
}
|
|
1909
|
-
matchEmit(t) {
|
|
1910
|
-
this.results.write(t);
|
|
1911
|
-
if (!this.results.flowing) this.pause();
|
|
1912
|
-
}
|
|
1913
|
-
stream() {
|
|
1914
|
-
const t = this.path;
|
|
1915
|
-
if (t.isUnknown()) {
|
|
1916
|
-
t.lstat().then(() => {
|
|
1917
|
-
this.walkCB(t, this.patterns, () => this.results.end());
|
|
1918
|
-
});
|
|
1919
|
-
} else {
|
|
1920
|
-
this.walkCB(t, this.patterns, () => this.results.end());
|
|
1921
|
-
}
|
|
1922
|
-
return this.results;
|
|
1923
|
-
}
|
|
1924
|
-
streamSync() {
|
|
1925
|
-
if (this.path.isUnknown()) {
|
|
1926
|
-
this.path.lstatSync();
|
|
1927
|
-
}
|
|
1928
|
-
this.walkCBSync(this.path, this.patterns, () => this.results.end());
|
|
1929
|
-
return this.results;
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
const dt = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
1934
|
-
|
|
1935
|
-
class Glob {
|
|
1936
|
-
absolute;
|
|
1937
|
-
cwd;
|
|
1938
|
-
root;
|
|
1939
|
-
dot;
|
|
1940
|
-
dotRelative;
|
|
1941
|
-
follow;
|
|
1942
|
-
ignore;
|
|
1943
|
-
magicalBraces;
|
|
1944
|
-
mark;
|
|
1945
|
-
matchBase;
|
|
1946
|
-
maxDepth;
|
|
1947
|
-
nobrace;
|
|
1948
|
-
nocase;
|
|
1949
|
-
nodir;
|
|
1950
|
-
noext;
|
|
1951
|
-
noglobstar;
|
|
1952
|
-
pattern;
|
|
1953
|
-
platform;
|
|
1954
|
-
realpath;
|
|
1955
|
-
scurry;
|
|
1956
|
-
stat;
|
|
1957
|
-
signal;
|
|
1958
|
-
windowsPathsNoEscape;
|
|
1959
|
-
withFileTypes;
|
|
1960
|
-
includeChildMatches;
|
|
1961
|
-
opts;
|
|
1962
|
-
patterns;
|
|
1963
|
-
constructor(t, o) {
|
|
1964
|
-
if (!o) throw new TypeError("glob options required");
|
|
1965
|
-
this.withFileTypes = !!o.withFileTypes;
|
|
1966
|
-
this.signal = o.signal;
|
|
1967
|
-
this.follow = !!o.follow;
|
|
1968
|
-
this.dot = !!o.dot;
|
|
1969
|
-
this.dotRelative = !!o.dotRelative;
|
|
1970
|
-
this.nodir = !!o.nodir;
|
|
1971
|
-
this.mark = !!o.mark;
|
|
1972
|
-
if (!o.cwd) {
|
|
1973
|
-
this.cwd = "";
|
|
1974
|
-
} else if (o.cwd instanceof URL || o.cwd.startsWith("file://")) {
|
|
1975
|
-
o.cwd = s(o.cwd);
|
|
1976
|
-
}
|
|
1977
|
-
this.cwd = o.cwd || "";
|
|
1978
|
-
this.root = o.root;
|
|
1979
|
-
this.magicalBraces = !!o.magicalBraces;
|
|
1980
|
-
this.nobrace = !!o.nobrace;
|
|
1981
|
-
this.noext = !!o.noext;
|
|
1982
|
-
this.realpath = !!o.realpath;
|
|
1983
|
-
this.absolute = o.absolute;
|
|
1984
|
-
this.includeChildMatches = o.includeChildMatches !== false;
|
|
1985
|
-
this.noglobstar = !!o.noglobstar;
|
|
1986
|
-
this.matchBase = !!o.matchBase;
|
|
1987
|
-
this.maxDepth = typeof o.maxDepth === "number" ? o.maxDepth : Infinity;
|
|
1988
|
-
this.stat = !!o.stat;
|
|
1989
|
-
this.ignore = o.ignore;
|
|
1990
|
-
if (this.withFileTypes && this.absolute !== undefined) {
|
|
1991
|
-
throw new Error("cannot set absolute and withFileTypes:true");
|
|
1992
|
-
}
|
|
1993
|
-
if (typeof t === "string") {
|
|
1994
|
-
t = [ t ];
|
|
1995
|
-
}
|
|
1996
|
-
this.windowsPathsNoEscape = !!o.windowsPathsNoEscape || o.allowWindowsEscape === false;
|
|
1997
|
-
if (this.windowsPathsNoEscape) {
|
|
1998
|
-
t = t.map(t => t.replace(/\\/g, "/"));
|
|
1999
|
-
}
|
|
2000
|
-
if (this.matchBase) {
|
|
2001
|
-
if (o.noglobstar) {
|
|
2002
|
-
throw new TypeError("base matching requires globstar");
|
|
2003
|
-
}
|
|
2004
|
-
t = t.map(t => t.includes("/") ? t : `./**/${t}`);
|
|
2005
|
-
}
|
|
2006
|
-
this.pattern = t;
|
|
2007
|
-
this.platform = o.platform || dt;
|
|
2008
|
-
this.opts = {
|
|
2009
|
-
...o,
|
|
2010
|
-
platform: this.platform
|
|
2011
|
-
};
|
|
2012
|
-
if (o.scurry) {
|
|
2013
|
-
this.scurry = o.scurry;
|
|
2014
|
-
if (o.nocase !== undefined && o.nocase !== o.scurry.nocase) {
|
|
2015
|
-
throw new Error("nocase option contradicts provided scurry option");
|
|
2016
|
-
}
|
|
2017
|
-
} else {
|
|
2018
|
-
const t = o.platform === "win32" ? e : o.platform === "darwin" ? i : o.platform ? n : r;
|
|
2019
|
-
this.scurry = new t(this.cwd, {
|
|
2020
|
-
nocase: o.nocase,
|
|
2021
|
-
fs: o.fs
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
this.nocase = this.scurry.nocase;
|
|
2025
|
-
const a = this.platform === "darwin" || this.platform === "win32";
|
|
2026
|
-
const h = {
|
|
2027
|
-
...o,
|
|
2028
|
-
dot: this.dot,
|
|
2029
|
-
matchBase: this.matchBase,
|
|
2030
|
-
nobrace: this.nobrace,
|
|
2031
|
-
nocase: this.nocase,
|
|
2032
|
-
nocaseMagicOnly: a,
|
|
2033
|
-
nocomment: true,
|
|
2034
|
-
noext: this.noext,
|
|
2035
|
-
nonegate: true,
|
|
2036
|
-
optimizationLevel: 2,
|
|
2037
|
-
platform: this.platform,
|
|
2038
|
-
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
2039
|
-
debug: !!this.opts.debug
|
|
2040
|
-
};
|
|
2041
|
-
const l = this.pattern.map(t => new Minimatch(t, h));
|
|
2042
|
-
const [c, p] = l.reduce((t, s) => {
|
|
2043
|
-
t[0].push(...s.set);
|
|
2044
|
-
t[1].push(...s.globParts);
|
|
2045
|
-
return t;
|
|
2046
|
-
}, [ [], [] ]);
|
|
2047
|
-
this.patterns = c.map((t, s) => {
|
|
2048
|
-
const e = p[s];
|
|
2049
|
-
if (!e) throw new Error("invalid pattern object");
|
|
2050
|
-
return new Pattern(t, e, 0, this.platform);
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
async walk() {
|
|
2054
|
-
return [ ...await new GlobWalker(this.patterns, this.scurry.cwd, {
|
|
2055
|
-
...this.opts,
|
|
2056
|
-
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
2057
|
-
platform: this.platform,
|
|
2058
|
-
nocase: this.nocase,
|
|
2059
|
-
includeChildMatches: this.includeChildMatches
|
|
2060
|
-
}).walk() ];
|
|
2061
|
-
}
|
|
2062
|
-
walkSync() {
|
|
2063
|
-
return [ ...new GlobWalker(this.patterns, this.scurry.cwd, {
|
|
2064
|
-
...this.opts,
|
|
2065
|
-
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
2066
|
-
platform: this.platform,
|
|
2067
|
-
nocase: this.nocase,
|
|
2068
|
-
includeChildMatches: this.includeChildMatches
|
|
2069
|
-
}).walkSync() ];
|
|
2070
|
-
}
|
|
2071
|
-
stream() {
|
|
2072
|
-
return new GlobStream(this.patterns, this.scurry.cwd, {
|
|
2073
|
-
...this.opts,
|
|
2074
|
-
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
2075
|
-
platform: this.platform,
|
|
2076
|
-
nocase: this.nocase,
|
|
2077
|
-
includeChildMatches: this.includeChildMatches
|
|
2078
|
-
}).stream();
|
|
2079
|
-
}
|
|
2080
|
-
streamSync() {
|
|
2081
|
-
return new GlobStream(this.patterns, this.scurry.cwd, {
|
|
2082
|
-
...this.opts,
|
|
2083
|
-
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
2084
|
-
platform: this.platform,
|
|
2085
|
-
nocase: this.nocase,
|
|
2086
|
-
includeChildMatches: this.includeChildMatches
|
|
2087
|
-
}).streamSync();
|
|
2088
|
-
}
|
|
2089
|
-
iterateSync() {
|
|
2090
|
-
return this.streamSync()[Symbol.iterator]();
|
|
2091
|
-
}
|
|
2092
|
-
[Symbol.iterator]() {
|
|
2093
|
-
return this.iterateSync();
|
|
2094
|
-
}
|
|
2095
|
-
iterate() {
|
|
2096
|
-
return this.stream()[Symbol.asyncIterator]();
|
|
2097
|
-
}
|
|
2098
|
-
[Symbol.asyncIterator]() {
|
|
2099
|
-
return this.iterate();
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
const gt = (t, s = {}) => {
|
|
2104
|
-
if (!Array.isArray(t)) {
|
|
2105
|
-
t = [ t ];
|
|
2106
|
-
}
|
|
2107
|
-
for (const e of t) {
|
|
2108
|
-
if (new Minimatch(e, s).hasMagic()) return true;
|
|
2109
|
-
}
|
|
2110
|
-
return false;
|
|
2111
|
-
};
|
|
2112
|
-
|
|
2113
|
-
function mt(t, s = {}) {
|
|
2114
|
-
return new Glob(t, s).streamSync();
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
function wt(t, s = {}) {
|
|
2118
|
-
return new Glob(t, s).stream();
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
function bt(t, s = {}) {
|
|
2122
|
-
return new Glob(t, s).walkSync();
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
async function yt(t, s = {}) {
|
|
2126
|
-
return new Glob(t, s).walk();
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
function St(t, s = {}) {
|
|
2130
|
-
return new Glob(t, s).iterateSync();
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
function xt(t, s = {}) {
|
|
2134
|
-
return new Glob(t, s).iterate();
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
const kt = mt;
|
|
2138
|
-
|
|
2139
|
-
const Ct = Object.assign(wt, {
|
|
2140
|
-
sync: mt
|
|
2141
|
-
});
|
|
2142
|
-
|
|
2143
|
-
const Mt = St;
|
|
2144
|
-
|
|
2145
|
-
const Et = Object.assign(xt, {
|
|
2146
|
-
sync: St
|
|
2147
|
-
});
|
|
2148
|
-
|
|
2149
|
-
const At = Object.assign(bt, {
|
|
2150
|
-
stream: mt,
|
|
2151
|
-
iterate: St
|
|
2152
|
-
});
|
|
2153
|
-
|
|
2154
|
-
const vt = Object.assign(yt, {
|
|
2155
|
-
glob: yt,
|
|
2156
|
-
globSync: bt,
|
|
2157
|
-
sync: At,
|
|
2158
|
-
globStream: wt,
|
|
2159
|
-
stream: Ct,
|
|
2160
|
-
globStreamSync: mt,
|
|
2161
|
-
streamSync: kt,
|
|
2162
|
-
globIterate: xt,
|
|
2163
|
-
iterate: Et,
|
|
2164
|
-
globIterateSync: St,
|
|
2165
|
-
iterateSync: Mt,
|
|
2166
|
-
Glob: Glob,
|
|
2167
|
-
hasMagic: gt,
|
|
2168
|
-
escape: A,
|
|
2169
|
-
unescape: d
|
|
2170
|
-
});
|
|
2171
|
-
|
|
2172
|
-
vt.glob = vt;
|
|
2173
|
-
|
|
2174
|
-
export { vt as g };
|
|
52
|
+
export { u as a, o as b, l as r };
|