Socket
Socket
Sign inDemoInstall

@snyk/docker-registry-v2-client

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/docker-registry-v2-client - npm Package Compare versions

Comparing version 2.14.1 to 2.15.0

9

dist/get-manifest.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc