scheduler
Advanced tools
Comparing version 0.0.0-a8988e4-1d1a717 to 0.0.0-b668168d4
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-b668168d4 | ||
* scheduler-tracing.development.js | ||
@@ -43,4 +43,7 @@ * | ||
// Only used in www builds. | ||
// TODO: true? Here it might just be false. | ||
// Only used in www builds. | ||
// Only used in www builds. | ||
@@ -47,0 +50,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-b668168d4 | ||
* scheduler-tracing.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-b668168d4 | ||
* scheduler-tracing.profiling.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-b668168d4 | ||
* scheduler.development.js | ||
@@ -20,2 +20,4 @@ * | ||
var enableSchedulerDebugging = false; | ||
/* eslint-disable no-var */ | ||
@@ -48,2 +50,5 @@ | ||
var currentDidTimeout = false; | ||
// Pausing the scheduler is useful for debugging. | ||
var isSchedulerPaused = false; | ||
var currentPriorityLevel = NormalPriority; | ||
@@ -183,2 +188,8 @@ var currentEventStartTime = -1; | ||
function flushWork(didTimeout) { | ||
// Exit right away if we're currently paused | ||
if (enableSchedulerDebugging && isSchedulerPaused) { | ||
return; | ||
} | ||
isExecutingCallback = true; | ||
@@ -190,3 +201,4 @@ var previousDidTimeout = currentDidTimeout; | ||
// Flush all the expired callbacks without yielding. | ||
while (firstCallbackNode !== null) { | ||
while (firstCallbackNode !== null && !(enableSchedulerDebugging && isSchedulerPaused)) { | ||
// TODO Wrap in feature flag | ||
// Read the current time. Flush all the callbacks that expire at or | ||
@@ -199,3 +211,3 @@ // earlier than that time. Then read the current time again and repeat. | ||
flushFirstCallback(); | ||
} while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime); | ||
} while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)); | ||
continue; | ||
@@ -209,2 +221,5 @@ } | ||
do { | ||
if (enableSchedulerDebugging && isSchedulerPaused) { | ||
break; | ||
} | ||
flushFirstCallback(); | ||
@@ -256,2 +271,33 @@ } while (firstCallbackNode !== null && !shouldYieldToHost()); | ||
function unstable_next(eventHandler) { | ||
var priorityLevel = void 0; | ||
switch (currentPriorityLevel) { | ||
case ImmediatePriority: | ||
case UserBlockingPriority: | ||
case NormalPriority: | ||
// Shift down to normal priority | ||
priorityLevel = NormalPriority; | ||
break; | ||
default: | ||
// Anything lower than normal priority should remain at the current level. | ||
priorityLevel = currentPriorityLevel; | ||
break; | ||
} | ||
var previousPriorityLevel = currentPriorityLevel; | ||
var previousEventStartTime = currentEventStartTime; | ||
currentPriorityLevel = priorityLevel; | ||
currentEventStartTime = exports.unstable_now(); | ||
try { | ||
return eventHandler(); | ||
} finally { | ||
currentPriorityLevel = previousPriorityLevel; | ||
currentEventStartTime = previousEventStartTime; | ||
// Before exiting, flush all the immediate work that was scheduled. | ||
flushImmediateWork(); | ||
} | ||
} | ||
function unstable_wrapCallback(callback) { | ||
@@ -349,2 +395,17 @@ var parentPriorityLevel = currentPriorityLevel; | ||
function unstable_pauseExecution() { | ||
isSchedulerPaused = true; | ||
} | ||
function unstable_continueExecution() { | ||
isSchedulerPaused = false; | ||
if (firstCallbackNode !== null) { | ||
ensureHostCallbackIsScheduled(); | ||
} | ||
} | ||
function unstable_getFirstCallbackNode() { | ||
return firstCallbackNode; | ||
} | ||
function unstable_cancelCallback(callbackNode) { | ||
@@ -443,8 +504,16 @@ var next = callbackNode.next; | ||
if (typeof window !== 'undefined' && window._schedMock) { | ||
var globalValue = null; | ||
if (typeof window !== 'undefined') { | ||
globalValue = window; | ||
} else if (typeof global !== 'undefined') { | ||
globalValue = global; | ||
} | ||
if (globalValue && globalValue._schedMock) { | ||
// Dynamic injection, only for testing purposes. | ||
var impl = window._schedMock; | ||
requestHostCallback = impl[0]; | ||
cancelHostCallback = impl[1]; | ||
shouldYieldToHost = impl[2]; | ||
var globalImpl = globalValue._schedMock; | ||
requestHostCallback = globalImpl[0]; | ||
cancelHostCallback = globalImpl[1]; | ||
shouldYieldToHost = globalImpl[2]; | ||
exports.unstable_now = globalImpl[3]; | ||
} else if ( | ||
@@ -454,16 +523,13 @@ // If Scheduler runs in a non-DOM environment, it falls back to a naive | ||
typeof window === 'undefined' || | ||
// "addEventListener" might not be available on the window object | ||
// if this is a mocked "window" object. So we need to validate that too. | ||
typeof window.addEventListener !== 'function') { | ||
// Check if MessageChannel is supported, too. | ||
typeof MessageChannel !== 'function') { | ||
// If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore, | ||
// fallback to a naive implementation. | ||
var _callback = null; | ||
var _currentTime = -1; | ||
var _flushCallback = function (didTimeout, ms) { | ||
var _flushCallback = function (didTimeout) { | ||
if (_callback !== null) { | ||
var cb = _callback; | ||
_callback = null; | ||
try { | ||
_currentTime = ms; | ||
cb(didTimeout); | ||
_callback(didTimeout); | ||
} finally { | ||
_currentTime = -1; | ||
_callback = null; | ||
} | ||
@@ -473,9 +539,8 @@ } | ||
requestHostCallback = function (cb, ms) { | ||
if (_currentTime !== -1) { | ||
if (_callback !== null) { | ||
// Protect against re-entrancy. | ||
setTimeout(requestHostCallback, 0, cb, ms); | ||
setTimeout(requestHostCallback, 0, cb); | ||
} else { | ||
_callback = cb; | ||
setTimeout(_flushCallback, ms, true, ms); | ||
setTimeout(_flushCallback, maxSigned31BitInt, false, maxSigned31BitInt); | ||
setTimeout(_flushCallback, 0, false); | ||
} | ||
@@ -489,5 +554,2 @@ }; | ||
}; | ||
exports.unstable_now = function () { | ||
return _currentTime === -1 ? 0 : _currentTime; | ||
}; | ||
} else { | ||
@@ -524,8 +586,5 @@ if (typeof console !== 'undefined') { | ||
// We use the postMessage trick to defer idle work until after the repaint. | ||
var messageKey = '__reactIdleCallback$' + Math.random().toString(36).slice(2); | ||
var idleTick = function (event) { | ||
if (event.source !== window || event.data !== messageKey) { | ||
return; | ||
} | ||
var channel = new MessageChannel(); | ||
var port = channel.port2; | ||
channel.port1.onmessage = function (event) { | ||
isMessageEventScheduled = false; | ||
@@ -571,5 +630,2 @@ | ||
}; | ||
// Assumes that we have addEventListener in this environment. Might need | ||
// something better for old IE. | ||
window.addEventListener('message', idleTick, false); | ||
@@ -614,3 +670,3 @@ var animationTick = function (rafTime) { | ||
isMessageEventScheduled = true; | ||
window.postMessage(messageKey, '*'); | ||
port.postMessage(undefined); | ||
} | ||
@@ -624,3 +680,3 @@ }; | ||
// Don't wait for the next frame. Continue working ASAP, in a new event. | ||
window.postMessage(messageKey, '*'); | ||
port.postMessage(undefined); | ||
} else if (!isAnimationFrameScheduled) { | ||
@@ -649,2 +705,3 @@ // If rAF didn't already schedule one, we need to schedule a frame. | ||
exports.unstable_runWithPriority = unstable_runWithPriority; | ||
exports.unstable_next = unstable_next; | ||
exports.unstable_scheduleCallback = unstable_scheduleCallback; | ||
@@ -655,3 +712,6 @@ exports.unstable_cancelCallback = unstable_cancelCallback; | ||
exports.unstable_shouldYield = unstable_shouldYield; | ||
exports.unstable_continueExecution = unstable_continueExecution; | ||
exports.unstable_pauseExecution = unstable_pauseExecution; | ||
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; | ||
})(); | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-b668168d4 | ||
* scheduler.production.min.js | ||
@@ -10,13 +10,13 @@ * | ||
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var d=null,f=!1,h=3,k=-1,l=-1,m=!1,n=!1;function p(){if(!m){var a=d.expirationTime;n?q():n=!0;r(t,a)}} | ||
function u(){var a=d,b=d.next;if(d===b)d=null;else{var c=d.previous;d=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var e=h,Q=l;h=a;l=b;try{var g=c()}finally{h=e,l=Q}if("function"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===d)d=g.next=g.previous=g;else{c=null;a=d;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==d);null===c?c=d:c===d&&(d=g,p());b=c.previous;b.next=c.previous=g;g.next=c;g.previous= | ||
b}}function v(){if(-1===k&&null!==d&&1===d.priorityLevel){m=!0;try{do u();while(null!==d&&1===d.priorityLevel)}finally{m=!1,null!==d?p():n=!1}}}function t(a){m=!0;var b=f;f=a;try{if(a)for(;null!==d;){var c=exports.unstable_now();if(d.expirationTime<=c){do u();while(null!==d&&d.expirationTime<=c)}else break}else if(null!==d){do u();while(null!==d&&!w())}}finally{m=!1,f=b,null!==d?p():n=!1,v()}} | ||
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var d=null,e=!1,g=3,k=-1,l=-1,m=!1,n=!1;function p(){if(!m){var a=d.expirationTime;n?q():n=!0;r(t,a)}} | ||
function u(){var a=d,b=d.next;if(d===b)d=null;else{var c=d.previous;d=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var f=g,Q=l;g=a;l=b;try{var h=c()}finally{g=f,l=Q}if("function"===typeof h)if(h={callback:h,priorityLevel:a,expirationTime:b,next:null,previous:null},null===d)d=h.next=h.previous=h;else{c=null;a=d;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==d);null===c?c=d:c===d&&(d=h,p());b=c.previous;b.next=c.previous=h;h.next=c;h.previous= | ||
b}}function v(){if(-1===k&&null!==d&&1===d.priorityLevel){m=!0;try{do u();while(null!==d&&1===d.priorityLevel)}finally{m=!1,null!==d?p():n=!1}}}function t(a){m=!0;var b=e;e=a;try{if(a)for(;null!==d;){var c=exports.unstable_now();if(d.expirationTime<=c){do u();while(null!==d&&d.expirationTime<=c)}else break}else if(null!==d){do u();while(null!==d&&!w())}}finally{m=!1,e=b,null!==d?p():n=!1,v()}} | ||
var x=Date,y="function"===typeof setTimeout?setTimeout:void 0,z="function"===typeof clearTimeout?clearTimeout:void 0,A="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,B="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,C,D;function E(a){C=A(function(b){z(D);a(b)});D=y(function(){B(C);a(exports.unstable_now())},100)} | ||
if("object"===typeof performance&&"function"===typeof performance.now){var F=performance;exports.unstable_now=function(){return F.now()}}else exports.unstable_now=function(){return x.now()};var r,q,w; | ||
if("undefined"!==typeof window&&window._schedMock){var G=window._schedMock;r=G[0];q=G[1];w=G[2]}else if("undefined"===typeof window||"function"!==typeof window.addEventListener){var H=null,I=-1,J=function(a,b){if(null!==H){var c=H;H=null;try{I=b,c(a)}finally{I=-1}}};r=function(a,b){-1!==I?setTimeout(r,0,a,b):(H=a,setTimeout(J,b,!0,b),setTimeout(J,1073741823,!1,1073741823))};q=function(){H=null};w=function(){return!1};exports.unstable_now=function(){return-1===I?0:I}}else{"undefined"!==typeof console&& | ||
("function"!==typeof A&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof B&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var K=null,L=!1,M=-1,N=!1,O=!1,P=0,R=33,S=33;w=function(){return P<=exports.unstable_now()};var T="__reactIdleCallback$"+Math.random().toString(36).slice(2); | ||
window.addEventListener("message",function(a){if(a.source===window&&a.data===T){L=!1;a=K;var b=M;K=null;M=-1;var c=exports.unstable_now(),e=!1;if(0>=P-c)if(-1!==b&&b<=c)e=!0;else{N||(N=!0,E(U));K=a;M=b;return}if(null!==a){O=!0;try{a(e)}finally{O=!1}}}},!1);var U=function(a){if(null!==K){E(U);var b=a-P+S;b<S&&R<S?(8>b&&(b=8),S=b<R?R:b):R=b;P=a+S;L||(L=!0,window.postMessage(T,"*"))}else N=!1};r=function(a,b){K=a;M=b;O||0>b?window.postMessage(T,"*"):N||(N=!0,E(U))};q=function(){K=null;L=!1;M=-1}} | ||
exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=h,e=k;h=a;k=exports.unstable_now();try{return b()}finally{h=c,k=e,v()}}; | ||
exports.unstable_scheduleCallback=function(a,b){var c=-1!==k?k:exports.unstable_now();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=c+b.timeout;else switch(h){case 1:b=c+-1;break;case 2:b=c+250;break;case 5:b=c+1073741823;break;case 4:b=c+1E4;break;default:b=c+5E3}a={callback:a,priorityLevel:h,expirationTime:b,next:null,previous:null};if(null===d)d=a.next=a.previous=a,p();else{c=null;var e=d;do{if(e.expirationTime>b){c=e;break}e=e.next}while(e!==d);null===c?c=d:c===d&&(d=a,p()); | ||
b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a};exports.unstable_cancelCallback=function(a){var b=a.next;if(null!==b){if(b===a)d=null;else{a===d&&(d=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}};exports.unstable_wrapCallback=function(a){var b=h;return function(){var c=h,e=k;h=b;k=exports.unstable_now();try{return a.apply(this,arguments)}finally{h=c,k=e,v()}}};exports.unstable_getCurrentPriorityLevel=function(){return h}; | ||
exports.unstable_shouldYield=function(){return!f&&(null!==d&&d.expirationTime<l||w())}; | ||
if("object"===typeof performance&&"function"===typeof performance.now){var F=performance;exports.unstable_now=function(){return F.now()}}else exports.unstable_now=function(){return x.now()};var r,q,w,G=null;"undefined"!==typeof window?G=window:"undefined"!==typeof global&&(G=global); | ||
if(G&&G._schedMock){var H=G._schedMock;r=H[0];q=H[1];w=H[2];exports.unstable_now=H[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var I=null,J=function(a){if(null!==I)try{I(a)}finally{I=null}};r=function(a){null!==I?setTimeout(r,0,a):(I=a,setTimeout(J,0,!1))};q=function(){I=null};w=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof A&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), | ||
"function"!==typeof B&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var K=null,L=!1,M=-1,N=!1,O=!1,P=0,R=33,S=33;w=function(){return P<=exports.unstable_now()};var T=new MessageChannel,U=T.port2;T.port1.onmessage=function(){L=!1;var a=K,b=M;K=null;M=-1;var c=exports.unstable_now(),f=!1;if(0>=P-c)if(-1!==b&&b<=c)f=!0;else{N||(N=!0,E(V));K=a;M=b;return}if(null!==a){O=!0;try{a(f)}finally{O=!1}}}; | ||
var V=function(a){if(null!==K){E(V);var b=a-P+S;b<S&&R<S?(8>b&&(b=8),S=b<R?R:b):R=b;P=a+S;L||(L=!0,U.postMessage(void 0))}else N=!1};r=function(a,b){K=a;M=b;O||0>b?U.postMessage(void 0):N||(N=!0,E(V))};q=function(){K=null;L=!1;M=-1}}exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4; | ||
exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=g,f=k;g=a;k=exports.unstable_now();try{return b()}finally{g=c,k=f,v()}};exports.unstable_next=function(a){switch(g){case 1:case 2:case 3:var b=3;break;default:b=g}var c=g,f=k;g=b;k=exports.unstable_now();try{return a()}finally{g=c,k=f,v()}}; | ||
exports.unstable_scheduleCallback=function(a,b){var c=-1!==k?k:exports.unstable_now();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=c+b.timeout;else switch(g){case 1:b=c+-1;break;case 2:b=c+250;break;case 5:b=c+1073741823;break;case 4:b=c+1E4;break;default:b=c+5E3}a={callback:a,priorityLevel:g,expirationTime:b,next:null,previous:null};if(null===d)d=a.next=a.previous=a,p();else{c=null;var f=d;do{if(f.expirationTime>b){c=f;break}f=f.next}while(f!==d);null===c?c=d:c===d&&(d=a,p()); | ||
b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a};exports.unstable_cancelCallback=function(a){var b=a.next;if(null!==b){if(b===a)d=null;else{a===d&&(d=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}};exports.unstable_wrapCallback=function(a){var b=g;return function(){var c=g,f=k;g=b;k=exports.unstable_now();try{return a.apply(this,arguments)}finally{g=c,k=f,v()}}};exports.unstable_getCurrentPriorityLevel=function(){return g}; | ||
exports.unstable_shouldYield=function(){return!e&&(null!==d&&d.expirationTime<l||w())};exports.unstable_continueExecution=function(){null!==d&&p()};exports.unstable_pauseExecution=function(){};exports.unstable_getFirstCallbackNode=function(){return d}; |
{ | ||
"name": "scheduler", | ||
"version": "0.0.0-a8988e4-1d1a717", | ||
"version": "0.0.0-b668168d4", | ||
"description": "Cooperative scheduler for the browser environment.", | ||
"main": "index.js", | ||
"repository": "facebook/react", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/facebook/react.git", | ||
"directory": "packages/scheduler" | ||
}, | ||
"license": "MIT", | ||
@@ -22,2 +26,3 @@ "keywords": [ | ||
"README.md", | ||
"build-info.json", | ||
"index.js", | ||
@@ -33,9 +38,3 @@ "tracing.js", | ||
] | ||
}, | ||
"buildInfo": { | ||
"buildID": "a8988e4-1d1a717", | ||
"checksum": "d49ca941a51ddc0dec608acd2ce521b9a71397fc", | ||
"unstable": true, | ||
"partial": false | ||
} | ||
} | ||
} |
@@ -57,2 +57,9 @@ /** | ||
function unstable_next() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_wrapCallback() { | ||
@@ -72,2 +79,23 @@ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply( | ||
function unstable_getFirstCallbackNode() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_pauseExecution() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_pauseExecution.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_continueExecution() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_continueExecution.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
return Object.freeze({ | ||
@@ -79,5 +107,9 @@ unstable_now: unstable_now, | ||
unstable_runWithPriority: unstable_runWithPriority, | ||
unstable_next: unstable_next, | ||
unstable_wrapCallback: unstable_wrapCallback, | ||
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel, | ||
unstable_continueExecution: unstable_continueExecution, | ||
unstable_pauseExecution: unstable_pauseExecution, | ||
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | ||
}); | ||
}); |
@@ -57,2 +57,9 @@ /** | ||
function unstable_next() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_wrapCallback() { | ||
@@ -72,2 +79,17 @@ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply( | ||
function unstable_getFirstCallbackNode() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_pauseExecution() { | ||
return undefined; | ||
} | ||
function unstable_continueExecution() { | ||
return undefined; | ||
} | ||
return Object.freeze({ | ||
@@ -79,5 +101,9 @@ unstable_now: unstable_now, | ||
unstable_runWithPriority: unstable_runWithPriority, | ||
unstable_next: unstable_next, | ||
unstable_wrapCallback: unstable_wrapCallback, | ||
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel, | ||
unstable_continueExecution: unstable_continueExecution, | ||
unstable_pauseExecution: unstable_pauseExecution, | ||
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | ||
}); | ||
}); |
@@ -57,2 +57,9 @@ /** | ||
function unstable_next() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_wrapCallback() { | ||
@@ -72,2 +79,17 @@ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply( | ||
function unstable_getFirstCallbackNode() { | ||
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply( | ||
this, | ||
arguments | ||
); | ||
} | ||
function unstable_pauseExecution() { | ||
return undefined; | ||
} | ||
function unstable_continueExecution() { | ||
return undefined; | ||
} | ||
return Object.freeze({ | ||
@@ -79,5 +101,9 @@ unstable_now: unstable_now, | ||
unstable_runWithPriority: unstable_runWithPriority, | ||
unstable_next: unstable_next, | ||
unstable_wrapCallback: unstable_wrapCallback, | ||
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel, | ||
unstable_continueExecution: unstable_continueExecution, | ||
unstable_pauseExecution: unstable_pauseExecution, | ||
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
63423
18
1543
3
6