Socket
Socket
Sign inDemoInstall

schedule

Package Overview
Dependencies
1
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

61

cjs/schedule-tracking.development.js

@@ -1,2 +0,2 @@

/** @license React v16.4.3-alpha.0
/** @license React v16.5.0
* schedule-tracking.development.js

@@ -73,2 +73,5 @@ *

// Only used in www builds.
var DEFAULT_THREAD_ID = 0;

@@ -84,12 +87,12 @@

// When an interaction goes out of scope, the previous set (if any) is restored.
var interactionsRef = null;
exports.__interactionsRef = null;
// Listener(s) to notify when interactions begin and end.
var subscriberRef = null;
exports.__subscriberRef = null;
if (enableSchedulerTracking) {
interactionsRef = {
exports.__interactionsRef = {
current: new Set()
};
subscriberRef = {
exports.__subscriberRef = {
current: null

@@ -99,12 +102,2 @@ };

// These values are exported for libraries with advanced use cases (i.e. React).
// They should not typically be accessed directly.
function __getInteractionsRef() {
return interactionsRef;
}
function __getSubscriberRef() {
return subscriberRef;
}
function unstable_clear(callback) {

@@ -115,4 +108,4 @@ if (!enableSchedulerTracking) {

var prevInteractions = interactionsRef.current;
interactionsRef.current = new Set();
var prevInteractions = exports.__interactionsRef.current;
exports.__interactionsRef.current = new Set();

@@ -122,3 +115,3 @@ try {

} finally {
interactionsRef.current = prevInteractions;
exports.__interactionsRef.current = prevInteractions;
}

@@ -131,3 +124,3 @@ }

} else {
return interactionsRef.current;
return exports.__interactionsRef.current;
}

@@ -154,3 +147,3 @@ }

var prevInteractions = interactionsRef.current;
var prevInteractions = exports.__interactionsRef.current;

@@ -162,5 +155,5 @@ // Tracked interactions should stack/accumulate.

interactions.add(interaction);
interactionsRef.current = interactions;
exports.__interactionsRef.current = interactions;
var subscriber = subscriberRef.current;
var subscriber = exports.__subscriberRef.current;
var returnValue = void 0;

@@ -181,3 +174,3 @@

} finally {
interactionsRef.current = prevInteractions;
exports.__interactionsRef.current = prevInteractions;

@@ -211,5 +204,5 @@ try {

var wrappedInteractions = interactionsRef.current;
var wrappedInteractions = exports.__interactionsRef.current;
var subscriber = subscriberRef.current;
var subscriber = exports.__subscriberRef.current;
if (subscriber !== null) {

@@ -228,6 +221,6 @@ subscriber.onWorkScheduled(wrappedInteractions, threadID);

function wrapped() {
var prevInteractions = interactionsRef.current;
interactionsRef.current = wrappedInteractions;
var prevInteractions = exports.__interactionsRef.current;
exports.__interactionsRef.current = wrappedInteractions;
subscriber = subscriberRef.current;
subscriber = exports.__subscriberRef.current;

@@ -245,3 +238,3 @@ try {

} finally {
interactionsRef.current = prevInteractions;
exports.__interactionsRef.current = prevInteractions;

@@ -277,3 +270,3 @@ if (subscriber !== null) {

wrapped.cancel = function cancel() {
subscriber = subscriberRef.current;
subscriber = exports.__subscriberRef.current;

@@ -301,6 +294,4 @@ try {

var subscriberRef$1 = null;
var subscribers = null;
if (enableSchedulerTracking) {
subscriberRef$1 = __getSubscriberRef();
subscribers = new Set();

@@ -314,3 +305,3 @@ }

if (subscribers.size === 1) {
subscriberRef$1.current = {
exports.__subscriberRef.current = {
onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,

@@ -332,3 +323,3 @@ onInteractionTracked: onInteractionTracked,

if (subscribers.size === 0) {
subscriberRef$1.current = null;
exports.__subscriberRef.current = null;
}

@@ -458,4 +449,2 @@ }

exports.__getInteractionsRef = __getInteractionsRef;
exports.__getSubscriberRef = __getSubscriberRef;
exports.unstable_clear = unstable_clear;

@@ -462,0 +451,0 @@ exports.unstable_getCurrent = unstable_getCurrent;

@@ -1,2 +0,2 @@

/** @license React v16.4.3-alpha.0
/** @license React v16.5.0
* schedule-tracking.production.min.js

@@ -10,2 +10,2 @@ *

'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b=0;exports.__getInteractionsRef=function(){return null};exports.__getSubscriberRef=function(){return null};exports.unstable_clear=function(a){return a()};exports.unstable_getCurrent=function(){return null};exports.unstable_getThreadID=function(){return++b};exports.unstable_track=function(a,d,c){return c()};exports.unstable_wrap=function(a){return a};exports.unstable_subscribe=function(){};exports.unstable_unsubscribe=function(){};
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b=0;exports.__interactionsRef=null;exports.__subscriberRef=null;exports.unstable_clear=function(a){return a()};exports.unstable_getCurrent=function(){return null};exports.unstable_getThreadID=function(){return++b};exports.unstable_track=function(a,d,c){return c()};exports.unstable_wrap=function(a){return a};exports.unstable_subscribe=function(){};exports.unstable_unsubscribe=function(){};

@@ -1,2 +0,2 @@

/** @license React v16.4.3-alpha.0
/** @license React v16.5.0
* schedule-tracking.profiling.min.js

@@ -10,7 +10,9 @@ *

'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var f=0,h=0,l=null,n=null;l={current:new Set};n={current:null};var q=null,r=null;q=n;r=new Set;function t(e){var d=!1,a=null;r.forEach(function(c){try{c.onInteractionTracked(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}function u(e){var d=!1,a=null;r.forEach(function(c){try{c.onInteractionScheduledWorkCompleted(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}
function v(e,d){var a=!1,c=null;r.forEach(function(b){try{b.onWorkScheduled(e,d)}catch(g){a||(a=!0,c=g)}});if(a)throw c;}function w(e,d){var a=!1,c=null;r.forEach(function(b){try{b.onWorkStarted(e,d)}catch(g){a||(a=!0,c=g)}});if(a)throw c;}function x(e,d){var a=!1,c=null;r.forEach(function(b){try{b.onWorkStopped(e,d)}catch(g){a||(a=!0,c=g)}});if(a)throw c;}function y(e,d){var a=!1,c=null;r.forEach(function(b){try{b.onWorkCanceled(e,d)}catch(g){a||(a=!0,c=g)}});if(a)throw c;}
exports.__getInteractionsRef=function(){return l};exports.__getSubscriberRef=function(){return n};exports.unstable_clear=function(e){var d=l.current;l.current=new Set;try{return e()}finally{l.current=d}};exports.unstable_getCurrent=function(){return l.current};exports.unstable_getThreadID=function(){return++h};
exports.unstable_track=function(e,d,a){var c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,b={__count:1,id:f++,name:e,timestamp:d},g=l.current,m=new Set(g);m.add(b);l.current=m;var k=n.current,p=void 0;try{if(null!==k)k.onInteractionTracked(b)}finally{try{if(null!==k)k.onWorkStarted(m,c)}finally{try{p=a()}finally{l.current=g;try{if(null!==k)k.onWorkStopped(m,c)}finally{if(b.__count--,null!==k&&0===b.__count)k.onInteractionScheduledWorkCompleted(b)}}}}return p};
exports.unstable_wrap=function(e){function d(){var d=l.current;l.current=c;b=n.current;try{var k=void 0;try{if(null!==b)b.onWorkStarted(c,a)}finally{try{k=e.apply(void 0,arguments)}finally{if(l.current=d,null!==b)b.onWorkStopped(c,a)}}return k}finally{g||(g=!0,c.forEach(function(a){a.__count--;if(null!==b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)}))}}var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,c=l.current,b=n.current;if(null!==b)b.onWorkScheduled(c,a);c.forEach(function(a){a.__count++});
var g=!1;d.cancel=function(){b=n.current;try{if(null!==b)b.onWorkCanceled(c,a)}finally{c.forEach(function(a){a.__count--;if(b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)})}};return d};exports.unstable_subscribe=function(e){r.add(e);1===r.size&&(q.current={onInteractionScheduledWorkCompleted:u,onInteractionTracked:t,onWorkCanceled:y,onWorkScheduled:v,onWorkStarted:w,onWorkStopped:x})};exports.unstable_unsubscribe=function(e){r.delete(e);0===r.size&&(q.current=null)};
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var g=0,m=0;exports.__interactionsRef=null;exports.__subscriberRef=null;exports.__interactionsRef={current:new Set};exports.__subscriberRef={current:null};var n=null;n=new Set;function p(e){var d=!1,a=null;n.forEach(function(c){try{c.onInteractionTracked(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}
function q(e){var d=!1,a=null;n.forEach(function(c){try{c.onInteractionScheduledWorkCompleted(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}function r(e,d){var a=!1,c=null;n.forEach(function(b){try{b.onWorkScheduled(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}function t(e,d){var a=!1,c=null;n.forEach(function(b){try{b.onWorkStarted(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}function u(e,d){var a=!1,c=null;n.forEach(function(b){try{b.onWorkStopped(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}
function v(e,d){var a=!1,c=null;n.forEach(function(b){try{b.onWorkCanceled(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}exports.unstable_clear=function(e){var d=exports.__interactionsRef.current;exports.__interactionsRef.current=new Set;try{return e()}finally{exports.__interactionsRef.current=d}};exports.unstable_getCurrent=function(){return exports.__interactionsRef.current};exports.unstable_getThreadID=function(){return++m};
exports.unstable_track=function(e,d,a){var c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,b={__count:1,id:g++,name:e,timestamp:d},f=exports.__interactionsRef.current,k=new Set(f);k.add(b);exports.__interactionsRef.current=k;var h=exports.__subscriberRef.current,l=void 0;try{if(null!==h)h.onInteractionTracked(b)}finally{try{if(null!==h)h.onWorkStarted(k,c)}finally{try{l=a()}finally{exports.__interactionsRef.current=f;try{if(null!==h)h.onWorkStopped(k,c)}finally{if(b.__count--,null!==h&&
0===b.__count)h.onInteractionScheduledWorkCompleted(b)}}}}return l};
exports.unstable_wrap=function(e){function d(){var d=exports.__interactionsRef.current;exports.__interactionsRef.current=c;b=exports.__subscriberRef.current;try{var h=void 0;try{if(null!==b)b.onWorkStarted(c,a)}finally{try{h=e.apply(void 0,arguments)}finally{if(exports.__interactionsRef.current=d,null!==b)b.onWorkStopped(c,a)}}return h}finally{f||(f=!0,c.forEach(function(a){a.__count--;if(null!==b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)}))}}var a=1<arguments.length&&void 0!==arguments[1]?
arguments[1]:0,c=exports.__interactionsRef.current,b=exports.__subscriberRef.current;if(null!==b)b.onWorkScheduled(c,a);c.forEach(function(a){a.__count++});var f=!1;d.cancel=function(){b=exports.__subscriberRef.current;try{if(null!==b)b.onWorkCanceled(c,a)}finally{c.forEach(function(a){a.__count--;if(b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)})}};return d};
exports.unstable_subscribe=function(e){n.add(e);1===n.size&&(exports.__subscriberRef.current={onInteractionScheduledWorkCompleted:q,onInteractionTracked:p,onWorkCanceled:v,onWorkScheduled:r,onWorkStarted:t,onWorkStopped:u})};exports.unstable_unsubscribe=function(e){n.delete(e);0===n.size&&(exports.__subscriberRef.current=null)};

@@ -1,2 +0,2 @@

/** @license React v16.4.3-alpha.0
/** @license React v16.5.0
* schedule.development.js

@@ -3,0 +3,0 @@ *

@@ -1,2 +0,2 @@

/** @license React v16.4.3-alpha.0
/** @license React v16.5.0
* schedule.production.min.js

@@ -3,0 +3,0 @@ *

{
"name": "schedule",
"version": "0.2.0",
"version": "0.3.0",
"description": "Cooperative scheduler for the browser environment.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,16 +19,2 @@ /**

})(this, function(global) {
function __getInteractionsRef() {
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getInteractionsRef.apply(
this,
arguments
);
}
function __getSubscriberRef() {
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getSubscriberRef.apply(
this,
arguments
);
}
function unstable_clear() {

@@ -86,4 +72,2 @@ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_clear.apply(

return Object.freeze({
__getInteractionsRef: __getInteractionsRef,
__getSubscriberRef: __getSubscriberRef,
unstable_clear: unstable_clear,

@@ -90,0 +74,0 @@ unstable_getCurrent: unstable_getCurrent,

@@ -19,16 +19,2 @@ /**

})(this, function(global) {
function __getInteractionsRef() {
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getInteractionsRef.apply(
this,
arguments
);
}
function __getSubscriberRef() {
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getSubscriberRef.apply(
this,
arguments
);
}
function unstable_clear() {

@@ -86,4 +72,2 @@ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_clear.apply(

return Object.freeze({
__getInteractionsRef: __getInteractionsRef,
__getSubscriberRef: __getSubscriberRef,
unstable_clear: unstable_clear,

@@ -90,0 +74,0 @@ unstable_getCurrent: unstable_getCurrent,

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