@aws-sdk/client-codecatalyst 3.587.0 → 3.590.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/runtimeConfig.browser.js +2 -0
- package/dist-cjs/runtimeConfig.js +1 -0
- package/dist-es/runtimeConfig.browser.js +2 -0
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/CodeCatalystClient.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
9
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
10
11
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
11
12
|
const util_retry_1 = require("@smithy/util-retry");
|
|
12
13
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
27
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
28
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
29
31
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
30
32
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
@@ -41,6 +41,7 @@ const getRuntimeConfig = (config) => {
|
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
43
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
44
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
44
45
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
45
46
|
retryMode: config?.retryMode ??
|
|
46
47
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,6 +3,7 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
|
3
3
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
6
7
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
7
8
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
8
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
@@ -21,6 +22,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
22
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
22
23
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
25
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
27
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
28
|
sha256: config?.sha256 ?? Sha256,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -2,7 +2,7 @@ import packageInfo from "../package.json";
|
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { nodeProvider } from "@aws-sdk/token-providers";
|
|
4
4
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
|
-
import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
7
7
|
import { Hash } from "@smithy/hash-node";
|
|
8
8
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -37,6 +37,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
40
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
40
41
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
41
42
|
retryMode: config?.retryMode ??
|
|
42
43
|
loadNodeConfig({
|
|
@@ -128,6 +128,10 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
128
128
|
* Enables FIPS compatible endpoints.
|
|
129
129
|
*/
|
|
130
130
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* The AWS region to which this client will send requests
|
|
133
|
+
*/
|
|
134
|
+
region?: string | __Provider<string>;
|
|
131
135
|
/**
|
|
132
136
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
133
137
|
* @internal
|
|
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
11
11
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
12
13
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
13
14
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
15
|
sha256: import("@smithy/types").HashConstructor;
|
|
@@ -25,7 +26,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
25
26
|
serviceId: string;
|
|
26
27
|
logger: import("@smithy/types").Logger;
|
|
27
28
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
28
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
29
29
|
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;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
16
16
|
signer: HttpBearerAuthSigner;
|
|
17
17
|
}[];
|
|
18
18
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
19
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
19
20
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
20
21
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
21
22
|
sha256: import("@smithy/types").HashConstructor;
|
|
@@ -32,7 +33,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
32
33
|
serviceId: string;
|
|
33
34
|
logger: import("@smithy/types").Logger;
|
|
34
35
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
36
36
|
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;
|
|
37
37
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
38
38
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -18,13 +18,13 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
18
18
|
serviceId: string;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
21
22
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
22
23
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
23
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
25
|
logger: import("@smithy/types").Logger;
|
|
25
26
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
26
27
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
27
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
28
28
|
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;
|
|
29
29
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
30
30
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -297,6 +297,7 @@ export interface ClientDefaults
|
|
|
297
297
|
serviceId?: string;
|
|
298
298
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
299
299
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
300
|
+
region?: string | __Provider<string>;
|
|
300
301
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
301
302
|
maxAttempts?: number | __Provider<number>;
|
|
302
303
|
retryMode?: string | __Provider<string>;
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
10
10
|
import("@smithy/types").UserAgent
|
|
11
11
|
>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
13
14
|
requestHandler:
|
|
14
15
|
| import("@smithy/protocol-http").HttpHandler<any>
|
|
15
16
|
| RequestHandler;
|
|
@@ -28,7 +29,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
28
29
|
serviceId: string;
|
|
29
30
|
logger: import("@smithy/types").Logger;
|
|
30
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
32
32
|
endpoint?:
|
|
33
33
|
| ((
|
|
34
34
|
| string
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
23
23
|
signer: HttpBearerAuthSigner;
|
|
24
24
|
}[];
|
|
25
25
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
26
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
26
27
|
requestHandler:
|
|
27
28
|
| RequestHandler
|
|
28
29
|
| import("@smithy/protocol-http").HttpHandler<any>;
|
|
@@ -41,7 +42,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
41
42
|
serviceId: string;
|
|
42
43
|
logger: import("@smithy/types").Logger;
|
|
43
44
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
44
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
45
45
|
endpoint?:
|
|
46
46
|
| ((
|
|
47
47
|
| string
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
20
20
|
serviceId: string;
|
|
21
21
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
23
24
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
24
25
|
import("@smithy/types").UserAgent
|
|
25
26
|
>;
|
|
@@ -32,7 +33,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
32
33
|
| import("@smithy/types").Provider<
|
|
33
34
|
import("@smithy/smithy-client").DefaultsMode
|
|
34
35
|
>;
|
|
35
|
-
region?: string | import("@smithy/types").Provider<string> | undefined;
|
|
36
36
|
endpoint?:
|
|
37
37
|
| string
|
|
38
38
|
| import("@smithy/types").Endpoint
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codecatalyst",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codecatalyst Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.590.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-codecatalyst",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
23
|
+
"@aws-sdk/core": "3.588.0",
|
|
24
24
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
|
25
25
|
"@aws-sdk/middleware-logger": "3.577.0",
|
|
26
26
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|