cnpmcore 4.10.0 → 4.11.1

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 (296) hide show
  1. package/dist/app/common/FileUtil.js +1 -1
  2. package/dist/app/common/PackageUtil.d.ts +1 -1
  3. package/dist/app/common/adapter/BugVersionStore.d.ts +1 -1
  4. package/dist/app/common/adapter/NFSAdapter.js +1 -1
  5. package/dist/app/common/adapter/NPMRegistry.d.ts +1 -1
  6. package/dist/app/common/adapter/NPMRegistry.js +1 -1
  7. package/dist/app/common/adapter/binary/AbstractBinary.d.ts +2 -2
  8. package/dist/app/common/adapter/binary/ApiBinary.d.ts +1 -1
  9. package/dist/app/common/adapter/binary/ApiBinary.js +2 -2
  10. package/dist/app/common/adapter/binary/BucketBinary.d.ts +2 -2
  11. package/dist/app/common/adapter/binary/BucketBinary.js +3 -3
  12. package/dist/app/common/adapter/binary/ChromeForTestingBinary.d.ts +1 -1
  13. package/dist/app/common/adapter/binary/ChromeForTestingBinary.js +2 -2
  14. package/dist/app/common/adapter/binary/CypressBinary.d.ts +1 -1
  15. package/dist/app/common/adapter/binary/CypressBinary.js +2 -2
  16. package/dist/app/common/adapter/binary/EdgedriverBinary.d.ts +1 -1
  17. package/dist/app/common/adapter/binary/EdgedriverBinary.js +2 -2
  18. package/dist/app/common/adapter/binary/ElectronBinary.d.ts +3 -3
  19. package/dist/app/common/adapter/binary/ElectronBinary.js +4 -4
  20. package/dist/app/common/adapter/binary/FirefoxBinary.d.ts +2 -2
  21. package/dist/app/common/adapter/binary/FirefoxBinary.js +3 -3
  22. package/dist/app/common/adapter/binary/GithubBinary.d.ts +2 -2
  23. package/dist/app/common/adapter/binary/GithubBinary.js +7 -7
  24. package/dist/app/common/adapter/binary/ImageminBinary.d.ts +2 -2
  25. package/dist/app/common/adapter/binary/ImageminBinary.js +3 -3
  26. package/dist/app/common/adapter/binary/NodeBinary.d.ts +2 -2
  27. package/dist/app/common/adapter/binary/NodeBinary.js +3 -3
  28. package/dist/app/common/adapter/binary/NodePreGypBinary.d.ts +2 -2
  29. package/dist/app/common/adapter/binary/NodePreGypBinary.js +3 -3
  30. package/dist/app/common/adapter/binary/NwjsBinary.d.ts +2 -2
  31. package/dist/app/common/adapter/binary/NwjsBinary.js +4 -4
  32. package/dist/app/common/adapter/binary/PlaywrightBinary.d.ts +1 -1
  33. package/dist/app/common/adapter/binary/PlaywrightBinary.js +2 -2
  34. package/dist/app/common/adapter/binary/PrismaBinary.d.ts +2 -2
  35. package/dist/app/common/adapter/binary/PrismaBinary.js +3 -3
  36. package/dist/app/common/adapter/binary/PuppeteerBinary.d.ts +1 -1
  37. package/dist/app/common/adapter/binary/PuppeteerBinary.js +2 -2
  38. package/dist/app/common/adapter/binary/SqlcipherBinary.d.ts +1 -1
  39. package/dist/app/common/adapter/binary/SqlcipherBinary.js +2 -2
  40. package/dist/app/common/adapter/changesStream/AbstractChangesStream.d.ts +2 -2
  41. package/dist/app/common/adapter/changesStream/CnpmcoreChangesStream.d.ts +2 -2
  42. package/dist/app/common/adapter/changesStream/CnpmcoreChangesStream.js +2 -2
  43. package/dist/app/common/adapter/changesStream/CnpmjsorgChangesStream.d.ts +2 -2
  44. package/dist/app/common/adapter/changesStream/CnpmjsorgChangesStream.js +2 -2
  45. package/dist/app/common/adapter/changesStream/NpmChangesStream.d.ts +2 -2
  46. package/dist/app/common/adapter/changesStream/NpmChangesStream.js +2 -2
  47. package/dist/app/common/typing.d.ts +1 -1
  48. package/dist/app/core/entity/Binary.d.ts +2 -2
  49. package/dist/app/core/entity/Binary.js +2 -2
  50. package/dist/app/core/entity/Change.d.ts +2 -2
  51. package/dist/app/core/entity/Change.js +2 -2
  52. package/dist/app/core/entity/Dist.d.ts +2 -2
  53. package/dist/app/core/entity/Dist.js +2 -2
  54. package/dist/app/core/entity/Hook.d.ts +3 -3
  55. package/dist/app/core/entity/Hook.js +2 -2
  56. package/dist/app/core/entity/HookEvent.d.ts +1 -1
  57. package/dist/app/core/entity/HookEvent.js +1 -1
  58. package/dist/app/core/entity/Package.d.ts +3 -3
  59. package/dist/app/core/entity/Package.js +4 -4
  60. package/dist/app/core/entity/PackageTag.d.ts +2 -2
  61. package/dist/app/core/entity/PackageTag.js +2 -2
  62. package/dist/app/core/entity/PackageVersion.d.ts +3 -3
  63. package/dist/app/core/entity/PackageVersion.js +3 -3
  64. package/dist/app/core/entity/PackageVersionBlock.d.ts +2 -2
  65. package/dist/app/core/entity/PackageVersionBlock.js +2 -2
  66. package/dist/app/core/entity/PackageVersionFile.d.ts +3 -3
  67. package/dist/app/core/entity/PackageVersionFile.js +2 -2
  68. package/dist/app/core/entity/PackageVersionManifest.d.ts +2 -2
  69. package/dist/app/core/entity/PackageVersionManifest.js +2 -2
  70. package/dist/app/core/entity/ProxyCache.d.ts +3 -3
  71. package/dist/app/core/entity/ProxyCache.js +3 -3
  72. package/dist/app/core/entity/Registry.d.ts +3 -3
  73. package/dist/app/core/entity/Registry.js +2 -2
  74. package/dist/app/core/entity/Scope.d.ts +2 -2
  75. package/dist/app/core/entity/Scope.js +2 -2
  76. package/dist/app/core/entity/SqlRange.js +1 -1
  77. package/dist/app/core/entity/Task.d.ts +4 -4
  78. package/dist/app/core/entity/Task.js +6 -6
  79. package/dist/app/core/entity/Token.d.ts +2 -2
  80. package/dist/app/core/entity/Token.js +2 -2
  81. package/dist/app/core/entity/User.d.ts +2 -2
  82. package/dist/app/core/entity/User.js +3 -3
  83. package/dist/app/core/entity/WebauthnCredential.d.ts +2 -2
  84. package/dist/app/core/entity/WebauthnCredential.js +2 -2
  85. package/dist/app/core/event/BugVersionFixHandler.js +2 -2
  86. package/dist/app/core/event/CacheCleaner.js +1 -1
  87. package/dist/app/core/event/ChangesStream.d.ts +4 -4
  88. package/dist/app/core/event/ChangesStream.js +4 -4
  89. package/dist/app/core/event/StoreManifest.js +3 -3
  90. package/dist/app/core/event/SyncESPackage.d.ts +1 -1
  91. package/dist/app/core/event/SyncESPackage.js +1 -1
  92. package/dist/app/core/event/SyncPackageVersionFile.js +2 -2
  93. package/dist/app/core/event/TotalHandler.d.ts +1 -1
  94. package/dist/app/core/event/TotalHandler.js +1 -1
  95. package/dist/app/core/event/index.d.ts +1 -1
  96. package/dist/app/core/service/BinarySyncerService.d.ts +5 -5
  97. package/dist/app/core/service/BinarySyncerService.js +10 -10
  98. package/dist/app/core/service/BugVersionService.d.ts +1 -1
  99. package/dist/app/core/service/BugVersionService.js +3 -3
  100. package/dist/app/core/service/CacheService.d.ts +2 -2
  101. package/dist/app/core/service/CacheService.js +1 -1
  102. package/dist/app/core/service/ChangesStreamService.d.ts +3 -3
  103. package/dist/app/core/service/ChangesStreamService.js +8 -8
  104. package/dist/app/core/service/CreateHookTriggerService.d.ts +2 -2
  105. package/dist/app/core/service/CreateHookTriggerService.js +6 -6
  106. package/dist/app/core/service/FixNoPaddingVersionService.js +1 -1
  107. package/dist/app/core/service/HomeService.d.ts +1 -1
  108. package/dist/app/core/service/HomeService.js +2 -2
  109. package/dist/app/core/service/HookManageService.d.ts +2 -2
  110. package/dist/app/core/service/HookManageService.js +1 -1
  111. package/dist/app/core/service/HookTriggerService.d.ts +3 -3
  112. package/dist/app/core/service/HookTriggerService.js +3 -3
  113. package/dist/app/core/service/PackageManagerService.d.ts +7 -7
  114. package/dist/app/core/service/PackageManagerService.js +8 -8
  115. package/dist/app/core/service/PackageSearchService.d.ts +4 -4
  116. package/dist/app/core/service/PackageSearchService.js +2 -2
  117. package/dist/app/core/service/PackageSyncerService.d.ts +6 -6
  118. package/dist/app/core/service/PackageSyncerService.js +7 -7
  119. package/dist/app/core/service/PackageVersionFileService.d.ts +4 -4
  120. package/dist/app/core/service/PackageVersionFileService.js +5 -5
  121. package/dist/app/core/service/PackageVersionService.d.ts +1 -1
  122. package/dist/app/core/service/PackageVersionService.js +2 -2
  123. package/dist/app/core/service/ProxyCacheService.d.ts +5 -5
  124. package/dist/app/core/service/ProxyCacheService.js +7 -7
  125. package/dist/app/core/service/RegistryManagerService.d.ts +3 -3
  126. package/dist/app/core/service/RegistryManagerService.js +5 -5
  127. package/dist/app/core/service/ScopeManagerService.d.ts +3 -3
  128. package/dist/app/core/service/ScopeManagerService.js +2 -2
  129. package/dist/app/core/service/TaskService.d.ts +7 -7
  130. package/dist/app/core/service/TaskService.js +2 -2
  131. package/dist/app/core/service/TokenService.d.ts +3 -3
  132. package/dist/app/core/service/TokenService.js +6 -6
  133. package/dist/app/core/service/UserService.d.ts +6 -6
  134. package/dist/app/core/service/UserService.js +7 -7
  135. package/dist/app/core/util/EntityUtil.d.ts +1 -1
  136. package/dist/app/infra/AuthAdapter.d.ts +1 -1
  137. package/dist/app/infra/NFSClientAdapter.d.ts +1 -1
  138. package/dist/app/infra/QueueAdapter.d.ts +1 -1
  139. package/dist/app/infra/SearchAdapter.d.ts +1 -1
  140. package/dist/app/port/UserRoleManager.d.ts +3 -3
  141. package/dist/app/port/UserRoleManager.js +1 -1
  142. package/dist/app/port/config.d.ts +3 -3
  143. package/dist/app/port/config.js +1 -1
  144. package/dist/app/port/controller/AbstractController.d.ts +8 -8
  145. package/dist/app/port/controller/AbstractController.js +4 -4
  146. package/dist/app/port/controller/AccessController.d.ts +1 -1
  147. package/dist/app/port/controller/AccessController.js +3 -3
  148. package/dist/app/port/controller/BinarySyncController.d.ts +2 -2
  149. package/dist/app/port/controller/BinarySyncController.js +4 -4
  150. package/dist/app/port/controller/ChangesStreamController.d.ts +1 -1
  151. package/dist/app/port/controller/ChangesStreamController.js +1 -1
  152. package/dist/app/port/controller/DownloadController.d.ts +1 -1
  153. package/dist/app/port/controller/DownloadController.js +3 -3
  154. package/dist/app/port/controller/HomeController.d.ts +2 -2
  155. package/dist/app/port/controller/HomeController.js +1 -1
  156. package/dist/app/port/controller/HookController.d.ts +5 -5
  157. package/dist/app/port/controller/HookController.js +2 -2
  158. package/dist/app/port/controller/PackageBlockController.d.ts +2 -2
  159. package/dist/app/port/controller/PackageBlockController.js +4 -4
  160. package/dist/app/port/controller/PackageSyncController.d.ts +5 -5
  161. package/dist/app/port/controller/PackageSyncController.js +5 -5
  162. package/dist/app/port/controller/PackageTagController.d.ts +1 -1
  163. package/dist/app/port/controller/PackageTagController.js +3 -3
  164. package/dist/app/port/controller/PackageVersionFileController.d.ts +1 -1
  165. package/dist/app/port/controller/PackageVersionFileController.js +5 -5
  166. package/dist/app/port/controller/ProxyCacheController.d.ts +2 -2
  167. package/dist/app/port/controller/ProxyCacheController.js +4 -4
  168. package/dist/app/port/controller/RegistryController.d.ts +3 -3
  169. package/dist/app/port/controller/RegistryController.js +3 -3
  170. package/dist/app/port/controller/ScopeController.d.ts +2 -2
  171. package/dist/app/port/controller/ScopeController.js +3 -3
  172. package/dist/app/port/controller/TokenController.d.ts +2 -2
  173. package/dist/app/port/controller/TokenController.js +2 -2
  174. package/dist/app/port/controller/UserController.d.ts +2 -2
  175. package/dist/app/port/controller/UserController.js +4 -4
  176. package/dist/app/port/controller/admin/PaddingVersionController.d.ts +1 -1
  177. package/dist/app/port/controller/admin/PaddingVersionController.js +1 -1
  178. package/dist/app/port/controller/convertor/HookConvertor.d.ts +4 -4
  179. package/dist/app/port/controller/package/DownloadPackageVersionTar.d.ts +2 -2
  180. package/dist/app/port/controller/package/DownloadPackageVersionTar.js +3 -3
  181. package/dist/app/port/controller/package/RemovePackageVersionController.d.ts +1 -1
  182. package/dist/app/port/controller/package/RemovePackageVersionController.js +2 -2
  183. package/dist/app/port/controller/package/SavePackageVersionController.d.ts +1 -1
  184. package/dist/app/port/controller/package/SavePackageVersionController.js +3 -3
  185. package/dist/app/port/controller/package/SearchPackageController.d.ts +2 -2
  186. package/dist/app/port/controller/package/SearchPackageController.js +3 -3
  187. package/dist/app/port/controller/package/ShowPackageController.d.ts +1 -1
  188. package/dist/app/port/controller/package/ShowPackageController.js +5 -5
  189. package/dist/app/port/controller/package/ShowPackageVersionController.d.ts +1 -1
  190. package/dist/app/port/controller/package/ShowPackageVersionController.js +6 -6
  191. package/dist/app/port/controller/package/UpdatePackageController.d.ts +1 -1
  192. package/dist/app/port/controller/package/UpdatePackageController.js +2 -2
  193. package/dist/app/port/middleware/AdminAccess.js +1 -1
  194. package/dist/app/port/middleware/AlwaysAuth.js +1 -1
  195. package/dist/app/port/middleware/ErrorHandler.js +1 -1
  196. package/dist/app/port/middleware/index.js +3 -3
  197. package/dist/app/port/schedule/CheckProxyCacheUpdateWorker.js +2 -2
  198. package/dist/app/port/schedule/CheckRecentlyUpdatedPackages.js +2 -2
  199. package/dist/app/port/schedule/CleanTempDir.js +1 -1
  200. package/dist/app/port/schedule/CreateSyncBinaryTask.js +1 -1
  201. package/dist/app/port/schedule/CreateTriggerHookWorker.js +1 -1
  202. package/dist/app/port/schedule/SyncBinaryWorker.js +1 -1
  203. package/dist/app/port/schedule/SyncPackageWorker.js +1 -1
  204. package/dist/app/port/schedule/SyncProxyCacheWorker.js +1 -1
  205. package/dist/app/port/schedule/TriggerHookWorker.js +1 -1
  206. package/dist/app/port/schedule/UpdateTotalData.js +3 -3
  207. package/dist/app/port/typebox.d.ts +2 -2
  208. package/dist/app/port/typebox.js +3 -3
  209. package/dist/app/port/webauth/WebauthController.d.ts +2 -2
  210. package/dist/app/port/webauth/WebauthController.js +4 -4
  211. package/dist/app/repository/BinaryRepository.d.ts +2 -2
  212. package/dist/app/repository/BinaryRepository.js +3 -3
  213. package/dist/app/repository/ChangeRepository.d.ts +3 -3
  214. package/dist/app/repository/ChangeRepository.js +2 -2
  215. package/dist/app/repository/DistRepository.d.ts +2 -2
  216. package/dist/app/repository/HookRepository.d.ts +2 -2
  217. package/dist/app/repository/HookRepository.js +2 -2
  218. package/dist/app/repository/PackageRepository.d.ts +8 -8
  219. package/dist/app/repository/PackageRepository.js +7 -7
  220. package/dist/app/repository/PackageVersionBlockRepository.d.ts +3 -3
  221. package/dist/app/repository/PackageVersionBlockRepository.js +3 -3
  222. package/dist/app/repository/PackageVersionDownloadRepository.d.ts +2 -2
  223. package/dist/app/repository/PackageVersionDownloadRepository.js +1 -1
  224. package/dist/app/repository/PackageVersionFileRepository.d.ts +2 -2
  225. package/dist/app/repository/PackageVersionFileRepository.js +4 -4
  226. package/dist/app/repository/PackageVersionRepository.d.ts +3 -3
  227. package/dist/app/repository/PackageVersionRepository.js +2 -2
  228. package/dist/app/repository/ProxyCacheRepository.d.ts +5 -5
  229. package/dist/app/repository/ProxyCacheRepository.js +4 -4
  230. package/dist/app/repository/RegistryRepository.d.ts +4 -4
  231. package/dist/app/repository/RegistryRepository.js +4 -4
  232. package/dist/app/repository/ScopeRepository.d.ts +4 -4
  233. package/dist/app/repository/ScopeRepository.js +4 -4
  234. package/dist/app/repository/SearchRepository.d.ts +1 -1
  235. package/dist/app/repository/TaskRepository.d.ts +8 -8
  236. package/dist/app/repository/TaskRepository.js +4 -4
  237. package/dist/app/repository/TotalRepository.d.ts +1 -1
  238. package/dist/app/repository/TotalRepository.js +2 -2
  239. package/dist/app/repository/UserRepository.d.ts +4 -4
  240. package/dist/app/repository/UserRepository.js +6 -6
  241. package/dist/app/repository/model/Binary.d.ts +1 -1
  242. package/dist/app/repository/model/Binary.js +1 -1
  243. package/dist/app/repository/model/Change.d.ts +1 -1
  244. package/dist/app/repository/model/Change.js +1 -1
  245. package/dist/app/repository/model/Dist.d.ts +1 -1
  246. package/dist/app/repository/model/Dist.js +1 -1
  247. package/dist/app/repository/model/HistoryTask.d.ts +2 -2
  248. package/dist/app/repository/model/HistoryTask.js +1 -1
  249. package/dist/app/repository/model/Hook.d.ts +2 -2
  250. package/dist/app/repository/model/Hook.js +1 -1
  251. package/dist/app/repository/model/Maintainer.d.ts +1 -1
  252. package/dist/app/repository/model/Maintainer.js +1 -1
  253. package/dist/app/repository/model/Package.d.ts +1 -1
  254. package/dist/app/repository/model/Package.js +2 -2
  255. package/dist/app/repository/model/PackageDep.d.ts +1 -1
  256. package/dist/app/repository/model/PackageDep.js +1 -1
  257. package/dist/app/repository/model/PackageTag.d.ts +1 -1
  258. package/dist/app/repository/model/PackageTag.js +1 -1
  259. package/dist/app/repository/model/PackageVersion.d.ts +1 -1
  260. package/dist/app/repository/model/PackageVersion.js +3 -3
  261. package/dist/app/repository/model/PackageVersionBlock.d.ts +1 -1
  262. package/dist/app/repository/model/PackageVersionBlock.js +1 -1
  263. package/dist/app/repository/model/PackageVersionDownload.d.ts +1 -1
  264. package/dist/app/repository/model/PackageVersionDownload.js +1 -1
  265. package/dist/app/repository/model/PackageVersionFile.d.ts +1 -1
  266. package/dist/app/repository/model/PackageVersionFile.js +2 -2
  267. package/dist/app/repository/model/PackageVersionManifest.d.ts +1 -1
  268. package/dist/app/repository/model/PackageVersionManifest.js +1 -1
  269. package/dist/app/repository/model/ProxyCache.d.ts +2 -2
  270. package/dist/app/repository/model/ProxyCache.js +1 -1
  271. package/dist/app/repository/model/Registry.d.ts +2 -2
  272. package/dist/app/repository/model/Registry.js +1 -1
  273. package/dist/app/repository/model/Scope.d.ts +1 -1
  274. package/dist/app/repository/model/Scope.js +1 -1
  275. package/dist/app/repository/model/Task.d.ts +2 -2
  276. package/dist/app/repository/model/Task.js +1 -1
  277. package/dist/app/repository/model/Token.d.ts +1 -1
  278. package/dist/app/repository/model/Token.js +1 -1
  279. package/dist/app/repository/model/TokenPackage.d.ts +1 -1
  280. package/dist/app/repository/model/TokenPackage.js +1 -1
  281. package/dist/app/repository/model/Total.d.ts +1 -1
  282. package/dist/app/repository/model/Total.js +1 -1
  283. package/dist/app/repository/model/User.d.ts +1 -1
  284. package/dist/app/repository/model/User.js +1 -1
  285. package/dist/app/repository/model/WebauthnCredential.d.ts +1 -1
  286. package/dist/app/repository/model/WebauthnCredential.js +1 -1
  287. package/dist/app/repository/util/EntityProperty.js +1 -1
  288. package/dist/app/repository/util/ModelConvertor.d.ts +1 -1
  289. package/dist/app/repository/util/ModelConvertor.js +1 -1
  290. package/dist/app.js +1 -1
  291. package/dist/config/binaries.d.ts +5 -1
  292. package/dist/config/binaries.js +6 -3
  293. package/dist/config/config.default.d.ts +1 -1
  294. package/dist/config/config.default.js +3 -3
  295. package/dist/config/config.unittest.js +1 -1
  296. package/package.json +3 -2
