@aws-sdk/client-cloudcontrol 3.958.0 → 3.962.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
@@ -885,10 +885,10 @@ const paginateListResources = core.createPaginator(CloudControlClient, ListResou
885
885
  const checkState = async (client, input) => {
886
886
  let reason;
887
887
  try {
888
- const result = await client.send(new GetResourceRequestStatusCommand(input));
888
+ let result = await client.send(new GetResourceRequestStatusCommand(input));
889
889
  reason = result;
890
890
  try {
891
- let returnComparator = () => {
891
+ const returnComparator = () => {
892
892
  return result.ProgressEvent.OperationStatus;
893
893
  };
894
894
  if (returnComparator() === "SUCCESS") {
@@ -897,7 +897,7 @@ const checkState = async (client, input) => {
897
897
  }
898
898
  catch (e) { }
899
899
  try {
900
- let returnComparator = () => {
900
+ const returnComparator = () => {
901
901
  return result.ProgressEvent.OperationStatus;
902
902
  };
903
903
  if (returnComparator() === "FAILED") {
@@ -906,7 +906,7 @@ const checkState = async (client, input) => {
906
906
  }
907
907
  catch (e) { }
908
908
  try {
909
- let returnComparator = () => {
909
+ const returnComparator = () => {
910
910
  return result.ProgressEvent.OperationStatus;
911
911
  };
912
912
  if (returnComparator() === "CANCEL_COMPLETE") {
@@ -3,10 +3,10 @@ import { GetResourceRequestStatusCommand, } from "../commands/GetResourceRequest
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new GetResourceRequestStatusCommand(input));
6
+ let result = await client.send(new GetResourceRequestStatusCommand(input));
7
7
  reason = result;
8
8
  try {
9
- let returnComparator = () => {
9
+ const returnComparator = () => {
10
10
  return result.ProgressEvent.OperationStatus;
11
11
  };
12
12
  if (returnComparator() === "SUCCESS") {
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
15
15
  }
16
16
  catch (e) { }
17
17
  try {
18
- let returnComparator = () => {
18
+ const returnComparator = () => {
19
19
  return result.ProgressEvent.OperationStatus;
20
20
  };
21
21
  if (returnComparator() === "FAILED") {
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
24
24
  }
25
25
  catch (e) { }
26
26
  try {
27
- let returnComparator = () => {
27
+ const returnComparator = () => {
28
28
  return result.ProgressEvent.OperationStatus;
29
29
  };
30
30
  if (returnComparator() === "CANCEL_COMPLETE") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudcontrol",
3
3
  "description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
4
- "version": "3.958.0",
4
+ "version": "3.962.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 client-cloudcontrol",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
24
  "@aws-sdk/core": "3.957.0",
25
- "@aws-sdk/credential-provider-node": "3.958.0",
25
+ "@aws-sdk/credential-provider-node": "3.962.0",
26
26
  "@aws-sdk/middleware-host-header": "3.957.0",
27
27
  "@aws-sdk/middleware-logger": "3.957.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.957.0",