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

promise-poller

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-poller - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

10

dist/lib/promise-poller.js

@@ -60,2 +60,3 @@ 'use strict';

return new _bluebird2.default(function (resolve, reject) {
var polling = true;
var retriesRemaining = options.retries;

@@ -65,5 +66,8 @@ var rejections = [];

if (options.masterTimeout) {
debug('(' + options.name + ') Using master timeout of ' + options.masterTimeout + ' ms.');
setTimeout(function () {
return reject('master timeout');
}, options.globalTimeout);
debug('(' + options.name + ') Master timeout reached. Rejecting master promise.');
polling = false;
reject('master timeout');
}, options.masterTimeout);
}

@@ -97,3 +101,3 @@

reject(rejections);
} else {
} else if (polling) {
debug('(' + options.name + ') Poll failed. ' + retriesRemaining + ' retries remaining.');

@@ -100,0 +104,0 @@

{
"name": "promise-poller",
"version": "1.5.0",
"version": "1.5.1",
"description": "A basic poller built on top of promises",

@@ -5,0 +5,0 @@ "main": "dist/lib/promise-poller.js",

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