@aws-sdk/client-codecatalyst 3.515.0 → 3.523.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.
@@ -25,7 +25,7 @@ const getRuntimeConfig = (config) => {
25
25
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
26
26
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
27
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
28
- requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
28
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
30
30
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
31
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
@@ -41,7 +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
- requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
44
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
45
45
  retryMode: config?.retryMode ??
46
46
  (0, node_config_provider_1.loadConfig)({
47
47
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -21,7 +21,7 @@ export const getRuntimeConfig = (config) => {
21
21
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
22
22
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
23
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
24
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
25
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
26
  sha256: config?.sha256 ?? Sha256,
27
27
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -37,7 +37,7 @@ export const getRuntimeConfig = (config) => {
37
37
  },
38
38
  ],
39
39
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
40
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
41
  retryMode: config?.retryMode ??
42
42
  loadNodeConfig({
43
43
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -3,7 +3,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
3
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
@@ -59,11 +59,11 @@ export type ServiceOutputTypes = CreateAccessTokenCommandOutput | CreateDevEnvir
59
59
  /**
60
60
  * @public
61
61
  */
62
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
62
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
63
63
  /**
64
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
64
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
65
65
  */
66
- requestHandler?: __HttpHandler;
66
+ requestHandler?: __HttpHandlerUserInput;
67
67
  /**
68
68
  * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
69
69
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
@@ -9,10 +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
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
13
- updateHttpClientConfig(key: never, value: never): void;
14
- httpHandlerConfigs(): {};
15
- }) | RequestHandler;
12
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
16
13
  retryMode: string | import("@smithy/types").Provider<string>;
17
14
  sha256: import("@smithy/types").HashConstructor;
18
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -16,10 +16,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
16
16
  signer: HttpBearerAuthSigner;
17
17
  }[];
18
18
  maxAttempts: number | import("@smithy/types").Provider<number>;
19
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
20
- updateHttpClientConfig(key: never, value: never): void;
21
- httpHandlerConfigs(): {};
22
- }) | RequestHandler;
19
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
23
20
  retryMode: string | import("@smithy/types").Provider<string>;
24
21
  sha256: import("@smithy/types").HashConstructor;
25
22
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,10 +5,7 @@ import { CodeCatalystClientConfig } from "./CodeCatalystClient";
5
5
  export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
- updateHttpClientConfig(key: never, value: never): void;
10
- httpHandlerConfigs(): {};
11
- }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
9
  apiVersion: string;
13
10
  urlParser: import("@smithy/types").UrlParser;
14
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -18,7 +18,7 @@ import {
18
18
  RetryInputConfig,
19
19
  RetryResolvedConfig,
20
20
  } from "@smithy/middleware-retry";
21
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
22
  import {
23
23
  Client as __Client,
24
24
  DefaultsMode as __DefaultsMode,
@@ -282,8 +282,8 @@ export type ServiceOutputTypes =
282
282
  | UpdateSpaceCommandOutput
283
283
  | VerifySessionCommandOutput;
284
284
  export interface ClientDefaults
285
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
286
- requestHandler?: __HttpHandler;
285
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
286
+ requestHandler?: __HttpHandlerUserInput;
287
287
  sha256?: __ChecksumConstructor | __HashConstructor;
288
288
  urlParser?: __UrlParser;
289
289
  bodyLengthChecker?: __BodyLengthCalculator;
@@ -11,19 +11,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
11
11
  >;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  requestHandler:
14
- | (import("@smithy/types").RequestHandler<
15
- any,
16
- any,
17
- import("@smithy/types").HttpHandlerOptions
18
- > &
19
- import("@smithy/types").RequestHandler<
20
- import("@smithy/protocol-http").HttpRequest,
21
- import("@smithy/protocol-http").HttpResponse,
22
- import("@smithy/types").HttpHandlerOptions
23
- > & {
24
- updateHttpClientConfig(key: never, value: never): void;
25
- httpHandlerConfigs(): {};
26
- })
14
+ | import("@smithy/protocol-http").HttpHandler<any>
27
15
  | RequestHandler;
28
16
  retryMode: string | import("@smithy/types").Provider<string>;
29
17
  sha256: import("@smithy/types").HashConstructor;
@@ -24,20 +24,8 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
24
24
  }[];
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  requestHandler:
27
- | (import("@smithy/types").RequestHandler<
28
- any,
29
- any,
30
- import("@smithy/types").HttpHandlerOptions
31
- > &
32
- import("@smithy/types").RequestHandler<
33
- import("@smithy/protocol-http").HttpRequest,
34
- import("@smithy/protocol-http").HttpResponse,
35
- import("@smithy/types").HttpHandlerOptions
36
- > & {
37
- updateHttpClientConfig(key: never, value: never): void;
38
- httpHandlerConfigs(): {};
39
- })
40
- | RequestHandler;
27
+ | RequestHandler
28
+ | import("@smithy/protocol-http").HttpHandler<any>;
41
29
  retryMode: string | import("@smithy/types").Provider<string>;
42
30
  sha256: import("@smithy/types").HashConstructor;
43
31
  streamCollector: import("@smithy/types").StreamCollector;
@@ -3,19 +3,10 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
3
3
  runtime: string;
4
4
  sha256: import("@smithy/types").HashConstructor;
5
5
  requestHandler:
6
- | (import("@smithy/types").RequestHandler<
7
- any,
8
- any,
9
- import("@smithy/types").HttpHandlerOptions
10
- > &
11
- import("@smithy/types").RequestHandler<
12
- import("@smithy/protocol-http").HttpRequest,
13
- import("@smithy/protocol-http").HttpResponse,
14
- import("@smithy/types").HttpHandlerOptions
15
- > & {
16
- updateHttpClientConfig(key: never, value: never): void;
17
- httpHandlerConfigs(): {};
18
- })
6
+ | import("@smithy/types").NodeHttpHandlerOptions
7
+ | import("@smithy/types").FetchHttpHandlerOptions
8
+ | Record<string, unknown>
9
+ | import("@smithy/protocol-http").HttpHandler<any>
19
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
20
11
  apiVersion: string;
21
12
  urlParser: import("@smithy/types").UrlParser;
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.515.0",
4
+ "version": "3.523.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,41 +20,41 @@
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.513.0",
24
- "@aws-sdk/middleware-host-header": "3.515.0",
25
- "@aws-sdk/middleware-logger": "3.515.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.515.0",
27
- "@aws-sdk/middleware-user-agent": "3.515.0",
28
- "@aws-sdk/region-config-resolver": "3.515.0",
29
- "@aws-sdk/token-providers": "3.515.0",
30
- "@aws-sdk/types": "3.515.0",
31
- "@aws-sdk/util-endpoints": "3.515.0",
32
- "@aws-sdk/util-user-agent-browser": "3.515.0",
33
- "@aws-sdk/util-user-agent-node": "3.515.0",
34
- "@smithy/config-resolver": "^2.1.1",
35
- "@smithy/core": "^1.3.2",
36
- "@smithy/fetch-http-handler": "^2.4.1",
37
- "@smithy/hash-node": "^2.1.1",
38
- "@smithy/invalid-dependency": "^2.1.1",
39
- "@smithy/middleware-content-length": "^2.1.1",
40
- "@smithy/middleware-endpoint": "^2.4.1",
41
- "@smithy/middleware-retry": "^2.1.1",
42
- "@smithy/middleware-serde": "^2.1.1",
43
- "@smithy/middleware-stack": "^2.1.1",
44
- "@smithy/node-config-provider": "^2.2.1",
45
- "@smithy/node-http-handler": "^2.3.1",
46
- "@smithy/protocol-http": "^3.1.1",
47
- "@smithy/smithy-client": "^2.3.1",
48
- "@smithy/types": "^2.9.1",
49
- "@smithy/url-parser": "^2.1.1",
23
+ "@aws-sdk/core": "3.523.0",
24
+ "@aws-sdk/middleware-host-header": "3.523.0",
25
+ "@aws-sdk/middleware-logger": "3.523.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.523.0",
27
+ "@aws-sdk/middleware-user-agent": "3.523.0",
28
+ "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/token-providers": "3.523.0",
30
+ "@aws-sdk/types": "3.523.0",
31
+ "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.523.0",
33
+ "@aws-sdk/util-user-agent-node": "3.523.0",
34
+ "@smithy/config-resolver": "^2.1.3",
35
+ "@smithy/core": "^1.3.4",
36
+ "@smithy/fetch-http-handler": "^2.4.3",
37
+ "@smithy/hash-node": "^2.1.3",
38
+ "@smithy/invalid-dependency": "^2.1.3",
39
+ "@smithy/middleware-content-length": "^2.1.3",
40
+ "@smithy/middleware-endpoint": "^2.4.3",
41
+ "@smithy/middleware-retry": "^2.1.3",
42
+ "@smithy/middleware-serde": "^2.1.3",
43
+ "@smithy/middleware-stack": "^2.1.3",
44
+ "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-http-handler": "^2.4.1",
46
+ "@smithy/protocol-http": "^3.2.1",
47
+ "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/types": "^2.10.1",
49
+ "@smithy/url-parser": "^2.1.3",
50
50
  "@smithy/util-base64": "^2.1.1",
51
51
  "@smithy/util-body-length-browser": "^2.1.1",
52
52
  "@smithy/util-body-length-node": "^2.2.1",
53
- "@smithy/util-defaults-mode-browser": "^2.1.1",
54
- "@smithy/util-defaults-mode-node": "^2.2.0",
55
- "@smithy/util-endpoints": "^1.1.1",
56
- "@smithy/util-middleware": "^2.1.1",
57
- "@smithy/util-retry": "^2.1.1",
53
+ "@smithy/util-defaults-mode-browser": "^2.1.3",
54
+ "@smithy/util-defaults-mode-node": "^2.2.2",
55
+ "@smithy/util-endpoints": "^1.1.3",
56
+ "@smithy/util-middleware": "^2.1.3",
57
+ "@smithy/util-retry": "^2.1.3",
58
58
  "@smithy/util-utf8": "^2.1.1",
59
59
  "tslib": "^2.5.0",
60
60
  "uuid": "^9.0.1"