@snyk/docker-registry-v2-client
Advanced tools
Comparing version 2.14.1 to 2.15.0
@@ -87,3 +87,3 @@ "use strict"; | ||
const manifestList = (0, needle_1.parseResponseBody)(manifestResponse); | ||
const manifestPlatform = getManifestByOsAndArch(manifestList.manifests, platformFilter.os, platformFilter.architecture); | ||
const manifestPlatform = getManifestByOsAndArch(manifestList.manifests, platformFilter.os, platformFilter.architecture, platformFilter.variant); | ||
if (manifestPlatform) { | ||
@@ -94,9 +94,10 @@ return manifestPlatform.digest; | ||
} | ||
function getManifestByOsAndArch(platformManifest, os, architecture) { | ||
function getManifestByOsAndArch(platformManifest, os, architecture, variant) { | ||
return platformManifest.find(manifest => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
return ((_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.os) === os && | ||
((_b = manifest.platform) === null || _b === void 0 ? void 0 : _b.architecture) === architecture; | ||
((_b = manifest.platform) === null || _b === void 0 ? void 0 : _b.architecture) === architecture && | ||
((_c = manifest.platform) === null || _c === void 0 ? void 0 : _c.variant) === variant; | ||
}); | ||
} | ||
//# sourceMappingURL=get-manifest.js.map |
@@ -15,2 +15,3 @@ export interface LayerConfig { | ||
architecture: string; | ||
variant?: string; | ||
} | ||
@@ -17,0 +18,0 @@ export interface ImageManifest { |
@@ -51,3 +51,3 @@ { | ||
}, | ||
"version": "2.14.1" | ||
"version": "2.15.0" | ||
} |
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
74478
948