redefine empty blob

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer
2025-04-09 16:15:24 -07:00
parent f4f308e094
commit c8edbd7693
Generated Vendored
+2 -1
View File
@@ -95603,6 +95603,7 @@ const error_1 = __nccwpck_require__(34031);
const registry_1 = __nccwpck_require__(26198);
const DOCKER_DEFAULT_REGISTRY = 'registry-1.docker.io';
const EMPTY_BLOB = Buffer.from('{}');
const ALT_EMPTY_BLOB = Buffer.from('');
class OCIImage {
constructor(image, creds, opts) {
_OCIImage_instances.add(this);
@@ -95626,7 +95627,7 @@ class OCIImage {
// Upload the artifact blob
const artifactBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(opts.artifact);
// Upload the empty blob (needed for the manifest config)
const emptyBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(EMPTY_BLOB);
const emptyBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(ALT_EMPTY_BLOB);
// Construct artifact manifest
const manifest = buildManifest({
artifactDescriptor: { ...artifactBlob, mediaType: opts.mediaType },