@snyk/docker-registry-v2-client
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -10,2 +10,7 @@ "use strict"; | ||
const layerResponse = await registry_call_1.registryV2Call(registryBase, endpoint, contentTypes.LAYER, username, password, options); | ||
// When the content type is wrongly set to text instead of binary, response body is returned as string instead of a buffer | ||
// This forces a buffer response. | ||
if (!(layerResponse.body instanceof Buffer)) { | ||
return Buffer.from(layerResponse.raw); | ||
} | ||
return layerResponse.body; | ||
@@ -12,0 +17,0 @@ } |
@@ -45,3 +45,3 @@ { | ||
}, | ||
"version": "2.2.3" | ||
"version": "2.2.4" | ||
} |
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
47032
576