INNER CODE UNIT · TypeScript
Promise
cloudflare/serverless-registry · push/index.ts:180
await new Promise((res) => gzipStream.on("end", () => res(true)));
const digest = hasher.digest("hex");
await rename(inprogressPath, path.join(cacheFolder, digest));
await write(layerCachePath, digest);
return digest;
}),
);
}
const configManifest = path.join(imagePath, manifest.Config);
const config = await file(configManifest).text();
const configDigest = new CryptoHasher("sha256").update(config).digest("hex");
const compressedDigests = await Promise.all(tasks);
const proto = process.env["INSECURE_HTTP_PUSH"] === "true" ? "http" : "https";
if (proto === "http") {