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.7.3 to 2.8.0

dist/validation.d.ts

8

dist/get-manifest.js

@@ -7,2 +7,3 @@ "use strict";

const needle_1 = require("./needle");
const validation_1 = require("./validation");
const crypto_1 = require("crypto");

@@ -26,2 +27,9 @@ const digestRegex = /^sha256:[a-f0-9]{64}$/i;

const endpoint = `/${repo}/manifests/${imageReference}`;
try {
validation_1.validateRepoOrImageRef(repo);
validation_1.validateRepoOrImageRef(imageReference);
}
catch (err) {
throw new needle_1.NeedleWrapperException(err.message, 400);
}
let manifestResponse = await registry_call_1.registryV2Call(registryBase, endpoint, accept, username, password, options);

@@ -28,0 +36,0 @@ const contentType = manifestResponse.headers["content-type"];

3

dist/index.d.ts

@@ -10,3 +10,4 @@ import { checkSupport } from "./check-support";

import { registryCall } from "./registry-call";
import * as validation from "./validation";
import * as types from "./types";
export { checkSupport, getAuthTokenForEndpoint, getImageConfig, getImageSize, getLayer, getManifest, getRepos, getTags, registryCall, types, };
export { checkSupport, getAuthTokenForEndpoint, getImageConfig, getImageSize, getLayer, getManifest, getRepos, getTags, registryCall, validation, types, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.types = exports.registryCall = exports.getTags = exports.getRepos = exports.getManifest = exports.getLayer = exports.getImageSize = exports.getImageConfig = exports.getAuthTokenForEndpoint = exports.checkSupport = void 0;
exports.types = exports.validation = exports.registryCall = exports.getTags = exports.getRepos = exports.getManifest = exports.getLayer = exports.getImageSize = exports.getImageConfig = exports.getAuthTokenForEndpoint = exports.checkSupport = void 0;
const check_support_1 = require("./check-support");

@@ -22,4 +22,6 @@ Object.defineProperty(exports, "checkSupport", { enumerable: true, get: function () { return check_support_1.checkSupport; } });

Object.defineProperty(exports, "registryCall", { enumerable: true, get: function () { return registry_call_1.registryCall; } });
const validation = require("./validation");
exports.validation = validation;
const types = require("./types");
exports.types = types;
//# sourceMappingURL=index.js.map
import { NeedleOptions, NeedleResponse } from "needle";
declare type Headers = NeedleOptions["headers"];
interface RequestOptions extends NeedleOptions {

@@ -15,2 +16,7 @@ uri: string;

export declare function parseResponseBody(response: NeedleResponse): any;
export declare class NeedleWrapperException extends Error {
readonly statusCode: number;
readonly headers: Headers;
constructor(message: string, statusCode: number, headers?: Headers);
}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseResponseBody = exports.needleWrapper = void 0;
exports.NeedleWrapperException = exports.parseResponseBody = exports.needleWrapper = void 0;
const needle = require("needle");

@@ -90,2 +90,3 @@ // TODO: this is a temporary code that allows setting needle default timeout (alias for

}
exports.NeedleWrapperException = NeedleWrapperException;
//# sourceMappingURL=needle.js.map

@@ -45,3 +45,3 @@ {

},
"version": "2.7.3"
"version": "2.8.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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