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.
Files changed (1175) hide show
  1. package/com/cacher.cjs +56 -44
  2. package/com/cacher.mjs +56 -44
  3. package/com/database.cjs +74 -74
  4. package/com/database.mjs +74 -74
  5. package/com/docker.cjs +85 -85
  6. package/com/docker.mjs +85 -85
  7. package/com/entrypoint.cjs +44 -44
  8. package/com/entrypoint.mjs +44 -44
  9. package/com/logger.cjs +51 -51
  10. package/com/logger.mjs +51 -51
  11. package/com/monitor.cjs +32 -32
  12. package/com/monitor.mjs +32 -32
  13. package/decorator/asst.cjs +5 -5
  14. package/decorator/asst.mjs +5 -5
  15. package/decorator/ctrl.cjs +22 -22
  16. package/decorator/ctrl.mjs +22 -22
  17. package/decorator/di.cjs +17 -17
  18. package/decorator/di.mjs +17 -17
  19. package/decorator/dto.cjs +17 -17
  20. package/decorator/dto.mjs +17 -17
  21. package/decorator/orm.cjs +47 -47
  22. package/decorator/orm.mjs +47 -47
  23. package/dtos.cjs +17 -17
  24. package/dtos.mjs +17 -17
  25. package/helper.cjs +32 -32
  26. package/helper.mjs +32 -32
  27. package/lakutata.cjs +110 -110
  28. package/lakutata.mjs +110 -110
  29. package/orm.cjs +47 -47
  30. package/orm.mjs +48 -48
  31. package/package.json +1 -1
  32. package/provider/database.cjs +73 -73
  33. package/provider/database.mjs +73 -73
  34. package/provider/passwordHash.cjs +31 -31
  35. package/provider/passwordHash.mjs +31 -31
  36. package/src/components/Database.cjs +74 -74
  37. package/src/components/Database.mjs +74 -74
  38. package/src/components/Logger.cjs +51 -51
  39. package/src/components/Logger.mjs +51 -51
  40. package/src/components/cacher/Cacher.cjs +60 -48
  41. package/src/components/cacher/Cacher.mjs +60 -48
  42. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +25 -11
  43. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +31 -17
  44. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +29 -15
  45. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +38 -24
  46. package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +41 -27
  47. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +37 -23
  48. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +28 -14
  49. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +26 -12
  50. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +39 -25
  51. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +29 -15
  52. package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +26 -12
  53. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +26 -12
  54. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +29 -15
  55. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +29 -15
  56. package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -4
  57. package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -4
  58. package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
  59. package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
  60. package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +4 -4
  61. package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -4
  62. package/src/components/cacher/options/FileCacheOptions.cjs +17 -17
  63. package/src/components/cacher/options/FileCacheOptions.mjs +17 -17
  64. package/src/components/cacher/options/MemcacheCacheOptions.cjs +17 -17
  65. package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -17
  66. package/src/components/cacher/options/MongoCacheOptions.cjs +17 -17
  67. package/src/components/cacher/options/MongoCacheOptions.mjs +17 -17
  68. package/src/components/cacher/options/MysqlCacheOptions.cjs +17 -17
  69. package/src/components/cacher/options/MysqlCacheOptions.mjs +17 -17
  70. package/src/components/cacher/options/PostgresCacheOptions.cjs +17 -17
  71. package/src/components/cacher/options/PostgresCacheOptions.mjs +17 -17
  72. package/src/components/cacher/options/RedisCacheOptions.cjs +17 -17
  73. package/src/components/cacher/options/RedisCacheOptions.mjs +17 -17
  74. package/src/components/cacher/options/SqliteCacheOptions.cjs +17 -17
  75. package/src/components/cacher/options/SqliteCacheOptions.mjs +17 -17
  76. package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
  77. package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
  78. package/src/components/docker/ConnectionOptionsBuilder.cjs +85 -85
  79. package/src/components/docker/ConnectionOptionsBuilder.mjs +85 -85
  80. package/src/components/docker/Docker.cjs +85 -85
  81. package/src/components/docker/Docker.mjs +85 -85
  82. package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -4
  83. package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -4
  84. package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -4
  85. package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -4
  86. package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -4
  87. package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -4
  88. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -4
  89. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -4
  90. package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -4
  91. package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -4
  92. package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -4
  93. package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -4
  94. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -4
  95. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -4
  96. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -4
  97. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -4
  98. package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
  99. package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
  100. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
  101. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
  102. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
  103. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
  104. package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
  105. package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
  106. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
  107. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
  108. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
  109. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
  110. package/src/components/docker/lib/DockerContainer.cjs +72 -72
  111. package/src/components/docker/lib/DockerContainer.mjs +72 -72
  112. package/src/components/docker/lib/DockerContainerTTY.cjs +72 -72
  113. package/src/components/docker/lib/DockerContainerTTY.mjs +72 -72
  114. package/src/components/docker/lib/DockerImage.cjs +30 -30
  115. package/src/components/docker/lib/DockerImage.mjs +30 -30
  116. package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
  117. package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
  118. package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
  119. package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
  120. package/src/components/docker/options/DockerPruneOptions.cjs +17 -17
  121. package/src/components/docker/options/DockerPruneOptions.mjs +17 -17
  122. package/src/components/docker/options/auth/DockerAuthOptions.cjs +17 -17
  123. package/src/components/docker/options/auth/DockerAuthOptions.mjs +17 -17
  124. package/src/components/docker/options/container/ContainerCommitOptions.cjs +17 -17
  125. package/src/components/docker/options/container/ContainerCommitOptions.mjs +17 -17
  126. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +17 -17
  127. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +17 -17
  128. package/src/components/docker/options/container/ContainerExecOptions.cjs +17 -17
  129. package/src/components/docker/options/container/ContainerExecOptions.mjs +17 -17
  130. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +17 -17
  131. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +17 -17
  132. package/src/components/docker/options/container/ContainerKillOptions.cjs +17 -17
  133. package/src/components/docker/options/container/ContainerKillOptions.mjs +17 -17
  134. package/src/components/docker/options/container/ContainerLogsOptions.cjs +17 -17
  135. package/src/components/docker/options/container/ContainerLogsOptions.mjs +17 -17
  136. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +17 -17
  137. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +17 -17
  138. package/src/components/docker/options/container/ContainerSettingOptions.cjs +17 -17
  139. package/src/components/docker/options/container/ContainerSettingOptions.mjs +17 -17
  140. package/src/components/docker/options/container/ContainerStopOptions.cjs +17 -17
  141. package/src/components/docker/options/container/ContainerStopOptions.mjs +17 -17
  142. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +17 -17
  143. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +17 -17
  144. package/src/components/docker/options/image/ImageBuildOptions.cjs +17 -17
  145. package/src/components/docker/options/image/ImageBuildOptions.mjs +17 -17
  146. package/src/components/docker/options/image/ImageExportOptions.cjs +17 -17
  147. package/src/components/docker/options/image/ImageExportOptions.mjs +17 -17
  148. package/src/components/docker/options/image/ImageImportOptions.cjs +17 -17
  149. package/src/components/docker/options/image/ImageImportOptions.mjs +17 -17
  150. package/src/components/docker/options/image/ImagePullOptions.cjs +17 -17
  151. package/src/components/docker/options/image/ImagePullOptions.mjs +17 -17
  152. package/src/components/docker/options/image/ImagePushOptions.cjs +17 -17
  153. package/src/components/docker/options/image/ImagePushOptions.mjs +17 -17
  154. package/src/components/docker/options/image/ImageRemoveOptions.cjs +17 -17
  155. package/src/components/docker/options/image/ImageRemoveOptions.mjs +17 -17
  156. package/src/components/docker/options/image/ImageTagOptions.cjs +17 -17
  157. package/src/components/docker/options/image/ImageTagOptions.mjs +17 -17
  158. package/src/components/docker/options/network/NetworkCreateOptions.cjs +17 -17
  159. package/src/components/docker/options/network/NetworkCreateOptions.mjs +17 -17
  160. package/src/components/docker/types/ContainerBind.cjs +1 -1
  161. package/src/components/docker/types/ContainerBind.mjs +1 -1
  162. package/src/components/docker/types/ContainerCapability.cjs +1 -1
  163. package/src/components/docker/types/ContainerCapability.mjs +1 -1
  164. package/src/components/docker/types/ContainerConfig.cjs +1 -1
  165. package/src/components/docker/types/ContainerConfig.mjs +1 -1
  166. package/src/components/docker/types/ContainerDevice.cjs +1 -1
  167. package/src/components/docker/types/ContainerDevice.mjs +1 -1
  168. package/src/components/docker/types/ContainerNetwork.cjs +1 -1
  169. package/src/components/docker/types/ContainerNetwork.mjs +1 -1
  170. package/src/components/docker/types/ContainerPort.cjs +1 -1
  171. package/src/components/docker/types/ContainerPort.mjs +1 -1
  172. package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
  173. package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
  174. package/src/components/docker/types/ContainerState.cjs +1 -1
  175. package/src/components/docker/types/ContainerState.mjs +1 -1
  176. package/src/components/docker/types/ContainerStats.cjs +1 -1
  177. package/src/components/docker/types/ContainerStats.mjs +1 -1
  178. package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
  179. package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
  180. package/src/components/docker/types/ImageConfig.cjs +1 -1
  181. package/src/components/docker/types/ImageConfig.mjs +1 -1
  182. package/src/components/docker/types/ImageExposePort.cjs +1 -1
  183. package/src/components/docker/types/ImageExposePort.mjs +1 -1
  184. package/src/components/docker/types/NetworkInfo.cjs +1 -1
  185. package/src/components/docker/types/NetworkInfo.mjs +1 -1
  186. package/src/components/entrypoint/Entrypoint.cjs +44 -44
  187. package/src/components/entrypoint/Entrypoint.mjs +44 -44
  188. package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -4
  189. package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -4
  190. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -4
  191. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -4
  192. package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -4
  193. package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -4
  194. package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -4
  195. package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -4
  196. package/src/components/entrypoint/lib/AccessControl.cjs +30 -30
  197. package/src/components/entrypoint/lib/AccessControl.mjs +30 -30
  198. package/src/components/entrypoint/lib/AccessControlRule.cjs +30 -30
  199. package/src/components/entrypoint/lib/AccessControlRule.mjs +30 -30
  200. package/src/components/entrypoint/lib/Controller.cjs +30 -30
  201. package/src/components/entrypoint/lib/Controller.mjs +30 -30
  202. package/src/components/monitor/AliveMonitor.cjs +31 -31
  203. package/src/components/monitor/AliveMonitor.mjs +31 -31
  204. package/src/components/monitor/CpuMonitor.cjs +32 -32
  205. package/src/components/monitor/CpuMonitor.mjs +32 -32
  206. package/src/components/monitor/EventLoopMonitor.cjs +31 -31
  207. package/src/components/monitor/EventLoopMonitor.mjs +31 -31
  208. package/src/components/monitor/HttpRequestMonitor.cjs +32 -32
  209. package/src/components/monitor/HttpRequestMonitor.mjs +32 -32
  210. package/src/components/monitor/MemoryMonitor.cjs +32 -32
  211. package/src/components/monitor/MemoryMonitor.mjs +32 -32
  212. package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
  213. package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
  214. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
  215. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
  216. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
  217. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
  218. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
  219. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
  220. package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
  221. package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
  222. package/src/constants/DIMetadataKey.cjs +2 -2
  223. package/src/constants/DIMetadataKey.mjs +2 -2
  224. package/src/constants/DTOMetadataKey.cjs +2 -2
  225. package/src/constants/DTOMetadataKey.mjs +2 -2
  226. package/src/decorators/asst/After.cjs +4 -4
  227. package/src/decorators/asst/After.mjs +4 -4
  228. package/src/decorators/asst/Before.cjs +4 -4
  229. package/src/decorators/asst/Before.mjs +4 -4
  230. package/src/decorators/ctrl/CLIAction.cjs +22 -22
  231. package/src/decorators/ctrl/CLIAction.mjs +22 -22
  232. package/src/decorators/ctrl/HTTPAction.cjs +22 -22
  233. package/src/decorators/ctrl/HTTPAction.mjs +22 -22
  234. package/src/decorators/ctrl/ServiceAction.cjs +22 -22
  235. package/src/decorators/ctrl/ServiceAction.mjs +22 -22
  236. package/src/decorators/ctrl/http/DELETE.cjs +22 -22
  237. package/src/decorators/ctrl/http/DELETE.mjs +22 -22
  238. package/src/decorators/ctrl/http/GET.cjs +22 -22
  239. package/src/decorators/ctrl/http/GET.mjs +22 -22
  240. package/src/decorators/ctrl/http/HEAD.cjs +22 -22
  241. package/src/decorators/ctrl/http/HEAD.mjs +22 -22
  242. package/src/decorators/ctrl/http/OPTIONS.cjs +22 -22
  243. package/src/decorators/ctrl/http/OPTIONS.mjs +22 -22
  244. package/src/decorators/ctrl/http/PATCH.cjs +22 -22
  245. package/src/decorators/ctrl/http/PATCH.mjs +22 -22
  246. package/src/decorators/ctrl/http/POST.cjs +22 -22
  247. package/src/decorators/ctrl/http/POST.mjs +22 -22
  248. package/src/decorators/ctrl/http/PUT.cjs +22 -22
  249. package/src/decorators/ctrl/http/PUT.mjs +22 -22
  250. package/src/decorators/di/Autoload.cjs +2 -2
  251. package/src/decorators/di/Autoload.mjs +2 -2
  252. package/src/decorators/di/Configurable.cjs +17 -17
  253. package/src/decorators/di/Configurable.mjs +17 -17
  254. package/src/decorators/di/Inject.cjs +17 -17
  255. package/src/decorators/di/Inject.mjs +17 -17
  256. package/src/decorators/di/Lifetime.cjs +5 -5
  257. package/src/decorators/di/Lifetime.mjs +5 -5
  258. package/src/decorators/dto/Accept.cjs +17 -17
  259. package/src/decorators/dto/Accept.mjs +17 -17
  260. package/src/decorators/dto/Expect.cjs +17 -17
  261. package/src/decorators/dto/Expect.mjs +17 -17
  262. package/src/decorators/dto/IndexSignature.cjs +17 -17
  263. package/src/decorators/dto/IndexSignature.mjs +17 -17
  264. package/src/decorators/dto/Return.cjs +17 -17
  265. package/src/decorators/dto/Return.mjs +17 -17
  266. package/src/decorators/orm/AfterInsert.cjs +46 -46
  267. package/src/decorators/orm/AfterInsert.mjs +46 -46
  268. package/src/decorators/orm/AfterLoad.cjs +46 -46
  269. package/src/decorators/orm/AfterLoad.mjs +46 -46
  270. package/src/decorators/orm/AfterRecover.cjs +46 -46
  271. package/src/decorators/orm/AfterRecover.mjs +46 -46
  272. package/src/decorators/orm/AfterRemove.cjs +46 -46
  273. package/src/decorators/orm/AfterRemove.mjs +46 -46
  274. package/src/decorators/orm/AfterSoftRemove.cjs +46 -46
  275. package/src/decorators/orm/AfterSoftRemove.mjs +46 -46
  276. package/src/decorators/orm/AfterUpdate.cjs +46 -46
  277. package/src/decorators/orm/AfterUpdate.mjs +46 -46
  278. package/src/decorators/orm/BeforeInsert.cjs +46 -46
  279. package/src/decorators/orm/BeforeInsert.mjs +46 -46
  280. package/src/decorators/orm/BeforeRecover.cjs +46 -46
  281. package/src/decorators/orm/BeforeRecover.mjs +46 -46
  282. package/src/decorators/orm/BeforeRemove.cjs +46 -46
  283. package/src/decorators/orm/BeforeRemove.mjs +46 -46
  284. package/src/decorators/orm/BeforeSoftRemove.cjs +46 -46
  285. package/src/decorators/orm/BeforeSoftRemove.mjs +46 -46
  286. package/src/decorators/orm/BeforeUpdate.cjs +46 -46
  287. package/src/decorators/orm/BeforeUpdate.mjs +46 -46
  288. package/src/decorators/orm/Check.cjs +46 -46
  289. package/src/decorators/orm/Check.mjs +46 -46
  290. package/src/decorators/orm/ChildEntity.cjs +46 -46
  291. package/src/decorators/orm/ChildEntity.mjs +46 -46
  292. package/src/decorators/orm/Column.cjs +46 -46
  293. package/src/decorators/orm/Column.mjs +46 -46
  294. package/src/decorators/orm/CreateDateColumn.cjs +46 -46
  295. package/src/decorators/orm/CreateDateColumn.mjs +46 -46
  296. package/src/decorators/orm/DeleteDateColumn.cjs +46 -46
  297. package/src/decorators/orm/DeleteDateColumn.mjs +46 -46
  298. package/src/decorators/orm/Entity.cjs +46 -46
  299. package/src/decorators/orm/Entity.mjs +46 -46
  300. package/src/decorators/orm/EventSubscriber.cjs +46 -46
  301. package/src/decorators/orm/EventSubscriber.mjs +46 -46
  302. package/src/decorators/orm/Exclusion.cjs +46 -46
  303. package/src/decorators/orm/Exclusion.mjs +46 -46
  304. package/src/decorators/orm/Generated.cjs +46 -46
  305. package/src/decorators/orm/Generated.mjs +46 -46
  306. package/src/decorators/orm/Index.cjs +46 -46
  307. package/src/decorators/orm/Index.mjs +46 -46
  308. package/src/decorators/orm/JoinColumn.cjs +46 -46
  309. package/src/decorators/orm/JoinColumn.mjs +46 -46
  310. package/src/decorators/orm/JoinTable.cjs +46 -46
  311. package/src/decorators/orm/JoinTable.mjs +46 -46
  312. package/src/decorators/orm/ManyToMany.cjs +46 -46
  313. package/src/decorators/orm/ManyToMany.mjs +46 -46
  314. package/src/decorators/orm/ManyToOne.cjs +46 -46
  315. package/src/decorators/orm/ManyToOne.mjs +46 -46
  316. package/src/decorators/orm/ObjectIdColumn.cjs +46 -46
  317. package/src/decorators/orm/ObjectIdColumn.mjs +46 -46
  318. package/src/decorators/orm/OneToMany.cjs +46 -46
  319. package/src/decorators/orm/OneToMany.mjs +46 -46
  320. package/src/decorators/orm/OneToOne.cjs +46 -46
  321. package/src/decorators/orm/OneToOne.mjs +46 -46
  322. package/src/decorators/orm/PrimaryColumn.cjs +46 -46
  323. package/src/decorators/orm/PrimaryColumn.mjs +46 -46
  324. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +46 -46
  325. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +46 -46
  326. package/src/decorators/orm/RelationId.cjs +46 -46
  327. package/src/decorators/orm/RelationId.mjs +46 -46
  328. package/src/decorators/orm/TableInheritance.cjs +46 -46
  329. package/src/decorators/orm/TableInheritance.mjs +46 -46
  330. package/src/decorators/orm/Tree.cjs +46 -46
  331. package/src/decorators/orm/Tree.mjs +46 -46
  332. package/src/decorators/orm/TreeChildren.cjs +46 -46
  333. package/src/decorators/orm/TreeChildren.mjs +46 -46
  334. package/src/decorators/orm/TreeLevelColumn.cjs +46 -46
  335. package/src/decorators/orm/TreeLevelColumn.mjs +46 -46
  336. package/src/decorators/orm/TreeParent.cjs +46 -46
  337. package/src/decorators/orm/TreeParent.mjs +46 -46
  338. package/src/decorators/orm/Unique.cjs +46 -46
  339. package/src/decorators/orm/Unique.mjs +46 -46
  340. package/src/decorators/orm/UpdateDateColumn.cjs +46 -46
  341. package/src/decorators/orm/UpdateDateColumn.mjs +46 -46
  342. package/src/decorators/orm/VersionColumn.cjs +46 -46
  343. package/src/decorators/orm/VersionColumn.mjs +46 -46
  344. package/src/decorators/orm/ViewColumn.cjs +46 -46
  345. package/src/decorators/orm/ViewColumn.mjs +46 -46
  346. package/src/decorators/orm/ViewEntity.cjs +46 -46
  347. package/src/decorators/orm/ViewEntity.mjs +46 -46
  348. package/src/decorators/orm/VirtualColumn.cjs +46 -46
  349. package/src/decorators/orm/VirtualColumn.mjs +46 -46
  350. package/src/dto/PaginationResultDTO.cjs +17 -17
  351. package/src/dto/PaginationResultDTO.mjs +17 -17
  352. package/src/dto/PaginationSearchDTO.cjs +17 -17
  353. package/src/dto/PaginationSearchDTO.mjs +17 -17
  354. package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -4
  355. package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -4
  356. package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -4
  357. package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -4
  358. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -4
  359. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -4
  360. package/src/exceptions/InvalidObjectTypeException.cjs +4 -4
  361. package/src/exceptions/InvalidObjectTypeException.mjs +4 -4
  362. package/src/exceptions/MethodNotFoundException.cjs +4 -4
  363. package/src/exceptions/MethodNotFoundException.mjs +4 -4
  364. package/src/exceptions/alias/AliasExistsException.cjs +4 -4
  365. package/src/exceptions/alias/AliasExistsException.mjs +4 -4
  366. package/src/exceptions/alias/AliasNotFoundException.cjs +4 -4
  367. package/src/exceptions/alias/AliasNotFoundException.mjs +4 -4
  368. package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -4
  369. package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -4
  370. package/src/exceptions/di/DependencyInjectionException.cjs +4 -4
  371. package/src/exceptions/di/DependencyInjectionException.mjs +4 -4
  372. package/src/exceptions/di/LifetimeLockedException.cjs +4 -4
  373. package/src/exceptions/di/LifetimeLockedException.mjs +4 -4
  374. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -4
  375. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -4
  376. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -4
  377. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -4
  378. package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -4
  379. package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -4
  380. package/src/exceptions/dto/InvalidValueException.cjs +4 -4
  381. package/src/exceptions/dto/InvalidValueException.mjs +4 -4
  382. package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
  383. package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
  384. package/src/interfaces/IConstructor.cjs +1 -1
  385. package/src/interfaces/IConstructor.mjs +1 -1
  386. package/src/interfaces/IPatRun.cjs +1 -1
  387. package/src/interfaces/IPatRun.mjs +1 -1
  388. package/src/lib/base/BaseObject.cjs +30 -30
  389. package/src/lib/base/BaseObject.mjs +30 -30
  390. package/src/lib/base/Context.cjs +17 -17
  391. package/src/lib/base/Context.mjs +17 -17
  392. package/src/lib/base/EventEmitter.cjs +2 -2
  393. package/src/lib/base/EventEmitter.mjs +2 -2
  394. package/src/lib/base/abstracts/Exception.cjs +4 -4
  395. package/src/lib/base/abstracts/Exception.mjs +4 -4
  396. package/src/lib/base/async-constructor/Append.cjs +1 -1
  397. package/src/lib/base/async-constructor/Append.mjs +1 -1
  398. package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
  399. package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
  400. package/src/lib/base/internal/ActionOptions.cjs +17 -17
  401. package/src/lib/base/internal/ActionOptions.mjs +17 -17
  402. package/src/lib/base/internal/ApplicationConfigLoader.cjs +30 -30
  403. package/src/lib/base/internal/ApplicationConfigLoader.mjs +30 -30
  404. package/src/lib/base/internal/BasicInfo.cjs +4 -4
  405. package/src/lib/base/internal/BasicInfo.mjs +4 -4
  406. package/src/lib/base/internal/CamelCase.cjs +1 -1
  407. package/src/lib/base/internal/CamelCase.mjs +1 -1
  408. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +2 -2
  409. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +2 -2
  410. package/src/lib/base/internal/ConstructorSymbol.cjs +2 -2
  411. package/src/lib/base/internal/ConstructorSymbol.mjs +2 -2
  412. package/src/lib/base/internal/ControllerEntrypoint.cjs +9 -9
  413. package/src/lib/base/internal/ControllerEntrypoint.mjs +9 -9
  414. package/src/lib/base/internal/DataValidator.cjs +13 -13
  415. package/src/lib/base/internal/DataValidator.mjs +13 -13
  416. package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
  417. package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
  418. package/src/lib/base/internal/FlexibleDTO.cjs +17 -17
  419. package/src/lib/base/internal/FlexibleDTO.mjs +17 -17
  420. package/src/lib/base/internal/GetActionDTOAndOptions.cjs +17 -17
  421. package/src/lib/base/internal/GetActionDTOAndOptions.mjs +17 -17
  422. package/src/lib/base/internal/IEEE754.cjs +1 -1
  423. package/src/lib/base/internal/IEEE754.mjs +1 -1
  424. package/src/lib/base/internal/MethodAssistantFunction.cjs +4 -4
  425. package/src/lib/base/internal/MethodAssistantFunction.mjs +4 -4
  426. package/src/lib/base/internal/MethodValidation.cjs +17 -17
  427. package/src/lib/base/internal/MethodValidation.mjs +17 -17
  428. package/src/lib/base/internal/ModuleConfigLoader.cjs +30 -30
  429. package/src/lib/base/internal/ModuleConfigLoader.mjs +30 -30
  430. package/src/lib/base/internal/ObjectConfiguration.cjs +17 -17
  431. package/src/lib/base/internal/ObjectConfiguration.mjs +17 -17
  432. package/src/lib/base/internal/ObjectContainer.cjs +2 -2
  433. package/src/lib/base/internal/ObjectContainer.mjs +2 -2
  434. package/src/lib/base/internal/ObjectInjection.cjs +2 -2
  435. package/src/lib/base/internal/ObjectInjection.mjs +2 -2
  436. package/src/lib/base/internal/ObjectLifetime.cjs +5 -5
  437. package/src/lib/base/internal/ObjectLifetime.mjs +5 -5
  438. package/src/lib/base/internal/ObjectSchemaValidation.cjs +17 -17
  439. package/src/lib/base/internal/ObjectSchemaValidation.mjs +17 -17
  440. package/src/lib/base/internal/ObjectType.cjs +30 -30
  441. package/src/lib/base/internal/ObjectType.mjs +30 -30
  442. package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
  443. package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
  444. package/src/lib/base/internal/PatternManager.cjs +3 -3
  445. package/src/lib/base/internal/PatternManager.mjs +3 -3
  446. package/src/lib/base/internal/StringifyPattern.cjs +4 -4
  447. package/src/lib/base/internal/StringifyPattern.mjs +4 -4
  448. package/src/lib/base/internal/ThrowWarning.cjs +1 -1
  449. package/src/lib/base/internal/ThrowWarning.mjs +1 -1
  450. package/src/lib/context/CLIContext.cjs +17 -17
  451. package/src/lib/context/CLIContext.mjs +17 -17
  452. package/src/lib/context/HTTPContext.cjs +17 -17
  453. package/src/lib/context/HTTPContext.mjs +17 -17
  454. package/src/lib/context/ServiceContext.cjs +17 -17
  455. package/src/lib/context/ServiceContext.mjs +17 -17
  456. package/src/lib/core/Alias.cjs +4 -4
  457. package/src/lib/core/Alias.mjs +4 -4
  458. package/src/lib/core/Application.cjs +110 -110
  459. package/src/lib/core/Application.mjs +110 -110
  460. package/src/lib/core/Component.cjs +31 -31
  461. package/src/lib/core/Component.mjs +31 -31
  462. package/src/lib/core/Container.cjs +30 -30
  463. package/src/lib/core/Container.mjs +30 -30
  464. package/src/lib/core/DTO.cjs +17 -17
  465. package/src/lib/core/DTO.mjs +17 -17
  466. package/src/lib/core/Module.cjs +33 -33
  467. package/src/lib/core/Module.mjs +33 -33
  468. package/src/lib/core/Provider.cjs +30 -30
  469. package/src/lib/core/Provider.mjs +30 -30
  470. package/src/lib/core/Time.cjs +5 -5
  471. package/src/lib/core/Time.mjs +5 -5
  472. package/src/lib/helpers/ArrayToSet.cjs +1 -1
  473. package/src/lib/helpers/ArrayToSet.mjs +1 -1
  474. package/src/lib/helpers/As.cjs +1 -1
  475. package/src/lib/helpers/As.mjs +1 -1
  476. package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
  477. package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
  478. package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
  479. package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
  480. package/src/lib/helpers/Delay.cjs +1 -1
  481. package/src/lib/helpers/Delay.mjs +1 -1
  482. package/src/lib/helpers/DevNull.cjs +1 -1
  483. package/src/lib/helpers/DevNull.mjs +1 -1
  484. package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
  485. package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
  486. package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
  487. package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
  488. package/src/lib/helpers/Glob.cjs +4 -4
  489. package/src/lib/helpers/Glob.mjs +4 -4
  490. package/src/lib/helpers/GraceExit.cjs +1 -1
  491. package/src/lib/helpers/GraceExit.mjs +1 -1
  492. package/src/lib/helpers/HexToIEEE754.cjs +1 -1
  493. package/src/lib/helpers/HexToIEEE754.mjs +1 -1
  494. package/src/lib/helpers/HexToSigned.cjs +1 -1
  495. package/src/lib/helpers/HexToSigned.mjs +1 -1
  496. package/src/lib/helpers/HexToUnsigned.cjs +1 -1
  497. package/src/lib/helpers/HexToUnsigned.mjs +1 -1
  498. package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
  499. package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
  500. package/src/lib/helpers/IPToolkit.cjs +1 -1
  501. package/src/lib/helpers/IPToolkit.mjs +1 -1
  502. package/src/lib/helpers/IsAbortError.cjs +1 -1
  503. package/src/lib/helpers/IsAbortError.mjs +1 -1
  504. package/src/lib/helpers/IsEmptyObject.cjs +1 -1
  505. package/src/lib/helpers/IsEmptyObject.mjs +1 -1
  506. package/src/lib/helpers/IsExists.cjs +1 -1
  507. package/src/lib/helpers/IsExists.mjs +1 -1
  508. package/src/lib/helpers/IsGlobString.cjs +3 -3
  509. package/src/lib/helpers/IsGlobString.mjs +3 -3
  510. package/src/lib/helpers/IsHtml.cjs +2 -2
  511. package/src/lib/helpers/IsHtml.mjs +2 -2
  512. package/src/lib/helpers/IsNativeFunction.cjs +1 -1
  513. package/src/lib/helpers/IsNativeFunction.mjs +1 -1
  514. package/src/lib/helpers/IsPath.cjs +1 -1
  515. package/src/lib/helpers/IsPath.mjs +1 -1
  516. package/src/lib/helpers/IsPromise.cjs +1 -1
  517. package/src/lib/helpers/IsPromise.mjs +1 -1
  518. package/src/lib/helpers/IsPromiseLike.cjs +1 -1
  519. package/src/lib/helpers/IsPromiseLike.mjs +1 -1
  520. package/src/lib/helpers/IsSymbol.cjs +17 -17
  521. package/src/lib/helpers/IsSymbol.mjs +17 -17
  522. package/src/lib/helpers/IsXML.cjs +3 -3
  523. package/src/lib/helpers/IsXML.mjs +3 -3
  524. package/src/lib/helpers/MD5.cjs +3 -3
  525. package/src/lib/helpers/MD5.mjs +3 -3
  526. package/src/lib/helpers/MergeArray.cjs +1 -1
  527. package/src/lib/helpers/MergeArray.mjs +1 -1
  528. package/src/lib/helpers/MergeMap.cjs +1 -1
  529. package/src/lib/helpers/MergeMap.mjs +1 -1
  530. package/src/lib/helpers/MergeSet.cjs +1 -1
  531. package/src/lib/helpers/MergeSet.mjs +1 -1
  532. package/src/lib/helpers/NoCase.cjs +1 -1
  533. package/src/lib/helpers/NoCase.mjs +1 -1
  534. package/src/lib/helpers/NonceStr.cjs +3 -3
  535. package/src/lib/helpers/NonceStr.mjs +3 -3
  536. package/src/lib/helpers/ObjectConstructor.cjs +1 -1
  537. package/src/lib/helpers/ObjectConstructor.mjs +1 -1
  538. package/src/lib/helpers/ObjectHash.cjs +2 -2
  539. package/src/lib/helpers/ObjectHash.mjs +2 -2
  540. package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
  541. package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
  542. package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
  543. package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
  544. package/src/lib/helpers/ObjectPath.cjs +1 -1
  545. package/src/lib/helpers/ObjectPath.mjs +1 -1
  546. package/src/lib/helpers/ObjectPrototype.cjs +1 -1
  547. package/src/lib/helpers/ObjectPrototype.mjs +1 -1
  548. package/src/lib/helpers/ObjectToMap.cjs +1 -1
  549. package/src/lib/helpers/ObjectToMap.mjs +1 -1
  550. package/src/lib/helpers/Paginator.cjs +1 -1
  551. package/src/lib/helpers/Paginator.mjs +1 -1
  552. package/src/lib/helpers/RandomString.cjs +3 -3
  553. package/src/lib/helpers/RandomString.mjs +3 -3
  554. package/src/lib/helpers/SHA1.cjs +3 -3
  555. package/src/lib/helpers/SHA1.mjs +3 -3
  556. package/src/lib/helpers/SHA256.cjs +3 -3
  557. package/src/lib/helpers/SHA256.mjs +3 -3
  558. package/src/lib/helpers/SetToArray.cjs +1 -1
  559. package/src/lib/helpers/SetToArray.mjs +1 -1
  560. package/src/lib/helpers/SignedToHex.cjs +1 -1
  561. package/src/lib/helpers/SignedToHex.mjs +1 -1
  562. package/src/lib/helpers/SortArray.cjs +4 -4
  563. package/src/lib/helpers/SortArray.mjs +4 -4
  564. package/src/lib/helpers/SortKeys.cjs +1 -1
  565. package/src/lib/helpers/SortKeys.mjs +1 -1
  566. package/src/lib/helpers/SortObject.cjs +1 -1
  567. package/src/lib/helpers/SortObject.mjs +1 -1
  568. package/src/lib/helpers/Statistics.cjs +2 -2
  569. package/src/lib/helpers/Statistics.mjs +2 -2
  570. package/src/lib/helpers/Templating.cjs +1 -1
  571. package/src/lib/helpers/Templating.mjs +1 -1
  572. package/src/lib/helpers/URLBuilder.cjs +4 -4
  573. package/src/lib/helpers/URLBuilder.mjs +4 -4
  574. package/src/lib/helpers/UUID.cjs +2 -2
  575. package/src/lib/helpers/UUID.mjs +2 -2
  576. package/src/lib/helpers/UniqueArray.cjs +1 -1
  577. package/src/lib/helpers/UniqueArray.mjs +1 -1
  578. package/src/lib/helpers/UnsignedToHex.cjs +1 -1
  579. package/src/lib/helpers/UnsignedToHex.mjs +1 -1
  580. package/src/lib/ioc/DependencyInjectionContainer.cjs +30 -30
  581. package/src/lib/ioc/DependencyInjectionContainer.mjs +30 -30
  582. package/src/lib/ioc/Errors.cjs +17 -17
  583. package/src/lib/ioc/Errors.mjs +17 -17
  584. package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
  585. package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
  586. package/src/lib/ioc/InjectionMode.cjs +1 -1
  587. package/src/lib/ioc/InjectionMode.mjs +1 -1
  588. package/src/lib/ioc/Lifetime.cjs +1 -1
  589. package/src/lib/ioc/Lifetime.mjs +1 -1
  590. package/src/lib/ioc/ListModules.cjs +29 -29
  591. package/src/lib/ioc/ListModules.mjs +29 -29
  592. package/src/lib/ioc/LoadModules.cjs +17 -17
  593. package/src/lib/ioc/LoadModules.mjs +17 -17
  594. package/src/lib/ioc/ParamParser.cjs +1 -1
  595. package/src/lib/ioc/ParamParser.mjs +1 -1
  596. package/src/lib/ioc/Resolvers.cjs +17 -17
  597. package/src/lib/ioc/Resolvers.mjs +17 -17
  598. package/src/lib/ioc/Utils.cjs +17 -17
  599. package/src/lib/ioc/Utils.mjs +17 -17
  600. package/src/lib/validation/VLD.cjs +6 -6
  601. package/src/lib/validation/VLD.mjs +6 -6
  602. package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
  603. package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
  604. package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
  605. package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
  606. package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
  607. package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
  608. package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
  609. package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
  610. package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
  611. package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
  612. package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
  613. package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
  614. package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
  615. package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
  616. package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
  617. package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
  618. package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
  619. package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
  620. package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
  621. package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
  622. package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
  623. package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
  624. package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
  625. package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
  626. package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
  627. package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
  628. package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
  629. package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
  630. package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
  631. package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
  632. package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
  633. package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
  634. package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
  635. package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
  636. package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
  637. package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
  638. package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
  639. package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
  640. package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
  641. package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
  642. package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
  643. package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
  644. package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
  645. package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
  646. package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
  647. package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
  648. package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
  649. package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
  650. package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
  651. package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
  652. package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
  653. package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
  654. package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
  655. package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
  656. package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
  657. package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
  658. package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
  659. package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
  660. package/src/lib/validation/interfaces/Reference.cjs +1 -1
  661. package/src/lib/validation/interfaces/Reference.mjs +1 -1
  662. package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
  663. package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
  664. package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
  665. package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
  666. package/src/lib/validation/interfaces/State.cjs +1 -1
  667. package/src/lib/validation/interfaces/State.mjs +1 -1
  668. package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
  669. package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
  670. package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
  671. package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
  672. package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
  673. package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
  674. package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
  675. package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
  676. package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
  677. package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
  678. package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
  679. package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
  680. package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
  681. package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
  682. package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
  683. package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
  684. package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
  685. package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
  686. package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
  687. package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
  688. package/src/lib/validation/types/CustomValidator.cjs +1 -1
  689. package/src/lib/validation/types/CustomValidator.mjs +1 -1
  690. package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
  691. package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
  692. package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
  693. package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
  694. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
  695. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
  696. package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
  697. package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
  698. package/src/lib/validation/types/IsUnion.cjs +1 -1
  699. package/src/lib/validation/types/IsUnion.mjs +1 -1
  700. package/src/lib/validation/types/LanguageMessages.cjs +1 -1
  701. package/src/lib/validation/types/LanguageMessages.mjs +1 -1
  702. package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
  703. package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
  704. package/src/lib/validation/types/NullableType.cjs +1 -1
  705. package/src/lib/validation/types/NullableType.mjs +1 -1
  706. package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
  707. package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
  708. package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
  709. package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
  710. package/src/lib/validation/types/PresenceMode.cjs +1 -1
  711. package/src/lib/validation/types/PresenceMode.mjs +1 -1
  712. package/src/lib/validation/types/Primitives.cjs +1 -1
  713. package/src/lib/validation/types/Primitives.mjs +1 -1
  714. package/src/lib/validation/types/Schema.cjs +1 -1
  715. package/src/lib/validation/types/Schema.mjs +1 -1
  716. package/src/lib/validation/types/SchemaFunction.cjs +1 -1
  717. package/src/lib/validation/types/SchemaFunction.mjs +1 -1
  718. package/src/lib/validation/types/SchemaLike.cjs +1 -1
  719. package/src/lib/validation/types/SchemaLike.mjs +1 -1
  720. package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
  721. package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
  722. package/src/lib/validation/types/SchemaMap.cjs +1 -1
  723. package/src/lib/validation/types/SchemaMap.mjs +1 -1
  724. package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
  725. package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
  726. package/src/lib/validation/types/Types.cjs +1 -1
  727. package/src/lib/validation/types/Types.mjs +1 -1
  728. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
  729. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
  730. package/src/options/ApplicationOptions.cjs +30 -30
  731. package/src/options/ApplicationOptions.mjs +30 -30
  732. package/src/options/LoadAnonymousObjectOptions.cjs +30 -30
  733. package/src/options/LoadAnonymousObjectOptions.mjs +30 -30
  734. package/src/options/LoadNamedObjectOptions.cjs +30 -30
  735. package/src/options/LoadNamedObjectOptions.mjs +30 -30
  736. package/src/options/LoadObjectOptions.cjs +30 -30
  737. package/src/options/LoadObjectOptions.mjs +30 -30
  738. package/src/options/ModuleLoadObjectsOptions.cjs +30 -30
  739. package/src/options/ModuleLoadObjectsOptions.mjs +30 -30
  740. package/src/options/ModuleOptions.cjs +30 -30
  741. package/src/options/ModuleOptions.mjs +30 -30
  742. package/src/options/OverridableNamedObjectOptions.cjs +30 -30
  743. package/src/options/OverridableNamedObjectOptions.mjs +30 -30
  744. package/src/options/OverridableObjectOptions.cjs +30 -30
  745. package/src/options/OverridableObjectOptions.mjs +30 -30
  746. package/src/providers/Database.cjs +73 -73
  747. package/src/providers/Database.mjs +73 -73
  748. package/src/providers/PasswordHash.cjs +31 -31
  749. package/src/providers/PasswordHash.mjs +31 -31
  750. package/src/providers/migration/GenerateMigration.cjs +110 -110
  751. package/src/providers/migration/GenerateMigration.mjs +110 -110
  752. package/src/types/ActionPattern.cjs +1 -1
  753. package/src/types/ActionPattern.mjs +1 -1
  754. package/src/types/ClassDecorator.cjs +1 -1
  755. package/src/types/ClassDecorator.mjs +1 -1
  756. package/src/types/ComponentOptions.cjs +1 -1
  757. package/src/types/ComponentOptions.mjs +1 -1
  758. package/src/types/JSONSchema.cjs +1 -1
  759. package/src/types/JSONSchema.mjs +1 -1
  760. package/src/types/MethodDecorator.cjs +1 -1
  761. package/src/types/MethodDecorator.mjs +1 -1
  762. package/src/types/ModuleOptions.cjs +1 -1
  763. package/src/types/ModuleOptions.mjs +1 -1
  764. package/src/types/ObjectOptions.cjs +1 -1
  765. package/src/types/ObjectOptions.mjs +1 -1
  766. package/src/types/ParameterDecorator.cjs +1 -1
  767. package/src/types/ParameterDecorator.mjs +1 -1
  768. package/src/types/PropertyDecorator.cjs +1 -1
  769. package/src/types/PropertyDecorator.mjs +1 -1
  770. package/src/types/ProviderOptions.cjs +1 -1
  771. package/src/types/ProviderOptions.mjs +1 -1
  772. package/vendor/Package.internal.1.cjs +1 -1
  773. package/vendor/Package.internal.1.mjs +1 -1
  774. package/vendor/Package.internal.10.cjs +1 -1
  775. package/vendor/Package.internal.10.mjs +1 -1
  776. package/vendor/Package.internal.100.cjs +67 -2
  777. package/vendor/Package.internal.100.mjs +67 -2
  778. package/vendor/Package.internal.101.cjs +113 -102
  779. package/vendor/Package.internal.101.mjs +116 -93
  780. package/vendor/Package.internal.102.cjs +9 -81
  781. package/vendor/Package.internal.102.mjs +5 -81
  782. package/vendor/Package.internal.103.cjs +2 -56
  783. package/vendor/Package.internal.103.mjs +2 -52
  784. package/vendor/Package.internal.104.cjs +2 -18
  785. package/vendor/Package.internal.104.mjs +2 -18
  786. package/vendor/Package.internal.105.cjs +103 -87
  787. package/vendor/Package.internal.105.mjs +90 -88
  788. package/vendor/Package.internal.106.cjs +72 -97
  789. package/vendor/Package.internal.106.mjs +70 -99
  790. package/vendor/Package.internal.107.cjs +38 -2156
  791. package/vendor/Package.internal.107.mjs +37 -2159
  792. package/vendor/Package.internal.108.cjs +13 -2459
  793. package/vendor/Package.internal.108.mjs +13 -2429
  794. package/vendor/Package.internal.109.cjs +70 -1280
  795. package/vendor/Package.internal.109.mjs +73 -1269
  796. package/vendor/Package.internal.11.cjs +98 -100
  797. package/vendor/Package.internal.11.mjs +134 -134
  798. package/vendor/Package.internal.110.cjs +108 -28
  799. package/vendor/Package.internal.110.mjs +109 -27
  800. package/vendor/Package.internal.111.cjs +2169 -13
  801. package/vendor/Package.internal.111.mjs +2169 -13
  802. package/vendor/Package.internal.112.cjs +2456 -11
  803. package/vendor/Package.internal.112.mjs +2425 -12
  804. package/vendor/Package.internal.113.cjs +1289 -35
  805. package/vendor/Package.internal.113.mjs +1277 -37
  806. package/vendor/Package.internal.114.cjs +23 -131
  807. package/vendor/Package.internal.114.mjs +26 -136
  808. package/vendor/Package.internal.115.cjs +19 -1
  809. package/vendor/Package.internal.115.mjs +18 -1
  810. package/vendor/Package.internal.116.cjs +18 -3
  811. package/vendor/Package.internal.116.mjs +20 -3
  812. package/vendor/Package.internal.117.cjs +50 -2
  813. package/vendor/Package.internal.117.mjs +52 -2
  814. package/vendor/Package.internal.118.cjs +139 -2
  815. package/vendor/Package.internal.118.mjs +141 -2
  816. package/vendor/Package.internal.119.cjs +1 -3
  817. package/vendor/Package.internal.119.mjs +1 -2
  818. package/vendor/Package.internal.12.cjs +12469 -270
  819. package/vendor/Package.internal.12.mjs +12452 -271
  820. package/vendor/Package.internal.120.cjs +3 -46
  821. package/vendor/Package.internal.120.mjs +3 -46
  822. package/vendor/Package.internal.121.cjs +2 -12
  823. package/vendor/Package.internal.121.mjs +2 -14
  824. package/vendor/Package.internal.122.cjs +2 -10
  825. package/vendor/Package.internal.122.mjs +2 -12
  826. package/vendor/Package.internal.123.cjs +2 -18
  827. package/vendor/Package.internal.123.mjs +2 -18
  828. package/vendor/Package.internal.124.cjs +35 -104
  829. package/vendor/Package.internal.124.mjs +35 -104
  830. package/vendor/Package.internal.125.cjs +12 -16
  831. package/vendor/Package.internal.125.mjs +13 -15
  832. package/vendor/Package.internal.126.cjs +10 -17
  833. package/vendor/Package.internal.126.mjs +12 -17
  834. package/vendor/Package.internal.127.cjs +12 -8868
  835. package/vendor/Package.internal.127.mjs +12 -8868
  836. package/vendor/Package.internal.128.cjs +88 -869
  837. package/vendor/Package.internal.128.mjs +98 -879
  838. package/vendor/Package.internal.129.cjs +10 -6761
  839. package/vendor/Package.internal.129.mjs +10 -6769
  840. package/vendor/Package.internal.13.cjs +267 -701
  841. package/vendor/Package.internal.13.mjs +269 -703
  842. package/vendor/Package.internal.130.cjs +12 -466
  843. package/vendor/Package.internal.130.mjs +12 -454
  844. package/vendor/Package.internal.131.cjs +8819 -560
  845. package/vendor/Package.internal.131.mjs +8821 -558
  846. package/vendor/Package.internal.132.cjs +878 -76
  847. package/vendor/Package.internal.132.mjs +881 -73
  848. package/vendor/Package.internal.133.cjs +6767 -2
  849. package/vendor/Package.internal.133.mjs +6775 -2
  850. package/vendor/Package.internal.134.cjs +446 -3726
  851. package/vendor/Package.internal.134.mjs +440 -3732
  852. package/vendor/Package.internal.135.cjs +577 -521
  853. package/vendor/Package.internal.135.mjs +573 -521
  854. package/vendor/Package.internal.136.cjs +95 -2
  855. package/vendor/Package.internal.136.mjs +89 -2
  856. package/vendor/Package.internal.137.cjs +2 -2
  857. package/vendor/Package.internal.137.mjs +2 -2
  858. package/vendor/Package.internal.138.cjs +3751 -2
  859. package/vendor/Package.internal.138.mjs +3751 -2
  860. package/vendor/Package.internal.139.cjs +559 -2
  861. package/vendor/Package.internal.139.mjs +559 -2
  862. package/vendor/Package.internal.14.cjs +710 -905
  863. package/vendor/Package.internal.14.mjs +711 -894
  864. package/vendor/Package.internal.140.cjs +2 -2
  865. package/vendor/Package.internal.140.mjs +2 -2
  866. package/vendor/Package.internal.141.cjs +2 -2
  867. package/vendor/Package.internal.141.mjs +2 -2
  868. package/vendor/Package.internal.142.cjs +2 -2
  869. package/vendor/Package.internal.142.mjs +2 -2
  870. package/vendor/Package.internal.143.cjs +2 -2
  871. package/vendor/Package.internal.143.mjs +2 -2
  872. package/vendor/Package.internal.144.cjs +2 -2
  873. package/vendor/Package.internal.144.mjs +2 -2
  874. package/vendor/Package.internal.145.cjs +2 -2
  875. package/vendor/Package.internal.145.mjs +2 -2
  876. package/vendor/Package.internal.146.cjs +2 -2
  877. package/vendor/Package.internal.146.mjs +2 -2
  878. package/vendor/Package.internal.147.cjs +2 -406
  879. package/vendor/Package.internal.147.mjs +2 -400
  880. package/vendor/Package.internal.148.cjs +2 -102
  881. package/vendor/Package.internal.148.mjs +2 -104
  882. package/vendor/Package.internal.149.cjs +2 -25
  883. package/vendor/Package.internal.149.mjs +2 -27
  884. package/vendor/Package.internal.15.cjs +70 -40
  885. package/vendor/Package.internal.15.mjs +72 -44
  886. package/vendor/Package.internal.150.cjs +2 -2
  887. package/vendor/Package.internal.150.mjs +2 -2
  888. package/vendor/Package.internal.151.cjs +406 -2
  889. package/vendor/Package.internal.151.mjs +400 -2
  890. package/vendor/Package.internal.152.cjs +78 -697
  891. package/vendor/Package.internal.152.mjs +79 -698
  892. package/vendor/Package.internal.153.cjs +19 -1540
  893. package/vendor/Package.internal.153.mjs +21 -1534
  894. package/vendor/Package.internal.154.cjs +2 -362
  895. package/vendor/Package.internal.154.mjs +2 -364
  896. package/vendor/Package.internal.155.cjs +2 -105
  897. package/vendor/Package.internal.155.mjs +2 -107
  898. package/vendor/Package.internal.156.cjs +680 -593
  899. package/vendor/Package.internal.156.mjs +683 -582
  900. package/vendor/Package.internal.157.cjs +1444 -439
  901. package/vendor/Package.internal.157.mjs +1439 -432
  902. package/vendor/Package.internal.158.cjs +325 -566
  903. package/vendor/Package.internal.158.mjs +326 -567
  904. package/vendor/Package.internal.159.cjs +94 -126
  905. package/vendor/Package.internal.159.mjs +95 -119
  906. package/vendor/Package.internal.16.cjs +950 -232
  907. package/vendor/Package.internal.16.mjs +942 -236
  908. package/vendor/Package.internal.160.cjs +602 -85
  909. package/vendor/Package.internal.160.mjs +594 -83
  910. package/vendor/Package.internal.161.cjs +459 -1140
  911. package/vendor/Package.internal.161.mjs +460 -1141
  912. package/vendor/Package.internal.162.cjs +588 -73
  913. package/vendor/Package.internal.162.mjs +588 -81
  914. package/vendor/Package.internal.163.cjs +137 -2
  915. package/vendor/Package.internal.163.mjs +131 -2
  916. package/vendor/Package.internal.164.cjs +117 -2
  917. package/vendor/Package.internal.164.mjs +111 -2
  918. package/vendor/Package.internal.165.cjs +1204 -35
  919. package/vendor/Package.internal.165.mjs +1195 -36
  920. package/vendor/Package.internal.166.cjs +86 -6
  921. package/vendor/Package.internal.166.mjs +95 -7
  922. package/vendor/Package.internal.167.cjs +2 -10
  923. package/vendor/Package.internal.167.mjs +2 -6
  924. package/vendor/Package.internal.168.cjs +2 -163
  925. package/vendor/Package.internal.168.mjs +2 -163
  926. package/vendor/Package.internal.169.cjs +46 -14
  927. package/vendor/Package.internal.169.mjs +49 -9
  928. package/vendor/Package.internal.17.cjs +41 -429
  929. package/vendor/Package.internal.17.mjs +42 -430
  930. package/vendor/Package.internal.170.cjs +6 -247
  931. package/vendor/Package.internal.170.mjs +7 -246
  932. package/vendor/Package.internal.171.cjs +7 -944
  933. package/vendor/Package.internal.171.mjs +4 -945
  934. package/vendor/Package.internal.172.cjs +157 -19
  935. package/vendor/Package.internal.172.mjs +160 -24
  936. package/vendor/Package.internal.173.cjs +10 -67
  937. package/vendor/Package.internal.173.mjs +10 -67
  938. package/vendor/Package.internal.174.cjs +229 -633
  939. package/vendor/Package.internal.174.mjs +227 -631
  940. package/vendor/Package.internal.175.cjs +927 -55
  941. package/vendor/Package.internal.175.mjs +926 -54
  942. package/vendor/Package.internal.176.cjs +19 -1133
  943. package/vendor/Package.internal.176.mjs +25 -1031
  944. package/vendor/Package.internal.177.cjs +69 -59
  945. package/vendor/Package.internal.177.mjs +63 -59
  946. package/vendor/Package.internal.178.cjs +624 -81
  947. package/vendor/Package.internal.178.mjs +624 -81
  948. package/vendor/Package.internal.179.cjs +60 -85
  949. package/vendor/Package.internal.179.mjs +60 -85
  950. package/vendor/Package.internal.18.cjs +233 -528
  951. package/vendor/Package.internal.18.mjs +234 -523
  952. package/vendor/Package.internal.180.cjs +940 -45249
  953. package/vendor/Package.internal.180.mjs +869 -45268
  954. package/vendor/Package.internal.181.cjs +66 -4
  955. package/vendor/Package.internal.181.mjs +66 -4
  956. package/vendor/Package.internal.182.cjs +103 -21
  957. package/vendor/Package.internal.182.mjs +103 -21
  958. package/vendor/Package.internal.183.cjs +84 -299
  959. package/vendor/Package.internal.183.mjs +84 -299
  960. package/vendor/Package.internal.184.cjs +45316 -809
  961. package/vendor/Package.internal.184.mjs +45270 -789
  962. package/vendor/Package.internal.185.cjs +4 -1086
  963. package/vendor/Package.internal.185.mjs +4 -1088
  964. package/vendor/Package.internal.186.cjs +21 -156
  965. package/vendor/Package.internal.186.mjs +20 -157
  966. package/vendor/Package.internal.187.cjs +310 -8
  967. package/vendor/Package.internal.187.mjs +310 -8
  968. package/vendor/Package.internal.188.cjs +936 -7
  969. package/vendor/Package.internal.188.mjs +947 -8
  970. package/vendor/Package.internal.189.cjs +1072 -31
  971. package/vendor/Package.internal.189.mjs +1074 -31
  972. package/vendor/Package.internal.19.cjs +427 -217
  973. package/vendor/Package.internal.19.mjs +433 -223
  974. package/vendor/Package.internal.190.cjs +134 -462
  975. package/vendor/Package.internal.190.mjs +135 -441
  976. package/vendor/Package.internal.191.cjs +13 -2
  977. package/vendor/Package.internal.191.mjs +13 -2
  978. package/vendor/Package.internal.192.cjs +12 -2
  979. package/vendor/Package.internal.192.mjs +12 -2
  980. package/vendor/Package.internal.193.cjs +47 -2
  981. package/vendor/Package.internal.193.mjs +47 -2
  982. package/vendor/Package.internal.194.cjs +491 -2
  983. package/vendor/Package.internal.194.mjs +471 -2
  984. package/vendor/Package.internal.195.cjs +2 -2
  985. package/vendor/Package.internal.195.mjs +2 -2
  986. package/vendor/Package.internal.196.cjs +2 -2
  987. package/vendor/Package.internal.196.mjs +2 -2
  988. package/vendor/Package.internal.197.cjs +2 -2
  989. package/vendor/Package.internal.197.mjs +2 -2
  990. package/vendor/Package.internal.198.cjs +2 -2
  991. package/vendor/Package.internal.198.mjs +2 -2
  992. package/vendor/Package.internal.199.cjs +4 -0
  993. package/vendor/Package.internal.199.mjs +2 -0
  994. package/vendor/Package.internal.2.cjs +1 -1
  995. package/vendor/Package.internal.2.mjs +1 -1
  996. package/vendor/Package.internal.20.cjs +525 -957
  997. package/vendor/Package.internal.20.mjs +521 -959
  998. package/vendor/Package.internal.200.cjs +4 -0
  999. package/vendor/Package.internal.200.mjs +2 -0
  1000. package/vendor/Package.internal.201.cjs +4 -0
  1001. package/vendor/Package.internal.201.mjs +2 -0
  1002. package/vendor/Package.internal.202.cjs +4 -0
  1003. package/vendor/Package.internal.202.mjs +2 -0
  1004. package/vendor/Package.internal.21.cjs +406 -8
  1005. package/vendor/Package.internal.21.mjs +408 -8
  1006. package/vendor/Package.internal.22.cjs +913 -123
  1007. package/vendor/Package.internal.22.mjs +909 -123
  1008. package/vendor/Package.internal.23.cjs +214 -136
  1009. package/vendor/Package.internal.23.mjs +215 -135
  1010. package/vendor/Package.internal.24.cjs +996 -5
  1011. package/vendor/Package.internal.24.mjs +998 -5
  1012. package/vendor/Package.internal.25.cjs +8 -20
  1013. package/vendor/Package.internal.25.mjs +7 -19
  1014. package/vendor/Package.internal.26.cjs +120 -473
  1015. package/vendor/Package.internal.26.mjs +120 -469
  1016. package/vendor/Package.internal.27.cjs +127 -60
  1017. package/vendor/Package.internal.27.mjs +128 -57
  1018. package/vendor/Package.internal.28.cjs +6 -2
  1019. package/vendor/Package.internal.28.mjs +6 -2
  1020. package/vendor/Package.internal.29.cjs +16 -35
  1021. package/vendor/Package.internal.29.mjs +16 -35
  1022. package/vendor/Package.internal.3.cjs +1 -1
  1023. package/vendor/Package.internal.3.mjs +1 -1
  1024. package/vendor/Package.internal.30.cjs +473 -21
  1025. package/vendor/Package.internal.30.mjs +472 -24
  1026. package/vendor/Package.internal.31.cjs +77 -9
  1027. package/vendor/Package.internal.31.mjs +73 -9
  1028. package/vendor/Package.internal.32.cjs +2 -189
  1029. package/vendor/Package.internal.32.mjs +2 -191
  1030. package/vendor/Package.internal.33.cjs +31 -53
  1031. package/vendor/Package.internal.33.mjs +32 -54
  1032. package/vendor/Package.internal.34.cjs +20 -160
  1033. package/vendor/Package.internal.34.mjs +24 -166
  1034. package/vendor/Package.internal.35.cjs +10 -2072
  1035. package/vendor/Package.internal.35.mjs +10 -2068
  1036. package/vendor/Package.internal.36.cjs +186 -517
  1037. package/vendor/Package.internal.36.mjs +189 -512
  1038. package/vendor/Package.internal.37.cjs +57 -413
  1039. package/vendor/Package.internal.37.mjs +57 -409
  1040. package/vendor/Package.internal.38.cjs +132 -2329
  1041. package/vendor/Package.internal.38.mjs +133 -2318
  1042. package/vendor/Package.internal.39.cjs +2063 -50
  1043. package/vendor/Package.internal.39.mjs +2058 -57
  1044. package/vendor/Package.internal.4.cjs +1 -1
  1045. package/vendor/Package.internal.4.mjs +1 -1
  1046. package/vendor/Package.internal.40.cjs +507 -137
  1047. package/vendor/Package.internal.40.mjs +504 -140
  1048. package/vendor/Package.internal.41.cjs +355 -573
  1049. package/vendor/Package.internal.41.mjs +353 -577
  1050. package/vendor/Package.internal.42.cjs +2315 -196
  1051. package/vendor/Package.internal.42.mjs +2307 -200
  1052. package/vendor/Package.internal.43.cjs +57 -222
  1053. package/vendor/Package.internal.43.mjs +64 -217
  1054. package/vendor/Package.internal.44.cjs +150 -2
  1055. package/vendor/Package.internal.44.mjs +150 -2
  1056. package/vendor/Package.internal.45.cjs +591 -317
  1057. package/vendor/Package.internal.45.mjs +596 -316
  1058. package/vendor/Package.internal.46.cjs +236 -31
  1059. package/vendor/Package.internal.46.mjs +238 -31
  1060. package/vendor/Package.internal.47.cjs +217 -46
  1061. package/vendor/Package.internal.47.mjs +213 -46
  1062. package/vendor/Package.internal.48.cjs +2 -23
  1063. package/vendor/Package.internal.48.mjs +2 -23
  1064. package/vendor/Package.internal.49.cjs +354 -87
  1065. package/vendor/Package.internal.49.mjs +351 -82
  1066. package/vendor/Package.internal.5.cjs +1 -1
  1067. package/vendor/Package.internal.5.mjs +1 -1
  1068. package/vendor/Package.internal.50.cjs +33 -79
  1069. package/vendor/Package.internal.50.mjs +33 -79
  1070. package/vendor/Package.internal.51.cjs +46 -81
  1071. package/vendor/Package.internal.51.mjs +45 -68
  1072. package/vendor/Package.internal.52.cjs +18 -21
  1073. package/vendor/Package.internal.52.mjs +18 -21
  1074. package/vendor/Package.internal.53.cjs +78 -335
  1075. package/vendor/Package.internal.53.mjs +73 -336
  1076. package/vendor/Package.internal.54.cjs +86 -2
  1077. package/vendor/Package.internal.54.mjs +86 -2
  1078. package/vendor/Package.internal.55.cjs +64 -172
  1079. package/vendor/Package.internal.55.mjs +58 -174
  1080. package/vendor/Package.internal.56.cjs +23 -22
  1081. package/vendor/Package.internal.56.mjs +23 -24
  1082. package/vendor/Package.internal.57.cjs +353 -2
  1083. package/vendor/Package.internal.57.mjs +353 -2
  1084. package/vendor/Package.internal.58.cjs +2 -198
  1085. package/vendor/Package.internal.58.mjs +2 -200
  1086. package/vendor/Package.internal.59.cjs +127 -3945
  1087. package/vendor/Package.internal.59.mjs +126 -3958
  1088. package/vendor/Package.internal.6.cjs +2 -2
  1089. package/vendor/Package.internal.6.mjs +2 -2
  1090. package/vendor/Package.internal.60.cjs +25 -2
  1091. package/vendor/Package.internal.60.mjs +27 -2
  1092. package/vendor/Package.internal.61.cjs +2 -319
  1093. package/vendor/Package.internal.61.mjs +2 -321
  1094. package/vendor/Package.internal.62.cjs +175 -340
  1095. package/vendor/Package.internal.62.mjs +177 -340
  1096. package/vendor/Package.internal.63.cjs +3959 -343
  1097. package/vendor/Package.internal.63.mjs +3967 -335
  1098. package/vendor/Package.internal.64.cjs +2 -125
  1099. package/vendor/Package.internal.64.mjs +2 -125
  1100. package/vendor/Package.internal.65.cjs +314 -24
  1101. package/vendor/Package.internal.65.mjs +316 -24
  1102. package/vendor/Package.internal.66.cjs +347 -69
  1103. package/vendor/Package.internal.66.mjs +350 -72
  1104. package/vendor/Package.internal.67.cjs +386 -44
  1105. package/vendor/Package.internal.67.mjs +386 -50
  1106. package/vendor/Package.internal.68.cjs +115 -22
  1107. package/vendor/Package.internal.68.mjs +114 -21
  1108. package/vendor/Package.internal.69.cjs +29 -2
  1109. package/vendor/Package.internal.69.mjs +29 -2
  1110. package/vendor/Package.internal.7.cjs +1 -1
  1111. package/vendor/Package.internal.7.mjs +1 -1
  1112. package/vendor/Package.internal.70.cjs +67 -664
  1113. package/vendor/Package.internal.70.mjs +67 -644
  1114. package/vendor/Package.internal.71.cjs +41 -13876
  1115. package/vendor/Package.internal.71.mjs +41 -13852
  1116. package/vendor/Package.internal.72.cjs +26 -29
  1117. package/vendor/Package.internal.72.mjs +27 -26
  1118. package/vendor/Package.internal.73.cjs +2 -4075
  1119. package/vendor/Package.internal.73.mjs +2 -4077
  1120. package/vendor/Package.internal.74.cjs +654 -1634
  1121. package/vendor/Package.internal.74.mjs +633 -1635
  1122. package/vendor/Package.internal.75.cjs +13834 -197
  1123. package/vendor/Package.internal.75.mjs +13810 -197
  1124. package/vendor/Package.internal.76.cjs +25 -4952
  1125. package/vendor/Package.internal.76.mjs +23 -4940
  1126. package/vendor/Package.internal.77.cjs +3975 -1137
  1127. package/vendor/Package.internal.77.mjs +3979 -1127
  1128. package/vendor/Package.internal.78.cjs +1635 -311
  1129. package/vendor/Package.internal.78.mjs +1637 -299
  1130. package/vendor/Package.internal.79.cjs +248 -23
  1131. package/vendor/Package.internal.79.mjs +251 -26
  1132. package/vendor/Package.internal.8.cjs +1 -1
  1133. package/vendor/Package.internal.8.mjs +1 -1
  1134. package/vendor/Package.internal.80.cjs +4941 -65
  1135. package/vendor/Package.internal.80.mjs +4926 -66
  1136. package/vendor/Package.internal.81.cjs +1221 -37
  1137. package/vendor/Package.internal.81.mjs +1208 -38
  1138. package/vendor/Package.internal.82.cjs +334 -9
  1139. package/vendor/Package.internal.82.mjs +322 -9
  1140. package/vendor/Package.internal.83.cjs +32 -1353
  1141. package/vendor/Package.internal.83.mjs +32 -1355
  1142. package/vendor/Package.internal.84.cjs +82 -6
  1143. package/vendor/Package.internal.84.mjs +86 -4
  1144. package/vendor/Package.internal.85.cjs +53 -2
  1145. package/vendor/Package.internal.85.mjs +55 -2
  1146. package/vendor/Package.internal.86.cjs +8 -344
  1147. package/vendor/Package.internal.86.mjs +8 -346
  1148. package/vendor/Package.internal.87.cjs +1351 -76
  1149. package/vendor/Package.internal.87.mjs +1352 -77
  1150. package/vendor/Package.internal.88.cjs +6 -1439
  1151. package/vendor/Package.internal.88.mjs +4 -1431
  1152. package/vendor/Package.internal.89.cjs +2 -142
  1153. package/vendor/Package.internal.89.mjs +2 -142
  1154. package/vendor/Package.internal.9.cjs +1 -1
  1155. package/vendor/Package.internal.9.mjs +1 -1
  1156. package/vendor/Package.internal.90.cjs +274 -1745
  1157. package/vendor/Package.internal.90.mjs +275 -1738
  1158. package/vendor/Package.internal.91.cjs +67 -117
  1159. package/vendor/Package.internal.91.mjs +69 -113
  1160. package/vendor/Package.internal.92.cjs +1388 -151
  1161. package/vendor/Package.internal.92.mjs +1377 -152
  1162. package/vendor/Package.internal.93.cjs +94 -1591
  1163. package/vendor/Package.internal.93.mjs +94 -1593
  1164. package/vendor/Package.internal.94.cjs +1802 -54
  1165. package/vendor/Package.internal.94.mjs +1799 -59
  1166. package/vendor/Package.internal.95.cjs +126 -24
  1167. package/vendor/Package.internal.95.mjs +121 -25
  1168. package/vendor/Package.internal.96.cjs +189 -50
  1169. package/vendor/Package.internal.96.mjs +194 -53
  1170. package/vendor/Package.internal.97.cjs +1611 -93
  1171. package/vendor/Package.internal.97.mjs +1615 -95
  1172. package/vendor/Package.internal.98.cjs +66 -8
  1173. package/vendor/Package.internal.98.mjs +71 -5
  1174. package/vendor/Package.internal.99.cjs +26 -2
  1175. package/vendor/Package.internal.99.mjs +28 -2
