Socket
Socket
Sign inDemoInstall

debounce-promise

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debounce-promise - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

16

dist/index.js
'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

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