@aws-sdk/client-cloudwatch 3.804.0 → 3.808.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.
@@ -24,13 +24,13 @@ const getRuntimeConfig = (config) => {
24
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
26
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
27
- const profileConfig = { profile: config?.profile };
27
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
28
28
  return {
29
29
  ...clientSharedValues,
30
30
  ...config,
31
31
  runtime: "node",
32
32
  defaultsMode,
33
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
33
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
35
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
36
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -38,7 +38,7 @@ const getRuntimeConfig = (config) => {
38
38
  disableRequestCompression: config?.disableRequestCompression ?? (0, node_config_provider_1.loadConfig)(middleware_compression_1.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS, config),
39
39
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
40
  region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
41
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
42
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
43
  requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ??
44
44
  (0, node_config_provider_1.loadConfig)(middleware_compression_1.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS, config),
@@ -49,9 +49,9 @@ const getRuntimeConfig = (config) => {
49
49
  }, config),
50
50
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
51
51
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
52
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
53
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
54
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
52
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
54
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
55
55
  };
56
56
  };
57
57
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -20,13 +20,13 @@ export const getRuntimeConfig = (config) => {
20
20
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
21
  const clientSharedValues = getSharedRuntimeConfig(config);
22
22
  awsCheckVersion(process.version);
23
- const profileConfig = { profile: config?.profile };
23
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
24
24
  return {
25
25
  ...clientSharedValues,
26
26
  ...config,
27
27
  runtime: "node",
28
28
  defaultsMode,
29
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
29
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
30
30
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
31
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
32
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -34,7 +34,7 @@ export const getRuntimeConfig = (config) => {
34
34
  disableRequestCompression: config?.disableRequestCompression ?? loadNodeConfig(NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS, config),
35
35
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
36
  region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
38
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
39
  requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ??
40
40
  loadNodeConfig(NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS, config),
@@ -45,8 +45,8 @@ export const getRuntimeConfig = (config) => {
45
45
  }, config),
46
46
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
47
47
  streamCollector: config?.streamCollector ?? streamCollector,
48
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
50
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
51
51
  };
52
52
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.804.0",
4
+ "version": "3.808.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-cloudwatch",
@@ -20,40 +20,40 @@
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.804.0",
24
- "@aws-sdk/credential-provider-node": "3.804.0",
23
+ "@aws-sdk/core": "3.808.0",
24
+ "@aws-sdk/credential-provider-node": "3.808.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.804.0",
29
- "@aws-sdk/region-config-resolver": "3.804.0",
28
+ "@aws-sdk/middleware-user-agent": "3.808.0",
29
+ "@aws-sdk/region-config-resolver": "3.808.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
- "@aws-sdk/util-endpoints": "3.804.0",
31
+ "@aws-sdk/util-endpoints": "3.808.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.804.0",
34
- "@smithy/config-resolver": "^4.1.0",
33
+ "@aws-sdk/util-user-agent-node": "3.808.0",
34
+ "@smithy/config-resolver": "^4.1.2",
35
35
  "@smithy/core": "^3.3.1",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",
37
37
  "@smithy/hash-node": "^4.0.2",
38
38
  "@smithy/invalid-dependency": "^4.0.2",
39
- "@smithy/middleware-compression": "^4.1.2",
39
+ "@smithy/middleware-compression": "^4.1.4",
40
40
  "@smithy/middleware-content-length": "^4.0.2",
41
- "@smithy/middleware-endpoint": "^4.1.2",
42
- "@smithy/middleware-retry": "^4.1.3",
41
+ "@smithy/middleware-endpoint": "^4.1.4",
42
+ "@smithy/middleware-retry": "^4.1.5",
43
43
  "@smithy/middleware-serde": "^4.0.3",
44
44
  "@smithy/middleware-stack": "^4.0.2",
45
- "@smithy/node-config-provider": "^4.0.2",
45
+ "@smithy/node-config-provider": "^4.1.1",
46
46
  "@smithy/node-http-handler": "^4.0.4",
47
47
  "@smithy/protocol-http": "^5.1.0",
48
- "@smithy/smithy-client": "^4.2.2",
48
+ "@smithy/smithy-client": "^4.2.4",
49
49
  "@smithy/types": "^4.2.0",
50
50
  "@smithy/url-parser": "^4.0.2",
51
51
  "@smithy/util-base64": "^4.0.0",
52
52
  "@smithy/util-body-length-browser": "^4.0.0",
53
53
  "@smithy/util-body-length-node": "^4.0.0",
54
- "@smithy/util-defaults-mode-browser": "^4.0.10",
55
- "@smithy/util-defaults-mode-node": "^4.0.10",
56
- "@smithy/util-endpoints": "^3.0.2",
54
+ "@smithy/util-defaults-mode-browser": "^4.0.12",
55
+ "@smithy/util-defaults-mode-node": "^4.0.12",
56
+ "@smithy/util-endpoints": "^3.0.4",
57
57
  "@smithy/util-middleware": "^4.0.2",
58
58
  "@smithy/util-retry": "^4.0.3",
59
59
  "@smithy/util-utf8": "^4.0.0",