cnpmcore 4.11.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.
- package/dist/app/common/FileUtil.js +1 -1
- package/dist/app/common/PackageUtil.d.ts +1 -1
- package/dist/app/common/adapter/BugVersionStore.d.ts +1 -1
- package/dist/app/common/adapter/NFSAdapter.js +1 -1
- package/dist/app/common/adapter/NPMRegistry.d.ts +1 -1
- package/dist/app/common/adapter/NPMRegistry.js +1 -1
- package/dist/app/common/adapter/binary/AbstractBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/ApiBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/ApiBinary.js +2 -2
- package/dist/app/common/adapter/binary/BucketBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/BucketBinary.js +3 -3
- package/dist/app/common/adapter/binary/ChromeForTestingBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/ChromeForTestingBinary.js +2 -2
- package/dist/app/common/adapter/binary/CypressBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/CypressBinary.js +2 -2
- package/dist/app/common/adapter/binary/EdgedriverBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/EdgedriverBinary.js +2 -2
- package/dist/app/common/adapter/binary/ElectronBinary.d.ts +3 -3
- package/dist/app/common/adapter/binary/ElectronBinary.js +4 -4
- package/dist/app/common/adapter/binary/FirefoxBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/FirefoxBinary.js +3 -3
- package/dist/app/common/adapter/binary/GithubBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/GithubBinary.js +3 -3
- package/dist/app/common/adapter/binary/ImageminBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/ImageminBinary.js +3 -3
- package/dist/app/common/adapter/binary/NodeBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/NodeBinary.js +3 -3
- package/dist/app/common/adapter/binary/NodePreGypBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/NodePreGypBinary.js +3 -3
- package/dist/app/common/adapter/binary/NwjsBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/NwjsBinary.js +4 -4
- package/dist/app/common/adapter/binary/PlaywrightBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/PlaywrightBinary.js +2 -2
- package/dist/app/common/adapter/binary/PrismaBinary.d.ts +2 -2
- package/dist/app/common/adapter/binary/PrismaBinary.js +3 -3
- package/dist/app/common/adapter/binary/PuppeteerBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/PuppeteerBinary.js +2 -2
- package/dist/app/common/adapter/binary/SqlcipherBinary.d.ts +1 -1
- package/dist/app/common/adapter/binary/SqlcipherBinary.js +2 -2
- package/dist/app/common/adapter/changesStream/AbstractChangesStream.d.ts +2 -2
- package/dist/app/common/adapter/changesStream/CnpmcoreChangesStream.d.ts +2 -2
- package/dist/app/common/adapter/changesStream/CnpmcoreChangesStream.js +2 -2
- package/dist/app/common/adapter/changesStream/CnpmjsorgChangesStream.d.ts +2 -2
- package/dist/app/common/adapter/changesStream/CnpmjsorgChangesStream.js +2 -2
- package/dist/app/common/adapter/changesStream/NpmChangesStream.d.ts +2 -2
- package/dist/app/common/adapter/changesStream/NpmChangesStream.js +2 -2
- package/dist/app/common/typing.d.ts +1 -1
- package/dist/app/core/entity/Binary.d.ts +2 -2
- package/dist/app/core/entity/Binary.js +2 -2
- package/dist/app/core/entity/Change.d.ts +2 -2
- package/dist/app/core/entity/Change.js +2 -2
- package/dist/app/core/entity/Dist.d.ts +2 -2
- package/dist/app/core/entity/Dist.js +2 -2
- package/dist/app/core/entity/Hook.d.ts +3 -3
- package/dist/app/core/entity/Hook.js +2 -2
- package/dist/app/core/entity/HookEvent.d.ts +1 -1
- package/dist/app/core/entity/HookEvent.js +1 -1
- package/dist/app/core/entity/Package.d.ts +3 -3
- package/dist/app/core/entity/Package.js +4 -4
- package/dist/app/core/entity/PackageTag.d.ts +2 -2
- package/dist/app/core/entity/PackageTag.js +2 -2
- package/dist/app/core/entity/PackageVersion.d.ts +3 -3
- package/dist/app/core/entity/PackageVersion.js +3 -3
- package/dist/app/core/entity/PackageVersionBlock.d.ts +2 -2
- package/dist/app/core/entity/PackageVersionBlock.js +2 -2
- package/dist/app/core/entity/PackageVersionFile.d.ts +3 -3
- package/dist/app/core/entity/PackageVersionFile.js +2 -2
- package/dist/app/core/entity/PackageVersionManifest.d.ts +2 -2
- package/dist/app/core/entity/PackageVersionManifest.js +2 -2
- package/dist/app/core/entity/ProxyCache.d.ts +3 -3
- package/dist/app/core/entity/ProxyCache.js +3 -3
- package/dist/app/core/entity/Registry.d.ts +3 -3
- package/dist/app/core/entity/Registry.js +2 -2
- package/dist/app/core/entity/Scope.d.ts +2 -2
- package/dist/app/core/entity/Scope.js +2 -2
- package/dist/app/core/entity/SqlRange.js +1 -1
- package/dist/app/core/entity/Task.d.ts +4 -4
- package/dist/app/core/entity/Task.js +6 -6
- package/dist/app/core/entity/Token.d.ts +2 -2
- package/dist/app/core/entity/Token.js +2 -2
- package/dist/app/core/entity/User.d.ts +2 -2
- package/dist/app/core/entity/User.js +3 -3
- package/dist/app/core/entity/WebauthnCredential.d.ts +2 -2
- package/dist/app/core/entity/WebauthnCredential.js +2 -2
- package/dist/app/core/event/BugVersionFixHandler.js +2 -2
- package/dist/app/core/event/CacheCleaner.js +1 -1
- package/dist/app/core/event/ChangesStream.d.ts +4 -4
- package/dist/app/core/event/ChangesStream.js +4 -4
- package/dist/app/core/event/StoreManifest.js +3 -3
- package/dist/app/core/event/SyncESPackage.d.ts +1 -1
- package/dist/app/core/event/SyncESPackage.js +1 -1
- package/dist/app/core/event/SyncPackageVersionFile.js +2 -2
- package/dist/app/core/event/TotalHandler.d.ts +1 -1
- package/dist/app/core/event/TotalHandler.js +1 -1
- package/dist/app/core/event/index.d.ts +1 -1
- package/dist/app/core/service/BinarySyncerService.d.ts +5 -5
- package/dist/app/core/service/BinarySyncerService.js +10 -10
- package/dist/app/core/service/BugVersionService.d.ts +1 -1
- package/dist/app/core/service/BugVersionService.js +3 -3
- package/dist/app/core/service/CacheService.d.ts +2 -2
- package/dist/app/core/service/CacheService.js +1 -1
- package/dist/app/core/service/ChangesStreamService.d.ts +3 -3
- package/dist/app/core/service/ChangesStreamService.js +8 -8
- package/dist/app/core/service/CreateHookTriggerService.d.ts +2 -2
- package/dist/app/core/service/CreateHookTriggerService.js +6 -6
- package/dist/app/core/service/FixNoPaddingVersionService.js +1 -1
- package/dist/app/core/service/HomeService.d.ts +1 -1
- package/dist/app/core/service/HomeService.js +2 -2
- package/dist/app/core/service/HookManageService.d.ts +2 -2
- package/dist/app/core/service/HookManageService.js +1 -1
- package/dist/app/core/service/HookTriggerService.d.ts +3 -3
- package/dist/app/core/service/HookTriggerService.js +3 -3
- package/dist/app/core/service/PackageManagerService.d.ts +7 -7
- package/dist/app/core/service/PackageManagerService.js +8 -8
- package/dist/app/core/service/PackageSearchService.d.ts +4 -4
- package/dist/app/core/service/PackageSearchService.js +2 -2
- package/dist/app/core/service/PackageSyncerService.d.ts +6 -6
- package/dist/app/core/service/PackageSyncerService.js +7 -7
- package/dist/app/core/service/PackageVersionFileService.d.ts +4 -4
- package/dist/app/core/service/PackageVersionFileService.js +5 -5
- package/dist/app/core/service/PackageVersionService.d.ts +1 -1
- package/dist/app/core/service/PackageVersionService.js +2 -2
- package/dist/app/core/service/ProxyCacheService.d.ts +5 -5
- package/dist/app/core/service/ProxyCacheService.js +7 -7
- package/dist/app/core/service/RegistryManagerService.d.ts +3 -3
- package/dist/app/core/service/RegistryManagerService.js +5 -5
- package/dist/app/core/service/ScopeManagerService.d.ts +3 -3
- package/dist/app/core/service/ScopeManagerService.js +2 -2
- package/dist/app/core/service/TaskService.d.ts +7 -7
- package/dist/app/core/service/TaskService.js +2 -2
- package/dist/app/core/service/TokenService.d.ts +3 -3
- package/dist/app/core/service/TokenService.js +6 -6
- package/dist/app/core/service/UserService.d.ts +6 -6
- package/dist/app/core/service/UserService.js +7 -7
- package/dist/app/core/util/EntityUtil.d.ts +1 -1
- package/dist/app/infra/AuthAdapter.d.ts +1 -1
- package/dist/app/infra/NFSClientAdapter.d.ts +1 -1
- package/dist/app/infra/QueueAdapter.d.ts +1 -1
- package/dist/app/infra/SearchAdapter.d.ts +1 -1
- package/dist/app/port/UserRoleManager.d.ts +3 -3
- package/dist/app/port/UserRoleManager.js +1 -1
- package/dist/app/port/config.d.ts +3 -3
- package/dist/app/port/config.js +1 -1
- package/dist/app/port/controller/AbstractController.d.ts +8 -8
- package/dist/app/port/controller/AbstractController.js +4 -4
- package/dist/app/port/controller/AccessController.d.ts +1 -1
- package/dist/app/port/controller/AccessController.js +3 -3
- package/dist/app/port/controller/BinarySyncController.d.ts +2 -2
- package/dist/app/port/controller/BinarySyncController.js +4 -4
- package/dist/app/port/controller/ChangesStreamController.d.ts +1 -1
- package/dist/app/port/controller/ChangesStreamController.js +1 -1
- package/dist/app/port/controller/DownloadController.d.ts +1 -1
- package/dist/app/port/controller/DownloadController.js +3 -3
- package/dist/app/port/controller/HomeController.d.ts +2 -2
- package/dist/app/port/controller/HomeController.js +1 -1
- package/dist/app/port/controller/HookController.d.ts +5 -5
- package/dist/app/port/controller/HookController.js +2 -2
- package/dist/app/port/controller/PackageBlockController.d.ts +2 -2
- package/dist/app/port/controller/PackageBlockController.js +4 -4
- package/dist/app/port/controller/PackageSyncController.d.ts +5 -5
- package/dist/app/port/controller/PackageSyncController.js +5 -5
- package/dist/app/port/controller/PackageTagController.d.ts +1 -1
- package/dist/app/port/controller/PackageTagController.js +3 -3
- package/dist/app/port/controller/PackageVersionFileController.d.ts +1 -1
- package/dist/app/port/controller/PackageVersionFileController.js +5 -5
- package/dist/app/port/controller/ProxyCacheController.d.ts +2 -2
- package/dist/app/port/controller/ProxyCacheController.js +4 -4
- package/dist/app/port/controller/RegistryController.d.ts +3 -3
- package/dist/app/port/controller/RegistryController.js +3 -3
- package/dist/app/port/controller/ScopeController.d.ts +2 -2
- package/dist/app/port/controller/ScopeController.js +3 -3
- package/dist/app/port/controller/TokenController.d.ts +2 -2
- package/dist/app/port/controller/TokenController.js +2 -2
- package/dist/app/port/controller/UserController.d.ts +2 -2
- package/dist/app/port/controller/UserController.js +4 -4
- package/dist/app/port/controller/admin/PaddingVersionController.d.ts +1 -1
- package/dist/app/port/controller/admin/PaddingVersionController.js +1 -1
- package/dist/app/port/controller/convertor/HookConvertor.d.ts +4 -4
- package/dist/app/port/controller/package/DownloadPackageVersionTar.d.ts +2 -2
- package/dist/app/port/controller/package/DownloadPackageVersionTar.js +3 -3
- package/dist/app/port/controller/package/RemovePackageVersionController.d.ts +1 -1
- package/dist/app/port/controller/package/RemovePackageVersionController.js +2 -2
- package/dist/app/port/controller/package/SavePackageVersionController.d.ts +1 -1
- package/dist/app/port/controller/package/SavePackageVersionController.js +3 -3
- package/dist/app/port/controller/package/SearchPackageController.d.ts +2 -2
- package/dist/app/port/controller/package/SearchPackageController.js +3 -3
- package/dist/app/port/controller/package/ShowPackageController.d.ts +1 -1
- package/dist/app/port/controller/package/ShowPackageController.js +5 -5
- package/dist/app/port/controller/package/ShowPackageVersionController.d.ts +1 -1
- package/dist/app/port/controller/package/ShowPackageVersionController.js +6 -6
- package/dist/app/port/controller/package/UpdatePackageController.d.ts +1 -1
- package/dist/app/port/controller/package/UpdatePackageController.js +2 -2
- package/dist/app/port/middleware/AdminAccess.js +1 -1
- package/dist/app/port/middleware/AlwaysAuth.js +1 -1
- package/dist/app/port/middleware/ErrorHandler.js +1 -1
- package/dist/app/port/middleware/index.js +3 -3
- package/dist/app/port/schedule/CheckProxyCacheUpdateWorker.js +2 -2
- package/dist/app/port/schedule/CheckRecentlyUpdatedPackages.js +2 -2
- package/dist/app/port/schedule/CleanTempDir.js +1 -1
- package/dist/app/port/schedule/CreateSyncBinaryTask.js +1 -1
- package/dist/app/port/schedule/CreateTriggerHookWorker.js +1 -1
- package/dist/app/port/schedule/SyncBinaryWorker.js +1 -1
- package/dist/app/port/schedule/SyncPackageWorker.js +1 -1
- package/dist/app/port/schedule/SyncProxyCacheWorker.js +1 -1
- package/dist/app/port/schedule/TriggerHookWorker.js +1 -1
- package/dist/app/port/schedule/UpdateTotalData.js +3 -3
- package/dist/app/port/typebox.d.ts +2 -2
- package/dist/app/port/typebox.js +3 -3
- package/dist/app/port/webauth/WebauthController.d.ts +2 -2
- package/dist/app/port/webauth/WebauthController.js +4 -4
- package/dist/app/repository/BinaryRepository.d.ts +2 -2
- package/dist/app/repository/BinaryRepository.js +3 -3
- package/dist/app/repository/ChangeRepository.d.ts +3 -3
- package/dist/app/repository/ChangeRepository.js +2 -2
- package/dist/app/repository/DistRepository.d.ts +2 -2
- package/dist/app/repository/HookRepository.d.ts +2 -2
- package/dist/app/repository/HookRepository.js +2 -2
- package/dist/app/repository/PackageRepository.d.ts +8 -8
- package/dist/app/repository/PackageRepository.js +7 -7
- package/dist/app/repository/PackageVersionBlockRepository.d.ts +3 -3
- package/dist/app/repository/PackageVersionBlockRepository.js +3 -3
- package/dist/app/repository/PackageVersionDownloadRepository.d.ts +2 -2
- package/dist/app/repository/PackageVersionDownloadRepository.js +1 -1
- package/dist/app/repository/PackageVersionFileRepository.d.ts +2 -2
- package/dist/app/repository/PackageVersionFileRepository.js +4 -4
- package/dist/app/repository/PackageVersionRepository.d.ts +3 -3
- package/dist/app/repository/PackageVersionRepository.js +2 -2
- package/dist/app/repository/ProxyCacheRepository.d.ts +5 -5
- package/dist/app/repository/ProxyCacheRepository.js +4 -4
- package/dist/app/repository/RegistryRepository.d.ts +4 -4
- package/dist/app/repository/RegistryRepository.js +4 -4
- package/dist/app/repository/ScopeRepository.d.ts +4 -4
- package/dist/app/repository/ScopeRepository.js +4 -4
- package/dist/app/repository/SearchRepository.d.ts +1 -1
- package/dist/app/repository/TaskRepository.d.ts +8 -8
- package/dist/app/repository/TaskRepository.js +4 -4
- package/dist/app/repository/TotalRepository.d.ts +1 -1
- package/dist/app/repository/TotalRepository.js +2 -2
- package/dist/app/repository/UserRepository.d.ts +4 -4
- package/dist/app/repository/UserRepository.js +6 -6
- package/dist/app/repository/model/Binary.d.ts +1 -1
- package/dist/app/repository/model/Binary.js +1 -1
- package/dist/app/repository/model/Change.d.ts +1 -1
- package/dist/app/repository/model/Change.js +1 -1
- package/dist/app/repository/model/Dist.d.ts +1 -1
- package/dist/app/repository/model/Dist.js +1 -1
- package/dist/app/repository/model/HistoryTask.d.ts +2 -2
- package/dist/app/repository/model/HistoryTask.js +1 -1
- package/dist/app/repository/model/Hook.d.ts +2 -2
- package/dist/app/repository/model/Hook.js +1 -1
- package/dist/app/repository/model/Maintainer.d.ts +1 -1
- package/dist/app/repository/model/Maintainer.js +1 -1
- package/dist/app/repository/model/Package.d.ts +1 -1
- package/dist/app/repository/model/Package.js +2 -2
- package/dist/app/repository/model/PackageDep.d.ts +1 -1
- package/dist/app/repository/model/PackageDep.js +1 -1
- package/dist/app/repository/model/PackageTag.d.ts +1 -1
- package/dist/app/repository/model/PackageTag.js +1 -1
- package/dist/app/repository/model/PackageVersion.d.ts +1 -1
- package/dist/app/repository/model/PackageVersion.js +3 -3
- package/dist/app/repository/model/PackageVersionBlock.d.ts +1 -1
- package/dist/app/repository/model/PackageVersionBlock.js +1 -1
- package/dist/app/repository/model/PackageVersionDownload.d.ts +1 -1
- package/dist/app/repository/model/PackageVersionDownload.js +1 -1
- package/dist/app/repository/model/PackageVersionFile.d.ts +1 -1
- package/dist/app/repository/model/PackageVersionFile.js +2 -2
- package/dist/app/repository/model/PackageVersionManifest.d.ts +1 -1
- package/dist/app/repository/model/PackageVersionManifest.js +1 -1
- package/dist/app/repository/model/ProxyCache.d.ts +2 -2
- package/dist/app/repository/model/ProxyCache.js +1 -1
- package/dist/app/repository/model/Registry.d.ts +2 -2
- package/dist/app/repository/model/Registry.js +1 -1
- package/dist/app/repository/model/Scope.d.ts +1 -1
- package/dist/app/repository/model/Scope.js +1 -1
- package/dist/app/repository/model/Task.d.ts +2 -2
- package/dist/app/repository/model/Task.js +1 -1
- package/dist/app/repository/model/Token.d.ts +1 -1
- package/dist/app/repository/model/Token.js +1 -1
- package/dist/app/repository/model/TokenPackage.d.ts +1 -1
- package/dist/app/repository/model/TokenPackage.js +1 -1
- package/dist/app/repository/model/Total.d.ts +1 -1
- package/dist/app/repository/model/Total.js +1 -1
- package/dist/app/repository/model/User.d.ts +1 -1
- package/dist/app/repository/model/User.js +1 -1
- package/dist/app/repository/model/WebauthnCredential.d.ts +1 -1
- package/dist/app/repository/model/WebauthnCredential.js +1 -1
- package/dist/app/repository/util/EntityProperty.js +1 -1
- package/dist/app/repository/util/ModelConvertor.d.ts +1 -1
- package/dist/app/repository/util/ModelConvertor.js +1 -1
- package/dist/app.js +1 -1
- package/dist/config/binaries.d.ts +1 -1
- package/dist/config/binaries.js +1 -1
- package/dist/config/config.default.d.ts +1 -1
- package/dist/config/config.default.js +3 -3
- package/dist/config/config.unittest.js +1 -1
- 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
|
|
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.
|
|
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;
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
4
|
-
import type { BinaryName, BinaryTaskConfig } from '../../../../config/binaries.
|
|
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;
|
|
@@ -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
|
|
12
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.
|
|
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
|
|
10
|
-
import { BinaryType } from
|
|
11
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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
|
|
@@ -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
|
|
23
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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);
|
|
@@ -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
|
|
9
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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;
|
|
@@ -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
|
|
16
|
-
import { BinaryType } from
|
|
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.
|
|
2
|
-
import { GithubBinary } from './GithubBinary.
|
|
3
|
-
import { type FetchResult } from './AbstractBinary.
|
|
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
|
|
9
|
-
import { BinaryType } from
|
|
10
|
-
import { GithubBinary } from
|
|
11
|
-
import { BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type FetchResult } from './AbstractBinary.
|
|
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
|
|
10
|
-
import { BinaryType } from
|
|
11
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type BinaryItem, type FetchResult } from './AbstractBinary.
|
|
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
|
|
9
|
-
import { BinaryType } from
|
|
10
|
-
import { AbstractBinary, BinaryAdapter } from
|
|
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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BinaryName } from '../../../../config/binaries.
|
|
2
|
-
import { AbstractBinary, type FetchResult } from './AbstractBinary.
|
|
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
|
|
9
|
-
import { BinaryType } from
|
|
10
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type FetchResult } from './AbstractBinary.
|
|
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
|
|
9
|
+
import binaries, {} from "../../../../config/binaries.js";
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
|
-
import { BinaryType } from
|
|
12
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type FetchResult } from './AbstractBinary.
|
|
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
|
|
10
|
-
import { BinaryType } from
|
|
11
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { BucketBinary } from './BucketBinary.
|
|
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
|
|
9
|
-
import { BinaryType } from
|
|
10
|
-
import { BinaryAdapter, } from
|
|
11
|
-
import { BucketBinary } from
|
|
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);
|
|
@@ -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
|
|
11
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
2
|
-
import { AbstractBinary, type FetchResult } from './AbstractBinary.
|
|
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
|
|
16
|
-
import { BinaryType } from
|
|
17
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
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
|
|
10
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
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
|
|
9
|
-
import { AbstractBinary, BinaryAdapter, } from
|
|
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.
|
|
3
|
-
import type { Registry } from '../../../core/entity/Registry.
|
|
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.
|
|
2
|
-
import { AbstractChangeStream } from './AbstractChangesStream.
|
|
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
|
|
10
|
-
import { AbstractChangeStream, RegistryChangesStream, } from
|
|
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.
|
|
2
|
-
import { AbstractChangeStream } from './AbstractChangesStream.
|
|
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
|
|
10
|
-
import { AbstractChangeStream, RegistryChangesStream, } from
|
|
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.
|
|
2
|
-
import { AbstractChangeStream, type ChangesStreamChange } from './AbstractChangesStream.
|
|
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
|
|
10
|
-
import { AbstractChangeStream, RegistryChangesStream, } from
|
|
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.
|
|
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.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
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, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
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, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
3
3
|
interface DistData extends EntityData {
|
|
4
4
|
distId: string;
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
3
|
-
import type { HookType } from '../../common/enum/Hook.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
3
|
+
import type { HookType } from '../../common/enum/Hook.ts';
|
|
4
4
|
export type CreateHookData = Omit<EasyData<HookData, 'hookId'>, 'enable' | 'latestTaskId'>;
|
|
5
5
|
export interface HookData extends EntityData {
|
|
6
6
|
hookId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
|
-
import { Entity } from
|
|
3
|
-
import { EntityUtil } from
|
|
2
|
+
import { Entity } from "./Entity.js";
|
|
3
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
4
4
|
export class Hook extends Entity {
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super(data);
|