@@ -6,7 +6,7 @@ import path from 'node:path';
6
6
  import url from 'node:url';
7
7
  import { randomBytes } from 'node:crypto';
8
8
  import mime from 'mime-types';
9
- import dayjs from './dayjs.js';
9
+ import dayjs from "./dayjs.js";
10
10
  async function _downloadToTempfile(httpclient, dataDir, url, optionalConfig) {
11
11
  const tmpfile = await createTempfile(dataDir, url);
12
12
  const writeStream = createWriteStream(tmpfile);
@@ -1,4 +1,4 @@
1
- import type { AuthorType, PackageJSONType } from '../repository/PackageRepository.js';
1
+ import type { AuthorType, PackageJSONType } from '../repository/PackageRepository.ts';
2
2
  export declare const FULLNAME_REG_STRING = "@[^/]{1,220}/[^/]{1,220}|@[^%]+%2[fF][^/]{1,220}|[^@/]{1,220}";
3
3
  export declare function getScopeAndName(fullname: string): string[];
4
4
  export declare function getFullname(scope: string, name: string): string;
@@ -1,4 +1,4 @@
1
- import type { BugVersion } from '../../core/entity/BugVersion.js';
1
+ import type { BugVersion } from '../../core/entity/BugVersion.ts';
2
2
  export declare class BugVersionStore {
3
3
  private bugVersion;
4
4
  private version;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { AccessLevel, Inject, SingletonProto } from '@eggjs/tegg';
11
11
  import { Pointcut } from '@eggjs/tegg/aop';
12
- import { AsyncTimer } from '../aop/AsyncTimer.js';
12
+ import { AsyncTimer } from "../aop/AsyncTimer.js";
13
13
  const INSTANCE_NAME = 'nfsAdapter';
14
14
  let NFSAdapter = class NFSAdapter {
15
15
  async uploadBytes(storeKey, bytes) {
@@ -1,5 +1,5 @@
1
1
  import type { HttpClientRequestOptions, HttpClientResponse } from 'egg';
2
- import type { PackageManifestType } from '../../repository/PackageRepository.js';
2
+ import type { PackageManifestType } from '../../repository/PackageRepository.ts';
3
3
  type HttpMethod = HttpClientRequestOptions['method'];
4
4
  export type RegistryResponse = {
5
5
  method: HttpMethod;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { setTimeout } from 'node:timers/promises';
11
11
  import { AccessLevel, ContextProto, Inject } from '@eggjs/tegg';
12
- import { isTimeoutError } from '../ErrorUtil.js';
12
+ import { isTimeoutError } from "../ErrorUtil.js";
13
13
  const INSTANCE_NAME = 'npmRegistry';
14
14
  let NPMRegistry = class NPMRegistry {
15
15
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import { type ImplDecorator } from '@eggjs/tegg';
2
2
  import type { EggHttpClient, EggLogger } from 'egg';
3
- import type { BinaryType } from '../../enum/Binary.js';
4
- import type { BinaryName, BinaryTaskConfig } from '../../../../config/binaries.js';
3
+ import type { BinaryType } from '../../enum/Binary.ts';
4
+ import type { BinaryName, BinaryTaskConfig } from '../../../../config/binaries.ts';
5
5
  declare const platforms: readonly ["darwin", "linux", "win32"];
6
6
  export interface BinaryItem {
7
7
  name: string;
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class ApiBinary extends AbstractBinary {
3
3
  private readonly config;
4
4
  initFetch(): Promise<void>;
@@ -8,8 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { Inject, SingletonProto } from '@eggjs/tegg';
11
- import { BinaryType } from '../../enum/Binary.js';
12
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
11
+ import { BinaryType } from "../../enum/Binary.js";
12
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
13
13
  let ApiBinary = class ApiBinary extends AbstractBinary {
14
14
  async initFetch() {
15
15
  // do nothing
@@ -1,5 +1,5 @@
1
- import { type BinaryName, type BinaryTaskConfig } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName, type BinaryTaskConfig } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class BucketBinary extends AbstractBinary {
4
4
  initFetch(): Promise<void>;
5
5
  fetch(dir: string, binaryName: BinaryName): Promise<FetchResult | undefined>;
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import path from 'node:path';
8
8
  import { SingletonProto } from '@eggjs/tegg';
9
- import binaries, {} from '../../../../config/binaries.js';
10
- import { BinaryType } from '../../enum/Binary.js';
11
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
9
+ import binaries, {} from "../../../../config/binaries.js";
10
+ import { BinaryType } from "../../enum/Binary.js";
11
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
12
12
  let BucketBinary = class BucketBinary extends AbstractBinary {
13
13
  async initFetch() {
14
14
  // do nothing
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class ChromeForTestingBinary extends AbstractBinary {
3
3
  #private;
4
4
  static lastTimestamp: string;
@@ -19,8 +19,8 @@ var _ChromeForTestingBinary_instances, _a, _ChromeForTestingBinary_timestamp, _C
19
19
  var ChromeForTestingBinary_1;
20
20
  import { basename } from 'node:path';
21
21
  import { SingletonProto } from '@eggjs/tegg';
22
- import { BinaryType } from '../../enum/Binary.js';
23
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
22
+ import { BinaryType } from "../../enum/Binary.js";
23
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
24
24
  let ChromeForTestingBinary = ChromeForTestingBinary_1 = _a = class ChromeForTestingBinary extends AbstractBinary {
25
25
  constructor() {
26
26
  super(...arguments);
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class CypressBinary extends AbstractBinary {
3
3
  private dirItems?;
4
4
  initFetch(): Promise<void>;
@@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import { BinaryType } from '../../enum/Binary.js';
9
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
8
+ import { BinaryType } from "../../enum/Binary.js";
9
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
10
10
  let CypressBinary = class CypressBinary extends AbstractBinary {
11
11
  async initFetch() {
12
12
  this.dirItems = undefined;
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class EdgedriverBinary extends AbstractBinary {
3
3
  #private;
4
4
  private dirItems?;
@@ -12,8 +12,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _EdgedriverBinary_instances, _EdgedriverBinary_syncDirItems, _EdgedriverBinary_parseItems;
13
13
  import path from 'node:path';
14
14
  import { SingletonProto } from '@eggjs/tegg';
15
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
16
- import { BinaryType } from '../../enum/Binary.js';
15
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
16
+ import { BinaryType } from "../../enum/Binary.js";
17
17
  let EdgedriverBinary = class EdgedriverBinary extends AbstractBinary {
18
18
  constructor() {
19
19
  super(...arguments);
@@ -1,6 +1,6 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { GithubBinary } from './GithubBinary.js';
3
- import { type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { GithubBinary } from './GithubBinary.ts';
3
+ import { type FetchResult } from './AbstractBinary.ts';
4
4
  export declare class ElectronBinary extends GithubBinary {
5
5
  fetch(dir: string, binaryName?: BinaryName): Promise<FetchResult | undefined>;
6
6
  }
@@ -5,10 +5,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import binaries, {} from '../../../../config/binaries.js';
9
- import { BinaryType } from '../../enum/Binary.js';
10
- import { GithubBinary } from './GithubBinary.js';
11
- import { BinaryAdapter, } from './AbstractBinary.js';
8
+ import binaries, {} from "../../../../config/binaries.js";
9
+ import { BinaryType } from "../../enum/Binary.js";
10
+ import { GithubBinary } from "./GithubBinary.js";
11
+ import { BinaryAdapter, } from "./AbstractBinary.js";
12
12
  let ElectronBinary = class ElectronBinary extends GithubBinary {
13
13
  async fetch(dir, binaryName = 'electron') {
14
14
  const releases = await this.initReleases(binaryName, binaries.electron);
@@ -1,5 +1,5 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class FirefoxBinary extends AbstractBinary {
4
4
  initFetch(): Promise<void>;
5
5
  fetch(dir: string, binaryName: BinaryName): Promise<FetchResult | undefined>;
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { basename } from 'node:path';
8
8
  import { SingletonProto } from '@eggjs/tegg';
9
- import binaries, {} from '../../../../config/binaries.js';
10
- import { BinaryType } from '../../enum/Binary.js';
11
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
9
+ import binaries, {} from "../../../../config/binaries.js";
10
+ import { BinaryType } from "../../enum/Binary.js";
11
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
12
12
  let FirefoxBinary = class FirefoxBinary extends AbstractBinary {
13
13
  async initFetch() {
14
14
  // do nothing
@@ -1,5 +1,5 @@
1
- import { type BinaryName, type BinaryTaskConfig } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName, type BinaryTaskConfig } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class GithubBinary extends AbstractBinary {
4
4
  private releases;
5
5
  initFetch(binaryName: BinaryName): Promise<void>;
@@ -5,9 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import binaries, {} from '../../../../config/binaries.js';
9
- import { BinaryType } from '../../enum/Binary.js';
10
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
8
+ import binaries, {} from "../../../../config/binaries.js";
9
+ import { BinaryType } from "../../enum/Binary.js";
10
+ import { AbstractBinary, BinaryAdapter } from "./AbstractBinary.js";
11
11
  let GithubBinary = class GithubBinary extends AbstractBinary {
12
12
  constructor() {
13
13
  super(...arguments);
@@ -25,8 +25,9 @@ let GithubBinary = class GithubBinary extends AbstractBinary {
25
25
  // oxlint-disable-next-line typescript-eslint/no-explicit-any
26
26
  let releases = [];
27
27
  const maxPage = binaryConfig.options?.maxPage || 1;
28
+ const perPage = binaryConfig.options?.perPage || 100;
28
29
  for (let i = 0; i < maxPage; i++) {
29
- const url = `https://api.github.com/repos/${binaryConfig.repo}/releases?per_page=100&page=${i + 1}`;
30
+ const url = `https://api.github.com/repos/${binaryConfig.repo}/releases?per_page=${perPage}&page=${i + 1}`;
30
31
  const requestHeaders = {};
31
32
  if (process.env.GITHUB_TOKEN) {
32
33
  requestHeaders.Authorization = `token ${process.env.GITHUB_TOKEN}`;
@@ -34,8 +35,7 @@ let GithubBinary = class GithubBinary extends AbstractBinary {
34
35
  const data = await this.requestJSON(url, requestHeaders);
35
36
  if (!Array.isArray(data)) {
36
37
  // {"message":"API rate limit exceeded for 47.57.239.54. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
37
- if (typeof data?.message === 'string' &&
38
- data.message.includes('rate limit')) {
38
+ if (typeof data?.message === 'string' && data.message.includes('rate limit')) {
39
39
  this.logger.info('[GithubBinary.fetch:hit-rate-limit] skip sync this time, data: %j, url: %s', data, url);
40
40
  return;
41
41
  }
@@ -122,4 +122,4 @@ GithubBinary = __decorate([
122
122
  BinaryAdapter(BinaryType.GitHub)
123
123
  ], GithubBinary);
124
124
  export { GithubBinary };
125
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2l0aHViQmluYXJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vYXBwL2NvbW1vbi9hZGFwdGVyL2JpbmFyeS9HaXRodWJCaW5hcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM3QyxPQUFPLFFBQVEsRUFBRSxFQUdoQixNQUFNLGdDQUFnQyxDQUFDO0FBQ3hDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQ0wsY0FBYyxFQUNkLGFBQWEsR0FHZCxNQUFNLHFCQUFxQixDQUFDO0FBSXRCLElBQU0sWUFBWSxHQUFsQixNQUFNLFlBQWEsU0FBUSxjQUFjO0lBQXpDOztRQUNMLDZEQUE2RDtRQUNyRCxhQUFRLEdBQXNDLEVBQUUsQ0FBQztJQThIM0QsQ0FBQztJQTVIQyxLQUFLLENBQUMsU0FBUyxDQUFDLFVBQXNCO1FBQ3BDLElBQUksQ0FBQyxR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E7WUFBRSxPQUFPO1FBRXRCLElBQUksS0FBSyxHQUFpQixFQUFFLENBQUM7UUFDN0IsSUFBSSxHQUFHLEtBQUssR0FBRyxFQUFFLENBQUM7WUFDaEIsS0FBSyxNQUFNLElBQUksSUFBSSxRQUFRLEVBQUUsQ0FBQztnQkFDNUIsS0FBSyxDQUFDLElBQUksQ0FBQztvQkFDVCxJQUFJLEVBQUUsR0FBRyxJQUFJLENBQUMsUUFBUSxHQUFHO29CQUN6QixLQUFLLEVBQUUsSUFBSTtvQkFDWCxHQUFHLEVBQUUsSUFBSSxDQUFDLEdBQUc7b0JBQ2IsSUFBSSxFQUFFLEdBQUc7b0JBQ1QsSUFBSSxFQUFFLElBQUksQ0FBQyxZQUFZO2lCQUN4QixDQUFDLENBQUM7WUFDTCxDQUFDO1FBQ0gsQ0FBQzthQUFNLENBQUM7WUFDTixLQUFLLE1BQU0sSUFBSSxJQUFJLFFBQVEsRUFBRSxDQUFDO2dCQUM1QixJQUFJLEdBQUcsS0FBSyxJQUFJLElBQUksQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO29CQUNqQyxLQUFLLEdBQUcsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLEVBQUUsWUFBWSxDQUFDLENBQUM7b0JBQzdDLE1BQU07Z0JBQ1IsQ0FBQztZQUNILENBQUM7UUFDSCxDQUFDO1FBRUQsT0FBTyxFQUFFLEtBQUssRUFBRSxDQUFDO0lBQ25CLENBQUM7Q0FDRixDQUFBO0FBaEhZLFlBQVk7SUFGeEIsY0FBYyxFQUFFO0lBQ2hCLGFBQWEsQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDO0dBQ3BCLFlBQVksQ0FnSHhCIn0=
@@ -1,5 +1,5 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class ImageminBinary extends AbstractBinary {
4
4
  initFetch(): Promise<void>;
5
5
  fetch(dir: string, binaryName: BinaryName): Promise<FetchResult | undefined>;
@@ -5,9 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import binaries, {} from '../../../../config/binaries.js';
9
- import { BinaryType } from '../../enum/Binary.js';
10
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
8
+ import binaries, {} from "../../../../config/binaries.js";
9
+ import { BinaryType } from "../../enum/Binary.js";
10
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
11
11
  let ImageminBinary = class ImageminBinary extends AbstractBinary {
12
12
  async initFetch() {
13
13
  // do nothing
@@ -1,5 +1,5 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class NodeBinary extends AbstractBinary {
4
4
  initFetch(): Promise<void>;
5
5
  fetch(dir: string, binaryName: BinaryName): Promise<FetchResult | undefined>;
@@ -6,10 +6,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { basename } from 'node:path';
8
8
  import { SingletonProto } from '@eggjs/tegg';
9
- import binaries, {} from '../../../../config/binaries.js';
9
+ import binaries, {} from "../../../../config/binaries.js";
10
10
  import dayjs from 'dayjs';
11
- import { BinaryType } from '../../enum/Binary.js';
12
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
11
+ import { BinaryType } from "../../enum/Binary.js";
12
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
13
13
  let NodeBinary = class NodeBinary extends AbstractBinary {
14
14
  async initFetch() {
15
15
  // do nothing
@@ -1,5 +1,5 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class NodePreGypBinary extends AbstractBinary {
4
4
  initFetch(): Promise<void>;
5
5
  fetch(dir: string, binaryName: BinaryName): Promise<FetchResult | undefined>;
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { join } from 'node:path';
8
8
  import { SingletonProto } from '@eggjs/tegg';
9
- import binaries, {} from '../../../../config/binaries.js';
10
- import { BinaryType } from '../../enum/Binary.js';
11
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
9
+ import binaries, {} from "../../../../config/binaries.js";
10
+ import { BinaryType } from "../../enum/Binary.js";
11
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
12
12
  let NodePreGypBinary = class NodePreGypBinary extends AbstractBinary {
13
13
  async initFetch() {
14
14
  // do nothing
@@ -1,5 +1,5 @@
1
- import { type FetchResult } from './AbstractBinary.js';
2
- import { BucketBinary } from './BucketBinary.js';
1
+ import { type FetchResult } from './AbstractBinary.ts';
2
+ import { BucketBinary } from './BucketBinary.ts';
3
3
  export declare class NwjsBinary extends BucketBinary {
4
4
  private s3Url;
5
5
  fetch(dir: string): Promise<FetchResult | undefined>;
@@ -5,10 +5,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import binaries from '../../../../config/binaries.js';
9
- import { BinaryType } from '../../enum/Binary.js';
10
- import { BinaryAdapter, } from './AbstractBinary.js';
11
- import { BucketBinary } from './BucketBinary.js';
8
+ import binaries from "../../../../config/binaries.js";
9
+ import { BinaryType } from "../../enum/Binary.js";
10
+ import { BinaryAdapter, } from "./AbstractBinary.js";
11
+ import { BucketBinary } from "./BucketBinary.js";
12
12
  let NwjsBinary = class NwjsBinary extends BucketBinary {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class PlaywrightBinary extends AbstractBinary {
3
3
  private dirItems?;
4
4
  initFetch(): Promise<void>;
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import util from 'node:util';
8
8
  import path from 'node:path';
9
9
  import { SingletonProto } from '@eggjs/tegg';
10
- import { BinaryType } from '../../enum/Binary.js';
11
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
10
+ import { BinaryType } from "../../enum/Binary.js";
11
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
12
12
  const PACKAGE_URL = 'https://registry.npmjs.com/playwright-core';
13
13
  const DOWNLOAD_HOST = 'https://playwright.azureedge.net/';
14
14
  // https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/registry/index.ts
@@ -1,5 +1,5 @@
1
- import { type BinaryName } from '../../../../config/binaries.js';
2
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { type BinaryName } from '../../../../config/binaries.ts';
2
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
3
3
  export declare class PrismaBinary extends AbstractBinary {
4
4
  #private;
5
5
  private dirItems;
@@ -12,9 +12,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _PrismaBinary_instances, _PrismaBinary_parseItems;
13
13
  import path from 'node:path';
14
14
  import { SingletonProto } from '@eggjs/tegg';
15
- import binaries, {} from '../../../../config/binaries.js';
16
- import { BinaryType } from '../../enum/Binary.js';
17
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
15
+ import binaries, {} from "../../../../config/binaries.js";
16
+ import { BinaryType } from "../../enum/Binary.js";
17
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
18
18
  let PrismaBinary = class PrismaBinary extends AbstractBinary {
19
19
  constructor() {
20
20
  super(...arguments);
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare const platforms: string[];
3
3
  export declare class PuppeteerBinary extends AbstractBinary {
4
4
  private dirItems?;
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
8
  import { XMLParser } from 'fast-xml-parser';
9
- import { BinaryType } from '../../enum/Binary.js';
10
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
9
+ import { BinaryType } from "../../enum/Binary.js";
10
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
11
11
  export const platforms = ['Linux_x64', 'Mac', 'Mac_Arm', 'Win', 'Win_x64'];
12
12
  const MAX_DEPTH = 1;
13
13
  let PuppeteerBinary = class PuppeteerBinary extends AbstractBinary {
@@ -1,4 +1,4 @@
1
- import { AbstractBinary, type FetchResult } from './AbstractBinary.js';
1
+ import { AbstractBinary, type FetchResult } from './AbstractBinary.ts';
2
2
  export declare class SqlcipherBinary extends AbstractBinary {
3
3
  initFetch(): Promise<void>;
4
4
  fetch(dir: string): Promise<FetchResult | undefined>;
@@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
- import { BinaryType } from '../../enum/Binary.js';
9
- import { AbstractBinary, BinaryAdapter, } from './AbstractBinary.js';
8
+ import { BinaryType } from "../../enum/Binary.js";
9
+ import { AbstractBinary, BinaryAdapter, } from "./AbstractBinary.js";
10
10
  let SqlcipherBinary = class SqlcipherBinary extends AbstractBinary {
11
11
  async initFetch() {
12
12
  // do nothing
@@ -1,6 +1,6 @@
1
1
  import { type ImplDecorator } from '@eggjs/tegg';
2
- import type { RegistryType } from '../../../common/enum/Registry.js';
3
- import type { Registry } from '../../../core/entity/Registry.js';
2
+ import type { RegistryType } from '../../../common/enum/Registry.ts';
3
+ import type { Registry } from '../../../core/entity/Registry.ts';
4
4
  import type { EggHttpClient, EggLogger } from 'egg';
5
5
  export declare const CHANGE_STREAM_ATTRIBUTE = "CHANGE_STREAM_ATTRIBUTE";
6
6
  export interface ChangesStreamChange {
@@ -1,5 +1,5 @@
1
- import type { Registry } from '../../../core/entity/Registry.js';
2
- import { AbstractChangeStream } from './AbstractChangesStream.js';
1
+ import type { Registry } from '../../../core/entity/Registry.ts';
2
+ import { AbstractChangeStream } from './AbstractChangesStream.ts';
3
3
  export declare class CnpmcoreChangesStream extends AbstractChangeStream {
4
4
  getInitialSince(registry: Registry): Promise<string>;
5
5
  fetchChanges(registry: Registry, since: string): AsyncGenerator<{
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
8
  import { E500 } from 'egg-errors';
9
- import { RegistryType } from '../../../common/enum/Registry.js';
10
- import { AbstractChangeStream, RegistryChangesStream, } from './AbstractChangesStream.js';
9
+ import { RegistryType } from "../../../common/enum/Registry.js";
10
+ import { AbstractChangeStream, RegistryChangesStream, } from "./AbstractChangesStream.js";
11
11
  let CnpmcoreChangesStream = class CnpmcoreChangesStream extends AbstractChangeStream {
12
12
  async getInitialSince(registry) {
13
13
  const db = new URL(registry.changeStream).origin;
@@ -1,5 +1,5 @@
1
- import type { Registry } from '../../../core/entity/Registry.js';
2
- import { AbstractChangeStream } from './AbstractChangesStream.js';
1
+ import type { Registry } from '../../../core/entity/Registry.ts';
2
+ import { AbstractChangeStream } from './AbstractChangesStream.ts';
3
3
  export declare class CnpmjsorgChangesStream extends AbstractChangeStream {
4
4
  getInitialSince(registry: Registry): Promise<string>;
5
5
  private tryFetch;
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
8
  import { E500 } from 'egg-errors';
9
- import { RegistryType } from '../../../common/enum/Registry.js';
10
- import { AbstractChangeStream, RegistryChangesStream, } from './AbstractChangesStream.js';
9
+ import { RegistryType } from "../../../common/enum/Registry.js";
10
+ import { AbstractChangeStream, RegistryChangesStream, } from "./AbstractChangesStream.js";
11
11
  const MAX_LIMIT = 10_000;
12
12
  let CnpmjsorgChangesStream = class CnpmjsorgChangesStream extends AbstractChangeStream {
13
13
  // cnpmjsorg 未实现 update_seq 字段
@@ -1,5 +1,5 @@
1
- import type { Registry } from '../../../core/entity/Registry.js';
2
- import { AbstractChangeStream, type ChangesStreamChange } from './AbstractChangesStream.js';
1
+ import type { Registry } from '../../../core/entity/Registry.ts';
2
+ import { AbstractChangeStream, type ChangesStreamChange } from './AbstractChangesStream.ts';
3
3
  export declare class NpmChangesStream extends AbstractChangeStream {
4
4
  getInitialSince(registry: Registry): Promise<string>;
5
5
  fetchChanges(registry: Registry, since: string): AsyncGenerator<ChangesStreamChange>;
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { SingletonProto } from '@eggjs/tegg';
8
8
  import { E500 } from 'egg-errors';
9
- import { RegistryType } from '../../../common/enum/Registry.js';
10
- import { AbstractChangeStream, RegistryChangesStream, } from './AbstractChangesStream.js';
9
+ import { RegistryType } from "../../../common/enum/Registry.js";
10
+ import { AbstractChangeStream, RegistryChangesStream, } from "./AbstractChangesStream.js";
11
11
  let NpmChangesStream = class NpmChangesStream extends AbstractChangeStream {
12
12
  async getInitialSince(registry) {
13
13
  const db = new URL(registry.changeStream).origin;
@@ -2,7 +2,7 @@ import type { Readable } from 'node:stream';
2
2
  import type { IncomingHttpHeaders } from 'node:http';
3
3
  import type { EggContext } from '@eggjs/tegg';
4
4
  import type { estypes } from '@elastic/elasticsearch';
5
- import type { CnpmcoreConfig } from '../port/config.js';
5
+ import type { CnpmcoreConfig } from '../port/config.ts';
6
6
  export interface UploadResult {
7
7
  key: string;
8
8
  }
@@ -1,5 +1,5 @@
1
- import { Entity, type EntityData } from './Entity.js';
2
- import { type EasyData } from '../util/EntityUtil.js';
1
+ import { Entity, type EntityData } from './Entity.ts';
2
+ import { type EasyData } from '../util/EntityUtil.ts';
3
3
  interface BinaryData extends EntityData {
4
4
  binaryId: string;
5
5
  category: string;
@@ -1,5 +1,5 @@
1
- import { Entity } from './Entity.js';
2
- import { EntityUtil } from '../util/EntityUtil.js';
1
+ import { Entity } from "./Entity.js";
2
+ import { EntityUtil } from "../util/EntityUtil.js";
3
3
  export class Binary extends Entity {
4
4
  constructor(data) {
5
5
  super(data);
@@ -1,5 +1,5 @@
1
- import { Entity, type EntityData } from './Entity.js';
2
- import { type EasyData } from '../util/EntityUtil.js';
1
+ import { Entity, type EntityData } from './Entity.ts';
2
+ import { type EasyData } from '../util/EntityUtil.ts';
3
3
  interface ChangeData extends EntityData {
4
4
  changeId: string;
5
5
  type: string;
@@ -1,5 +1,5 @@
1
- import { Entity } from './Entity.js';
2
- import { EntityUtil } from '../util/EntityUtil.js';
1
+ import { Entity } from "./Entity.js";
2
+ import { EntityUtil } from "../util/EntityUtil.js";
3
3
  export class Change extends Entity {
4
4
  constructor(data) {
5
5
  super(data);