Socket
Socket
Sign inDemoInstall

nanoscheduler

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -21,3 +21,3 @@ var assert = require('assert')

this.scheduled = false
this.stack = []
this.queue = []
}

@@ -29,3 +29,3 @@

this.stack.push(cb)
this.queue.push(cb)
this.schedule()

@@ -41,8 +41,8 @@ }

var cb
while (self.stack.length && idleDeadline.timeRemaining() > 0) {
cb = self.stack.shift()
while (self.queue.length && idleDeadline.timeRemaining() > 0) {
cb = self.queue.shift()
cb(idleDeadline)
}
self.scheduled = false
if (self.stack.length) self.schedule()
if (self.queue.length) self.schedule()
})

@@ -49,0 +49,0 @@ }

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

"repository": "choojs/nanoscheduler",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {

@@ -8,0 +8,0 @@ "start": "node .",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc