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 2.1.0 to 2.1.1

8

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

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