@aws-sdk/client-ecr 3.718.0 → 3.719.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +1 -2
- package/dist-es/endpoint/EndpointParameters.js +1 -2
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +3 -9
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +2 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -15
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -15
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
|
-
params: ["
|
|
9
|
+
params: ["Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
12
|
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const m = "fn", n = "argv", o = "ref";
|
|
5
|
+
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" }];
|
|
6
|
+
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 }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -163,14 +163,13 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
163
163
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
164
164
|
return {
|
|
165
165
|
...options,
|
|
166
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
167
166
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
167
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
168
168
|
defaultSigningName: "ecr"
|
|
169
169
|
};
|
|
170
170
|
}, "resolveClientEndpointParameters");
|
|
171
171
|
var commonParams = {
|
|
172
172
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
173
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
174
173
|
Region: { type: "builtInParams", name: "region" },
|
|
175
174
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
176
175
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
2
|
return {
|
|
3
3
|
...options,
|
|
4
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
6
6
|
defaultSigningName: "ecr",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export const commonParams = {
|
|
10
10
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
11
|
Region: { type: "builtInParams", name: "region" },
|
|
13
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
13
|
};
|
|
@@ -3,7 +3,7 @@ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy
|
|
|
3
3
|
import { ruleSet } from "./ruleset";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
6
|
-
params: ["
|
|
6
|
+
params: ["Region", "UseDualStack", "UseFIPS"],
|
|
7
7
|
});
|
|
8
8
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
9
|
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const m = "fn", n = "argv", o = "ref";
|
|
2
|
+
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" }];
|
|
3
|
+
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 }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, Provider } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface ClientInputEndpointParameters {
|
|
6
6
|
region?: string | Provider<string>;
|
|
7
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
7
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
-
|
|
8
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
9
|
}
|
|
11
10
|
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
12
11
|
defaultSigningName: string;
|
|
@@ -19,10 +18,6 @@ export declare const commonParams: {
|
|
|
19
18
|
readonly type: "builtInParams";
|
|
20
19
|
readonly name: "useFipsEndpoint";
|
|
21
20
|
};
|
|
22
|
-
readonly Endpoint: {
|
|
23
|
-
readonly type: "builtInParams";
|
|
24
|
-
readonly name: "endpoint";
|
|
25
|
-
};
|
|
26
21
|
readonly Region: {
|
|
27
22
|
readonly type: "builtInParams";
|
|
28
23
|
readonly name: "region";
|
|
@@ -34,7 +29,6 @@ export declare const commonParams: {
|
|
|
34
29
|
};
|
|
35
30
|
export interface EndpointParameters extends __EndpointParameters {
|
|
36
31
|
Region?: string;
|
|
37
|
-
UseDualStack?: boolean;
|
|
38
32
|
UseFIPS?: boolean;
|
|
39
|
-
|
|
33
|
+
UseDualStack?: boolean;
|
|
40
34
|
}
|
|
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
32
32
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
33
33
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
34
34
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
35
|
-
endpoint?:
|
|
35
|
+
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;
|
|
36
36
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
37
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
32
32
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
33
33
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
34
34
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
35
|
-
endpoint?:
|
|
35
|
+
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;
|
|
36
36
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
37
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Endpoint,
|
|
3
2
|
EndpointParameters as __EndpointParameters,
|
|
4
|
-
EndpointV2,
|
|
5
3
|
Provider,
|
|
6
4
|
} from "@smithy/types";
|
|
7
5
|
export interface ClientInputEndpointParameters {
|
|
8
6
|
region?: string | Provider<string>;
|
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
7
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
11
|
-
|
|
12
|
-
| string
|
|
13
|
-
| Provider<string>
|
|
14
|
-
| Endpoint
|
|
15
|
-
| Provider<Endpoint>
|
|
16
|
-
| EndpointV2
|
|
17
|
-
| Provider<EndpointV2>;
|
|
8
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
18
9
|
}
|
|
19
10
|
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
20
11
|
defaultSigningName: string;
|
|
@@ -30,10 +21,6 @@ export declare const commonParams: {
|
|
|
30
21
|
readonly type: "builtInParams";
|
|
31
22
|
readonly name: "useFipsEndpoint";
|
|
32
23
|
};
|
|
33
|
-
readonly Endpoint: {
|
|
34
|
-
readonly type: "builtInParams";
|
|
35
|
-
readonly name: "endpoint";
|
|
36
|
-
};
|
|
37
24
|
readonly Region: {
|
|
38
25
|
readonly type: "builtInParams";
|
|
39
26
|
readonly name: "region";
|
|
@@ -45,7 +32,6 @@ export declare const commonParams: {
|
|
|
45
32
|
};
|
|
46
33
|
export interface EndpointParameters extends __EndpointParameters {
|
|
47
34
|
Region?: string;
|
|
48
|
-
UseDualStack?: boolean;
|
|
49
35
|
UseFIPS?: boolean;
|
|
50
|
-
|
|
36
|
+
UseDualStack?: boolean;
|
|
51
37
|
}
|
|
@@ -46,21 +46,11 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
46
46
|
| import("@smithy/types").RetryStrategyV2
|
|
47
47
|
| undefined;
|
|
48
48
|
endpoint?:
|
|
49
|
-
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
55
|
-
) &
|
|
56
|
-
(
|
|
57
|
-
| string
|
|
58
|
-
| import("@smithy/types").Provider<string>
|
|
59
|
-
| import("@smithy/types").Endpoint
|
|
60
|
-
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
61
|
-
| import("@smithy/types").EndpointV2
|
|
62
|
-
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
63
|
-
))
|
|
49
|
+
| string
|
|
50
|
+
| import("@smithy/types").Endpoint
|
|
51
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
52
|
+
| import("@smithy/types").EndpointV2
|
|
53
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
64
54
|
| undefined;
|
|
65
55
|
endpointProvider: (
|
|
66
56
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -47,21 +47,11 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
47
47
|
| import("@smithy/types").RetryStrategyV2
|
|
48
48
|
| undefined;
|
|
49
49
|
endpoint?:
|
|
50
|
-
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
56
|
-
) &
|
|
57
|
-
(
|
|
58
|
-
| string
|
|
59
|
-
| import("@smithy/types").Provider<string>
|
|
60
|
-
| import("@smithy/types").Endpoint
|
|
61
|
-
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
62
|
-
| import("@smithy/types").EndpointV2
|
|
63
|
-
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
64
|
-
))
|
|
50
|
+
| string
|
|
51
|
+
| import("@smithy/types").Endpoint
|
|
52
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
53
|
+
| import("@smithy/types").EndpointV2
|
|
54
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
65
55
|
| undefined;
|
|
66
56
|
endpointProvider: (
|
|
67
57
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.719.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecr",
|