promise-poller
Advanced tools
Comparing version 1.4.0 to 1.4.1
'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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152
22897
13
389