@smithy/util-waiter
Advanced tools
Comparing version 3.2.0 to 4.0.0
@@ -82,3 +82,2 @@ var __defProp = Object.defineProperty; | ||
var runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { | ||
var _a; | ||
const observedResponses = {}; | ||
@@ -98,3 +97,3 @@ const { state, reason } = await acceptorChecks(client, input); | ||
while (true) { | ||
if (((_a = abortController == null ? void 0 : abortController.signal) == null ? void 0 : _a.aborted) || (abortSignal == null ? void 0 : abortSignal.aborted)) { | ||
if (abortController?.signal?.aborted || abortSignal?.aborted) { | ||
const message = "AbortController signal aborted."; | ||
@@ -123,7 +122,6 @@ observedResponses[message] |= 0; | ||
var createMessageFromResponse = /* @__PURE__ */ __name((reason) => { | ||
var _a; | ||
if (reason == null ? void 0 : reason.$responseBodyText) { | ||
if (reason?.$responseBodyText) { | ||
return `Deserialization error for body: ${reason.$responseBodyText}`; | ||
} | ||
if ((_a = reason == null ? void 0 : reason.$metadata) == null ? void 0 : _a.httpStatusCode) { | ||
if (reason?.$metadata?.httpStatusCode) { | ||
if (reason.$response || reason.message) { | ||
@@ -134,3 +132,3 @@ return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? "Unknown"}: ${reason.message}`; | ||
} | ||
return String((reason == null ? void 0 : reason.message) ?? JSON.stringify(reason) ?? "Unknown"); | ||
return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown"); | ||
}, "createMessageFromResponse"); | ||
@@ -137,0 +135,0 @@ |
{ | ||
"name": "@smithy/util-waiter", | ||
"version": "3.2.0", | ||
"version": "4.0.0", | ||
"description": "Shared utilities for client waiters for the AWS SDK", | ||
"dependencies": { | ||
"@smithy/abort-controller": "^3.1.9", | ||
"@smithy/types": "^3.7.2", | ||
"@smithy/abort-controller": "^4.0.0", | ||
"@smithy/types": "^4.0.0", | ||
"tslib": "^2.6.2" | ||
@@ -32,3 +32,3 @@ }, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "typesVersions": { |
32559
507
+ Added@smithy/abort-controller@4.0.1(transitive)
+ Added@smithy/types@4.1.0(transitive)
- Removed@smithy/abort-controller@3.1.9(transitive)
- Removed@smithy/types@3.7.2(transitive)
Updated@smithy/types@^4.0.0