🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

call-func

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

call-func - npm Package Compare versions

Comparing version

to
0.3.10

18

build/cjs/src/debounce.js

@@ -7,4 +7,22 @@ "use strict";

var _callfunc = _interopRequireDefault(require("./callfunc.js"));
// @ts-check
/**
* @typedef {object} DebounceExecutorOption
* @property {number=} delay
* @property {any[]=} args
* @property {any=} scope
*/
/**
* @callback DebounceExecutor
* @param {DebounceExecutorOption=} option
*/
/**
* only run lasttime.
*
* @param {Function} func
* @param {number} defaultDelay
* @returns {DebounceExecutor}
*/

@@ -11,0 +29,0 @@ var debounce = function debounce(func, defaultDelay) {

3

build/cjs/src/register.js

@@ -80,3 +80,3 @@ "use strict";

}
(0, _createClass2["default"])(EventWrap, [{
return (0, _createClass2["default"])(EventWrap, [{
key: "cleanAll",

@@ -99,3 +99,2 @@ value: function cleanAll(type) {

}]);
return EventWrap;
}();

@@ -102,0 +101,0 @@ var register = exports.register = function register(el) {

{
"version": "0.3.9",
"version": "0.3.10",
"name": "call-func",

@@ -4,0 +4,0 @@ "repository": {

export default debounce;
export type DebounceExecutorOption = {
delay?: number | undefined;
args?: any[] | undefined;
scope?: any | undefined;
};
export type DebounceExecutor = (option?: DebounceExecutorOption | undefined) => any;
/**
* @typedef {object} DebounceExecutorOption
* @property {number=} delay
* @property {any[]=} args
* @property {any=} scope
*/
/**
* @callback DebounceExecutor
* @param {DebounceExecutorOption=} option
*/
/**
* only run lasttime.
*
* @param {Function} func
* @param {number} defaultDelay
* @returns {DebounceExecutor}
*/
declare function debounce(func: any, defaultDelay: any): (option: any) => void;
declare function debounce(func: Function, defaultDelay: number): DebounceExecutor;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet