@aws-sdk/client-dynamodb 3.1165.0 → 3.1166.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
|
@@ -9,7 +9,7 @@ exports.__Client = Client;
|
|
|
9
9
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
10
10
|
const { getEndpointPlugin, BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig } = require("@smithy/core/endpoints");
|
|
11
11
|
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
12
|
-
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
12
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
13
13
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
14
14
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
15
15
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
@@ -3254,7 +3254,7 @@ var UpdateTimeToLive$ = [9, n0, _UTTL,
|
|
|
3254
3254
|
class DescribeEndpointsCommand extends command(_ep0, _mw0, "DescribeEndpoints", DescribeEndpoints$) {
|
|
3255
3255
|
}
|
|
3256
3256
|
|
|
3257
|
-
var version = "3.
|
|
3257
|
+
var version = "3.1165.0";
|
|
3258
3258
|
var packageInfo = {
|
|
3259
3259
|
version: version};
|
|
3260
3260
|
|
|
@@ -3512,7 +3512,7 @@ const getRuntimeConfig = (config) => {
|
|
|
3512
3512
|
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
3513
3513
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
3514
3514
|
endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? loadConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
|
|
3515
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(
|
|
3515
|
+
maxAttempts: config?.maxAttempts ?? loadConfig({ ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 }, config),
|
|
3516
3516
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
3517
3517
|
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
3518
3518
|
retryMode: config?.retryMode ??
|
|
@@ -3581,7 +3581,7 @@ class DynamoDBClient extends Client {
|
|
|
3581
3581
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
3582
3582
|
const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
|
|
3583
3583
|
const _config_3 = resolveUserAgentConfig(_config_2);
|
|
3584
|
-
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay:
|
|
3584
|
+
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay: 25, defaultMaxAttempts: 4 });
|
|
3585
3585
|
const _config_5 = resolveRegionConfig(_config_4);
|
|
3586
3586
|
const _config_6 = resolveHostHeaderConfig(_config_5);
|
|
3587
3587
|
const _config_7 = resolveEndpointConfig(_config_6);
|
|
@@ -6,7 +6,7 @@ import { Client as __Client, } from "@smithy/core/client";
|
|
|
6
6
|
import { resolveRegionConfig } from "@smithy/core/config";
|
|
7
7
|
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
8
8
|
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
9
|
-
import { getRetryPlugin, resolveRetryConfig,
|
|
9
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
10
10
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
11
11
|
import { defaultDynamoDBHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
12
12
|
import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
|
|
@@ -23,7 +23,7 @@ export class DynamoDBClient extends __Client {
|
|
|
23
23
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
24
24
|
const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
|
|
25
25
|
const _config_3 = resolveUserAgentConfig(_config_2);
|
|
26
|
-
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay:
|
|
26
|
+
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay: 25, defaultMaxAttempts: 4 });
|
|
27
27
|
const _config_5 = resolveRegionConfig(_config_4);
|
|
28
28
|
const _config_6 = resolveHostHeaderConfig(_config_5);
|
|
29
29
|
const _config_7 = resolveEndpointConfig(_config_6);
|
|
@@ -3,7 +3,7 @@ import { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE } from "@aws-sdk/core/account-id-endpo
|
|
|
3
3
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
|
-
import {
|
|
6
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
7
|
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
8
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
9
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
@@ -21,7 +21,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
21
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
22
22
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
23
|
endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (() => Promise.resolve(undefined)),
|
|
24
|
-
maxAttempts: config?.maxAttempts ??
|
|
24
|
+
maxAttempts: config?.maxAttempts ?? 4,
|
|
25
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
26
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
27
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
6
6
|
import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
|
|
7
7
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
8
8
|
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";
|
|
9
|
-
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
9
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
10
10
|
import { calculateBodyLength } from "@smithy/core/serde";
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
@@ -32,7 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
32
|
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
33
33
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
34
34
|
endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
|
|
35
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig({ ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 }, config),
|
|
36
36
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
37
37
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
38
38
|
retryMode: config?.retryMode ??
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1166.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
57
|
-
"@aws-sdk/dynamodb-codec": "^3.973.
|
|
58
|
-
"@aws-sdk/middleware-endpoint-discovery": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.981.0",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.96",
|
|
57
|
+
"@aws-sdk/dynamodb-codec": "^3.973.58",
|
|
58
|
+
"@aws-sdk/middleware-endpoint-discovery": "^3.972.39",
|
|
59
59
|
"@aws-sdk/types": "^3.975.1",
|
|
60
|
-
"@smithy/core": "^3.
|
|
60
|
+
"@smithy/core": "^3.40.0",
|
|
61
61
|
"@smithy/fetch-http-handler": "^5.8.1",
|
|
62
62
|
"@smithy/node-http-handler": "^4.14.2",
|
|
63
63
|
"@smithy/types": "^4.20.0",
|