@snyk/docker-registry-v2-client
Advanced tools
Comparing version 2.13.0 to 2.13.1
@@ -1,1 +0,2 @@ | ||
export declare function getImageSize(registryBase: string, repo: string, tag: string, username?: string, password?: string, options?: any): Promise<number>; | ||
import { types } from "."; | ||
export declare function getImageSize(registryBase: string, repo: string, tag: string, username?: string, password?: string, options?: any, callChainObserver?: types.CallChainObserver): Promise<number>; |
@@ -5,4 +5,4 @@ "use strict"; | ||
const get_manifest_1 = require("./get-manifest"); | ||
async function getImageSize(registryBase, repo, tag, username, password, options = {}) { | ||
const manifest = await (0, get_manifest_1.getManifest)(registryBase, repo, tag, username, password, options); | ||
async function getImageSize(registryBase, repo, tag, username, password, options = {}, callChainObserver = { visitedUrls: [] }) { | ||
const manifest = await (0, get_manifest_1.getManifest)(registryBase, repo, tag, username, password, options, undefined, callChainObserver); | ||
const layers = manifest.layers || []; | ||
@@ -9,0 +9,0 @@ return layers.reduce((size, layerConfig) => size + layerConfig.size, 0); |
@@ -50,3 +50,3 @@ { | ||
}, | ||
"version": "2.13.0" | ||
"version": "2.13.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
70441
883