react-is
Advanced tools
Comparing version 0.0.0-experimental-a703c3f7e to 0.0.0-experimental-a77dd13ed
@@ -33,3 +33,2 @@ /** @license React vundefined | ||
var REACT_LAZY_TYPE = 0xead4; | ||
var REACT_FUNDAMENTAL_TYPE = 0xead5; | ||
var REACT_SCOPE_TYPE = 0xead7; | ||
@@ -56,3 +55,2 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0; | ||
REACT_LAZY_TYPE = symbolFor('react.lazy'); | ||
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); | ||
REACT_SCOPE_TYPE = symbolFor('react.scope'); | ||
@@ -87,3 +85,3 @@ REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); | ||
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 || // This needs to include all possible module reference object | ||
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 | ||
@@ -151,2 +149,3 @@ // we don't know which Flight build this will end up being used | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -210,2 +209,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function unstable_isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -238,3 +240,5 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.typeOf = typeOf; | ||
exports.unstable_SuspenseList = unstable_SuspenseList; | ||
exports.unstable_isSuspenseList = unstable_isSuspenseList; | ||
})(); | ||
} |
@@ -9,7 +9,7 @@ /** @license React vundefined | ||
*/ | ||
'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=60117,r=60129,u=60131,v=60132; | ||
if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;b=w("react.element");c=w("react.portal");d=w("react.fragment");e=w("react.strict_mode");f=w("react.profiler");g=w("react.provider");h=w("react.context");k=w("react.forward_ref");l=w("react.suspense");m=w("react.suspense_list");n=w("react.memo");p=w("react.lazy");q=w("react.fundamental");r=w("react.debug_trace_mode");u=w("react.legacy_hidden");v=w("react.cache")}var x=0;"function"===typeof Symbol&&(x=Symbol.for("react.module.reference")); | ||
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===r||a===e||a===l||a===m||a===u||a===v||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===q||a.$$typeof===x||void 0!==a.getModuleId)?!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-a703c3f7e", | ||
"version": "0.0.0-experimental-a77dd13ed", | ||
"description": "Brand checking of React Elements.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,3 +32,2 @@ /** @license React vundefined | ||
var REACT_LAZY_TYPE = 0xead4; | ||
var REACT_FUNDAMENTAL_TYPE = 0xead5; | ||
var REACT_SCOPE_TYPE = 0xead7; | ||
@@ -55,3 +54,2 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0; | ||
REACT_LAZY_TYPE = symbolFor('react.lazy'); | ||
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); | ||
REACT_SCOPE_TYPE = symbolFor('react.scope'); | ||
@@ -86,3 +84,3 @@ REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); | ||
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 || // This needs to include all possible module reference object | ||
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 | ||
@@ -150,2 +148,3 @@ // we don't know which Flight build this will end up being used | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -209,2 +208,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function unstable_isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -237,3 +239,5 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.typeOf = typeOf; | ||
exports.unstable_SuspenseList = unstable_SuspenseList; | ||
exports.unstable_isSuspenseList = unstable_isSuspenseList; | ||
}))); |
@@ -9,7 +9,7 @@ /** @license React vundefined | ||
*/ | ||
(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=60117,v=60129,w=60131,x=60132;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.fundamental");v=c("react.debug_trace_mode");w=c("react.legacy_hidden");x=c("react.cache")}var y= | ||
0;"function"===typeof Symbol&&(y=Symbol.for("react.module.reference"));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===v||a===g||a===h||a===t||a===w||a===x||"object"===typeof a&&null!==a&&(a.$$typeof===m||a.$$typeof===n||a.$$typeof=== | ||
p||a.$$typeof===k||a.$$typeof===l||a.$$typeof===u||a.$$typeof===y||void 0!==a.getModuleId)?!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