@@ -1,2466 +1,20 @@
1
- /* Build Date: Mon Nov 24 2025 17:58:53 GMT+0800 (China Standard Time) */
1
+ /* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
2
2
  "use strict";
3
3
 
4
- const t = require("node:path");
4
+ const r = require("./Package.internal.54.cjs");
5
5
 
6
- const e = require("node:url");
6
+ var e;
7
7
 
8
- const i = require("fs");
8
+ var t;
9
9
 
10
- const s = require("node:fs");
11
-
12
- const n = require("node:fs/promises");
13
-
14
- const r = require("./Package.internal.109.cjs");
15
-
16
- function h(t) {
17
- if (t && t.__esModule) return t;
18
- const e = Object.create(null, {
19
- [Symbol.toStringTag]: {
20
- value: "Module"
21
- }
22
- });
23
- if (t) {
24
- for (const i in t) {
25
- if (i !== "default") {
26
- const s = Object.getOwnPropertyDescriptor(t, i);
27
- Object.defineProperty(e, i, s.get ? s : {
28
- enumerable: true,
29
- get: () => t[i]
30
- });
31
- }
32
- }
33
- }
34
- e.default = t;
35
- return Object.freeze(e);
36
- }
37
-
38
- const a = h(s);
39
-
40
- const o = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
41
-
42
- const l = new Set;
43
-
44
- const c = typeof process === "object" && !!process ? process : {};
45
-
46
- const d = (t, e, i, s) => {
47
- typeof c.emitWarning === "function" ? c.emitWarning(t, e, i, s) : console.error(`[${i}] ${e}: ${t}`);
48
- };
49
-
50
- let f = globalThis.AbortController;
51
-
52
- let u = globalThis.AbortSignal;
53
-
54
- if (typeof f === "undefined") {
55
- u = class AbortSignal {
56
- onabort;
57
- _onabort=[];
58
- reason;
59
- aborted=false;
60
- addEventListener(t, e) {
61
- this._onabort.push(e);
62
- }
63
- };
64
- f = class AbortController {
65
- constructor() {
66
- e();
67
- }
68
- signal=new u;
69
- abort(t) {
70
- if (this.signal.aborted) return;
71
- this.signal.reason = t;
72
- this.signal.aborted = true;
73
- for (const e of this.signal._onabort) {
74
- e(t);
75
- }
76
- this.signal.onabort?.(t);
77
- }
78
- };
79
- let t = c.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
80
- const e = () => {
81
- if (!t) return;
82
- t = false;
83
- d("AbortController is not defined. If using lru-cache in " + "node 14, load an AbortController polyfill from the " + "`node-abort-controller` package. A minimal polyfill is " + "provided for use by LRUCache.fetch(), but it should not be " + "relied upon in other contexts (eg, passing it to other APIs that " + "use AbortController/AbortSignal might have undesirable effects). " + "You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e);
84
- };
85
- }
86
-
87
- const p = t => !l.has(t);
88
-
89
- const y = t => t && t === Math.floor(t) && t > 0 && isFinite(t);
90
-
91
- const g = t => !y(t) ? null : t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
92
-
93
- class ZeroArray extends Array {
94
- constructor(t) {
95
- super(t);
96
- this.fill(0);
97
- }
98
- }
99
-
100
- class Stack {
101
- heap;
102
- length;
103
- static #t=false;
104
- static create(t) {
105
- const e = g(t);
106
- if (!e) return [];
107
- Stack.#t = true;
108
- const i = new Stack(t, e);
109
- Stack.#t = false;
110
- return i;
111
- }
112
- constructor(t, e) {
113
- if (!Stack.#t) {
114
- throw new TypeError("instantiate Stack using Stack.create(n)");
115
- }
116
- this.heap = new e(t);
117
- this.length = 0;
118
- }
119
- push(t) {
120
- this.heap[this.length++] = t;
121
- }
122
- pop() {
123
- return this.heap[--this.length];
124
- }
125
- }
126
-
127
- class LRUCache {
128
- #e;
129
- #i;
130
- #s;
131
- #n;
132
- #r;
133
- #h;
134
- #a;
135
- #o;
136
- get perf() {
137
- return this.#o;
138
- }
139
- ttl;
140
- ttlResolution;
141
- ttlAutopurge;
142
- updateAgeOnGet;
143
- updateAgeOnHas;
144
- allowStale;
145
- noDisposeOnSet;
146
- noUpdateTTL;
147
- maxEntrySize;
148
- sizeCalculation;
149
- noDeleteOnFetchRejection;
150
- noDeleteOnStaleGet;
151
- allowStaleOnFetchAbort;
152
- allowStaleOnFetchRejection;
153
- ignoreFetchAbort;
154
- #l;
155
- #c;
156
- #d;
157
- #f;
158
- #u;
159
- #p;
160
- #y;
161
- #g;
162
- #w;
163
- #m;
164
- #S;
165
- #v;
166
- #k;
167
- #F;
168
- #T;
169
- #x;
170
- #b;
171
- #z;
172
- static unsafeExposeInternals(t) {
173
- return {
174
- starts: t.#k,
175
- ttls: t.#F,
176
- sizes: t.#v,
177
- keyMap: t.#d,
178
- keyList: t.#f,
179
- valList: t.#u,
180
- next: t.#p,
181
- prev: t.#y,
182
- get head() {
183
- return t.#g;
184
- },
185
- get tail() {
186
- return t.#w;
187
- },
188
- free: t.#m,
189
- isBackgroundFetch: e => t.#L(e),
190
- backgroundFetch: (e, i, s, n) => t.#A(e, i, s, n),
191
- moveToTail: e => t.#C(e),
192
- indexes: e => t.#P(e),
193
- rindexes: e => t.#O(e),
194
- isStale: e => t.#R(e)
195
- };
196
- }
197
- get max() {
198
- return this.#e;
199
- }
200
- get maxSize() {
201
- return this.#i;
202
- }
203
- get calculatedSize() {
204
- return this.#c;
205
- }
206
- get size() {
207
- return this.#l;
208
- }
209
- get fetchMethod() {
210
- return this.#h;
211
- }
212
- get memoMethod() {
213
- return this.#a;
214
- }
215
- get dispose() {
216
- return this.#s;
217
- }
218
- get onInsert() {
219
- return this.#n;
220
- }
221
- get disposeAfter() {
222
- return this.#r;
223
- }
224
- constructor(t) {
225
- const {max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: h, allowStale: a, dispose: c, onInsert: f, disposeAfter: u, noDisposeOnSet: w, noUpdateTTL: m, maxSize: S = 0, maxEntrySize: v = 0, sizeCalculation: k, fetchMethod: F, memoMethod: T, noDeleteOnFetchRejection: x, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: z, allowStaleOnFetchAbort: L, ignoreFetchAbort: A, perf: C} = t;
226
- if (C !== undefined) {
227
- if (typeof C?.now !== "function") {
228
- throw new TypeError("perf option must have a now() method if specified");
229
- }
230
- }
231
- this.#o = C ?? o;
232
- if (e !== 0 && !y(e)) {
233
- throw new TypeError("max option must be a nonnegative integer");
234
- }
235
- const P = e ? g(e) : Array;
236
- if (!P) {
237
- throw new Error("invalid max value: " + e);
238
- }
239
- this.#e = e;
240
- this.#i = S;
241
- this.maxEntrySize = v || this.#i;
242
- this.sizeCalculation = k;
243
- if (this.sizeCalculation) {
244
- if (!this.#i && !this.maxEntrySize) {
245
- throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
246
- }
247
- if (typeof this.sizeCalculation !== "function") {
248
- throw new TypeError("sizeCalculation set to non-function");
249
- }
250
- }
251
- if (T !== undefined && typeof T !== "function") {
252
- throw new TypeError("memoMethod must be a function if defined");
253
- }
254
- this.#a = T;
255
- if (F !== undefined && typeof F !== "function") {
256
- throw new TypeError("fetchMethod must be a function if specified");
257
- }
258
- this.#h = F;
259
- this.#x = !!F;
260
- this.#d = new Map;
261
- this.#f = new Array(e).fill(undefined);
262
- this.#u = new Array(e).fill(undefined);
263
- this.#p = new P(e);
264
- this.#y = new P(e);
265
- this.#g = 0;
266
- this.#w = 0;
267
- this.#m = Stack.create(e);
268
- this.#l = 0;
269
- this.#c = 0;
270
- if (typeof c === "function") {
271
- this.#s = c;
272
- }
273
- if (typeof f === "function") {
274
- this.#n = f;
275
- }
276
- if (typeof u === "function") {
277
- this.#r = u;
278
- this.#S = [];
279
- } else {
280
- this.#r = undefined;
281
- this.#S = undefined;
282
- }
283
- this.#T = !!this.#s;
284
- this.#z = !!this.#n;
285
- this.#b = !!this.#r;
286
- this.noDisposeOnSet = !!w;
287
- this.noUpdateTTL = !!m;
288
- this.noDeleteOnFetchRejection = !!x;
289
- this.allowStaleOnFetchRejection = !!z;
290
- this.allowStaleOnFetchAbort = !!L;
291
- this.ignoreFetchAbort = !!A;
292
- if (this.maxEntrySize !== 0) {
293
- if (this.#i !== 0) {
294
- if (!y(this.#i)) {
295
- throw new TypeError("maxSize must be a positive integer if specified");
296
- }
297
- }
298
- if (!y(this.maxEntrySize)) {
299
- throw new TypeError("maxEntrySize must be a positive integer if specified");
300
- }
301
- this.#E();
302
- }
303
- this.allowStale = !!a;
304
- this.noDeleteOnStaleGet = !!b;
305
- this.updateAgeOnGet = !!r;
306
- this.updateAgeOnHas = !!h;
307
- this.ttlResolution = y(s) || s === 0 ? s : 1;
308
- this.ttlAutopurge = !!n;
309
- this.ttl = i || 0;
310
- if (this.ttl) {
311
- if (!y(this.ttl)) {
312
- throw new TypeError("ttl must be a positive integer if specified");
313
- }
314
- this.#_();
315
- }
316
- if (this.#e === 0 && this.ttl === 0 && this.#i === 0) {
317
- throw new TypeError("At least one of max, maxSize, or ttl is required");
318
- }
319
- if (!this.ttlAutopurge && !this.#e && !this.#i) {
320
- const t = "LRU_CACHE_UNBOUNDED";
321
- if (p(t)) {
322
- l.add(t);
323
- const e = "TTL caching without ttlAutopurge, max, or maxSize can " + "result in unbounded memory consumption.";
324
- d(e, "UnboundedCacheWarning", t, LRUCache);
325
- }
326
- }
327
- }
328
- getRemainingTTL(t) {
329
- return this.#d.has(t) ? Infinity : 0;
330
- }
331
- #_() {
332
- const t = new ZeroArray(this.#e);
333
- const e = new ZeroArray(this.#e);
334
- this.#F = t;
335
- this.#k = e;
336
- this.#D = (i, s, n = this.#o.now()) => {
337
- e[i] = s !== 0 ? n : 0;
338
- t[i] = s;
339
- if (s !== 0 && this.ttlAutopurge) {
340
- const t = setTimeout(() => {
341
- if (this.#R(i)) {
342
- this.#M(this.#f[i], "expire");
343
- }
344
- }, s + 1);
345
- if (t.unref) {
346
- t.unref();
347
- }
348
- }
349
- };
350
- this.#I = i => {
351
- e[i] = t[i] !== 0 ? this.#o.now() : 0;
352
- };
353
- this.#B = (n, r) => {
354
- if (t[r]) {
355
- const h = t[r];
356
- const a = e[r];
357
- if (!h || !a) return;
358
- n.ttl = h;
359
- n.start = a;
360
- n.now = i || s();
361
- const o = n.now - a;
362
- n.remainingTTL = h - o;
363
- }
364
- };
365
- let i = 0;
366
- const s = () => {
367
- const t = this.#o.now();
368
- if (this.ttlResolution > 0) {
369
- i = t;
370
- const e = setTimeout(() => i = 0, this.ttlResolution);
371
- if (e.unref) {
372
- e.unref();
373
- }
374
- }
375
- return t;
376
- };
377
- this.getRemainingTTL = n => {
378
- const r = this.#d.get(n);
379
- if (r === undefined) {
380
- return 0;
381
- }
382
- const h = t[r];
383
- const a = e[r];
384
- if (!h || !a) {
385
- return Infinity;
386
- }
387
- const o = (i || s()) - a;
388
- return h - o;
389
- };
390
- this.#R = n => {
391
- const r = e[n];
392
- const h = t[n];
393
- return !!h && !!r && (i || s()) - r > h;
394
- };
395
- }
396
- #I=() => {};
397
- #B=() => {};
398
- #D=() => {};
399
- #R=() => false;
400
- #E() {
401
- const t = new ZeroArray(this.#e);
402
- this.#c = 0;
403
- this.#v = t;
404
- this.#N = e => {
405
- this.#c -= t[e];
406
- t[e] = 0;
407
- };
408
- this.#W = (t, e, i, s) => {
409
- if (this.#L(e)) {
410
- return 0;
411
- }
412
- if (!y(i)) {
413
- if (s) {
414
- if (typeof s !== "function") {
415
- throw new TypeError("sizeCalculation must be a function");
416
- }
417
- i = s(e, t);
418
- if (!y(i)) {
419
- throw new TypeError("sizeCalculation return invalid (expect positive integer)");
420
- }
421
- } else {
422
- throw new TypeError("invalid size value (must be positive integer). " + "When maxSize or maxEntrySize is used, sizeCalculation " + "or size must be set.");
423
- }
424
- }
425
- return i;
426
- };
427
- this.#U = (e, i, s) => {
428
- t[e] = i;
429
- if (this.#i) {
430
- const i = this.#i - t[e];
431
- while (this.#c > i) {
432
- this.#j(true);
433
- }
434
- }
435
- this.#c += t[e];
436
- if (s) {
437
- s.entrySize = i;
438
- s.totalCalculatedSize = this.#c;
439
- }
440
- };
441
- }
442
- #N=t => {};
443
- #U=(t, e, i) => {};
444
- #W=(t, e, i, s) => {
445
- if (i || s) {
446
- throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
447
- }
448
- return 0;
449
- };
450
- * #P({allowStale: t = this.allowStale} = {}) {
451
- if (this.#l) {
452
- for (let e = this.#w; true; ) {
453
- if (!this.#G(e)) {
454
- break;
455
- }
456
- if (t || !this.#R(e)) {
457
- yield e;
458
- }
459
- if (e === this.#g) {
460
- break;
461
- } else {
462
- e = this.#y[e];
463
- }
464
- }
465
- }
466
- }
467
- * #O({allowStale: t = this.allowStale} = {}) {
468
- if (this.#l) {
469
- for (let e = this.#g; true; ) {
470
- if (!this.#G(e)) {
471
- break;
472
- }
473
- if (t || !this.#R(e)) {
474
- yield e;
475
- }
476
- if (e === this.#w) {
477
- break;
478
- } else {
479
- e = this.#p[e];
480
- }
481
- }
482
- }
483
- }
484
- #G(t) {
485
- return t !== undefined && this.#d.get(this.#f[t]) === t;
486
- }
487
- * entries() {
488
- for (const t of this.#P()) {
489
- if (this.#u[t] !== undefined && this.#f[t] !== undefined && !this.#L(this.#u[t])) {
490
- yield [ this.#f[t], this.#u[t] ];
491
- }
492
- }
493
- }
494
- * rentries() {
495
- for (const t of this.#O()) {
496
- if (this.#u[t] !== undefined && this.#f[t] !== undefined && !this.#L(this.#u[t])) {
497
- yield [ this.#f[t], this.#u[t] ];
498
- }
499
- }
500
- }
501
- * keys() {
502
- for (const t of this.#P()) {
503
- const e = this.#f[t];
504
- if (e !== undefined && !this.#L(this.#u[t])) {
505
- yield e;
506
- }
507
- }
508
- }
509
- * rkeys() {
510
- for (const t of this.#O()) {
511
- const e = this.#f[t];
512
- if (e !== undefined && !this.#L(this.#u[t])) {
513
- yield e;
514
- }
515
- }
516
- }
517
- * values() {
518
- for (const t of this.#P()) {
519
- const e = this.#u[t];
520
- if (e !== undefined && !this.#L(this.#u[t])) {
521
- yield this.#u[t];
522
- }
523
- }
524
- }
525
- * rvalues() {
526
- for (const t of this.#O()) {
527
- const e = this.#u[t];
528
- if (e !== undefined && !this.#L(this.#u[t])) {
529
- yield this.#u[t];
530
- }
531
- }
532
- }
533
- [Symbol.iterator]() {
534
- return this.entries();
535
- }
536
- [Symbol.toStringTag]="LRUCache";
537
- find(t, e = {}) {
538
- for (const i of this.#P()) {
539
- const s = this.#u[i];
540
- const n = this.#L(s) ? s.__staleWhileFetching : s;
541
- if (n === undefined) continue;
542
- if (t(n, this.#f[i], this)) {
543
- return this.get(this.#f[i], e);
544
- }
545
- }
546
- }
547
- forEach(t, e = this) {
548
- for (const i of this.#P()) {
549
- const s = this.#u[i];
550
- const n = this.#L(s) ? s.__staleWhileFetching : s;
551
- if (n === undefined) continue;
552
- t.call(e, n, this.#f[i], this);
553
- }
554
- }
555
- rforEach(t, e = this) {
556
- for (const i of this.#O()) {
557
- const s = this.#u[i];
558
- const n = this.#L(s) ? s.__staleWhileFetching : s;
559
- if (n === undefined) continue;
560
- t.call(e, n, this.#f[i], this);
561
- }
562
- }
563
- purgeStale() {
564
- let t = false;
565
- for (const e of this.#O({
566
- allowStale: true
567
- })) {
568
- if (this.#R(e)) {
569
- this.#M(this.#f[e], "expire");
570
- t = true;
571
- }
572
- }
573
- return t;
574
- }
575
- info(t) {
576
- const e = this.#d.get(t);
577
- if (e === undefined) return undefined;
578
- const i = this.#u[e];
579
- const s = this.#L(i) ? i.__staleWhileFetching : i;
580
- if (s === undefined) return undefined;
581
- const n = {
582
- value: s
583
- };
584
- if (this.#F && this.#k) {
585
- const t = this.#F[e];
586
- const i = this.#k[e];
587
- if (t && i) {
588
- const e = t - (this.#o.now() - i);
589
- n.ttl = e;
590
- n.start = Date.now();
591
- }
592
- }
593
- if (this.#v) {
594
- n.size = this.#v[e];
595
- }
596
- return n;
597
- }
598
- dump() {
599
- const t = [];
600
- for (const e of this.#P({
601
- allowStale: true
602
- })) {
603
- const i = this.#f[e];
604
- const s = this.#u[e];
605
- const n = this.#L(s) ? s.__staleWhileFetching : s;
606
- if (n === undefined || i === undefined) continue;
607
- const r = {
608
- value: n
609
- };
610
- if (this.#F && this.#k) {
611
- r.ttl = this.#F[e];
612
- const t = this.#o.now() - this.#k[e];
613
- r.start = Math.floor(Date.now() - t);
614
- }
615
- if (this.#v) {
616
- r.size = this.#v[e];
617
- }
618
- t.unshift([ i, r ]);
619
- }
620
- return t;
621
- }
622
- load(t) {
623
- this.clear();
624
- for (const [e, i] of t) {
625
- if (i.start) {
626
- const t = Date.now() - i.start;
627
- i.start = this.#o.now() - t;
628
- }
629
- this.set(e, i.value, i);
630
- }
631
- }
632
- set(t, e, i = {}) {
633
- if (e === undefined) {
634
- this.delete(t);
635
- return this;
636
- }
637
- const {ttl: s = this.ttl, start: n, noDisposeOnSet: r = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a} = i;
638
- let {noUpdateTTL: o = this.noUpdateTTL} = i;
639
- const l = this.#W(t, e, i.size || 0, h);
640
- if (this.maxEntrySize && l > this.maxEntrySize) {
641
- if (a) {
642
- a.set = "miss";
643
- a.maxEntrySizeExceeded = true;
644
- }
645
- this.#M(t, "set");
646
- return this;
647
- }
648
- let c = this.#l === 0 ? undefined : this.#d.get(t);
649
- if (c === undefined) {
650
- c = this.#l === 0 ? this.#w : this.#m.length !== 0 ? this.#m.pop() : this.#l === this.#e ? this.#j(false) : this.#l;
651
- this.#f[c] = t;
652
- this.#u[c] = e;
653
- this.#d.set(t, c);
654
- this.#p[this.#w] = c;
655
- this.#y[c] = this.#w;
656
- this.#w = c;
657
- this.#l++;
658
- this.#U(c, l, a);
659
- if (a) a.set = "add";
660
- o = false;
661
- if (this.#z) {
662
- this.#n?.(e, t, "add");
663
- }
664
- } else {
665
- this.#C(c);
666
- const i = this.#u[c];
667
- if (e !== i) {
668
- if (this.#x && this.#L(i)) {
669
- i.__abortController.abort(new Error("replaced"));
670
- const {__staleWhileFetching: e} = i;
671
- if (e !== undefined && !r) {
672
- if (this.#T) {
673
- this.#s?.(e, t, "set");
674
- }
675
- if (this.#b) {
676
- this.#S?.push([ e, t, "set" ]);
677
- }
678
- }
679
- } else if (!r) {
680
- if (this.#T) {
681
- this.#s?.(i, t, "set");
682
- }
683
- if (this.#b) {
684
- this.#S?.push([ i, t, "set" ]);
685
- }
686
- }
687
- this.#N(c);
688
- this.#U(c, l, a);
689
- this.#u[c] = e;
690
- if (a) {
691
- a.set = "replace";
692
- const t = i && this.#L(i) ? i.__staleWhileFetching : i;
693
- if (t !== undefined) a.oldValue = t;
694
- }
695
- } else if (a) {
696
- a.set = "update";
697
- }
698
- if (this.#z) {
699
- this.onInsert?.(e, t, e === i ? "update" : "replace");
700
- }
701
- }
702
- if (s !== 0 && !this.#F) {
703
- this.#_();
704
- }
705
- if (this.#F) {
706
- if (!o) {
707
- this.#D(c, s, n);
708
- }
709
- if (a) this.#B(a, c);
710
- }
711
- if (!r && this.#b && this.#S) {
712
- const t = this.#S;
713
- let e;
714
- while (e = t?.shift()) {
715
- this.#r?.(...e);
716
- }
717
- }
718
- return this;
719
- }
720
- pop() {
721
- try {
722
- while (this.#l) {
723
- const t = this.#u[this.#g];
724
- this.#j(true);
725
- if (this.#L(t)) {
726
- if (t.__staleWhileFetching) {
727
- return t.__staleWhileFetching;
728
- }
729
- } else if (t !== undefined) {
730
- return t;
731
- }
732
- }
733
- } finally {
734
- if (this.#b && this.#S) {
735
- const t = this.#S;
736
- let e;
737
- while (e = t?.shift()) {
738
- this.#r?.(...e);
739
- }
740
- }
741
- }
742
- }
743
- #j(t) {
744
- const e = this.#g;
745
- const i = this.#f[e];
746
- const s = this.#u[e];
747
- if (this.#x && this.#L(s)) {
748
- s.__abortController.abort(new Error("evicted"));
749
- } else if (this.#T || this.#b) {
750
- if (this.#T) {
751
- this.#s?.(s, i, "evict");
752
- }
753
- if (this.#b) {
754
- this.#S?.push([ s, i, "evict" ]);
755
- }
756
- }
757
- this.#N(e);
758
- if (t) {
759
- this.#f[e] = undefined;
760
- this.#u[e] = undefined;
761
- this.#m.push(e);
762
- }
763
- if (this.#l === 1) {
764
- this.#g = this.#w = 0;
765
- this.#m.length = 0;
766
- } else {
767
- this.#g = this.#p[e];
768
- }
769
- this.#d.delete(i);
770
- this.#l--;
771
- return e;
772
- }
773
- has(t, e = {}) {
774
- const {updateAgeOnHas: i = this.updateAgeOnHas, status: s} = e;
775
- const n = this.#d.get(t);
776
- if (n !== undefined) {
777
- const t = this.#u[n];
778
- if (this.#L(t) && t.__staleWhileFetching === undefined) {
779
- return false;
780
- }
781
- if (!this.#R(n)) {
782
- if (i) {
783
- this.#I(n);
784
- }
785
- if (s) {
786
- s.has = "hit";
787
- this.#B(s, n);
788
- }
789
- return true;
790
- } else if (s) {
791
- s.has = "stale";
792
- this.#B(s, n);
793
- }
794
- } else if (s) {
795
- s.has = "miss";
796
- }
797
- return false;
798
- }
799
- peek(t, e = {}) {
800
- const {allowStale: i = this.allowStale} = e;
801
- const s = this.#d.get(t);
802
- if (s === undefined || !i && this.#R(s)) {
803
- return;
804
- }
805
- const n = this.#u[s];
806
- return this.#L(n) ? n.__staleWhileFetching : n;
807
- }
808
- #A(t, e, i, s) {
809
- const n = e === undefined ? undefined : this.#u[e];
810
- if (this.#L(n)) {
811
- return n;
812
- }
813
- const r = new f;
814
- const {signal: h} = i;
815
- h?.addEventListener("abort", () => r.abort(h.reason), {
816
- signal: r.signal
817
- });
818
- const a = {
819
- signal: r.signal,
820
- options: i,
821
- context: s
822
- };
823
- const o = (s, n = false) => {
824
- const {aborted: h} = r.signal;
825
- const o = i.ignoreFetchAbort && s !== undefined;
826
- if (i.status) {
827
- if (h && !n) {
828
- i.status.fetchAborted = true;
829
- i.status.fetchError = r.signal.reason;
830
- if (o) i.status.fetchAbortIgnored = true;
831
- } else {
832
- i.status.fetchResolved = true;
833
- }
834
- }
835
- if (h && !o && !n) {
836
- return c(r.signal.reason);
837
- }
838
- const l = u;
839
- const d = this.#u[e];
840
- if (d === u || o && n && d === undefined) {
841
- if (s === undefined) {
842
- if (l.__staleWhileFetching !== undefined) {
843
- this.#u[e] = l.__staleWhileFetching;
844
- } else {
845
- this.#M(t, "fetch");
846
- }
847
- } else {
848
- if (i.status) i.status.fetchUpdated = true;
849
- this.set(t, s, a.options);
850
- }
851
- }
852
- return s;
853
- };
854
- const l = t => {
855
- if (i.status) {
856
- i.status.fetchRejected = true;
857
- i.status.fetchError = t;
858
- }
859
- return c(t);
860
- };
861
- const c = s => {
862
- const {aborted: n} = r.signal;
863
- const h = n && i.allowStaleOnFetchAbort;
864
- const a = h || i.allowStaleOnFetchRejection;
865
- const o = a || i.noDeleteOnFetchRejection;
866
- const l = u;
867
- if (this.#u[e] === u) {
868
- const i = !o || l.__staleWhileFetching === undefined;
869
- if (i) {
870
- this.#M(t, "fetch");
871
- } else if (!h) {
872
- this.#u[e] = l.__staleWhileFetching;
873
- }
874
- }
875
- if (a) {
876
- if (i.status && l.__staleWhileFetching !== undefined) {
877
- i.status.returnedStale = true;
878
- }
879
- return l.__staleWhileFetching;
880
- } else if (l.__returned === l) {
881
- throw s;
882
- }
883
- };
884
- const d = (e, s) => {
885
- const h = this.#h?.(t, n, a);
886
- if (h && h instanceof Promise) {
887
- h.then(t => e(t === undefined ? undefined : t), s);
888
- }
889
- r.signal.addEventListener("abort", () => {
890
- if (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) {
891
- e(undefined);
892
- if (i.allowStaleOnFetchAbort) {
893
- e = t => o(t, true);
894
- }
895
- }
896
- });
897
- };
898
- if (i.status) i.status.fetchDispatched = true;
899
- const u = new Promise(d).then(o, l);
900
- const p = Object.assign(u, {
901
- __abortController: r,
902
- __staleWhileFetching: n,
903
- __returned: undefined
904
- });
905
- if (e === undefined) {
906
- this.set(t, p, {
907
- ...a.options,
908
- status: undefined
909
- });
910
- e = this.#d.get(t);
911
- } else {
912
- this.#u[e] = p;
913
- }
914
- return p;
915
- }
916
- #L(t) {
917
- if (!this.#x) return false;
918
- const e = t;
919
- return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof f;
920
- }
921
- async fetch(t, e = {}) {
922
- const {allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: r = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: o = this.sizeCalculation, noUpdateTTL: l = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: u = this.allowStaleOnFetchAbort, context: p, forceRefresh: y = false, status: g, signal: w} = e;
923
- if (!this.#x) {
924
- if (g) g.fetch = "get";
925
- return this.get(t, {
926
- allowStale: i,
927
- updateAgeOnGet: s,
928
- noDeleteOnStaleGet: n,
929
- status: g
930
- });
931
- }
932
- const m = {
933
- allowStale: i,
934
- updateAgeOnGet: s,
935
- noDeleteOnStaleGet: n,
936
- ttl: r,
937
- noDisposeOnSet: h,
938
- size: a,
939
- sizeCalculation: o,
940
- noUpdateTTL: l,
941
- noDeleteOnFetchRejection: c,
942
- allowStaleOnFetchRejection: d,
943
- allowStaleOnFetchAbort: u,
944
- ignoreFetchAbort: f,
945
- status: g,
946
- signal: w
947
- };
948
- let S = this.#d.get(t);
949
- if (S === undefined) {
950
- if (g) g.fetch = "miss";
951
- const e = this.#A(t, S, m, p);
952
- return e.__returned = e;
953
- } else {
954
- const e = this.#u[S];
955
- if (this.#L(e)) {
956
- const t = i && e.__staleWhileFetching !== undefined;
957
- if (g) {
958
- g.fetch = "inflight";
959
- if (t) g.returnedStale = true;
960
- }
961
- return t ? e.__staleWhileFetching : e.__returned = e;
962
- }
963
- const n = this.#R(S);
964
- if (!y && !n) {
965
- if (g) g.fetch = "hit";
966
- this.#C(S);
967
- if (s) {
968
- this.#I(S);
969
- }
970
- if (g) this.#B(g, S);
971
- return e;
972
- }
973
- const r = this.#A(t, S, m, p);
974
- const h = r.__staleWhileFetching !== undefined;
975
- const a = h && i;
976
- if (g) {
977
- g.fetch = n ? "stale" : "refresh";
978
- if (a && n) g.returnedStale = true;
979
- }
980
- return a ? r.__staleWhileFetching : r.__returned = r;
981
- }
982
- }
983
- async forceFetch(t, e = {}) {
984
- const i = await this.fetch(t, e);
985
- if (i === undefined) throw new Error("fetch() returned undefined");
986
- return i;
987
- }
988
- memo(t, e = {}) {
989
- const i = this.#a;
990
- if (!i) {
991
- throw new Error("no memoMethod provided to constructor");
992
- }
993
- const {context: s, forceRefresh: n, ...r} = e;
994
- const h = this.get(t, r);
995
- if (!n && h !== undefined) return h;
996
- const a = i(t, h, {
997
- options: r,
998
- context: s
999
- });
1000
- this.set(t, a, r);
1001
- return a;
1002
- }
1003
- get(t, e = {}) {
1004
- const {allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: r} = e;
1005
- const h = this.#d.get(t);
1006
- if (h !== undefined) {
1007
- const e = this.#u[h];
1008
- const a = this.#L(e);
1009
- if (r) this.#B(r, h);
1010
- if (this.#R(h)) {
1011
- if (r) r.get = "stale";
1012
- if (!a) {
1013
- if (!n) {
1014
- this.#M(t, "expire");
1015
- }
1016
- if (r && i) r.returnedStale = true;
1017
- return i ? e : undefined;
1018
- } else {
1019
- if (r && i && e.__staleWhileFetching !== undefined) {
1020
- r.returnedStale = true;
1021
- }
1022
- return i ? e.__staleWhileFetching : undefined;
1023
- }
1024
- } else {
1025
- if (r) r.get = "hit";
1026
- if (a) {
1027
- return e.__staleWhileFetching;
1028
- }
1029
- this.#C(h);
1030
- if (s) {
1031
- this.#I(h);
1032
- }
1033
- return e;
1034
- }
1035
- } else if (r) {
1036
- r.get = "miss";
1037
- }
1038
- }
1039
- #q(t, e) {
1040
- this.#y[e] = t;
1041
- this.#p[t] = e;
1042
- }
1043
- #C(t) {
1044
- if (t !== this.#w) {
1045
- if (t === this.#g) {
1046
- this.#g = this.#p[t];
1047
- } else {
1048
- this.#q(this.#y[t], this.#p[t]);
1049
- }
1050
- this.#q(this.#w, t);
1051
- this.#w = t;
1052
- }
1053
- }
1054
- delete(t) {
1055
- return this.#M(t, "delete");
1056
- }
1057
- #M(t, e) {
1058
- let i = false;
1059
- if (this.#l !== 0) {
1060
- const s = this.#d.get(t);
1061
- if (s !== undefined) {
1062
- i = true;
1063
- if (this.#l === 1) {
1064
- this.#$(e);
1065
- } else {
1066
- this.#N(s);
1067
- const i = this.#u[s];
1068
- if (this.#L(i)) {
1069
- i.__abortController.abort(new Error("deleted"));
1070
- } else if (this.#T || this.#b) {
1071
- if (this.#T) {
1072
- this.#s?.(i, t, e);
1073
- }
1074
- if (this.#b) {
1075
- this.#S?.push([ i, t, e ]);
1076
- }
1077
- }
1078
- this.#d.delete(t);
1079
- this.#f[s] = undefined;
1080
- this.#u[s] = undefined;
1081
- if (s === this.#w) {
1082
- this.#w = this.#y[s];
1083
- } else if (s === this.#g) {
1084
- this.#g = this.#p[s];
1085
- } else {
1086
- const t = this.#y[s];
1087
- this.#p[t] = this.#p[s];
1088
- const e = this.#p[s];
1089
- this.#y[e] = this.#y[s];
1090
- }
1091
- this.#l--;
1092
- this.#m.push(s);
1093
- }
1094
- }
1095
- }
1096
- if (this.#b && this.#S?.length) {
1097
- const t = this.#S;
1098
- let e;
1099
- while (e = t?.shift()) {
1100
- this.#r?.(...e);
1101
- }
1102
- }
1103
- return i;
1104
- }
1105
- clear() {
1106
- return this.#$("delete");
1107
- }
1108
- #$(t) {
1109
- for (const e of this.#O({
1110
- allowStale: true
1111
- })) {
1112
- const i = this.#u[e];
1113
- if (this.#L(i)) {
1114
- i.__abortController.abort(new Error("deleted"));
1115
- } else {
1116
- const s = this.#f[e];
1117
- if (this.#T) {
1118
- this.#s?.(i, s, t);
1119
- }
1120
- if (this.#b) {
1121
- this.#S?.push([ i, s, t ]);
1122
- }
1123
- }
1124
- }
1125
- this.#d.clear();
1126
- this.#u.fill(undefined);
1127
- this.#f.fill(undefined);
1128
- if (this.#F && this.#k) {
1129
- this.#F.fill(0);
1130
- this.#k.fill(0);
1131
- }
1132
- if (this.#v) {
1133
- this.#v.fill(0);
1134
- }
1135
- this.#g = 0;
1136
- this.#w = 0;
1137
- this.#m.length = 0;
1138
- this.#c = 0;
1139
- this.#l = 0;
1140
- if (this.#b && this.#S) {
1141
- const t = this.#S;
1142
- let e;
1143
- while (e = t?.shift()) {
1144
- this.#r?.(...e);
1145
- }
1146
- }
1147
- }
1148
- }
1149
-
1150
- const w = i.realpathSync.native;
1151
-
1152
- const m = {
1153
- lstatSync: i.lstatSync,
1154
- readdir: i.readdir,
1155
- readdirSync: i.readdirSync,
1156
- readlinkSync: i.readlinkSync,
1157
- realpathSync: w,
1158
- promises: {
1159
- lstat: n.lstat,
1160
- readdir: n.readdir,
1161
- readlink: n.readlink,
1162
- realpath: n.realpath
1163
- }
1164
- };
1165
-
1166
- const S = t => !t || t === m || t === a ? m : {
1167
- ...m,
1168
- ...t,
1169
- promises: {
1170
- ...m.promises,
1171
- ...t.promises || {}
1172
- }
1173
- };
1174
-
1175
- const v = /^\\\\\?\\([a-z]:)\\?$/i;
1176
-
1177
- const k = t => t.replace(/\//g, "\\").replace(v, "$1\\");
1178
-
1179
- const F = /[\\\/]/;
1180
-
1181
- const T = 0;
1182
-
1183
- const x = 1;
1184
-
1185
- const b = 2;
1186
-
1187
- const z = 4;
1188
-
1189
- const L = 6;
1190
-
1191
- const A = 8;
1192
-
1193
- const C = 10;
1194
-
1195
- const P = 12;
1196
-
1197
- const O = 15;
1198
-
1199
- const R = ~O;
1200
-
1201
- const E = 16;
1202
-
1203
- const _ = 32;
1204
-
1205
- const D = 64;
1206
-
1207
- const M = 128;
1208
-
1209
- const I = 256;
1210
-
1211
- const B = 512;
1212
-
1213
- const N = D | M | B;
1214
-
1215
- const W = 1023;
1216
-
1217
- const U = t => t.isFile() ? A : t.isDirectory() ? z : t.isSymbolicLink() ? C : t.isCharacterDevice() ? b : t.isBlockDevice() ? L : t.isSocket() ? P : t.isFIFO() ? x : T;
1218
-
1219
- const j = new LRUCache({
1220
- max: 2 ** 12
1221
- });
1222
-
1223
- const G = t => {
1224
- const e = j.get(t);
1225
- if (e) return e;
1226
- const i = t.normalize("NFKD");
1227
- j.set(t, i);
1228
- return i;
1229
- };
1230
-
1231
- const q = new LRUCache({
1232
- max: 2 ** 12
1233
- });
1234
-
1235
- const $ = t => {
1236
- const e = q.get(t);
1237
- if (e) return e;
1238
- const i = G(t.toLowerCase());
1239
- q.set(t, i);
1240
- return i;
1241
- };
1242
-
1243
- class ResolveCache extends LRUCache {
1244
- constructor() {
1245
- super({
1246
- max: 256
1247
- });
1248
- }
10
+ function n() {
11
+ if (t) return e;
12
+ t = 1;
13
+ var n = Function.prototype.call;
14
+ var a = Object.prototype.hasOwnProperty;
15
+ var o = r.requireFunctionBind();
16
+ e = o.call(n, a);
17
+ return e;
1249
18
  }
1250
19
 
1251
- class ChildrenCache extends LRUCache {
1252
- constructor(t = 16 * 1024) {
1253
- super({
1254
- maxSize: t,
1255
- sizeCalculation: t => t.length + 1
1256
- });
1257
- }
1258
- }
1259
-
1260
- const H = Symbol("PathScurry setAsCwd");
1261
-
1262
- class PathBase {
1263
- name;
1264
- root;
1265
- roots;
1266
- parent;
1267
- nocase;
1268
- isCWD=false;
1269
- #H;
1270
- #V;
1271
- get dev() {
1272
- return this.#V;
1273
- }
1274
- #Z;
1275
- get mode() {
1276
- return this.#Z;
1277
- }
1278
- #K;
1279
- get nlink() {
1280
- return this.#K;
1281
- }
1282
- #X;
1283
- get uid() {
1284
- return this.#X;
1285
- }
1286
- #Y;
1287
- get gid() {
1288
- return this.#Y;
1289
- }
1290
- #J;
1291
- get rdev() {
1292
- return this.#J;
1293
- }
1294
- #Q;
1295
- get blksize() {
1296
- return this.#Q;
1297
- }
1298
- #tt;
1299
- get ino() {
1300
- return this.#tt;
1301
- }
1302
- #l;
1303
- get size() {
1304
- return this.#l;
1305
- }
1306
- #et;
1307
- get blocks() {
1308
- return this.#et;
1309
- }
1310
- #it;
1311
- get atimeMs() {
1312
- return this.#it;
1313
- }
1314
- #st;
1315
- get mtimeMs() {
1316
- return this.#st;
1317
- }
1318
- #nt;
1319
- get ctimeMs() {
1320
- return this.#nt;
1321
- }
1322
- #rt;
1323
- get birthtimeMs() {
1324
- return this.#rt;
1325
- }
1326
- #ht;
1327
- get atime() {
1328
- return this.#ht;
1329
- }
1330
- #at;
1331
- get mtime() {
1332
- return this.#at;
1333
- }
1334
- #ot;
1335
- get ctime() {
1336
- return this.#ot;
1337
- }
1338
- #lt;
1339
- get birthtime() {
1340
- return this.#lt;
1341
- }
1342
- #ct;
1343
- #dt;
1344
- #ft;
1345
- #ut;
1346
- #pt;
1347
- #yt;
1348
- #gt;
1349
- #wt;
1350
- #mt;
1351
- #St;
1352
- get parentPath() {
1353
- return (this.parent || this).fullpath();
1354
- }
1355
- get path() {
1356
- return this.parentPath;
1357
- }
1358
- constructor(t, e = T, i, s, n, r, h) {
1359
- this.name = t;
1360
- this.#ct = n ? $(t) : G(t);
1361
- this.#gt = e & W;
1362
- this.nocase = n;
1363
- this.roots = s;
1364
- this.root = i || this;
1365
- this.#wt = r;
1366
- this.#ft = h.fullpath;
1367
- this.#pt = h.relative;
1368
- this.#yt = h.relativePosix;
1369
- this.parent = h.parent;
1370
- if (this.parent) {
1371
- this.#H = this.parent.#H;
1372
- } else {
1373
- this.#H = S(h.fs);
1374
- }
1375
- }
1376
- depth() {
1377
- if (this.#dt !== undefined) return this.#dt;
1378
- if (!this.parent) return this.#dt = 0;
1379
- return this.#dt = this.parent.depth() + 1;
1380
- }
1381
- childrenCache() {
1382
- return this.#wt;
1383
- }
1384
- resolve(t) {
1385
- if (!t) {
1386
- return this;
1387
- }
1388
- const e = this.getRootString(t);
1389
- const i = t.substring(e.length);
1390
- const s = i.split(this.splitSep);
1391
- const n = e ? this.getRoot(e).#vt(s) : this.#vt(s);
1392
- return n;
1393
- }
1394
- #vt(t) {
1395
- let e = this;
1396
- for (const i of t) {
1397
- e = e.child(i);
1398
- }
1399
- return e;
1400
- }
1401
- children() {
1402
- const t = this.#wt.get(this);
1403
- if (t) {
1404
- return t;
1405
- }
1406
- const e = Object.assign([], {
1407
- provisional: 0
1408
- });
1409
- this.#wt.set(this, e);
1410
- this.#gt &= ~E;
1411
- return e;
1412
- }
1413
- child(t, e) {
1414
- if (t === "" || t === ".") {
1415
- return this;
1416
- }
1417
- if (t === "..") {
1418
- return this.parent || this;
1419
- }
1420
- const i = this.children();
1421
- const s = this.nocase ? $(t) : G(t);
1422
- for (const t of i) {
1423
- if (t.#ct === s) {
1424
- return t;
1425
- }
1426
- }
1427
- const n = this.parent ? this.sep : "";
1428
- const r = this.#ft ? this.#ft + n + t : undefined;
1429
- const h = this.newChild(t, T, {
1430
- ...e,
1431
- parent: this,
1432
- fullpath: r
1433
- });
1434
- if (!this.canReaddir()) {
1435
- h.#gt |= M;
1436
- }
1437
- i.push(h);
1438
- return h;
1439
- }
1440
- relative() {
1441
- if (this.isCWD) return "";
1442
- if (this.#pt !== undefined) {
1443
- return this.#pt;
1444
- }
1445
- const t = this.name;
1446
- const e = this.parent;
1447
- if (!e) {
1448
- return this.#pt = this.name;
1449
- }
1450
- const i = e.relative();
1451
- return i + (!i || !e.parent ? "" : this.sep) + t;
1452
- }
1453
- relativePosix() {
1454
- if (this.sep === "/") return this.relative();
1455
- if (this.isCWD) return "";
1456
- if (this.#yt !== undefined) return this.#yt;
1457
- const t = this.name;
1458
- const e = this.parent;
1459
- if (!e) {
1460
- return this.#yt = this.fullpathPosix();
1461
- }
1462
- const i = e.relativePosix();
1463
- return i + (!i || !e.parent ? "" : "/") + t;
1464
- }
1465
- fullpath() {
1466
- if (this.#ft !== undefined) {
1467
- return this.#ft;
1468
- }
1469
- const t = this.name;
1470
- const e = this.parent;
1471
- if (!e) {
1472
- return this.#ft = this.name;
1473
- }
1474
- const i = e.fullpath();
1475
- const s = i + (!e.parent ? "" : this.sep) + t;
1476
- return this.#ft = s;
1477
- }
1478
- fullpathPosix() {
1479
- if (this.#ut !== undefined) return this.#ut;
1480
- if (this.sep === "/") return this.#ut = this.fullpath();
1481
- if (!this.parent) {
1482
- const t = this.fullpath().replace(/\\/g, "/");
1483
- if (/^[a-z]:\//i.test(t)) {
1484
- return this.#ut = `//?/${t}`;
1485
- } else {
1486
- return this.#ut = t;
1487
- }
1488
- }
1489
- const t = this.parent;
1490
- const e = t.fullpathPosix();
1491
- const i = e + (!e || !t.parent ? "" : "/") + this.name;
1492
- return this.#ut = i;
1493
- }
1494
- isUnknown() {
1495
- return (this.#gt & O) === T;
1496
- }
1497
- isType(t) {
1498
- return this[`is${t}`]();
1499
- }
1500
- getType() {
1501
- return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
1502
- }
1503
- isFile() {
1504
- return (this.#gt & O) === A;
1505
- }
1506
- isDirectory() {
1507
- return (this.#gt & O) === z;
1508
- }
1509
- isCharacterDevice() {
1510
- return (this.#gt & O) === b;
1511
- }
1512
- isBlockDevice() {
1513
- return (this.#gt & O) === L;
1514
- }
1515
- isFIFO() {
1516
- return (this.#gt & O) === x;
1517
- }
1518
- isSocket() {
1519
- return (this.#gt & O) === P;
1520
- }
1521
- isSymbolicLink() {
1522
- return (this.#gt & C) === C;
1523
- }
1524
- lstatCached() {
1525
- return this.#gt & _ ? this : undefined;
1526
- }
1527
- readlinkCached() {
1528
- return this.#mt;
1529
- }
1530
- realpathCached() {
1531
- return this.#St;
1532
- }
1533
- readdirCached() {
1534
- const t = this.children();
1535
- return t.slice(0, t.provisional);
1536
- }
1537
- canReadlink() {
1538
- if (this.#mt) return true;
1539
- if (!this.parent) return false;
1540
- const t = this.#gt & O;
1541
- return !(t !== T && t !== C || this.#gt & I || this.#gt & M);
1542
- }
1543
- calledReaddir() {
1544
- return !!(this.#gt & E);
1545
- }
1546
- isENOENT() {
1547
- return !!(this.#gt & M);
1548
- }
1549
- isNamed(t) {
1550
- return !this.nocase ? this.#ct === G(t) : this.#ct === $(t);
1551
- }
1552
- async readlink() {
1553
- const t = this.#mt;
1554
- if (t) {
1555
- return t;
1556
- }
1557
- if (!this.canReadlink()) {
1558
- return undefined;
1559
- }
1560
- if (!this.parent) {
1561
- return undefined;
1562
- }
1563
- try {
1564
- const t = await this.#H.promises.readlink(this.fullpath());
1565
- const e = (await this.parent.realpath())?.resolve(t);
1566
- if (e) {
1567
- return this.#mt = e;
1568
- }
1569
- } catch (t) {
1570
- this.#kt(t.code);
1571
- return undefined;
1572
- }
1573
- }
1574
- readlinkSync() {
1575
- const t = this.#mt;
1576
- if (t) {
1577
- return t;
1578
- }
1579
- if (!this.canReadlink()) {
1580
- return undefined;
1581
- }
1582
- if (!this.parent) {
1583
- return undefined;
1584
- }
1585
- try {
1586
- const t = this.#H.readlinkSync(this.fullpath());
1587
- const e = this.parent.realpathSync()?.resolve(t);
1588
- if (e) {
1589
- return this.#mt = e;
1590
- }
1591
- } catch (t) {
1592
- this.#kt(t.code);
1593
- return undefined;
1594
- }
1595
- }
1596
- #Ft(t) {
1597
- this.#gt |= E;
1598
- for (let e = t.provisional; e < t.length; e++) {
1599
- const i = t[e];
1600
- if (i) i.#Tt();
1601
- }
1602
- }
1603
- #Tt() {
1604
- if (this.#gt & M) return;
1605
- this.#gt = (this.#gt | M) & R;
1606
- this.#xt();
1607
- }
1608
- #xt() {
1609
- const t = this.children();
1610
- t.provisional = 0;
1611
- for (const e of t) {
1612
- e.#Tt();
1613
- }
1614
- }
1615
- #bt() {
1616
- this.#gt |= B;
1617
- this.#zt();
1618
- }
1619
- #zt() {
1620
- if (this.#gt & D) return;
1621
- let t = this.#gt;
1622
- if ((t & O) === z) t &= R;
1623
- this.#gt = t | D;
1624
- this.#xt();
1625
- }
1626
- #Lt(t = "") {
1627
- if (t === "ENOTDIR" || t === "EPERM") {
1628
- this.#zt();
1629
- } else if (t === "ENOENT") {
1630
- this.#Tt();
1631
- } else {
1632
- this.children().provisional = 0;
1633
- }
1634
- }
1635
- #At(t = "") {
1636
- if (t === "ENOTDIR") {
1637
- const t = this.parent;
1638
- t.#zt();
1639
- } else if (t === "ENOENT") {
1640
- this.#Tt();
1641
- }
1642
- }
1643
- #kt(t = "") {
1644
- let e = this.#gt;
1645
- e |= I;
1646
- if (t === "ENOENT") e |= M;
1647
- if (t === "EINVAL" || t === "UNKNOWN") {
1648
- e &= R;
1649
- }
1650
- this.#gt = e;
1651
- if (t === "ENOTDIR" && this.parent) {
1652
- this.parent.#zt();
1653
- }
1654
- }
1655
- #Ct(t, e) {
1656
- return this.#Pt(t, e) || this.#Ot(t, e);
1657
- }
1658
- #Ot(t, e) {
1659
- const i = U(t);
1660
- const s = this.newChild(t.name, i, {
1661
- parent: this
1662
- });
1663
- const n = s.#gt & O;
1664
- if (n !== z && n !== C && n !== T) {
1665
- s.#gt |= D;
1666
- }
1667
- e.unshift(s);
1668
- e.provisional++;
1669
- return s;
1670
- }
1671
- #Pt(t, e) {
1672
- for (let i = e.provisional; i < e.length; i++) {
1673
- const s = e[i];
1674
- const n = this.nocase ? $(t.name) : G(t.name);
1675
- if (n !== s.#ct) {
1676
- continue;
1677
- }
1678
- return this.#Rt(t, s, i, e);
1679
- }
1680
- }
1681
- #Rt(t, e, i, s) {
1682
- const n = e.name;
1683
- e.#gt = e.#gt & R | U(t);
1684
- if (n !== t.name) e.name = t.name;
1685
- if (i !== s.provisional) {
1686
- if (i === s.length - 1) s.pop(); else s.splice(i, 1);
1687
- s.unshift(e);
1688
- }
1689
- s.provisional++;
1690
- return e;
1691
- }
1692
- async lstat() {
1693
- if ((this.#gt & M) === 0) {
1694
- try {
1695
- this.#Et(await this.#H.promises.lstat(this.fullpath()));
1696
- return this;
1697
- } catch (t) {
1698
- this.#At(t.code);
1699
- }
1700
- }
1701
- }
1702
- lstatSync() {
1703
- if ((this.#gt & M) === 0) {
1704
- try {
1705
- this.#Et(this.#H.lstatSync(this.fullpath()));
1706
- return this;
1707
- } catch (t) {
1708
- this.#At(t.code);
1709
- }
1710
- }
1711
- }
1712
- #Et(t) {
1713
- const {atime: e, atimeMs: i, birthtime: s, birthtimeMs: n, blksize: r, blocks: h, ctime: a, ctimeMs: o, dev: l, gid: c, ino: d, mode: f, mtime: u, mtimeMs: p, nlink: y, rdev: g, size: w, uid: m} = t;
1714
- this.#ht = e;
1715
- this.#it = i;
1716
- this.#lt = s;
1717
- this.#rt = n;
1718
- this.#Q = r;
1719
- this.#et = h;
1720
- this.#ot = a;
1721
- this.#nt = o;
1722
- this.#V = l;
1723
- this.#Y = c;
1724
- this.#tt = d;
1725
- this.#Z = f;
1726
- this.#at = u;
1727
- this.#st = p;
1728
- this.#K = y;
1729
- this.#J = g;
1730
- this.#l = w;
1731
- this.#X = m;
1732
- const S = U(t);
1733
- this.#gt = this.#gt & R | S | _;
1734
- if (S !== T && S !== z && S !== C) {
1735
- this.#gt |= D;
1736
- }
1737
- }
1738
- #_t=[];
1739
- #Dt=false;
1740
- #Mt(t) {
1741
- this.#Dt = false;
1742
- const e = this.#_t.slice();
1743
- this.#_t.length = 0;
1744
- e.forEach(e => e(null, t));
1745
- }
1746
- readdirCB(t, e = false) {
1747
- if (!this.canReaddir()) {
1748
- if (e) t(null, []); else queueMicrotask(() => t(null, []));
1749
- return;
1750
- }
1751
- const i = this.children();
1752
- if (this.calledReaddir()) {
1753
- const s = i.slice(0, i.provisional);
1754
- if (e) t(null, s); else queueMicrotask(() => t(null, s));
1755
- return;
1756
- }
1757
- this.#_t.push(t);
1758
- if (this.#Dt) {
1759
- return;
1760
- }
1761
- this.#Dt = true;
1762
- const s = this.fullpath();
1763
- this.#H.readdir(s, {
1764
- withFileTypes: true
1765
- }, (t, e) => {
1766
- if (t) {
1767
- this.#Lt(t.code);
1768
- i.provisional = 0;
1769
- } else {
1770
- for (const t of e) {
1771
- this.#Ct(t, i);
1772
- }
1773
- this.#Ft(i);
1774
- }
1775
- this.#Mt(i.slice(0, i.provisional));
1776
- return;
1777
- });
1778
- }
1779
- #It;
1780
- async readdir() {
1781
- if (!this.canReaddir()) {
1782
- return [];
1783
- }
1784
- const t = this.children();
1785
- if (this.calledReaddir()) {
1786
- return t.slice(0, t.provisional);
1787
- }
1788
- const e = this.fullpath();
1789
- if (this.#It) {
1790
- await this.#It;
1791
- } else {
1792
- let i = () => {};
1793
- this.#It = new Promise(t => i = t);
1794
- try {
1795
- for (const i of await this.#H.promises.readdir(e, {
1796
- withFileTypes: true
1797
- })) {
1798
- this.#Ct(i, t);
1799
- }
1800
- this.#Ft(t);
1801
- } catch (e) {
1802
- this.#Lt(e.code);
1803
- t.provisional = 0;
1804
- }
1805
- this.#It = undefined;
1806
- i();
1807
- }
1808
- return t.slice(0, t.provisional);
1809
- }
1810
- readdirSync() {
1811
- if (!this.canReaddir()) {
1812
- return [];
1813
- }
1814
- const t = this.children();
1815
- if (this.calledReaddir()) {
1816
- return t.slice(0, t.provisional);
1817
- }
1818
- const e = this.fullpath();
1819
- try {
1820
- for (const i of this.#H.readdirSync(e, {
1821
- withFileTypes: true
1822
- })) {
1823
- this.#Ct(i, t);
1824
- }
1825
- this.#Ft(t);
1826
- } catch (e) {
1827
- this.#Lt(e.code);
1828
- t.provisional = 0;
1829
- }
1830
- return t.slice(0, t.provisional);
1831
- }
1832
- canReaddir() {
1833
- if (this.#gt & N) return false;
1834
- const t = O & this.#gt;
1835
- if (!(t === T || t === z || t === C)) {
1836
- return false;
1837
- }
1838
- return true;
1839
- }
1840
- shouldWalk(t, e) {
1841
- return (this.#gt & z) === z && !(this.#gt & N) && !t.has(this) && (!e || e(this));
1842
- }
1843
- async realpath() {
1844
- if (this.#St) return this.#St;
1845
- if ((B | I | M) & this.#gt) return undefined;
1846
- try {
1847
- const t = await this.#H.promises.realpath(this.fullpath());
1848
- return this.#St = this.resolve(t);
1849
- } catch (t) {
1850
- this.#bt();
1851
- }
1852
- }
1853
- realpathSync() {
1854
- if (this.#St) return this.#St;
1855
- if ((B | I | M) & this.#gt) return undefined;
1856
- try {
1857
- const t = this.#H.realpathSync(this.fullpath());
1858
- return this.#St = this.resolve(t);
1859
- } catch (t) {
1860
- this.#bt();
1861
- }
1862
- }
1863
- [H](t) {
1864
- if (t === this) return;
1865
- t.isCWD = false;
1866
- this.isCWD = true;
1867
- const e = new Set([]);
1868
- let i = [];
1869
- let s = this;
1870
- while (s && s.parent) {
1871
- e.add(s);
1872
- s.#pt = i.join(this.sep);
1873
- s.#yt = i.join("/");
1874
- s = s.parent;
1875
- i.push("..");
1876
- }
1877
- s = t;
1878
- while (s && s.parent && !e.has(s)) {
1879
- s.#pt = undefined;
1880
- s.#yt = undefined;
1881
- s = s.parent;
1882
- }
1883
- }
1884
- }
1885
-
1886
- class PathWin32 extends PathBase {
1887
- sep="\\";
1888
- splitSep=F;
1889
- constructor(t, e = T, i, s, n, r, h) {
1890
- super(t, e, i, s, n, r, h);
1891
- }
1892
- newChild(t, e = T, i = {}) {
1893
- return new PathWin32(t, e, this.root, this.roots, this.nocase, this.childrenCache(), i);
1894
- }
1895
- getRootString(e) {
1896
- return t.win32.parse(e).root;
1897
- }
1898
- getRoot(t) {
1899
- t = k(t.toUpperCase());
1900
- if (t === this.root.name) {
1901
- return this.root;
1902
- }
1903
- for (const [e, i] of Object.entries(this.roots)) {
1904
- if (this.sameRoot(t, e)) {
1905
- return this.roots[t] = i;
1906
- }
1907
- }
1908
- return this.roots[t] = new PathScurryWin32(t, this).root;
1909
- }
1910
- sameRoot(t, e = this.root.name) {
1911
- t = t.toUpperCase().replace(/\//g, "\\").replace(v, "$1\\");
1912
- return t === e;
1913
- }
1914
- }
1915
-
1916
- class PathPosix extends PathBase {
1917
- splitSep="/";
1918
- sep="/";
1919
- constructor(t, e = T, i, s, n, r, h) {
1920
- super(t, e, i, s, n, r, h);
1921
- }
1922
- getRootString(t) {
1923
- return t.startsWith("/") ? "/" : "";
1924
- }
1925
- getRoot(t) {
1926
- return this.root;
1927
- }
1928
- newChild(t, e = T, i = {}) {
1929
- return new PathPosix(t, e, this.root, this.roots, this.nocase, this.childrenCache(), i);
1930
- }
1931
- }
1932
-
1933
- class PathScurryBase {
1934
- root;
1935
- rootPath;
1936
- roots;
1937
- cwd;
1938
- #Bt;
1939
- #Nt;
1940
- #wt;
1941
- nocase;
1942
- #H;
1943
- constructor(t = process.cwd(), i, s, {nocase: n, childrenCacheSize: r = 16 * 1024, fs: h = m} = {}) {
1944
- this.#H = S(h);
1945
- if (t instanceof URL || t.startsWith("file://")) {
1946
- t = e.fileURLToPath(t);
1947
- }
1948
- const a = i.resolve(t);
1949
- this.roots = Object.create(null);
1950
- this.rootPath = this.parseRootPath(a);
1951
- this.#Bt = new ResolveCache;
1952
- this.#Nt = new ResolveCache;
1953
- this.#wt = new ChildrenCache(r);
1954
- const o = a.substring(this.rootPath.length).split(s);
1955
- if (o.length === 1 && !o[0]) {
1956
- o.pop();
1957
- }
1958
- if (n === undefined) {
1959
- throw new TypeError("must provide nocase setting to PathScurryBase ctor");
1960
- }
1961
- this.nocase = n;
1962
- this.root = this.newRoot(this.#H);
1963
- this.roots[this.rootPath] = this.root;
1964
- let l = this.root;
1965
- let c = o.length - 1;
1966
- const d = i.sep;
1967
- let f = this.rootPath;
1968
- let u = false;
1969
- for (const t of o) {
1970
- const e = c--;
1971
- l = l.child(t, {
1972
- relative: new Array(e).fill("..").join(d),
1973
- relativePosix: new Array(e).fill("..").join("/"),
1974
- fullpath: f += (u ? "" : d) + t
1975
- });
1976
- u = true;
1977
- }
1978
- this.cwd = l;
1979
- }
1980
- depth(t = this.cwd) {
1981
- if (typeof t === "string") {
1982
- t = this.cwd.resolve(t);
1983
- }
1984
- return t.depth();
1985
- }
1986
- childrenCache() {
1987
- return this.#wt;
1988
- }
1989
- resolve(...t) {
1990
- let e = "";
1991
- for (let i = t.length - 1; i >= 0; i--) {
1992
- const s = t[i];
1993
- if (!s || s === ".") continue;
1994
- e = e ? `${s}/${e}` : s;
1995
- if (this.isAbsolute(s)) {
1996
- break;
1997
- }
1998
- }
1999
- const i = this.#Bt.get(e);
2000
- if (i !== undefined) {
2001
- return i;
2002
- }
2003
- const s = this.cwd.resolve(e).fullpath();
2004
- this.#Bt.set(e, s);
2005
- return s;
2006
- }
2007
- resolvePosix(...t) {
2008
- let e = "";
2009
- for (let i = t.length - 1; i >= 0; i--) {
2010
- const s = t[i];
2011
- if (!s || s === ".") continue;
2012
- e = e ? `${s}/${e}` : s;
2013
- if (this.isAbsolute(s)) {
2014
- break;
2015
- }
2016
- }
2017
- const i = this.#Nt.get(e);
2018
- if (i !== undefined) {
2019
- return i;
2020
- }
2021
- const s = this.cwd.resolve(e).fullpathPosix();
2022
- this.#Nt.set(e, s);
2023
- return s;
2024
- }
2025
- relative(t = this.cwd) {
2026
- if (typeof t === "string") {
2027
- t = this.cwd.resolve(t);
2028
- }
2029
- return t.relative();
2030
- }
2031
- relativePosix(t = this.cwd) {
2032
- if (typeof t === "string") {
2033
- t = this.cwd.resolve(t);
2034
- }
2035
- return t.relativePosix();
2036
- }
2037
- basename(t = this.cwd) {
2038
- if (typeof t === "string") {
2039
- t = this.cwd.resolve(t);
2040
- }
2041
- return t.name;
2042
- }
2043
- dirname(t = this.cwd) {
2044
- if (typeof t === "string") {
2045
- t = this.cwd.resolve(t);
2046
- }
2047
- return (t.parent || t).fullpath();
2048
- }
2049
- async readdir(t = this.cwd, e = {
2050
- withFileTypes: true
2051
- }) {
2052
- if (typeof t === "string") {
2053
- t = this.cwd.resolve(t);
2054
- } else if (!(t instanceof PathBase)) {
2055
- e = t;
2056
- t = this.cwd;
2057
- }
2058
- const {withFileTypes: i} = e;
2059
- if (!t.canReaddir()) {
2060
- return [];
2061
- } else {
2062
- const e = await t.readdir();
2063
- return i ? e : e.map(t => t.name);
2064
- }
2065
- }
2066
- readdirSync(t = this.cwd, e = {
2067
- withFileTypes: true
2068
- }) {
2069
- if (typeof t === "string") {
2070
- t = this.cwd.resolve(t);
2071
- } else if (!(t instanceof PathBase)) {
2072
- e = t;
2073
- t = this.cwd;
2074
- }
2075
- const {withFileTypes: i = true} = e;
2076
- if (!t.canReaddir()) {
2077
- return [];
2078
- } else if (i) {
2079
- return t.readdirSync();
2080
- } else {
2081
- return t.readdirSync().map(t => t.name);
2082
- }
2083
- }
2084
- async lstat(t = this.cwd) {
2085
- if (typeof t === "string") {
2086
- t = this.cwd.resolve(t);
2087
- }
2088
- return t.lstat();
2089
- }
2090
- lstatSync(t = this.cwd) {
2091
- if (typeof t === "string") {
2092
- t = this.cwd.resolve(t);
2093
- }
2094
- return t.lstatSync();
2095
- }
2096
- async readlink(t = this.cwd, {withFileTypes: e} = {
2097
- withFileTypes: false
2098
- }) {
2099
- if (typeof t === "string") {
2100
- t = this.cwd.resolve(t);
2101
- } else if (!(t instanceof PathBase)) {
2102
- e = t.withFileTypes;
2103
- t = this.cwd;
2104
- }
2105
- const i = await t.readlink();
2106
- return e ? i : i?.fullpath();
2107
- }
2108
- readlinkSync(t = this.cwd, {withFileTypes: e} = {
2109
- withFileTypes: false
2110
- }) {
2111
- if (typeof t === "string") {
2112
- t = this.cwd.resolve(t);
2113
- } else if (!(t instanceof PathBase)) {
2114
- e = t.withFileTypes;
2115
- t = this.cwd;
2116
- }
2117
- const i = t.readlinkSync();
2118
- return e ? i : i?.fullpath();
2119
- }
2120
- async realpath(t = this.cwd, {withFileTypes: e} = {
2121
- withFileTypes: false
2122
- }) {
2123
- if (typeof t === "string") {
2124
- t = this.cwd.resolve(t);
2125
- } else if (!(t instanceof PathBase)) {
2126
- e = t.withFileTypes;
2127
- t = this.cwd;
2128
- }
2129
- const i = await t.realpath();
2130
- return e ? i : i?.fullpath();
2131
- }
2132
- realpathSync(t = this.cwd, {withFileTypes: e} = {
2133
- withFileTypes: false
2134
- }) {
2135
- if (typeof t === "string") {
2136
- t = this.cwd.resolve(t);
2137
- } else if (!(t instanceof PathBase)) {
2138
- e = t.withFileTypes;
2139
- t = this.cwd;
2140
- }
2141
- const i = t.realpathSync();
2142
- return e ? i : i?.fullpath();
2143
- }
2144
- async walk(t = this.cwd, e = {}) {
2145
- if (typeof t === "string") {
2146
- t = this.cwd.resolve(t);
2147
- } else if (!(t instanceof PathBase)) {
2148
- e = t;
2149
- t = this.cwd;
2150
- }
2151
- const {withFileTypes: i = true, follow: s = false, filter: n, walkFilter: r} = e;
2152
- const h = [];
2153
- if (!n || n(t)) {
2154
- h.push(i ? t : t.fullpath());
2155
- }
2156
- const a = new Set;
2157
- const o = (t, e) => {
2158
- a.add(t);
2159
- t.readdirCB((t, l) => {
2160
- if (t) {
2161
- return e(t);
2162
- }
2163
- let c = l.length;
2164
- if (!c) return e();
2165
- const d = () => {
2166
- if (--c === 0) {
2167
- e();
2168
- }
2169
- };
2170
- for (const t of l) {
2171
- if (!n || n(t)) {
2172
- h.push(i ? t : t.fullpath());
2173
- }
2174
- if (s && t.isSymbolicLink()) {
2175
- t.realpath().then(t => t?.isUnknown() ? t.lstat() : t).then(t => t?.shouldWalk(a, r) ? o(t, d) : d());
2176
- } else {
2177
- if (t.shouldWalk(a, r)) {
2178
- o(t, d);
2179
- } else {
2180
- d();
2181
- }
2182
- }
2183
- }
2184
- }, true);
2185
- };
2186
- const l = t;
2187
- return new Promise((t, e) => {
2188
- o(l, i => {
2189
- if (i) return e(i);
2190
- t(h);
2191
- });
2192
- });
2193
- }
2194
- walkSync(t = this.cwd, e = {}) {
2195
- if (typeof t === "string") {
2196
- t = this.cwd.resolve(t);
2197
- } else if (!(t instanceof PathBase)) {
2198
- e = t;
2199
- t = this.cwd;
2200
- }
2201
- const {withFileTypes: i = true, follow: s = false, filter: n, walkFilter: r} = e;
2202
- const h = [];
2203
- if (!n || n(t)) {
2204
- h.push(i ? t : t.fullpath());
2205
- }
2206
- const a = new Set([ t ]);
2207
- for (const t of a) {
2208
- const e = t.readdirSync();
2209
- for (const t of e) {
2210
- if (!n || n(t)) {
2211
- h.push(i ? t : t.fullpath());
2212
- }
2213
- let e = t;
2214
- if (t.isSymbolicLink()) {
2215
- if (!(s && (e = t.realpathSync()))) continue;
2216
- if (e.isUnknown()) e.lstatSync();
2217
- }
2218
- if (e.shouldWalk(a, r)) {
2219
- a.add(e);
2220
- }
2221
- }
2222
- }
2223
- return h;
2224
- }
2225
- [Symbol.asyncIterator]() {
2226
- return this.iterate();
2227
- }
2228
- iterate(t = this.cwd, e = {}) {
2229
- if (typeof t === "string") {
2230
- t = this.cwd.resolve(t);
2231
- } else if (!(t instanceof PathBase)) {
2232
- e = t;
2233
- t = this.cwd;
2234
- }
2235
- return this.stream(t, e)[Symbol.asyncIterator]();
2236
- }
2237
- [Symbol.iterator]() {
2238
- return this.iterateSync();
2239
- }
2240
- * iterateSync(t = this.cwd, e = {}) {
2241
- if (typeof t === "string") {
2242
- t = this.cwd.resolve(t);
2243
- } else if (!(t instanceof PathBase)) {
2244
- e = t;
2245
- t = this.cwd;
2246
- }
2247
- const {withFileTypes: i = true, follow: s = false, filter: n, walkFilter: r} = e;
2248
- if (!n || n(t)) {
2249
- yield i ? t : t.fullpath();
2250
- }
2251
- const h = new Set([ t ]);
2252
- for (const t of h) {
2253
- const e = t.readdirSync();
2254
- for (const t of e) {
2255
- if (!n || n(t)) {
2256
- yield i ? t : t.fullpath();
2257
- }
2258
- let e = t;
2259
- if (t.isSymbolicLink()) {
2260
- if (!(s && (e = t.realpathSync()))) continue;
2261
- if (e.isUnknown()) e.lstatSync();
2262
- }
2263
- if (e.shouldWalk(h, r)) {
2264
- h.add(e);
2265
- }
2266
- }
2267
- }
2268
- }
2269
- stream(t = this.cwd, e = {}) {
2270
- if (typeof t === "string") {
2271
- t = this.cwd.resolve(t);
2272
- } else if (!(t instanceof PathBase)) {
2273
- e = t;
2274
- t = this.cwd;
2275
- }
2276
- const {withFileTypes: i = true, follow: s = false, filter: n, walkFilter: h} = e;
2277
- const a = new r.Minipass({
2278
- objectMode: true
2279
- });
2280
- if (!n || n(t)) {
2281
- a.write(i ? t : t.fullpath());
2282
- }
2283
- const o = new Set;
2284
- const l = [ t ];
2285
- let c = 0;
2286
- const d = () => {
2287
- let t = false;
2288
- while (!t) {
2289
- const e = l.shift();
2290
- if (!e) {
2291
- if (c === 0) a.end();
2292
- return;
2293
- }
2294
- c++;
2295
- o.add(e);
2296
- const r = (e, u, p = false) => {
2297
- if (e) return a.emit("error", e);
2298
- if (s && !p) {
2299
- const t = [];
2300
- for (const e of u) {
2301
- if (e.isSymbolicLink()) {
2302
- t.push(e.realpath().then(t => t?.isUnknown() ? t.lstat() : t));
2303
- }
2304
- }
2305
- if (t.length) {
2306
- Promise.all(t).then(() => r(null, u, true));
2307
- return;
2308
- }
2309
- }
2310
- for (const e of u) {
2311
- if (e && (!n || n(e))) {
2312
- if (!a.write(i ? e : e.fullpath())) {
2313
- t = true;
2314
- }
2315
- }
2316
- }
2317
- c--;
2318
- for (const t of u) {
2319
- const e = t.realpathCached() || t;
2320
- if (e.shouldWalk(o, h)) {
2321
- l.push(e);
2322
- }
2323
- }
2324
- if (t && !a.flowing) {
2325
- a.once("drain", d);
2326
- } else if (!f) {
2327
- d();
2328
- }
2329
- };
2330
- let f = true;
2331
- e.readdirCB(r, true);
2332
- f = false;
2333
- }
2334
- };
2335
- d();
2336
- return a;
2337
- }
2338
- streamSync(t = this.cwd, e = {}) {
2339
- if (typeof t === "string") {
2340
- t = this.cwd.resolve(t);
2341
- } else if (!(t instanceof PathBase)) {
2342
- e = t;
2343
- t = this.cwd;
2344
- }
2345
- const {withFileTypes: i = true, follow: s = false, filter: n, walkFilter: h} = e;
2346
- const a = new r.Minipass({
2347
- objectMode: true
2348
- });
2349
- const o = new Set;
2350
- if (!n || n(t)) {
2351
- a.write(i ? t : t.fullpath());
2352
- }
2353
- const l = [ t ];
2354
- let c = 0;
2355
- const d = () => {
2356
- let t = false;
2357
- while (!t) {
2358
- const e = l.shift();
2359
- if (!e) {
2360
- if (c === 0) a.end();
2361
- return;
2362
- }
2363
- c++;
2364
- o.add(e);
2365
- const r = e.readdirSync();
2366
- for (const e of r) {
2367
- if (!n || n(e)) {
2368
- if (!a.write(i ? e : e.fullpath())) {
2369
- t = true;
2370
- }
2371
- }
2372
- }
2373
- c--;
2374
- for (const t of r) {
2375
- let e = t;
2376
- if (t.isSymbolicLink()) {
2377
- if (!(s && (e = t.realpathSync()))) continue;
2378
- if (e.isUnknown()) e.lstatSync();
2379
- }
2380
- if (e.shouldWalk(o, h)) {
2381
- l.push(e);
2382
- }
2383
- }
2384
- }
2385
- if (t && !a.flowing) a.once("drain", d);
2386
- };
2387
- d();
2388
- return a;
2389
- }
2390
- chdir(t = this.cwd) {
2391
- const e = this.cwd;
2392
- this.cwd = typeof t === "string" ? this.cwd.resolve(t) : t;
2393
- this.cwd[H](e);
2394
- }
2395
- }
2396
-
2397
- class PathScurryWin32 extends PathScurryBase {
2398
- sep="\\";
2399
- constructor(e = process.cwd(), i = {}) {
2400
- const {nocase: s = true} = i;
2401
- super(e, t.win32, "\\", {
2402
- ...i,
2403
- nocase: s
2404
- });
2405
- this.nocase = s;
2406
- for (let t = this.cwd; t; t = t.parent) {
2407
- t.nocase = this.nocase;
2408
- }
2409
- }
2410
- parseRootPath(e) {
2411
- return t.win32.parse(e).root.toUpperCase();
2412
- }
2413
- newRoot(t) {
2414
- return new PathWin32(this.rootPath, z, undefined, this.roots, this.nocase, this.childrenCache(), {
2415
- fs: t
2416
- });
2417
- }
2418
- isAbsolute(t) {
2419
- return t.startsWith("/") || t.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t);
2420
- }
2421
- }
2422
-
2423
- class PathScurryPosix extends PathScurryBase {
2424
- sep="/";
2425
- constructor(e = process.cwd(), i = {}) {
2426
- const {nocase: s = false} = i;
2427
- super(e, t.posix, "/", {
2428
- ...i,
2429
- nocase: s
2430
- });
2431
- this.nocase = s;
2432
- }
2433
- parseRootPath(t) {
2434
- return "/";
2435
- }
2436
- newRoot(t) {
2437
- return new PathPosix(this.rootPath, z, undefined, this.roots, this.nocase, this.childrenCache(), {
2438
- fs: t
2439
- });
2440
- }
2441
- isAbsolute(t) {
2442
- return t.startsWith("/");
2443
- }
2444
- }
2445
-
2446
- class PathScurryDarwin extends PathScurryPosix {
2447
- constructor(t = process.cwd(), e = {}) {
2448
- const {nocase: i = true} = e;
2449
- super(t, {
2450
- ...e,
2451
- nocase: i
2452
- });
2453
- }
2454
- }
2455
-
2456
- process.platform === "win32" ? PathWin32 : PathPosix;
2457
-
2458
- const V = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
2459
-
2460
- exports.PathScurry = V;
2461
-
2462
- exports.PathScurryDarwin = PathScurryDarwin;
2463
-
2464
- exports.PathScurryPosix = PathScurryPosix;
2465
-
2466
- exports.PathScurryWin32 = PathScurryWin32;
20
+ exports.requireHasown = n;