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.
- 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 +7 -7
- 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 +5 -1
- package/dist/config/binaries.js +6 -3
- 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
|
@@ -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);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
3
|
-
import { Dist } from './Dist.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
3
|
+
import { Dist } from './Dist.ts';
|
|
4
4
|
interface PackageData extends EntityData {
|
|
5
5
|
scope: string;
|
|
6
6
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
3
|
-
import { Dist } from
|
|
4
|
-
import { getFullname } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
|
+
import { Dist } from "./Dist.js";
|
|
4
|
+
import { getFullname } from "../../common/PackageUtil.js";
|
|
5
5
|
export var DIST_NAMES;
|
|
6
6
|
(function (DIST_NAMES) {
|
|
7
7
|
DIST_NAMES["ABBREVIATED"] = "abbreviated.json";
|
|
@@ -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 PackageTagData extends EntityData {
|
|
4
4
|
packageId: string;
|
|
5
5
|
packageTagId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Dist } from './Dist.
|
|
2
|
-
import { Entity, type EntityData } from './Entity.
|
|
3
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
1
|
+
import type { Dist } from './Dist.ts';
|
|
2
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
3
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
4
4
|
interface PackageVersionData extends EntityData {
|
|
5
5
|
packageId: string;
|
|
6
6
|
packageVersionId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
3
|
-
import { PaddingSemVer } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
|
+
import { PaddingSemVer } from "./PaddingSemVer.js";
|
|
4
4
|
export class PackageVersion extends Entity {
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super(data);
|
|
@@ -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 PackageVersionBlockData extends EntityData {
|
|
4
4
|
packageVersionBlockId: string;
|
|
5
5
|
packageId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
3
|
export class PackageVersionBlock extends Entity {
|
|
4
4
|
constructor(data) {
|
|
5
5
|
super(data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
3
|
-
import type { Dist } from './Dist.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
3
|
+
import type { Dist } from './Dist.ts';
|
|
4
4
|
interface PackageVersionFileData extends EntityData {
|
|
5
5
|
packageVersionFileId: string;
|
|
6
6
|
packageVersionId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
3
|
export class PackageVersionFile extends Entity {
|
|
4
4
|
constructor(data) {
|
|
5
5
|
super(data);
|
|
@@ -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 PackageVersionManifestData extends EntityData {
|
|
4
4
|
packageId: string;
|
|
5
5
|
packageVersionId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
3
|
export class PackageVersionManifest extends Entity {
|
|
4
4
|
constructor(data) {
|
|
5
5
|
super(data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { type DIST_NAMES } from './Package.
|
|
3
|
-
import type { EasyData } from '../util/EntityUtil.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type DIST_NAMES } from './Package.ts';
|
|
3
|
+
import type { EasyData } from '../util/EntityUtil.ts';
|
|
4
4
|
interface ProxyCacheData extends EntityData {
|
|
5
5
|
fullname: string;
|
|
6
6
|
fileType: DIST_NAMES;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { isPkgManifest } from
|
|
3
|
-
import { PROXY_CACHE_DIR_NAME } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { isPkgManifest } from "./Package.js";
|
|
3
|
+
import { PROXY_CACHE_DIR_NAME } from "../../common/constants.js";
|
|
4
4
|
export class ProxyCache extends Entity {
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super(data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { type EasyData } from '../util/EntityUtil.
|
|
3
|
-
import type { RegistryType } from '../../common/enum/Registry.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { type EasyData } from '../util/EntityUtil.ts';
|
|
3
|
+
import type { RegistryType } from '../../common/enum/Registry.ts';
|
|
4
4
|
interface RegistryData extends EntityData {
|
|
5
5
|
name: string;
|
|
6
6
|
registryId: 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 ScopeData extends EntityData {
|
|
4
4
|
name: string;
|
|
5
5
|
scopeId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Entity, type EntityData } from './Entity.
|
|
2
|
-
import { TaskState, TaskType } from '../../common/enum/Task.
|
|
3
|
-
import type { HookEvent } from './HookEvent.
|
|
4
|
-
import { type DIST_NAMES } from './Package.
|
|
1
|
+
import { Entity, type EntityData } from './Entity.ts';
|
|
2
|
+
import { TaskState, TaskType } from '../../common/enum/Task.ts';
|
|
3
|
+
import type { HookEvent } from './HookEvent.ts';
|
|
4
|
+
import { type DIST_NAMES } from './Package.ts';
|
|
5
5
|
export declare const HOST_NAME: string;
|
|
6
6
|
export declare const PID: number;
|
|
7
7
|
export interface TaskBaseData {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import os from 'node:os';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { InternalServerError } from 'egg-errors';
|
|
4
|
-
import { Entity } from
|
|
5
|
-
import { EntityUtil } from
|
|
6
|
-
import { TaskState, TaskType } from
|
|
7
|
-
import { PROXY_CACHE_DIR_NAME } from
|
|
8
|
-
import dayjs from
|
|
9
|
-
import { isPkgManifest } from
|
|
4
|
+
import { Entity } from "./Entity.js";
|
|
5
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
6
|
+
import { TaskState, TaskType } from "../../common/enum/Task.js";
|
|
7
|
+
import { PROXY_CACHE_DIR_NAME } from "../../common/constants.js";
|
|
8
|
+
import dayjs from "../../common/dayjs.js";
|
|
9
|
+
import { isPkgManifest } from "./Package.js";
|
|
10
10
|
export const HOST_NAME = os.hostname();
|
|
11
11
|
export const PID = process.pid;
|
|
12
12
|
export class Task extends Entity {
|
|
@@ -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
|
export declare enum TokenType {
|
|
4
4
|
granular = "granular",
|
|
5
5
|
classic = "classic"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { Entity } from
|
|
3
|
-
import { EntityUtil } from
|
|
2
|
+
import { Entity } from "./Entity.js";
|
|
3
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
4
4
|
export var TokenType;
|
|
5
5
|
(function (TokenType) {
|
|
6
6
|
TokenType["granular"] = "granular";
|
|
@@ -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 UserData extends EntityData {
|
|
4
4
|
userId: string;
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
3
|
-
import { cleanUserPrefix } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
|
+
import { cleanUserPrefix } from "../../common/PackageUtil.js";
|
|
4
4
|
export class User extends Entity {
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super(data);
|
|
@@ -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 WebauthnCredentialData extends EntityData {
|
|
4
4
|
wancId: string;
|
|
5
5
|
userId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { EntityUtil } from
|
|
1
|
+
import { Entity } from "./Entity.js";
|
|
2
|
+
import { EntityUtil } from "../util/EntityUtil.js";
|
|
3
3
|
export class WebauthnCredential extends Entity {
|
|
4
4
|
constructor(data) {
|
|
5
5
|
super(data);
|
|
@@ -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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_VERSION_ADDED } from
|
|
12
|
-
import { BUG_VERSIONS } from
|
|
11
|
+
import { PACKAGE_VERSION_ADDED } from "./index.js";
|
|
12
|
+
import { BUG_VERSIONS } from "../../common/constants.js";
|
|
13
13
|
let BugVersionFixHandler = class BugVersionFixHandler {
|
|
14
14
|
async handle(fullname) {
|
|
15
15
|
if (fullname !== BUG_VERSIONS)
|
|
@@ -8,7 +8,7 @@ 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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_BLOCKED, PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNBLOCKED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from
|
|
11
|
+
import { PACKAGE_BLOCKED, PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNBLOCKED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from "./index.js";
|
|
12
12
|
class CacheCleanerEvent {
|
|
13
13
|
async removeCache(fullname) {
|
|
14
14
|
await this.cacheService.removeCache(fullname);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EggAppConfig } from 'egg';
|
|
2
|
-
import { type PackageMetaChange } from './index.
|
|
3
|
-
import { Change } from '../entity/Change.
|
|
4
|
-
import type { User } from '../entity/User.
|
|
5
|
-
import type { TaskService } from '../service/TaskService.
|
|
2
|
+
import { type PackageMetaChange } from './index.ts';
|
|
3
|
+
import { Change } from '../entity/Change.ts';
|
|
4
|
+
import type { User } from '../entity/User.ts';
|
|
5
|
+
import type { TaskService } from '../service/TaskService.ts';
|
|
6
6
|
declare class ChangesStreamEvent {
|
|
7
7
|
private readonly changeRepository;
|
|
8
8
|
protected readonly taskService: TaskService;
|
|
@@ -8,10 +8,10 @@ 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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from
|
|
12
|
-
import { Change } from
|
|
13
|
-
import { HookEvent } from
|
|
14
|
-
import { Task } from
|
|
11
|
+
import { PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from "./index.js";
|
|
12
|
+
import { Change } from "../entity/Change.js";
|
|
13
|
+
import { HookEvent } from "../entity/HookEvent.js";
|
|
14
|
+
import { Task } from "../entity/Task.js";
|
|
15
15
|
class ChangesStreamEvent {
|
|
16
16
|
get hookEnable() {
|
|
17
17
|
return this.config.cnpmcore.hookEnable;
|
|
@@ -8,9 +8,9 @@ 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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_VERSION_ADDED } from
|
|
12
|
-
import { getScopeAndName } from
|
|
13
|
-
import { PackageVersionManifest as PackageVersionManifestEntity } from
|
|
11
|
+
import { PACKAGE_VERSION_ADDED } from "./index.js";
|
|
12
|
+
import { getScopeAndName } from "../../common/PackageUtil.js";
|
|
13
|
+
import { PackageVersionManifest as PackageVersionManifestEntity } from "../entity/PackageVersionManifest.js";
|
|
14
14
|
class StoreManifestEvent {
|
|
15
15
|
async savePackageVersionManifest(fullname, version) {
|
|
16
16
|
if (!this.config.cnpmcore.enableStoreFullPackageVersionManifestsToDatabase)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EggAppConfig } from 'egg';
|
|
2
|
-
import type { PackageSearchService } from '../service/PackageSearchService.
|
|
2
|
+
import type { PackageSearchService } from '../service/PackageSearchService.ts';
|
|
3
3
|
declare class SyncESPackage {
|
|
4
4
|
protected readonly packageSearchService: PackageSearchService;
|
|
5
5
|
protected readonly config: EggAppConfig;
|
|
@@ -8,7 +8,7 @@ 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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_BLOCKED, PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNBLOCKED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from
|
|
11
|
+
import { PACKAGE_BLOCKED, PACKAGE_MAINTAINER_CHANGED, PACKAGE_MAINTAINER_REMOVED, PACKAGE_META_CHANGED, PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_TAG_REMOVED, PACKAGE_UNBLOCKED, PACKAGE_UNPUBLISHED, PACKAGE_VERSION_ADDED, PACKAGE_VERSION_REMOVED, } from "./index.js";
|
|
12
12
|
class SyncESPackage {
|
|
13
13
|
async syncPackage(fullname) {
|
|
14
14
|
if (!this.config.cnpmcore.enableElasticsearch)
|
|
@@ -9,8 +9,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Event, Inject } from '@eggjs/tegg';
|
|
11
11
|
import { ForbiddenError } from 'egg-errors';
|
|
12
|
-
import { PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_VERSION_ADDED, } from
|
|
13
|
-
import { getScopeAndName } from
|
|
12
|
+
import { PACKAGE_TAG_ADDED, PACKAGE_TAG_CHANGED, PACKAGE_VERSION_ADDED, } from "./index.js";
|
|
13
|
+
import { getScopeAndName } from "../../common/PackageUtil.js";
|
|
14
14
|
class SyncPackageVersionFileEvent {
|
|
15
15
|
async syncPackageVersionFile(fullname, version) {
|
|
16
16
|
// must set enableUnpkg and enableSyncUnpkgFiles = true both
|
|
@@ -8,7 +8,7 @@ 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 { Event, Inject } from '@eggjs/tegg';
|
|
11
|
-
import { PACKAGE_ADDED, PACKAGE_VERSION_ADDED } from
|
|
11
|
+
import { PACKAGE_ADDED, PACKAGE_VERSION_ADDED } from "./index.js";
|
|
12
12
|
class TotalHandlerEvent {
|
|
13
13
|
}
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@eggjs/tegg';
|
|
2
|
-
import type { User } from '../entity/User.
|
|
2
|
+
import type { User } from '../entity/User.ts';
|
|
3
3
|
export declare const PACKAGE_ADDED = "PACKAGE_ADDED";
|
|
4
4
|
export declare const PACKAGE_UNPUBLISHED = "PACKAGE_UNPUBLISHED";
|
|
5
5
|
export declare const PACKAGE_BLOCKED = "PACKAGE_BLOCKED";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type BinaryName, type CategoryName } from '../../../config/binaries.
|
|
2
|
-
import { Task, type SyncBinaryTask } from '../entity/Task.
|
|
3
|
-
import { Binary } from '../entity/Binary.
|
|
4
|
-
import { AbstractService } from '../../common/AbstractService.
|
|
1
|
+
import { type BinaryName, type CategoryName } from '../../../config/binaries.ts';
|
|
2
|
+
import { Task, type SyncBinaryTask } from '../entity/Task.ts';
|
|
3
|
+
import { Binary } from '../entity/Binary.ts';
|
|
4
|
+
import { AbstractService } from '../../common/AbstractService.ts';
|
|
5
5
|
export declare class BinarySyncerService extends AbstractService {
|
|
6
6
|
private readonly binaryRepository;
|
|
7
7
|
private readonly taskService;
|
|
@@ -15,7 +15,7 @@ export declare class BinarySyncerService extends AbstractService {
|
|
|
15
15
|
}): Promise<Binary[]>;
|
|
16
16
|
listRootBinaries(binaryName: BinaryName): Promise<Binary[]>;
|
|
17
17
|
downloadBinary(binary: Binary): Promise<string | import("stream").Readable | undefined>;
|
|
18
|
-
createTask(binaryName: BinaryName, lastData?: Record<string, unknown>): Promise<Task<import("../entity/Task.
|
|
18
|
+
createTask(binaryName: BinaryName, lastData?: Record<string, unknown>): Promise<Task<import("../entity/Task.ts").TaskBaseData> | undefined>;
|
|
19
19
|
findTask(taskId: string): Promise<SyncBinaryTask | null>;
|
|
20
20
|
findTaskLog(task: SyncBinaryTask): Promise<string | import("stream").Readable | undefined>;
|
|
21
21
|
findExecuteTask(): Promise<SyncBinaryTask | null>;
|
|
@@ -10,16 +10,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import fs from 'node:fs/promises';
|
|
11
11
|
import { AccessLevel, Inject, SingletonProto, } from '@eggjs/tegg';
|
|
12
12
|
import { sortBy } from 'lodash-es';
|
|
13
|
-
import binaries, {} from
|
|
14
|
-
import { Task } from
|
|
15
|
-
import { Binary } from
|
|
16
|
-
import { downloadToTempfile } from
|
|
17
|
-
import { isTimeoutError } from
|
|
18
|
-
import { AbstractBinary, } from
|
|
19
|
-
import { AbstractService } from
|
|
20
|
-
import { BinaryType } from
|
|
21
|
-
import { TaskState, TaskType } from
|
|
22
|
-
import { platforms } from
|
|
13
|
+
import binaries, {} from "../../../config/binaries.js";
|
|
14
|
+
import { Task } from "../entity/Task.js";
|
|
15
|
+
import { Binary } from "../entity/Binary.js";
|
|
16
|
+
import { downloadToTempfile } from "../../common/FileUtil.js";
|
|
17
|
+
import { isTimeoutError } from "../../common/ErrorUtil.js";
|
|
18
|
+
import { AbstractBinary, } from "../../common/adapter/binary/AbstractBinary.js";
|
|
19
|
+
import { AbstractService } from "../../common/AbstractService.js";
|
|
20
|
+
import { BinaryType } from "../../common/enum/Binary.js";
|
|
21
|
+
import { TaskState, TaskType } from "../../common/enum/Task.js";
|
|
22
|
+
import { platforms } from "../../common/adapter/binary/PuppeteerBinary.js";
|
|
23
23
|
function isoNow() {
|
|
24
24
|
return new Date().toISOString();
|
|
25
25
|
}
|
|
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { AccessLevel, Inject, SingletonProto } from '@eggjs/tegg';
|
|
11
11
|
import pMap from 'p-map';
|
|
12
|
-
import { BugVersion } from
|
|
13
|
-
import { getScopeAndName } from
|
|
14
|
-
import { BUG_VERSIONS, LATEST_TAG } from
|
|
12
|
+
import { BugVersion } from "../entity/BugVersion.js";
|
|
13
|
+
import { getScopeAndName } from "../../common/PackageUtil.js";
|
|
14
|
+
import { BUG_VERSIONS, LATEST_TAG } from "../../common/constants.js";
|
|
15
15
|
let BugVersionService = class BugVersionService {
|
|
16
16
|
async getBugVersion() {
|
|
17
17
|
// TODO performance problem, cache bugVersion and update with schedule
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractService } from '../../common/AbstractService.
|
|
2
|
-
import type { ChangesStreamTaskData } from '../entity/Task.
|
|
1
|
+
import { AbstractService } from '../../common/AbstractService.ts';
|
|
2
|
+
import type { ChangesStreamTaskData } from '../entity/Task.ts';
|
|
3
3
|
export type UpstreamRegistryInfo = {
|
|
4
4
|
registry_name: string;
|
|
5
5
|
source_registry: string;
|
|
@@ -8,7 +8,7 @@ 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 { AccessLevel, Inject, SingletonProto } from '@eggjs/tegg';
|
|
11
|
-
import { AbstractService } from
|
|
11
|
+
import { AbstractService } from "../../common/AbstractService.js";
|
|
12
12
|
const TOTAL_DATA_KEY = '__TOTAL_DATA__';
|
|
13
13
|
let CacheService = class CacheService extends AbstractService {
|
|
14
14
|
async getPackageEtag(fullname, isFullManifests) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ChangesStreamTask } from '../entity/Task.
|
|
2
|
-
import type { Registry } from '../entity/Registry.
|
|
3
|
-
import { AbstractService } from '../../common/AbstractService.
|
|
1
|
+
import { type ChangesStreamTask } from '../entity/Task.ts';
|
|
2
|
+
import type { Registry } from '../entity/Registry.ts';
|
|
3
|
+
import { AbstractService } from '../../common/AbstractService.ts';
|
|
4
4
|
export declare class ChangesStreamService extends AbstractService {
|
|
5
5
|
private readonly taskRepository;
|
|
6
6
|
private readonly packageSyncerService;
|
|
@@ -11,14 +11,14 @@ import os from 'node:os';
|
|
|
11
11
|
import { setTimeout } from 'node:timers/promises';
|
|
12
12
|
import { AccessLevel, Inject, SingletonProto, } from '@eggjs/tegg';
|
|
13
13
|
import { E500 } from 'egg-errors';
|
|
14
|
-
import { RegistryNotMatchError, } from
|
|
15
|
-
import { HOST_NAME, Task } from
|
|
16
|
-
import { AbstractChangeStream } from
|
|
17
|
-
import { getScopeAndName } from
|
|
18
|
-
import { isTimeoutError } from
|
|
19
|
-
import { GLOBAL_WORKER } from
|
|
20
|
-
import { TaskState, TaskType } from
|
|
21
|
-
import { AbstractService } from
|
|
14
|
+
import { RegistryNotMatchError, } from "./PackageSyncerService.js";
|
|
15
|
+
import { HOST_NAME, Task } from "../entity/Task.js";
|
|
16
|
+
import { AbstractChangeStream } from "../../common/adapter/changesStream/AbstractChangesStream.js";
|
|
17
|
+
import { getScopeAndName } from "../../common/PackageUtil.js";
|
|
18
|
+
import { isTimeoutError } from "../../common/ErrorUtil.js";
|
|
19
|
+
import { GLOBAL_WORKER } from "../../common/constants.js";
|
|
20
|
+
import { TaskState, TaskType } from "../../common/enum/Task.js";
|
|
21
|
+
import { AbstractService } from "../../common/AbstractService.js";
|
|
22
22
|
let ChangesStreamService = class ChangesStreamService extends AbstractService {
|
|
23
23
|
// 出于向下兼容考虑, changes_stream 类型 Task 分为
|
|
24
24
|
// GLOBAL_WORKER: 默认的同步源
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractService } from '../../common/AbstractService.
|
|
2
|
-
import { type CreateHookTask } from '../entity/Task.
|
|
1
|
+
import { AbstractService } from '../../common/AbstractService.ts';
|
|
2
|
+
import { type CreateHookTask } from '../entity/Task.ts';
|
|
3
3
|
export declare class CreateHookTriggerService extends AbstractService {
|
|
4
4
|
private readonly hookRepository;
|
|
5
5
|
private readonly packageRepository;
|