@smithy/util-waiter 3.1.0 → 3.1.1

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
@@ -65,7 +65,7 @@ var checkExceptions = /* @__PURE__ */ __name((result) => {
65
65
  timeoutError.name = "TimeoutError";
66
66
  throw timeoutError;
67
67
  } else if (result.state !== "SUCCESS" /* SUCCESS */) {
68
- throw new Error(`${JSON.stringify({ result })}`);
68
+ throw new Error(`${JSON.stringify(result)}`);
69
69
  }
70
70
  return result;
71
71
  }, "checkExceptions");
package/dist-es/waiter.js CHANGED
@@ -28,7 +28,7 @@ export const checkExceptions = (result) => {
28
28
  throw timeoutError;
29
29
  }
30
30
  else if (result.state !== WaiterState.SUCCESS) {
31
- throw new Error(`${JSON.stringify({ result })}`);
31
+ throw new Error(`${JSON.stringify(result)}`);
32
32
  }
33
33
  return result;
34
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/abort-controller": "^3.1.0",