@snyk/docker-registry-v2-client
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -7,5 +7,6 @@ "use strict"; | ||
const manifest = await get_manifest_1.getManifest(registryBase, repo, tag, username, password, options); | ||
return manifest.layers.reduce((size, layerConfig) => size + layerConfig.size, 0); | ||
const layers = manifest.layers || []; | ||
return layers.reduce((size, layerConfig) => size + layerConfig.size, 0); | ||
} | ||
exports.getImageSize = getImageSize; | ||
//# sourceMappingURL=get-image-size.js.map |
@@ -45,3 +45,3 @@ { | ||
}, | ||
"version": "2.4.0" | ||
"version": "2.4.1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48261
595