fix(devcontainer): Simplify devcontainer configuration and rename container image
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartregistry',
|
||||
version: '1.4.0',
|
||||
version: '1.4.1',
|
||||
description: 'a registry for npm modules and oci images'
|
||||
}
|
||||
|
||||
@@ -159,15 +159,7 @@ export class ComposerRegistry extends BaseRegistry {
|
||||
includeDev: boolean,
|
||||
token: IAuthToken | null
|
||||
): Promise<IResponse> {
|
||||
// Check read permission
|
||||
if (!await this.checkPermission(token, vendorPackage, 'read')) {
|
||||
return {
|
||||
status: 401,
|
||||
headers: { 'WWW-Authenticate': 'Bearer realm="composer"' },
|
||||
body: { status: 'error', message: 'Authentication required' },
|
||||
};
|
||||
}
|
||||
|
||||
// Read operations are public, no authentication required
|
||||
const metadata = await this.storage.getComposerPackageMetadata(vendorPackage);
|
||||
|
||||
if (!metadata) {
|
||||
@@ -227,15 +219,7 @@ export class ComposerRegistry extends BaseRegistry {
|
||||
reference: string,
|
||||
token: IAuthToken | null
|
||||
): Promise<IResponse> {
|
||||
// Check read permission
|
||||
if (!await this.checkPermission(token, vendorPackage, 'read')) {
|
||||
return {
|
||||
status: 401,
|
||||
headers: { 'WWW-Authenticate': 'Bearer realm="composer"' },
|
||||
body: { status: 'error', message: 'Authentication required' },
|
||||
};
|
||||
}
|
||||
|
||||
// Read operations are public, no authentication required
|
||||
const zipData = await this.storage.getComposerPackageZip(vendorPackage, reference);
|
||||
|
||||
if (!zipData) {
|
||||
|
||||
Reference in New Issue
Block a user