debounce-promise
Advanced tools
Comparing version 2.1.0 to 2.1.1
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = debounce; | ||
/* global setTimeout, clearTimeout */ | ||
function debounce(fn) { | ||
module.exports = function debounce(fn) { | ||
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
@@ -80,3 +76,3 @@ | ||
} | ||
} | ||
}; | ||
@@ -83,0 +79,0 @@ function defer() { |
/* global setTimeout, clearTimeout */ | ||
export default function debounce (fn, wait = 0, {leading = false, accumulate = false} = {}) { | ||
module.exports = function debounce (fn, wait = 0, {leading = false, accumulate = false} = {}) { | ||
let nextArgs = [] | ||
@@ -4,0 +4,0 @@ let pending |
{ | ||
"name": "debounce-promise", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Create a debounced version of a promise returning function", | ||
@@ -37,2 +37,3 @@ "main": "dist/index", | ||
"babel-preset-es2015": "^6.16.0", | ||
"babel-register": "^6.16.3", | ||
"eslint": "^3.8.0", | ||
@@ -39,0 +40,0 @@ "in-publish": "^2.0.0", |
Sorry, the diff of this file is not supported yet
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
15566
11
268