cdk-real-drift 0.12.25 → 0.12.26

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/cli.js CHANGED
@@ -4668,14 +4668,15 @@ function shouldPrioritizeEnv() {
4668
4668
  const key = process.env.AWS_SECRET_ACCESS_KEY || process.env.AMAZON_SECRET_ACCESS_KEY;
4669
4669
  return !!id && !!key;
4670
4670
  }
4671
- const CLIENT_CREDENTIALS = (awsIdentityProperties) => (shouldPrioritizeEnv() ? createCredentialChain(fromEnv(), fromNodeProviderChain()) : fromNodeProviderChain())(awsIdentityProperties);
4671
+ const CLIENT_REQUEST_HANDLER = {
4672
+ connectionTimeout: 6e3,
4673
+ requestTimeout: 6e4,
4674
+ throwOnRequestTimeout: true
4675
+ };
4676
+ const CLIENT_CREDENTIALS = (awsIdentityProperties) => (shouldPrioritizeEnv() ? createCredentialChain(fromEnv(), fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } })) : fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } }))(awsIdentityProperties);
4672
4677
  const CLIENT_TIMEOUTS = {
4673
4678
  credentials: CLIENT_CREDENTIALS,
4674
- requestHandler: {
4675
- connectionTimeout: 6e3,
4676
- requestTimeout: 6e4,
4677
- throwOnRequestTimeout: true
4678
- }
4679
+ requestHandler: CLIENT_REQUEST_HANDLER
4679
4680
  };
4680
4681
  const READ_RETRY = {
4681
4682
  maxAttempts: 10,