scheduler
Advanced tools
Comparing version 0.10.0-alpha.f47a958 to 0.10.0
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.0-alpha.f47a958 | ||
/** @license React v16.6.0 | ||
* scheduler-tracing.development.js | ||
@@ -20,7 +20,2 @@ * | ||
// Exports ReactDOM.createRoot | ||
// Suspense | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
@@ -27,0 +22,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.0-alpha.f47a958 | ||
/** @license React v16.6.0 | ||
* scheduler-tracing.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.0-alpha.f47a958 | ||
/** @license React v16.6.0 | ||
* scheduler-tracing.profiling.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.0-alpha.f47a958 | ||
/** @license React v16.6.0 | ||
* scheduler.development.js | ||
@@ -24,5 +24,5 @@ * | ||
var ImmediatePriority = 1; | ||
var InteractivePriority = 2; | ||
var UserBlockingPriority = 2; | ||
var NormalPriority = 3; | ||
var WheneverPriority = 4; | ||
var IdlePriority = 4; | ||
@@ -37,6 +37,6 @@ // Max 31 bit integer. The max integer size in V8 for 32-bit systems. | ||
// Eventually times out | ||
var INTERACTIVE_PRIORITY_TIMEOUT = 250; | ||
var USER_BLOCKING_PRIORITY = 250; | ||
var NORMAL_PRIORITY_TIMEOUT = 5000; | ||
// Never times out | ||
var WHENEVER_PRIORITY_TIMEOUT = maxSigned31BitInt; | ||
var IDLE_PRIORITY = maxSigned31BitInt; | ||
@@ -174,3 +174,3 @@ // Callbacks are stored as a circular, doubly linked list. | ||
firstCallbackNode = continuationNode; | ||
ensureHostCallbackIsScheduled(firstCallbackNode); | ||
ensureHostCallbackIsScheduled(); | ||
} | ||
@@ -202,3 +202,3 @@ | ||
// There's still work remaining. Request another callback. | ||
ensureHostCallbackIsScheduled(firstCallbackNode); | ||
ensureHostCallbackIsScheduled(); | ||
} else { | ||
@@ -242,3 +242,3 @@ isHostCallbackScheduled = false; | ||
// There's still work remaining. Request another callback. | ||
ensureHostCallbackIsScheduled(firstCallbackNode); | ||
ensureHostCallbackIsScheduled(); | ||
} else { | ||
@@ -255,5 +255,5 @@ isHostCallbackScheduled = false; | ||
case ImmediatePriority: | ||
case InteractivePriority: | ||
case UserBlockingPriority: | ||
case NormalPriority: | ||
case WheneverPriority: | ||
case IdlePriority: | ||
break; | ||
@@ -311,7 +311,7 @@ default: | ||
break; | ||
case InteractivePriority: | ||
expirationTime = startTime + INTERACTIVE_PRIORITY_TIMEOUT; | ||
case UserBlockingPriority: | ||
expirationTime = startTime + USER_BLOCKING_PRIORITY; | ||
break; | ||
case WheneverPriority: | ||
expirationTime = startTime + WHENEVER_PRIORITY_TIMEOUT; | ||
case IdlePriority: | ||
expirationTime = startTime + IDLE_PRIORITY; | ||
break; | ||
@@ -338,3 +338,3 @@ case NormalPriority: | ||
firstCallbackNode = newNode.next = newNode.previous = newNode; | ||
ensureHostCallbackIsScheduled(firstCallbackNode); | ||
ensureHostCallbackIsScheduled(); | ||
} else { | ||
@@ -359,3 +359,3 @@ var next = null; | ||
firstCallbackNode = newNode; | ||
ensureHostCallbackIsScheduled(firstCallbackNode); | ||
ensureHostCallbackIsScheduled(); | ||
} | ||
@@ -654,5 +654,5 @@ | ||
exports.unstable_ImmediatePriority = ImmediatePriority; | ||
exports.unstable_InteractivePriority = InteractivePriority; | ||
exports.unstable_UserBlockingPriority = UserBlockingPriority; | ||
exports.unstable_NormalPriority = NormalPriority; | ||
exports.unstable_WheneverPriority = WheneverPriority; | ||
exports.unstable_IdlePriority = IdlePriority; | ||
exports.unstable_runWithPriority = unstable_runWithPriority; | ||
@@ -659,0 +659,0 @@ exports.unstable_scheduleCallback = unstable_scheduleCallback; |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.0-alpha.f47a958 | ||
/** @license React v16.6.0 | ||
* scheduler.production.min.js | ||
@@ -11,4 +11,4 @@ * | ||
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var c=null,f=3,h=-1,k=-1,l=!1,m=!1,n="object"===typeof performance&&"function"===typeof performance.now,q={timeRemaining:n?function(){if(null!==c&&c.expirationTime<k)return 0;var a=p()-performance.now();return 0<a?a:0}:function(){if(null!==c&&c.expirationTime<k)return 0;var a=p()-Date.now();return 0<a?a:0},didTimeout:!1};function r(){if(!l){var a=c.expirationTime;m?t():m=!0;u(v,a)}} | ||
function w(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;d=a.callback;b=a.expirationTime;a=a.priorityLevel;var e=f,R=k;f=a;k=b;try{var g=d(q)}finally{f=e,k=R}if("function"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===c)c=g.next=g.previous=g;else{d=null;a=c;do{if(a.expirationTime>=b){d=a;break}a=a.next}while(a!==c);null===d?d=c:d===c&&(c=g,r(c));b=d.previous;b.next=d.previous=g;g.next=d;g.previous= | ||
b}}function x(){if(-1===h&&null!==c&&1===c.priorityLevel){l=!0;q.didTimeout=!0;try{do w();while(null!==c&&1===c.priorityLevel)}finally{l=!1,null!==c?r(c):m=!1}}}function v(a){l=!0;q.didTimeout=a;try{if(a)for(;null!==c;){var b=exports.unstable_now();if(c.expirationTime<=b){do w();while(null!==c&&c.expirationTime<=b)}else break}else if(null!==c){do w();while(null!==c&&0<p()-exports.unstable_now())}}finally{l=!1,null!==c?r(c):m=!1,x()}} | ||
function w(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;d=a.callback;b=a.expirationTime;a=a.priorityLevel;var e=f,R=k;f=a;k=b;try{var g=d(q)}finally{f=e,k=R}if("function"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===c)c=g.next=g.previous=g;else{d=null;a=c;do{if(a.expirationTime>=b){d=a;break}a=a.next}while(a!==c);null===d?d=c:d===c&&(c=g,r());b=d.previous;b.next=d.previous=g;g.next=d;g.previous= | ||
b}}function x(){if(-1===h&&null!==c&&1===c.priorityLevel){l=!0;q.didTimeout=!0;try{do w();while(null!==c&&1===c.priorityLevel)}finally{l=!1,null!==c?r():m=!1}}}function v(a){l=!0;q.didTimeout=a;try{if(a)for(;null!==c;){var b=exports.unstable_now();if(c.expirationTime<=b){do w();while(null!==c&&c.expirationTime<=b)}else break}else if(null!==c){do w();while(null!==c&&0<p()-exports.unstable_now())}}finally{l=!1,null!==c?r():m=!1,x()}} | ||
var y=Date,z="function"===typeof setTimeout?setTimeout:void 0,A="function"===typeof clearTimeout?clearTimeout:void 0,B="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,C="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,D,E;function F(a){D=B(function(b){A(E);a(b)});E=z(function(){C(D);a(exports.unstable_now())},100)}if(n){var G=performance;exports.unstable_now=function(){return G.now()}}else exports.unstable_now=function(){return y.now()};var u,t,p; | ||
@@ -18,4 +18,4 @@ if("undefined"!==typeof window&&window._schedMock){var H=window._schedMock;u=H[0];t=H[1];p=H[2]}else if("undefined"===typeof window||"function"!==typeof window.addEventListener){var I=null,J=-1,K=function(a,b){if(null!==I){var d=I;I=null;try{J=b,d(a)}finally{J=-1}}};u=function(a,b){-1!==J?setTimeout(u,0,a,b):(I=a,setTimeout(K,b,!0,b),setTimeout(K,1073741823,!1,1073741823))};t=function(){I=null};p=function(){return Infinity};exports.unstable_now=function(){return-1===J?0:J}}else{"undefined"!==typeof console&& | ||
function(a){if(a.source===window&&a.data===U){M=!1;a=L;var b=N;L=null;N=-1;var d=exports.unstable_now(),e=!1;if(0>=Q-d)if(-1!==b&&b<=d)e=!0;else{O||(O=!0,F(V));L=a;N=b;return}if(null!==a){P=!0;try{a(e)}finally{P=!1}}}},!1);var V=function(a){if(null!==L){F(V);var b=a-Q+T;b<T&&S<T?(8>b&&(b=8),T=b<S?S:b):S=b;Q=a+T;M||(M=!0,window.postMessage(U,"*"))}else O=!1};u=function(a,b){L=a;N=b;P||0>b?window.postMessage(U,"*"):O||(O=!0,F(V))};t=function(){L=null;M=!1;N=-1}}exports.unstable_ImmediatePriority=1; | ||
exports.unstable_InteractivePriority=2;exports.unstable_NormalPriority=3;exports.unstable_WheneverPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:break;default:a=3}var d=f,e=h;f=a;h=exports.unstable_now();try{return b()}finally{f=d,h=e,x()}}; | ||
exports.unstable_scheduleCallback=function(a,b){var d=-1!==h?h:exports.unstable_now();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=d+b.timeout;else switch(f){case 1:b=d+-1;break;case 2:b=d+250;break;case 4:b=d+1073741823;break;default:b=d+5E3}a={callback:a,priorityLevel:f,expirationTime:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,r(c);else{d=null;var e=c;do{if(e.expirationTime>b){d=e;break}e=e.next}while(e!==c);null===d?d=c:d===c&&(c=a,r(c));b=d.previous;b.next= | ||
d.previous=a;a.next=d;a.previous=b}return a};exports.unstable_cancelCallback=function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}};exports.unstable_wrapCallback=function(a){var b=f;return function(){var d=f,e=h;f=b;h=exports.unstable_now();try{return a.apply(this,arguments)}finally{f=d,h=e,x()}}};exports.unstable_getCurrentPriorityLevel=function(){return f}; | ||
exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:break;default:a=3}var d=f,e=h;f=a;h=exports.unstable_now();try{return b()}finally{f=d,h=e,x()}}; | ||
exports.unstable_scheduleCallback=function(a,b){var d=-1!==h?h:exports.unstable_now();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=d+b.timeout;else switch(f){case 1:b=d+-1;break;case 2:b=d+250;break;case 4:b=d+1073741823;break;default:b=d+5E3}a={callback:a,priorityLevel:f,expirationTime:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,r();else{d=null;var e=c;do{if(e.expirationTime>b){d=e;break}e=e.next}while(e!==c);null===d?d=c:d===c&&(c=a,r());b=d.previous;b.next=d.previous= | ||
a;a.next=d;a.previous=b}return a};exports.unstable_cancelCallback=function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}};exports.unstable_wrapCallback=function(a){var b=f;return function(){var d=f,e=h;f=b;h=exports.unstable_now();try{return a.apply(this,arguments)}finally{f=d,h=e,x()}}};exports.unstable_getCurrentPriorityLevel=function(){return f}; |
{ | ||
"name": "scheduler", | ||
"version": "0.10.0-alpha.f47a958", | ||
"version": "0.10.0", | ||
"description": "Cooperative scheduler for the browser environment.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
58110
1394