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

@byojs/scheduler

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byojs/scheduler - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

package.json
{
"name": "@byojs/scheduler",
"description": "Throttle/debounce scheduler",
"version": "0.9.1",
"version": "0.9.2",
"exports": {

@@ -6,0 +6,0 @@ "./": "./dist/scheduler.mjs"

@@ -31,3 +31,3 @@ # Scheduler

Throttling prevents a repeated function call from being processed more than once per defined interval of time (e.g., 100ms); an interval timer is started with the *first call* (which resets after each interval transpires).
[Throttling](https://css-tricks.com/debouncing-throttling-explained-examples/#aa-throttle) prevents a repeated function call from being processed more than once per defined interval of time (e.g., 100ms); an interval timer is started with the *first call* (which resets after each interval transpires).

@@ -38,3 +38,3 @@ With leading throttling, the initial call is processed immediately, and any subsequent call attempts, during the interval, will be ignored. With trailing throttling, only the last call is processed, *after* the full interval has transpired (since the first attempted call).

Debouncing resets the delay interval with each attempted call of a function, meaning that the delay of processing an attempted call will continue to increase (unbounded), with each subsequent call attempt during the defined interval.
[Debouncing](https://css-tricks.com/debouncing-throttling-explained-examples/#aa-debounce) resets the delay interval with each attempted call of a function, meaning that the delay of processing an attempted call will continue to increase (unbounded), with each subsequent call attempt during the defined interval.

@@ -41,0 +41,0 @@ With leading debouncing, the initial call is immediately processed, after which subsequent calls are debounced; once a full interval transpires without attempted calls, the most recent call is processed. With trailing debouncing, no initial call is processed, and every call is debounced.

@@ -1,4 +0,4 @@

/*! Scheduler: #FILENAME#
/*! byojs/Scheduler: #FILENAME#
v#VERSION# (c) #YEAR# Kyle Simpson
MIT License: http://getify.mit-license.org
*/

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