react-is
Advanced tools
Comparing version 0.0.0-experimental-4190a3458 to 0.0.0-experimental-459c34fde
@@ -146,2 +146,3 @@ /** @license React vundefined | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -205,2 +206,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -218,2 +222,3 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.Suspense = Suspense; | ||
exports.SuspenseList = SuspenseList; | ||
exports.isAsyncMode = isAsyncMode; | ||
@@ -232,2 +237,3 @@ exports.isConcurrentMode = isConcurrentMode; | ||
exports.isSuspense = isSuspense; | ||
exports.isSuspenseList = isSuspenseList; | ||
exports.isValidElementType = isValidElementType; | ||
@@ -234,0 +240,0 @@ exports.typeOf = typeOf; |
@@ -11,5 +11,5 @@ /** @license React vundefined | ||
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;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; | ||
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.SuspenseList=I;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.isSuspenseList=function(a){return x(a)===m}; | ||
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; |
{ | ||
"name": "react-is", | ||
"version": "0.0.0-experimental-4190a3458", | ||
"version": "0.0.0-experimental-459c34fde", | ||
"description": "Brand checking of React Elements.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -145,2 +145,3 @@ /** @license React vundefined | ||
var Suspense = REACT_SUSPENSE_TYPE; | ||
var SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
var hasWarnedAboutDeprecatedIsAsyncMode = false; | ||
@@ -204,2 +205,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated | ||
} | ||
function isSuspenseList(object) { | ||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; | ||
} | ||
@@ -217,2 +221,3 @@ exports.ContextConsumer = ContextConsumer; | ||
exports.Suspense = Suspense; | ||
exports.SuspenseList = SuspenseList; | ||
exports.isAsyncMode = isAsyncMode; | ||
@@ -231,2 +236,3 @@ exports.isConcurrentMode = isConcurrentMode; | ||
exports.isSuspense = isSuspense; | ||
exports.isSuspenseList = isSuspenseList; | ||
exports.isValidElementType = isValidElementType; | ||
@@ -233,0 +239,0 @@ exports.typeOf = typeOf; |
@@ -9,7 +9,7 @@ /** @license React vundefined | ||
*/ | ||
(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 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=60129,v=60131,w=60132;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;q=d("react.element");r=d("react.portal");e=d("react.fragment");g=d("react.strict_mode");f=d("react.profiler");p=d("react.provider");k=d("react.context");l=d("react.forward_ref");h=d("react.suspense");t=d("react.suspense_list");n=d("react.memo");m=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=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 c(a)===k};b.isContextProvider=function(a){return c(a)===p};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===q};b.isForwardRef=function(a){return c(a)===l};b.isFragment=function(a){return c(a)=== | ||
e};b.isLazy=function(a){return c(a)===m};b.isMemo=function(a){return c(a)===n};b.isPortal=function(a){return c(a)===r};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===t||a===v||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===m||a.$$typeof===n||a.$$typeof===p||a.$$typeof===k||a.$$typeof===l||a.$$typeof=== | ||
x||void 0!==a.getModuleId)?!0:!1};b.typeOf=c}); | ||
(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.SuspenseList=k;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.isSuspenseList=function(a){return c(a)===k};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}); | ||
})(); |
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
25535
465