@aws-sdk/client-dataexchange 3.798.0 → 3.802.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
CHANGED
|
@@ -970,16 +970,16 @@ var se_RevokeRevisionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
970
970
|
var se_SendApiAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
971
971
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
972
972
|
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
973
|
+
...input.RequestHeaders !== void 0 && Object.keys(input.RequestHeaders).reduce((acc, suffix) => {
|
|
974
|
+
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders[suffix];
|
|
975
|
+
return acc;
|
|
976
|
+
}, {}),
|
|
973
977
|
"content-type": "text/plain",
|
|
974
978
|
[_xadai]: input[_AI],
|
|
975
979
|
[_xaddsi]: input[_DSI],
|
|
976
980
|
[_xadhm]: input[_M],
|
|
977
981
|
[_xadp]: input[_P],
|
|
978
|
-
[_xadri]: input[_RI]
|
|
979
|
-
...input.RequestHeaders !== void 0 && Object.keys(input.RequestHeaders).reduce((acc, suffix) => {
|
|
980
|
-
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders[suffix];
|
|
981
|
-
return acc;
|
|
982
|
-
}, {})
|
|
982
|
+
[_xadri]: input[_RI]
|
|
983
983
|
});
|
|
984
984
|
b.bp("/v1");
|
|
985
985
|
const query = (0, import_smithy_client.map)({
|
|
@@ -29,6 +29,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
...config,
|
|
30
30
|
runtime: "node",
|
|
31
31
|
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
32
33
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
33
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
34
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -334,17 +334,17 @@ export const se_RevokeRevisionCommand = async (input, context) => {
|
|
|
334
334
|
export const se_SendApiAssetCommand = async (input, context) => {
|
|
335
335
|
const b = rb(input, context);
|
|
336
336
|
const headers = map({}, isSerializableHeaderValue, {
|
|
337
|
+
...(input.RequestHeaders !== undefined &&
|
|
338
|
+
Object.keys(input.RequestHeaders).reduce((acc, suffix) => {
|
|
339
|
+
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders[suffix];
|
|
340
|
+
return acc;
|
|
341
|
+
}, {})),
|
|
337
342
|
"content-type": "text/plain",
|
|
338
343
|
[_xadai]: input[_AI],
|
|
339
344
|
[_xaddsi]: input[_DSI],
|
|
340
345
|
[_xadhm]: input[_M],
|
|
341
346
|
[_xadp]: input[_P],
|
|
342
347
|
[_xadri]: input[_RI],
|
|
343
|
-
...(input.RequestHeaders !== undefined &&
|
|
344
|
-
Object.keys(input.RequestHeaders).reduce((acc, suffix) => {
|
|
345
|
-
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders[suffix];
|
|
346
|
-
return acc;
|
|
347
|
-
}, {})),
|
|
348
348
|
});
|
|
349
349
|
b.bp("/v1");
|
|
350
350
|
const query = map({
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
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";
|
|
@@ -25,6 +25,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
25
25
|
...config,
|
|
26
26
|
runtime: "node",
|
|
27
27
|
defaultsMode,
|
|
28
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
28
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
30
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -6,6 +6,7 @@ import { DataExchangeClientConfig } from "./DataExchangeClient";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
9
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
11
|
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
12
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -38,7 +39,6 @@ export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
|
|
|
38
39
|
}) => import("@smithy/types").EndpointV2;
|
|
39
40
|
tls?: boolean | undefined;
|
|
40
41
|
serviceConfiguredEndpoint?: undefined;
|
|
41
|
-
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
42
42
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
43
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DataExchangeHttpAuthSchemeProvider;
|
|
44
44
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -5,6 +5,7 @@ export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
|
|
|
5
5
|
defaultsMode: import("@smithy/types").Provider<
|
|
6
6
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
8
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
10
|
credentialDefaultProvider:
|
|
10
11
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
@@ -73,10 +74,6 @@ export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
|
|
|
73
74
|
) => import("@smithy/types").EndpointV2;
|
|
74
75
|
tls?: boolean | undefined;
|
|
75
76
|
serviceConfiguredEndpoint?: undefined;
|
|
76
|
-
authSchemePreference?:
|
|
77
|
-
| string[]
|
|
78
|
-
| import("@smithy/types").Provider<string[]>
|
|
79
|
-
| undefined;
|
|
80
77
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
81
78
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DataExchangeHttpAuthSchemeProvider;
|
|
82
79
|
credentials?:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dataexchange",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dataexchange Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.802.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-dataexchange",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.799.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.799.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.799.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
30
30
|
"@aws-sdk/types": "3.775.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.787.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.799.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.0",
|
|
35
35
|
"@smithy/core": "^3.3.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.2",
|