Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-ecr

Package Overview
Dependencies
Maintainers
0
Versions
431
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-ecr - npm Package Compare versions

Comparing version 3.719.0 to 3.720.0

2

dist-cjs/endpoint/endpointResolver.js

@@ -9,3 +9,3 @@ "use strict";

size: 50,
params: ["Region", "UseDualStack", "UseFIPS"],
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
});

@@ -12,0 +12,0 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ruleSet = void 0;
const m = "fn", n = "argv", o = "ref";
const a = false, b = "PartitionResult", c = "endpoint", d = "tree", e = "error", f = { "required": true, "default": false, "type": "Boolean" }, g = { [m]: "booleanEquals", [n]: [{ [o]: "UseFIPS" }, true] }, h = { [m]: "booleanEquals", [n]: [{ [o]: "UseDualStack" }, true] }, i = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsFIPS"] }] }, j = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsDualStack"] }] }, k = {}, l = [{ [o]: "Region" }];
const _data = { version: "1.0", parameters: { Region: { required: a, type: "String" }, UseFIPS: f, UseDualStack: f }, rules: [{ conditions: [{ [m]: "isSet", [n]: l }, { [m]: "aws.partition", [n]: l, assign: b }], rules: [{ conditions: [g, h], rules: [{ conditions: [i, j], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS and dualstack are enabled, but this partition does not support one or both", type: e }], type: d }, { conditions: [h], rules: [{ conditions: [j], rules: [{ endpoint: { url: "https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "Dualstack is enabled but this partition does not support dualstack", type: e }], type: d }, { conditions: [g], rules: [{ conditions: [i], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: d }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }] };
const v = "required", w = "fn", x = "argv", y = "ref";
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://ecr-fips.{Region}.amazonaws.com", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ conditions: [{ [w]: h, [x]: [q, "aws"] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: [q, "aws-us-gov"] }], endpoint: r, type: e }, { endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
exports.ruleSet = _data;
export const resolveClientEndpointParameters = (options) => {
return {
...options,
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
useFipsEndpoint: options.useFipsEndpoint ?? false,
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
defaultSigningName: "ecr",

@@ -11,4 +11,5 @@ };

UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
Endpoint: { type: "builtInParams", name: "endpoint" },
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
};

@@ -6,3 +6,3 @@ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";

size: 50,
params: ["Region", "UseDualStack", "UseFIPS"],
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
});

@@ -9,0 +9,0 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {

@@ -1,4 +0,4 @@

const m = "fn", n = "argv", o = "ref";
const a = false, b = "PartitionResult", c = "endpoint", d = "tree", e = "error", f = { "required": true, "default": false, "type": "Boolean" }, g = { [m]: "booleanEquals", [n]: [{ [o]: "UseFIPS" }, true] }, h = { [m]: "booleanEquals", [n]: [{ [o]: "UseDualStack" }, true] }, i = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsFIPS"] }] }, j = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsDualStack"] }] }, k = {}, l = [{ [o]: "Region" }];
const _data = { version: "1.0", parameters: { Region: { required: a, type: "String" }, UseFIPS: f, UseDualStack: f }, rules: [{ conditions: [{ [m]: "isSet", [n]: l }, { [m]: "aws.partition", [n]: l, assign: b }], rules: [{ conditions: [g, h], rules: [{ conditions: [i, j], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS and dualstack are enabled, but this partition does not support one or both", type: e }], type: d }, { conditions: [h], rules: [{ conditions: [j], rules: [{ endpoint: { url: "https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "Dualstack is enabled but this partition does not support dualstack", type: e }], type: d }, { conditions: [g], rules: [{ conditions: [i], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: d }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }] };
const v = "required", w = "fn", x = "argv", y = "ref";
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://ecr-fips.{Region}.amazonaws.com", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ conditions: [{ [w]: h, [x]: [q, "aws"] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: [q, "aws-us-gov"] }], endpoint: r, type: e }, { endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
export const ruleSet = _data;

@@ -1,2 +0,2 @@

import { EndpointParameters as __EndpointParameters, Provider } from "@smithy/types";
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
/**

@@ -7,4 +7,5 @@ * @public

region?: string | Provider<string>;
useDualstackEndpoint?: boolean | Provider<boolean>;
useFipsEndpoint?: boolean | Provider<boolean>;
useDualstackEndpoint?: boolean | Provider<boolean>;
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
}

@@ -22,2 +23,6 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {

};
readonly Endpoint: {
readonly type: "builtInParams";
readonly name: "endpoint";
};
readonly Region: {

@@ -34,4 +39,5 @@ readonly type: "builtInParams";

Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
UseDualStack?: boolean;
Endpoint?: string;
}

@@ -35,3 +35,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";

retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {

@@ -38,0 +38,0 @@ logger?: import("@smithy/types").Logger | undefined;

@@ -35,3 +35,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";

retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {

@@ -38,0 +38,0 @@ logger?: import("@smithy/types").Logger | undefined;

import {
Endpoint,
EndpointParameters as __EndpointParameters,
EndpointV2,
Provider,

@@ -7,4 +9,11 @@ } from "@smithy/types";

region?: string | Provider<string>;
useDualstackEndpoint?: boolean | Provider<boolean>;
useFipsEndpoint?: boolean | Provider<boolean>;
useDualstackEndpoint?: boolean | Provider<boolean>;
endpoint?:
| string
| Provider<string>
| Endpoint
| Provider<Endpoint>
| EndpointV2
| Provider<EndpointV2>;
}

@@ -25,2 +34,6 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {

};
readonly Endpoint: {
readonly type: "builtInParams";
readonly name: "endpoint";
};
readonly Region: {

@@ -37,4 +50,5 @@ readonly type: "builtInParams";

Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
UseDualStack?: boolean;
Endpoint?: string;
}

@@ -49,7 +49,17 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";

endpoint?:
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
| ((
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
) &
(
| string
| import("@smithy/types").Provider<string>
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
))
| undefined;

@@ -56,0 +66,0 @@ endpointProvider: (

@@ -50,7 +50,17 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";

endpoint?:
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
| ((
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
) &
(
| string
| import("@smithy/types").Provider<string>
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
))
| undefined;

@@ -57,0 +67,0 @@ endpointProvider: (

{
"name": "@aws-sdk/client-ecr",
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
"version": "3.719.0",
"version": "3.720.0",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

Sorry, the diff of this file is too big to display

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