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

scheduler

Package Overview
Dependencies
Maintainers
4
Versions
1976
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scheduler - npm Package Compare versions

Comparing version 0.26.0-canary-7130d0c6-20241212 to 0.26.0-canary-7eb8234f-20241218

12

cjs/scheduler.development.js

@@ -15,2 +15,3 @@ /**

function performWorkUntilDeadline() {
needsPaint = !1;
if (isMessageLoopRunning) {

@@ -165,3 +166,7 @@ var currentTime = exports.unstable_now();

function shouldYieldToHost() {
return exports.unstable_now() - startTime < frameInterval ? !1 : !0;
return needsPaint
? !0
: exports.unstable_now() - startTime < frameInterval
? !1
: !0;
}

@@ -205,2 +210,3 @@ function requestHostCallback() {

isHostTimeoutScheduled = !1,
needsPaint = !1,
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,

@@ -276,3 +282,5 @@ localClearTimeout =

exports.unstable_pauseExecution = function () {};
exports.unstable_requestPaint = function () {};
exports.unstable_requestPaint = function () {
needsPaint = !0;
};
exports.unstable_runWithPriority = function (priorityLevel, eventHandler) {

@@ -279,0 +287,0 @@ switch (priorityLevel) {

@@ -15,2 +15,3 @@ /**

function performWorkUntilDeadline() {
needsPaint = !1;
if (isMessageLoopRunning) {

@@ -226,5 +227,11 @@ var currentTime = getCurrentTime();

function shouldYieldToHost() {
return getCurrentTime() - startTime < frameInterval ? !1 : !0;
return needsPaint
? !0
: getCurrentTime() - startTime < frameInterval
? !1
: !0;
}
function requestPaint() {}
function requestPaint() {
needsPaint = !0;
}
function requestHostTimeout(callback, ms) {

@@ -261,2 +268,3 @@ taskTimeoutID = localSetTimeout(function () {

isHostTimeoutScheduled = !1,
needsPaint = !1,
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,

@@ -263,0 +271,0 @@ localClearTimeout =

8

cjs/scheduler.native.production.js

@@ -81,2 +81,3 @@ /**

isHostTimeoutScheduled = !1,
needsPaint = !1,
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,

@@ -172,6 +173,9 @@ localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null,

function shouldYieldToHost() {
return 5 > getCurrentTime() - startTime ? !1 : !0;
return needsPaint ? !0 : 5 > getCurrentTime() - startTime ? !1 : !0;
}
function requestPaint() {}
function requestPaint() {
needsPaint = !0;
}
function performWorkUntilDeadline() {
needsPaint = !1;
if (isMessageLoopRunning) {

@@ -178,0 +182,0 @@ var currentTime = getCurrentTime();

@@ -81,2 +81,3 @@ /**

isHostTimeoutScheduled = !1,
needsPaint = !1,
localSetTimeout = "function" === typeof setTimeout ? setTimeout : null,

@@ -113,5 +114,10 @@ localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null,

function shouldYieldToHost() {
return exports.unstable_now() - startTime < frameInterval ? !1 : !0;
return needsPaint
? !0
: exports.unstable_now() - startTime < frameInterval
? !1
: !0;
}
function performWorkUntilDeadline() {
needsPaint = !1;
if (isMessageLoopRunning) {

@@ -257,3 +263,5 @@ var currentTime = exports.unstable_now();

exports.unstable_pauseExecution = function () {};
exports.unstable_requestPaint = function () {};
exports.unstable_requestPaint = function () {
needsPaint = !0;
};
exports.unstable_runWithPriority = function (priorityLevel, eventHandler) {

@@ -260,0 +268,0 @@ switch (priorityLevel) {

{
"name": "scheduler",
"version": "0.26.0-canary-7130d0c6-20241212",
"version": "0.26.0-canary-7eb8234f-20241218",
"description": "Cooperative scheduler for the browser environment.",

@@ -5,0 +5,0 @@ "repository": {

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