debounce-promise
Advanced tools
Comparing version 3.1.1 to 3.1.2
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
/* global setTimeout, clearTimeout */ | ||
@@ -43,12 +41,6 @@ | ||
if (options.accumulate) { | ||
var _ret = function () { | ||
var argsIndex = pendingArgs.length - 1; | ||
return { | ||
v: deferred.promise.then(function (results) { | ||
return results[argsIndex]; | ||
}) | ||
}; | ||
}(); | ||
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; | ||
var argsIndex = pendingArgs.length - 1; | ||
return deferred.promise.then(function (results) { | ||
return results[argsIndex]; | ||
}); | ||
} | ||
@@ -55,0 +47,0 @@ |
{ | ||
"name": "debounce-promise", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Create a debounced version of a promise returning function", | ||
@@ -12,3 +12,3 @@ "main": "dist/index", | ||
"clean": "rimraf dist", | ||
"prepublish": "in-publish && npm run compile || not-in-publish", | ||
"prepare": "in-publish && npm run compile || not-in-publish", | ||
"postpublish": "in-publish && npm run clean || not-in-publish" | ||
@@ -15,0 +15,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
18739
308