This commit is contained in:
2025-11-20 13:27:26 +00:00
parent cf891cf275
commit 42974fdc0d
4 changed files with 732 additions and 107 deletions

View File

@@ -17,7 +17,7 @@
"@git.zone/tsbuild": "^3.1.0",
"@git.zone/tsbundle": "^2.0.5",
"@git.zone/tsrun": "^2.0.0",
"@git.zone/tstest": "^2.8.2",
"@git.zone/tstest": "^3.0.1",
"@types/node": "^24.10.1"
},
"repository": {
@@ -45,7 +45,7 @@
},
"dependencies": {
"@push.rocks/qenv": "^6.1.3",
"@push.rocks/smartbucket": "^3.3.10",
"@push.rocks/smartbucket": "^4.0.0",
"@push.rocks/smartpath": "^6.0.0"
}
}

831
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -58,6 +58,7 @@ export class RegistryStorage implements IStorageBackend {
await this.bucket.fastPut({
path: key,
contents: data,
overwrite: true, // Always overwrite existing objects
});
}

View File

@@ -192,6 +192,7 @@ export class NpmRegistry extends BaseRegistry {
query: Record<string, string>
): Promise<IResponse> {
const packument = await this.storage.getNpmPackument(packageName);
console.log(`[getPackument] packageName=${packageName}, versions=`, packument ? Object.keys(packument.versions) : 'null');
if (!packument) {
return {
status: 404,
@@ -381,7 +382,9 @@ export class NpmRegistry extends BaseRegistry {
}
// Save packument
console.log(`[publishPackage] Saving packument with versions:`, Object.keys(packument.versions));
await this.storage.putNpmPackument(packageName, packument);
console.log(`[publishPackage] Packument saved successfully`);
return {
status: 201,