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
|
@@ -8,12 +8,12 @@ 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 { ModelConvertor } from
|
|
12
|
-
import { User as UserEntity } from
|
|
13
|
-
import { Token as TokenEntity, isGranularToken } from
|
|
14
|
-
import { WebauthnCredential as WebauthnCredentialEntity } from
|
|
15
|
-
import { AbstractRepository } from
|
|
16
|
-
import { getFullname, getScopeAndName } from
|
|
11
|
+
import { ModelConvertor } from "./util/ModelConvertor.js";
|
|
12
|
+
import { User as UserEntity } from "../core/entity/User.js";
|
|
13
|
+
import { Token as TokenEntity, isGranularToken } from "../core/entity/Token.js";
|
|
14
|
+
import { WebauthnCredential as WebauthnCredentialEntity } from "../core/entity/WebauthnCredential.js";
|
|
15
|
+
import { AbstractRepository } from "./AbstractRepository.js";
|
|
16
|
+
import { getFullname, getScopeAndName } from "../common/PackageUtil.js";
|
|
17
17
|
let UserRepository = class UserRepository extends AbstractRepository {
|
|
18
18
|
async saveUser(user) {
|
|
19
19
|
if (user.id) {
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Binary = class Binary extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Change = class Change extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Dist = class Dist extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bone } from '../util/leoric.
|
|
2
|
-
import type { TaskState, TaskType } from '../../common/enum/Task.
|
|
1
|
+
import { Bone } from '../util/leoric.ts';
|
|
2
|
+
import type { TaskState, TaskType } from '../../common/enum/Task.ts';
|
|
3
3
|
export declare class HistoryTask extends Bone {
|
|
4
4
|
id: bigint;
|
|
5
5
|
createdAt: Date;
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes, LENGTH_VARIANTS } from
|
|
11
|
+
import { Bone, DataTypes, LENGTH_VARIANTS } from "../util/leoric.js";
|
|
12
12
|
let HistoryTask = class HistoryTask extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bone } from '../util/leoric.
|
|
2
|
-
import type { HookType } from '../../common/enum/Hook.
|
|
1
|
+
import { Bone } from '../util/leoric.ts';
|
|
2
|
+
import type { HookType } from '../../common/enum/Hook.ts';
|
|
3
3
|
export declare class Hook extends Bone {
|
|
4
4
|
id: bigint;
|
|
5
5
|
createdAt: Date;
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Hook = class Hook extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Maintainer = class Maintainer extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
12
|
-
import { EntityProperty } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
|
+
import { EntityProperty } from "../util/EntityProperty.js";
|
|
13
13
|
let Package = class Package extends Bone {
|
|
14
14
|
};
|
|
15
15
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let PackageDep = class PackageDep extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let PackageTag = class PackageTag extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
12
|
-
import { EntityProperty } from
|
|
13
|
-
import { PaddingSemVer } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
|
+
import { EntityProperty } from "../util/EntityProperty.js";
|
|
13
|
+
import { PaddingSemVer } from "../../core/entity/PaddingSemVer.js";
|
|
14
14
|
let PackageVersion = class PackageVersion extends Bone {
|
|
15
15
|
static beforeCreate(instance) {
|
|
16
16
|
if (!instance.paddingVersion) {
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes, LENGTH_VARIANTS } from
|
|
11
|
+
import { Bone, DataTypes, LENGTH_VARIANTS } from "../util/leoric.js";
|
|
12
12
|
let PackageVersionBlock = class PackageVersionBlock extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let PackageVersionDownload = class PackageVersionDownload extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
12
|
-
import { EntityProperty } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
|
+
import { EntityProperty } from "../util/EntityProperty.js";
|
|
13
13
|
let PackageVersionFile = class PackageVersionFile extends Bone {
|
|
14
14
|
};
|
|
15
15
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let PackageVersionManifest = class PackageVersionManifest extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bone } from '../util/leoric.
|
|
2
|
-
import type { DIST_NAMES } from '../../core/entity/Package.
|
|
1
|
+
import { Bone } from '../util/leoric.ts';
|
|
2
|
+
import type { DIST_NAMES } from '../../core/entity/Package.ts';
|
|
3
3
|
export declare class ProxyCache extends Bone {
|
|
4
4
|
id: bigint;
|
|
5
5
|
createdAt: Date;
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let ProxyCache = class ProxyCache extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bone } from '../util/leoric.
|
|
2
|
-
import type { RegistryType } from '../../common/enum/Registry.
|
|
1
|
+
import { Bone } from '../util/leoric.ts';
|
|
2
|
+
import type { RegistryType } from '../../common/enum/Registry.ts';
|
|
3
3
|
export declare class Registry extends Bone {
|
|
4
4
|
id: bigint;
|
|
5
5
|
createdAt: Date;
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Registry = class Registry extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Scope = class Scope extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bone } from '../util/leoric.
|
|
2
|
-
import type { TaskState, TaskType } from '../../common/enum/Task.
|
|
1
|
+
import { Bone } from '../util/leoric.ts';
|
|
2
|
+
import type { TaskState, TaskType } from '../../common/enum/Task.ts';
|
|
3
3
|
export declare class Task extends Bone {
|
|
4
4
|
id: bigint;
|
|
5
5
|
createdAt: Date;
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes, LENGTH_VARIANTS } from
|
|
11
|
+
import { Bone, DataTypes, LENGTH_VARIANTS } from "../util/leoric.js";
|
|
12
12
|
let Task = class Task extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Token = class Token extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let TokenPackage = class TokenPackage extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let Total = class Total extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let User = class User extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -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 { Attribute, Model } from '@eggjs/tegg/orm';
|
|
11
|
-
import { Bone, DataTypes } from
|
|
11
|
+
import { Bone, DataTypes } from "../util/leoric.js";
|
|
12
12
|
let WebauthnCredential = class WebauthnCredential extends Bone {
|
|
13
13
|
};
|
|
14
14
|
__decorate([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import assert from 'node:assert';
|
|
2
|
-
import { ModelConvertorUtil } from
|
|
2
|
+
import { ModelConvertorUtil } from "./ModelConvertorUtil.js";
|
|
3
3
|
export function EntityProperty(entityProperty) {
|
|
4
4
|
// oxlint-disable-next-line typescript-eslint/no-explicit-any
|
|
5
5
|
return (target, modelProperty) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelMetadataUtil } from '@eggjs/tegg/orm';
|
|
2
2
|
import { get as lodashGet, set as lodashSet } from 'lodash-es';
|
|
3
|
-
import { ModelConvertorUtil } from
|
|
3
|
+
import { ModelConvertorUtil } from "./ModelConvertorUtil.js";
|
|
4
4
|
const CREATED_AT = 'createdAt';
|
|
5
5
|
const UPDATED_AT = 'updatedAt';
|
|
6
6
|
const ID = 'id';
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
|
-
import { ChangesStreamService } from
|
|
3
|
+
import { ChangesStreamService } from "./app/core/service/ChangesStreamService.js";
|
|
4
4
|
export default class CnpmcoreAppHook {
|
|
5
5
|
constructor(app) {
|
|
6
6
|
this.app = app;
|
package/dist/config/binaries.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EggAppConfig, PartialEggConfig } from 'egg';
|
|
2
|
-
import type { CnpmcoreConfig } from '../app/port/config.
|
|
2
|
+
import type { CnpmcoreConfig } from '../app/port/config.ts';
|
|
3
3
|
export declare const cnpmcoreConfig: CnpmcoreConfig;
|
|
4
4
|
export interface NFSConfig {
|
|
5
5
|
client: unknown;
|
|
@@ -4,9 +4,9 @@ import { join } from 'node:path';
|
|
|
4
4
|
import OSSClient from 'oss-cnpm';
|
|
5
5
|
import S3Client from 's3-cnpmcore';
|
|
6
6
|
import { env } from 'read-env-value';
|
|
7
|
-
import { patchAjv } from
|
|
8
|
-
import { ChangesStreamMode, NOT_IMPLEMENTED_PATH, SyncDeleteMode, SyncMode, } from
|
|
9
|
-
import { database } from
|
|
7
|
+
import { patchAjv } from "../app/port/typebox.js";
|
|
8
|
+
import { ChangesStreamMode, NOT_IMPLEMENTED_PATH, SyncDeleteMode, SyncMode, } from "../app/common/constants.js";
|
|
9
|
+
import { database } from "./database.js";
|
|
10
10
|
export const cnpmcoreConfig = {
|
|
11
11
|
name: 'cnpm',
|
|
12
12
|
hookEnable: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import Mock from '@elastic/elasticsearch-mock';
|
|
3
|
-
import { database } from
|
|
3
|
+
import { database } from "./database.js";
|
|
4
4
|
// @ts-expect-error has no construct signatures
|
|
5
5
|
export const mockES = new Mock();
|
|
6
6
|
export default function startConfig(appInfo) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnpmcore",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.1",
|
|
4
4
|
"description": "Private NPM Registry for Enterprise",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"predev": "npm run clean",
|
|
40
40
|
"dev": "egg-bin dev",
|
|
41
41
|
"dev:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin dev",
|
|
42
|
-
"lint": "oxlint",
|
|
42
|
+
"lint": "oxlint --type-aware",
|
|
43
43
|
"lint:fix": "npm run lint -- --fix",
|
|
44
44
|
"typecheck": "tsc --noEmit",
|
|
45
45
|
"test:postgresql": "npm run test:local:postgresql",
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"@types/mime-types": "^2.1.1",
|
|
148
148
|
"@types/mocha": "^10.0.1",
|
|
149
149
|
"@types/mysql": "^2.15.21",
|
|
150
|
+
"@types/node": "^22.18.12",
|
|
150
151
|
"@types/node-rsa": "^1.1.4",
|
|
151
152
|
"@types/npm-package-arg": "^6.1.1",
|
|
152
153
|
"@types/pg": "^8.11.10",
|