react-is
Advanced tools
Comparing version 0.0.0-experimental-4ead6b530 to 0.0.0-experimental-553440bd1
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-4ead6b530 | ||
/** @license React vundefined | ||
* react-is.development.js | ||
@@ -33,5 +33,2 @@ * | ||
var REACT_LAZY_TYPE = 0xead4; | ||
var REACT_BLOCK_TYPE = 0xead9; | ||
var REACT_SERVER_BLOCK_TYPE = 0xeada; | ||
var REACT_FUNDAMENTAL_TYPE = 0xead5; | ||
var REACT_SCOPE_TYPE = 0xead7; | ||
@@ -42,2 +39,3 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0; | ||
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3; | ||
var REACT_CACHE_TYPE = 0xeae4; | ||
@@ -58,5 +56,2 @@ if (typeof Symbol === 'function' && Symbol.for) { | ||
REACT_LAZY_TYPE = symbolFor('react.lazy'); | ||
REACT_BLOCK_TYPE = symbolFor('react.block'); | ||
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block'); | ||
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); | ||
REACT_SCOPE_TYPE = symbolFor('react.scope'); | ||
@@ -67,2 +62,3 @@ REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); | ||
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); | ||
REACT_CACHE_TYPE = symbolFor('react.cache'); | ||
} | ||
@@ -74,2 +70,8 @@ | ||
var REACT_MODULE_REFERENCE = 0; | ||
if (typeof Symbol === 'function') { | ||
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); | ||
} | ||
function isValidElementType(type) { | ||
@@ -81,3 +83,3 @@ if (typeof type === 'string' || typeof type === 'function') { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI || type === REACT_CACHE_TYPE) { | ||
return true; | ||
@@ -87,3 +89,7 @@ } | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { | ||
return true; | ||
@@ -147,2 +153,3 @@ } | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -206,2 +213,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function unstable_isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -234,3 +244,5 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.typeOf = typeOf; | ||
exports.unstable_SuspenseList = unstable_SuspenseList; | ||
exports.unstable_isSuspenseList = unstable_isSuspenseList; | ||
})(); | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-4ead6b530 | ||
/** @license React vundefined | ||
* react-is.production.min.js | ||
@@ -9,7 +9,7 @@ * | ||
*/ | ||
'use strict';var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131; | ||
if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden")} | ||
function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h;exports.ContextProvider=z;exports.Element=A;exports.ForwardRef=B;exports.Fragment=C;exports.Lazy=D;exports.Memo=E;exports.Portal=F;exports.Profiler=G;exports.StrictMode=H; | ||
exports.Suspense=I;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return y(a)===h};exports.isContextProvider=function(a){return y(a)===g};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return y(a)===k};exports.isFragment=function(a){return y(a)===d};exports.isLazy=function(a){return y(a)===p};exports.isMemo=function(a){return y(a)===n}; | ||
exports.isPortal=function(a){return y(a)===c};exports.isProfiler=function(a){return y(a)===f};exports.isStrictMode=function(a){return y(a)===e};exports.isSuspense=function(a){return y(a)===l};exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1}; | ||
exports.typeOf=y; | ||
'use strict';var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60129,r=60131,u=60132; | ||
if("function"===typeof Symbol&&Symbol.for){var v=Symbol.for;b=v("react.element");c=v("react.portal");d=v("react.fragment");e=v("react.strict_mode");f=v("react.profiler");g=v("react.provider");h=v("react.context");k=v("react.forward_ref");l=v("react.suspense");m=v("react.suspense_list");n=v("react.memo");p=v("react.lazy");q=v("react.debug_trace_mode");r=v("react.legacy_hidden");u=v("react.cache")}var w=0;"function"===typeof Symbol&&(w=Symbol.for("react.module.reference")); | ||
function x(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var y=g,z=b,A=k,B=d,C=p,D=n,E=c,F=f,G=e,H=l,I=m;exports.ContextConsumer=h;exports.ContextProvider=y;exports.Element=z;exports.ForwardRef=A;exports.Fragment=B;exports.Lazy=C;exports.Memo=D;exports.Portal=E;exports.Profiler=F; | ||
exports.StrictMode=G;exports.Suspense=H;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return x(a)===h};exports.isContextProvider=function(a){return x(a)===g};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return x(a)===k};exports.isFragment=function(a){return x(a)===d};exports.isLazy=function(a){return x(a)===p}; | ||
exports.isMemo=function(a){return x(a)===n};exports.isPortal=function(a){return x(a)===c};exports.isProfiler=function(a){return x(a)===f};exports.isStrictMode=function(a){return x(a)===e};exports.isSuspense=function(a){return x(a)===l}; | ||
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===q||a===e||a===l||a===m||a===r||a===u||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===w||void 0!==a.getModuleId)?!0:!1};exports.typeOf=x;exports.unstable_SuspenseList=I;exports.unstable_isSuspenseList=function(a){return x(a)===m}; |
{ | ||
"name": "react-is", | ||
"version": "0.0.0-experimental-4ead6b530", | ||
"version": "0.0.0-experimental-553440bd1", | ||
"description": "Brand checking of React Elements.", | ||
@@ -27,2 +27,2 @@ "main": "index.js", | ||
] | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-4ead6b530 | ||
/** @license React vundefined | ||
* react-is.development.js | ||
@@ -32,5 +32,2 @@ * | ||
var REACT_LAZY_TYPE = 0xead4; | ||
var REACT_BLOCK_TYPE = 0xead9; | ||
var REACT_SERVER_BLOCK_TYPE = 0xeada; | ||
var REACT_FUNDAMENTAL_TYPE = 0xead5; | ||
var REACT_SCOPE_TYPE = 0xead7; | ||
@@ -41,2 +38,3 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0; | ||
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3; | ||
var REACT_CACHE_TYPE = 0xeae4; | ||
@@ -57,5 +55,2 @@ if (typeof Symbol === 'function' && Symbol.for) { | ||
REACT_LAZY_TYPE = symbolFor('react.lazy'); | ||
REACT_BLOCK_TYPE = symbolFor('react.block'); | ||
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block'); | ||
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); | ||
REACT_SCOPE_TYPE = symbolFor('react.scope'); | ||
@@ -66,2 +61,3 @@ REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); | ||
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); | ||
REACT_CACHE_TYPE = symbolFor('react.cache'); | ||
} | ||
@@ -73,2 +69,8 @@ | ||
var REACT_MODULE_REFERENCE = 0; | ||
if (typeof Symbol === 'function') { | ||
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); | ||
} | ||
function isValidElementType(type) { | ||
@@ -80,3 +82,3 @@ if (typeof type === 'string' || typeof type === 'function') { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) { | ||
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI || type === REACT_CACHE_TYPE) { | ||
return true; | ||
@@ -86,3 +88,7 @@ } | ||
if (typeof type === 'object' && type !== null) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) { | ||
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { | ||
return true; | ||
@@ -146,2 +152,3 @@ } | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -205,2 +212,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function unstable_isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -233,3 +243,5 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.typeOf = typeOf; | ||
exports.unstable_SuspenseList = unstable_SuspenseList; | ||
exports.unstable_isSuspenseList = unstable_isSuspenseList; | ||
}))); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-4ead6b530 | ||
/** @license React vundefined | ||
* react-is.production.min.js | ||
@@ -9,7 +9,7 @@ * | ||
*/ | ||
(function(){'use strict';(function(b,d){"object"===typeof exports&&"undefined"!==typeof module?d(exports):"function"===typeof define&&define.amd?define(["exports"],d):(b=b||self,d(b.ReactIs={}))})(this,function(b){function d(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case q:switch(a=a.type,a){case e:case f:case g:case h:case t:return a;default:switch(a=a&&a.$$typeof,a){case k:case l:case m:case n:case p:return a;default:return b}}case r:return b}}}var q=60103,r=60106,e=60107,g=60108,f=60114, | ||
p=60109,k=60110,l=60112,h=60113,t=60120,n=60115,m=60116,u=60121,v=60122,w=60117,x=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var c=Symbol.for;q=c("react.element");r=c("react.portal");e=c("react.fragment");g=c("react.strict_mode");f=c("react.profiler");p=c("react.provider");k=c("react.context");l=c("react.forward_ref");h=c("react.suspense");t=c("react.suspense_list");n=c("react.memo");m=c("react.lazy");u=c("react.block");v=c("react.server.block");w=c("react.fundamental");x=c("react.debug_trace_mode"); | ||
y=c("react.legacy_hidden")}b.ContextConsumer=k;b.ContextProvider=p;b.Element=q;b.ForwardRef=l;b.Fragment=e;b.Lazy=m;b.Memo=n;b.Portal=r;b.Profiler=f;b.StrictMode=g;b.Suspense=h;b.isAsyncMode=function(a){return!1};b.isConcurrentMode=function(a){return!1};b.isContextConsumer=function(a){return d(a)===k};b.isContextProvider=function(a){return d(a)===p};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===q};b.isForwardRef=function(a){return d(a)===l};b.isFragment=function(a){return d(a)=== | ||
e};b.isLazy=function(a){return d(a)===m};b.isMemo=function(a){return d(a)===n};b.isPortal=function(a){return d(a)===r};b.isProfiler=function(a){return d(a)===f};b.isStrictMode=function(a){return d(a)===g};b.isSuspense=function(a){return d(a)===h};b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===f||a===x||a===g||a===h||a===t||a===y||"object"===typeof a&&null!==a&&(a.$$typeof===m||a.$$typeof===n||a.$$typeof===p||a.$$typeof===k||a.$$typeof===l||a.$$typeof=== | ||
w||a.$$typeof===u||a[0]===v)?!0:!1};b.typeOf=d}); | ||
(function(){'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):(b=b||self,c(b.ReactIs={}))})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case r:switch(a=a.type,a){case e:case f:case g:case h:case k:return a;default:switch(a=a&&a.$$typeof,a){case l:case m:case n:case p:case q:return a;default:return b}}case t:return b}}}var r=60103,t=60106,e=60107,g=60108,f=60114, | ||
q=60109,l=60110,m=60112,h=60113,k=60120,p=60115,n=60116,u=60129,v=60131,w=60132;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;r=d("react.element");t=d("react.portal");e=d("react.fragment");g=d("react.strict_mode");f=d("react.profiler");q=d("react.provider");l=d("react.context");m=d("react.forward_ref");h=d("react.suspense");k=d("react.suspense_list");p=d("react.memo");n=d("react.lazy");u=d("react.debug_trace_mode");v=d("react.legacy_hidden");w=d("react.cache")}var x=0;"function"===typeof Symbol&& | ||
(x=Symbol.for("react.module.reference"));b.ContextConsumer=l;b.ContextProvider=q;b.Element=r;b.ForwardRef=m;b.Fragment=e;b.Lazy=n;b.Memo=p;b.Portal=t;b.Profiler=f;b.StrictMode=g;b.Suspense=h;b.isAsyncMode=function(a){return!1};b.isConcurrentMode=function(a){return!1};b.isContextConsumer=function(a){return c(a)===l};b.isContextProvider=function(a){return c(a)===q};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===r};b.isForwardRef=function(a){return c(a)===m};b.isFragment=function(a){return c(a)=== | ||
e};b.isLazy=function(a){return c(a)===n};b.isMemo=function(a){return c(a)===p};b.isPortal=function(a){return c(a)===t};b.isProfiler=function(a){return c(a)===f};b.isStrictMode=function(a){return c(a)===g};b.isSuspense=function(a){return c(a)===h};b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===f||a===u||a===g||a===h||a===k||a===v||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===n||a.$$typeof===p||a.$$typeof===q||a.$$typeof===l||a.$$typeof===m||a.$$typeof=== | ||
x||void 0!==a.getModuleId)?!0:!1};b.typeOf=c;b.unstable_SuspenseList=k;b.unstable_isSuspenseList=function(a){return c(a)===k}}); | ||
})(); |
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
25679
465
8