Socket
Socket
Sign inDemoInstall

react-is

Package Overview
Dependencies
Maintainers
8
Versions
1837
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-is - npm Package Compare versions

Comparing version 0.0.0-experimental-ede917064 to 0.0.0-experimental-ee4326357

33

cjs/react-is.development.js

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

/** @license React v0.0.0-experimental-ede917064
/** @license React vundefined
* react-is.development.js

@@ -33,6 +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_RESPONDER_TYPE = 0xead6;
var REACT_SCOPE_TYPE = 0xead7;

@@ -43,2 +39,3 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0;

var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
var REACT_CACHE_TYPE = 0xeae4;

@@ -59,6 +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_RESPONDER_TYPE = symbolFor('react.responder');
REACT_SCOPE_TYPE = symbolFor('react.scope');

@@ -69,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');
}

@@ -76,2 +70,8 @@

var REACT_MODULE_REFERENCE = 0;
if (typeof Symbol === 'function') {
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
}
function isValidElementType(type) {

@@ -83,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;

@@ -89,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_RESPONDER_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;

@@ -111,2 +115,3 @@ }

case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
return type;

@@ -149,2 +154,3 @@

var Suspense = REACT_SUSPENSE_TYPE;
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
var hasWarnedAboutDeprecatedIsAsyncMode = false;

@@ -208,2 +214,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated

}
function unstable_isSuspenseList(object) {
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
}

@@ -236,3 +245,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-ede917064
/** @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,t=60122,u=60117,v=60118,w=60129,x=60131;
if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;b=y("react.element");c=y("react.portal");d=y("react.fragment");e=y("react.strict_mode");f=y("react.profiler");g=y("react.provider");h=y("react.context");k=y("react.forward_ref");l=y("react.suspense");m=y("react.suspense_list");n=y("react.memo");p=y("react.lazy");q=y("react.block");t=y("react.server.block");u=y("react.fundamental");v=y("react.responder");w=y("react.debug_trace_mode");x=y("react.legacy_hidden")}
function z(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case l:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return r}}case c:return r}}}var A=g,B=b,C=k,D=d,E=p,F=n,G=c,H=f,I=e,J=l;exports.ContextConsumer=h;exports.ContextProvider=A;exports.Element=B;exports.ForwardRef=C;exports.Fragment=D;exports.Lazy=E;exports.Memo=F;exports.Portal=G;exports.Profiler=H;exports.StrictMode=I;
exports.Suspense=J;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return z(a)===h};exports.isContextProvider=function(a){return z(a)===g};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return z(a)===k};exports.isFragment=function(a){return z(a)===d};exports.isLazy=function(a){return z(a)===p};exports.isMemo=function(a){return z(a)===n};
exports.isPortal=function(a){return z(a)===c};exports.isProfiler=function(a){return z(a)===f};exports.isStrictMode=function(a){return z(a)===e};exports.isSuspense=function(a){return z(a)===l};
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===w||a===e||a===l||a===m||a===x||"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===v||a.$$typeof===q||a[0]===t)?!0:!1};exports.typeOf=z;
'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-ede917064",
"version": "0.0.0-experimental-ee4326357",
"description": "Brand checking of React Elements.",

@@ -27,2 +27,2 @@ "main": "index.js",

]
}
}

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

/** @license React v0.0.0-experimental-ede917064
/** @license React vundefined
* react-is.development.js

@@ -9,5 +9,2 @@ *

*/
'use strict';
(function (global, factory) {

@@ -36,6 +33,2 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

var REACT_LAZY_TYPE = 0xead4;
var REACT_BLOCK_TYPE = 0xead9;
var REACT_SERVER_BLOCK_TYPE = 0xeada;
var REACT_FUNDAMENTAL_TYPE = 0xead5;
var REACT_RESPONDER_TYPE = 0xead6;
var REACT_SCOPE_TYPE = 0xead7;

@@ -46,2 +39,3 @@ var REACT_OPAQUE_ID_TYPE = 0xeae0;

var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
var REACT_CACHE_TYPE = 0xeae4;

@@ -62,6 +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_RESPONDER_TYPE = symbolFor('react.responder');
REACT_SCOPE_TYPE = symbolFor('react.scope');

@@ -72,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');
}

@@ -79,2 +70,8 @@

var REACT_MODULE_REFERENCE = 0;
if (typeof Symbol === 'function') {
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
}
function isValidElementType(type) {

@@ -86,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;

@@ -92,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_RESPONDER_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;

@@ -114,2 +115,3 @@ }

case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
return type;

@@ -152,2 +154,3 @@

var Suspense = REACT_SUSPENSE_TYPE;
var unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
var hasWarnedAboutDeprecatedIsAsyncMode = false;

@@ -211,2 +214,5 @@ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated

}
function unstable_isSuspenseList(object) {
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
}

@@ -239,3 +245,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-ede917064
/** @license React vundefined
* react-is.production.min.js

@@ -9,6 +9,7 @@ *

*/
'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: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=60118,y=60129,z=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.responder");
y=c("react.debug_trace_mode");z=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===y||a===g||a===h||a===t||a===z||"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===x||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}});
})();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc