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

@jcoreio/async-throttle

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jcoreio/async-throttle - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

14

es/index.d.ts
export class CanceledError extends Error {}
export type ThrottledFunction<Args extends any[], Value> = {
(...args: Args): Promise<Value>
invokeIgnoreResult: (...args: Args) => void
cancel: () => Promise<void>
flush: () => Promise<void>
}
export default function throttle<Args extends any[], Value>(

@@ -9,7 +16,2 @@ fn: (...args: Args) => Value | Promise<Value>,

}
): {
(...args: Args): Promise<Value>
invokeIgnoreResult: (...args: Args) => void
cancel: () => Promise<void>
flush: () => Promise<void>
}
): ThrottledFunction<Args, Value>
export class CanceledError extends Error {}
export type ThrottledFunction<Args extends any[], Value> = {
(...args: Args): Promise<Value>
invokeIgnoreResult: (...args: Args) => void
cancel: () => Promise<void>
flush: () => Promise<void>
}
export default function throttle<Args extends any[], Value>(

@@ -9,7 +16,2 @@ fn: (...args: Args) => Value | Promise<Value>,

}
): {
(...args: Args): Promise<Value>
invokeIgnoreResult: (...args: Args) => void
cancel: () => Promise<void>
flush: () => Promise<void>
}
): ThrottledFunction<Args, Value>
{
"name": "@jcoreio/async-throttle",
"version": "1.5.0",
"version": "1.6.0",
"description": "throttle async and promise-returning functions. Other packages don't do it right.",

@@ -5,0 +5,0 @@ "main": "index.js",

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