@opentiny/utils
Advanced tools
@@ -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'; |
+1
-1
| { | ||
| "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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
301344
0.21%8545
0.2%