Socket
Socket
Sign inDemoInstall

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.4.0 to 1.4.1

9

dist/lib/promise-poller.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = promisePoller;
var _bluebird = require('bluebird');

@@ -96,4 +101,2 @@

});
}
module.exports = promisePoller;
}

@@ -121,3 +121,3 @@ 'use strict';

var last = 0;
var now = undefined;
var now = void 0;
var taskFn = function taskFn() {

@@ -174,3 +174,3 @@ now = Date.now();

var last = 0;
var now = undefined;
var now = void 0;
var taskFn = function taskFn() {

@@ -177,0 +177,0 @@ now = Date.now();

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

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

@@ -14,3 +14,3 @@ # promise-poller

var promisePoller = require('promise-poller');
import promisePoller from 'promise-poller';

@@ -32,2 +32,7 @@ function myTask() {

### Use in non-ES2015 environments
`promise-poller` is written using ES2015 and transpiled with Babel. The main `promisePoller` function is the default export. If you are using `promise-poller` in an ES5 environment, you will have to specify the `default` property when requiring the library in:
var promisePoller = require('promise-poller').default;
## Specify polling options

@@ -34,0 +39,0 @@ You can specify a different polling interval or number of retries:

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