@aws-sdk/client-codecatalyst 3.1076.0 → 3.1077.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/index.js +4 -3
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -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/runtimeConfig.shared.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/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +6 -8
package/dist-cjs/index.js
CHANGED
|
@@ -10,9 +10,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
10
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
11
|
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
12
|
const { nodeProvider } = require("@aws-sdk/token-providers");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
14
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
15
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
17
|
|
|
17
18
|
const defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
19
|
return {
|
|
@@ -61,7 +62,7 @@ const commonParams = {
|
|
|
61
62
|
Region: { type: "builtInParams", name: "region" },
|
|
62
63
|
};
|
|
63
64
|
|
|
64
|
-
var version = "3.
|
|
65
|
+
var version = "3.1076.0";
|
|
65
66
|
var packageInfo = {
|
|
66
67
|
version: version};
|
|
67
68
|
|
|
@@ -1231,6 +1232,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
1231
1232
|
serviceTarget: "CodeCatalyst",
|
|
1232
1233
|
},
|
|
1233
1234
|
serviceId: config?.serviceId ?? "CodeCatalyst",
|
|
1235
|
+
sha256: config?.sha256 ?? Sha256,
|
|
1234
1236
|
urlParser: config?.urlParser ?? parseUrl,
|
|
1235
1237
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
1236
1238
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1272,7 +1274,6 @@ const getRuntimeConfig = (config) => {
|
|
|
1272
1274
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
1273
1275
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
1274
1276
|
}, config),
|
|
1275
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
1276
1277
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
1277
1278
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1278
1279
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -22,7 +21,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
21
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
23
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
24
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
25
|
-
sha256: config?.sha256 ?? Sha256,
|
|
26
24
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
27
25
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
28
26
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,7 @@ import { HttpBearerAuthSigner } from "@smithy/core";
|
|
|
6
6
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
7
7
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
8
8
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
9
|
-
import { calculateBodyLength
|
|
9
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
10
10
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
12
|
export const getRuntimeConfig = (config) => {
|
|
@@ -44,7 +44,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
44
44
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
45
45
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
46
46
|
}, config),
|
|
47
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
48
47
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
49
48
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
50
49
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
2
|
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "CodeCatalyst",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "CodeCatalyst",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -12,7 +12,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
12
12
|
region: string | import("@smithy/types").Provider<any>;
|
|
13
13
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
14
14
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
15
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
16
15
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
17
16
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
18
17
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -23,6 +22,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
23
22
|
[setting: string]: unknown;
|
|
24
23
|
};
|
|
25
24
|
apiVersion: string;
|
|
25
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
26
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
27
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
28
28
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -20,7 +20,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
20
20
|
region: string | import("@smithy/types").Provider<string>;
|
|
21
21
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
24
23
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
25
24
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
25
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -32,6 +31,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
32
31
|
[setting: string]: unknown;
|
|
33
32
|
};
|
|
34
33
|
apiVersion: string;
|
|
34
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
35
35
|
urlParser: import("@smithy/types").UrlParser;
|
|
36
36
|
base64Decoder: import("@smithy/types").Decoder;
|
|
37
37
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -4,7 +4,6 @@ import type { CodeCatalystClientConfig } from "./CodeCatalystClient";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
8
7
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
8
|
cacheMiddleware?: boolean;
|
|
10
9
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
13
12
|
[setting: string]: unknown;
|
|
14
13
|
};
|
|
15
14
|
apiVersion: string;
|
|
15
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
18
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
27
27
|
defaultNamespace?: string;
|
|
28
28
|
};
|
|
29
29
|
serviceId: string;
|
|
30
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
30
31
|
urlParser: import("@smithy/types").UrlParser;
|
|
31
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
32
33
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
15
15
|
| import("@smithy/core/protocols").HttpHandler<any>
|
|
16
16
|
| RequestHandler;
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
19
18
|
streamCollector: (
|
|
20
19
|
stream:
|
|
21
20
|
| import("stream").Readable
|
|
@@ -37,6 +36,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
37
36
|
[setting: string]: unknown;
|
|
38
37
|
};
|
|
39
38
|
apiVersion: string;
|
|
39
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
40
40
|
urlParser: import("@smithy/types").UrlParser;
|
|
41
41
|
base64Decoder: import("@smithy/types").Decoder;
|
|
42
42
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
29
29
|
| RequestHandler
|
|
30
30
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
31
31
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
32
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
33
32
|
streamCollector: (
|
|
34
33
|
stream:
|
|
35
34
|
| import("stream").Readable
|
|
@@ -50,6 +49,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
50
49
|
[setting: string]: unknown;
|
|
51
50
|
};
|
|
52
51
|
apiVersion: string;
|
|
52
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
53
53
|
urlParser: import("@smithy/types").UrlParser;
|
|
54
54
|
base64Decoder: import("@smithy/types").Decoder;
|
|
55
55
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CodeCatalystClientConfig } from "./CodeCatalystClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
3
3
|
runtime: string;
|
|
4
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
5
4
|
requestHandler:
|
|
6
5
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
6
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
18
17
|
[setting: string]: unknown;
|
|
19
18
|
};
|
|
20
19
|
apiVersion: string;
|
|
20
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
23
|
streamCollector: (
|
|
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CodeCatalystClientConfig) => {
|
|
|
36
36
|
defaultNamespace?: string;
|
|
37
37
|
};
|
|
38
38
|
serviceId: string;
|
|
39
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
39
40
|
urlParser: import("@smithy/types").UrlParser;
|
|
40
41
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
41
42
|
utf8Encoder: (input: Uint8Array | string) => string;
|
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.1077.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -19,14 +19,12 @@
|
|
|
19
19
|
"module": "./dist-es/index.js",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-
|
|
23
|
-
"@aws-
|
|
24
|
-
"@aws-sdk/core": "^3.974.24",
|
|
25
|
-
"@aws-sdk/token-providers": "3.1076.0",
|
|
22
|
+
"@aws-sdk/core": "^3.974.25",
|
|
23
|
+
"@aws-sdk/token-providers": "3.1077.0",
|
|
26
24
|
"@aws-sdk/types": "^3.973.14",
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
29
|
-
"@smithy/node-http-handler": "^4.9.
|
|
25
|
+
"@smithy/core": "^3.28.0",
|
|
26
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
27
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
30
28
|
"@smithy/types": "^4.15.0",
|
|
31
29
|
"tslib": "^2.6.2"
|
|
32
30
|
},
|