Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tldraw/utils

Package Overview
Dependencies
Maintainers
4
Versions
2086
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/utils - npm Package Compare versions

Comparing version 0.1.0-alpha.6 to 0.1.0-alpha.7

8

dist/cjs/lib/debounce.js

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

let state = void 0;
return (...args) => {
const fn = (...args) => {
if (!state) {

@@ -48,3 +48,9 @@ state = {};

};
fn.cancel = () => {
if (!state)
return;
clearTimeout(state.timeout);
};
return fn;
}
//# sourceMappingURL=debounce.js.map
function debounce(callback, wait) {
let state = void 0;
return (...args) => {
const fn = (...args) => {
if (!state) {

@@ -24,2 +24,8 @@ state = {};

};
fn.cancel = () => {
if (!state)
return;
clearTimeout(state.timeout);
};
return fn;
}

@@ -26,0 +32,0 @@ export {

5

index.d.ts

@@ -21,3 +21,6 @@ /* Excluded from this release type: annotateError */

*/
export declare function debounce<T extends unknown[], U>(callback: (...args: T) => PromiseLike<U> | U, wait: number): (...args: T) => Promise<U>;
export declare function debounce<T extends unknown[], U>(callback: (...args: T) => PromiseLike<U> | U, wait: number): {
(...args: T): Promise<U>;
cancel(): void;
};

@@ -24,0 +27,0 @@ /**

@@ -5,3 +5,3 @@ {

"description": "A tiny little drawing app (private utilities).",
"version": "0.1.0-alpha.6",
"version": "0.1.0-alpha.7",
"author": "tldraw GB Ltd.",

@@ -8,0 +8,0 @@ "homepage": "https://tldraw.dev",

Sorry, the diff of this file is not supported yet

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