Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/util-waiter

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-waiter - npm Package Compare versions

Comparing version 3.54.1 to 3.55.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
**Note:** Version bump only for package @aws-sdk/util-waiter
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)

@@ -8,0 +16,0 @@

4

dist-cjs/createWaiter.js

@@ -17,4 +17,4 @@ "use strict";

};
utils_1.validateWaiterOptions(params);
const exitConditions = [poller_1.runPolling(params, input, acceptorChecks)];
(0, utils_1.validateWaiterOptions)(params);
const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)];
if (options.abortController) {

@@ -21,0 +21,0 @@ exitConditions.push(abortTimeout(options.abortController.signal));

@@ -30,3 +30,3 @@ "use strict";

}
await sleep_1.sleep(delay);
await (0, sleep_1.sleep)(delay);
const { state } = await acceptorChecks(client, input);

@@ -33,0 +33,0 @@ if (state !== waiter_1.WaiterState.RETRY) {

@@ -12,7 +12,7 @@ export var validateWaiterOptions = function (options) {

else if (options.maxWaitTime <= options.minDelay) {
throw new Error("WaiterConfiguration.maxWaitTime [" + options.maxWaitTime + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
throw new Error("WaiterConfiguration.maxWaitTime [".concat(options.maxWaitTime, "] must be greater than WaiterConfiguration.minDelay [").concat(options.minDelay, "] for this waiter"));
}
else if (options.maxDelay < options.minDelay) {
throw new Error("WaiterConfiguration.maxDelay [" + options.maxDelay + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
throw new Error("WaiterConfiguration.maxDelay [".concat(options.maxDelay, "] must be greater than WaiterConfiguration.minDelay [").concat(options.minDelay, "] for this waiter"));
}
};

@@ -16,3 +16,3 @@ import { __assign } from "tslib";

if (result.state === WaiterState.ABORTED) {
var abortError = new Error("" + JSON.stringify(__assign(__assign({}, result), { reason: "Request was aborted" })));
var abortError = new Error("".concat(JSON.stringify(__assign(__assign({}, result), { reason: "Request was aborted" }))));
abortError.name = "AbortError";

@@ -22,3 +22,3 @@ throw abortError;

else if (result.state === WaiterState.TIMEOUT) {
var timeoutError = new Error("" + JSON.stringify(__assign(__assign({}, result), { reason: "Waiter has timed out" })));
var timeoutError = new Error("".concat(JSON.stringify(__assign(__assign({}, result), { reason: "Waiter has timed out" }))));
timeoutError.name = "TimeoutError";

@@ -28,5 +28,5 @@ throw timeoutError;

else if (result.state !== WaiterState.SUCCESS) {
throw new Error("" + JSON.stringify({ result: result }));
throw new Error("".concat(JSON.stringify({ result: result })));
}
return result;
};
{
"name": "@aws-sdk/util-waiter",
"version": "3.54.1",
"version": "3.55.0",
"description": "Shared utilities for client waiters for the AWS SDK",
"dependencies": {
"@aws-sdk/abort-controller": "3.54.1",
"@aws-sdk/types": "3.54.1",
"tslib": "^2.3.0"
"@aws-sdk/abort-controller": "3.55.0",
"@aws-sdk/types": "3.55.0",
"tslib": "^2.3.1"
},

@@ -52,4 +52,4 @@ "scripts": {

"typedoc": "0.19.2",
"typescript": "~4.3.5"
"typescript": "~4.6.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc