Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@opentiny/utils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/utils - npm Package Compare versions

Comparing version
3.29.0
to
3.30.0
+4
-0
dist/debounce/index.d.ts

@@ -21,2 +21,4 @@ /**

*
* 仅允许设置在开始,或者在结尾执行一次的防抖行为,若需要首尾均执行一次,请使用 `debounceBoth` 函数
*
* @param {number} delay - 延迟时间(毫秒)

@@ -28,1 +30,3 @@ * @param {boolean | Function} atBegin - 如果为布尔值,指定是否在延迟开始前执行;如果为函数,则作为回调函数

export declare function debounce(delay: number, atBegin: boolean | Function, callback?: Function): DebounceFunction;
/** 防抖函数 - 允许在延迟时间段的首尾均执行一次 */
export declare function debounceBoth(delay: number, callback: Function): DebounceFunction;
+1
-1

@@ -27,3 +27,3 @@ import { default as xss } from './xss';

export { afterLeave } from './after-leave';
export { debounce } from './debounce';
export { debounce, debounceBoth } from './debounce';
export { throttle } from './throttle';

@@ -30,0 +30,0 @@ export { on, off, once, hasClass, addClass, removeClass, getStyle, setStyle, isScroll, getScrollContainer, isInContainer, getDomNode, getScrollTop, stopPropagation, preventDefault, getScrollParent, useScrollParent, isDisplayNone } from './dom';

{
"name": "@opentiny/utils",
"type": "module",
"version": "3.29.0",
"version": "3.30.0",
"description": "nanoid console xss",

@@ -6,0 +6,0 @@ "author": "",

Sorry, the diff of this file is too big to display