react-is 16.3.2 → 16.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.4.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -19,23 +19,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
19
19
|
|
|
20
20
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
21
21
|
// nor polyfill, then a plain number is used for performance.
|
|
22
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
23
|
-
|
|
24
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
22
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
23
|
+
|
|
24
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
26
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
27
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
28
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
30
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
31
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
32
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
33
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
34
34
|
|
|
35
35
|
function isValidElementType(type) {
|
|
36
36
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
37
37
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
38
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
38
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function typeOf(object) {
|
|
@@ -49,6 +49,7 @@ function typeOf(object) {
|
|
|
49
49
|
switch (type) {
|
|
50
50
|
case REACT_ASYNC_MODE_TYPE:
|
|
51
51
|
case REACT_FRAGMENT_TYPE:
|
|
52
|
+
case REACT_PROFILER_TYPE:
|
|
52
53
|
case REACT_STRICT_MODE_TYPE:
|
|
53
54
|
return type;
|
|
54
55
|
default:
|
|
@@ -77,6 +78,7 @@ var ContextProvider = REACT_PROVIDER_TYPE;
|
|
|
77
78
|
var Element = REACT_ELEMENT_TYPE;
|
|
78
79
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
79
80
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
81
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
80
82
|
var Portal = REACT_PORTAL_TYPE;
|
|
81
83
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
82
84
|
|
|
@@ -98,6 +100,9 @@ function isForwardRef(object) {
|
|
|
98
100
|
function isFragment(object) {
|
|
99
101
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
100
102
|
}
|
|
103
|
+
function isProfiler(object) {
|
|
104
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
105
|
+
}
|
|
101
106
|
function isPortal(object) {
|
|
102
107
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
103
108
|
}
|
|
@@ -112,6 +117,7 @@ exports.ContextProvider = ContextProvider;
|
|
|
112
117
|
exports.Element = Element;
|
|
113
118
|
exports.ForwardRef = ForwardRef;
|
|
114
119
|
exports.Fragment = Fragment;
|
|
120
|
+
exports.Profiler = Profiler;
|
|
115
121
|
exports.Portal = Portal;
|
|
116
122
|
exports.StrictMode = StrictMode;
|
|
117
123
|
exports.isValidElementType = isValidElementType;
|
|
@@ -121,6 +127,7 @@ exports.isContextProvider = isContextProvider;
|
|
|
121
127
|
exports.isElement = isElement;
|
|
122
128
|
exports.isForwardRef = isForwardRef;
|
|
123
129
|
exports.isFragment = isFragment;
|
|
130
|
+
exports.isProfiler = isProfiler;
|
|
124
131
|
exports.isPortal = isPortal;
|
|
125
132
|
exports.isStrictMode = isStrictMode;
|
|
126
133
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.4.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b="function"===typeof Symbol&&Symbol
|
|
11
|
-
function
|
|
12
|
-
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===
|
|
13
|
-
exports.isFragment=function(a){return
|
|
10
|
+
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.forward_ref"):60112,n=b?Symbol.for("react.timeout"):60113;
|
|
11
|
+
function q(a){if("object"===typeof a&&null!==a){var p=a.$$typeof;switch(p){case c:switch(a=a.type,a){case l:case e:case g:case f:return a;default:switch(a=a&&a.$$typeof,a){case k:case m:case h:return a;default:return p}}case d:return p}}}exports.typeOf=q;exports.AsyncMode=l;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=m;exports.Fragment=e;exports.Profiler=g;exports.Portal=d;exports.StrictMode=f;
|
|
12
|
+
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===l||a===g||a===f||a===n||"object"===typeof a&&null!==a&&(a.$$typeof===h||a.$$typeof===k||a.$$typeof===m)};exports.isAsyncMode=function(a){return q(a)===l};exports.isContextConsumer=function(a){return q(a)===k};exports.isContextProvider=function(a){return q(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return q(a)===m};
|
|
13
|
+
exports.isFragment=function(a){return q(a)===e};exports.isProfiler=function(a){return q(a)===g};exports.isPortal=function(a){return q(a)===d};exports.isStrictMode=function(a){return q(a)===f};
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.4.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
|
|
18
18
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
19
19
|
// nor polyfill, then a plain number is used for performance.
|
|
20
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
21
|
-
|
|
22
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
20
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
21
|
+
|
|
22
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
23
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
24
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
26
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
27
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
28
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
29
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
30
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
31
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
32
32
|
|
|
33
33
|
function isValidElementType(type) {
|
|
34
34
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
35
35
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
36
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
36
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function typeOf(object) {
|
|
@@ -47,6 +47,7 @@ function typeOf(object) {
|
|
|
47
47
|
switch (type) {
|
|
48
48
|
case REACT_ASYNC_MODE_TYPE:
|
|
49
49
|
case REACT_FRAGMENT_TYPE:
|
|
50
|
+
case REACT_PROFILER_TYPE:
|
|
50
51
|
case REACT_STRICT_MODE_TYPE:
|
|
51
52
|
return type;
|
|
52
53
|
default:
|
|
@@ -75,6 +76,7 @@ var ContextProvider = REACT_PROVIDER_TYPE;
|
|
|
75
76
|
var Element = REACT_ELEMENT_TYPE;
|
|
76
77
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
77
78
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
79
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
78
80
|
var Portal = REACT_PORTAL_TYPE;
|
|
79
81
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
80
82
|
|
|
@@ -96,6 +98,9 @@ function isForwardRef(object) {
|
|
|
96
98
|
function isFragment(object) {
|
|
97
99
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
98
100
|
}
|
|
101
|
+
function isProfiler(object) {
|
|
102
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
103
|
+
}
|
|
99
104
|
function isPortal(object) {
|
|
100
105
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
101
106
|
}
|
|
@@ -110,6 +115,7 @@ exports.ContextProvider = ContextProvider;
|
|
|
110
115
|
exports.Element = Element;
|
|
111
116
|
exports.ForwardRef = ForwardRef;
|
|
112
117
|
exports.Fragment = Fragment;
|
|
118
|
+
exports.Profiler = Profiler;
|
|
113
119
|
exports.Portal = Portal;
|
|
114
120
|
exports.StrictMode = StrictMode;
|
|
115
121
|
exports.isValidElementType = isValidElementType;
|
|
@@ -119,6 +125,7 @@ exports.isContextProvider = isContextProvider;
|
|
|
119
125
|
exports.isElement = isElement;
|
|
120
126
|
exports.isForwardRef = isForwardRef;
|
|
121
127
|
exports.isFragment = isFragment;
|
|
128
|
+
exports.isProfiler = isProfiler;
|
|
122
129
|
exports.isPortal = isPortal;
|
|
123
130
|
exports.isStrictMode = isStrictMode;
|
|
124
131
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.4.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case
|
|
10
|
-
60103,
|
|
11
|
-
typeof a||a===f||a===e||a===g||"object"===typeof a&&null!==a&&(a.$$typeof===
|
|
12
|
-
"__esModule",{value:!0})});
|
|
9
|
+
'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case n: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:return a;default:return b}}case p:return b}}}var d="function"===typeof Symbol&&Symbol.for,n=d?Symbol.for("react.element"):
|
|
10
|
+
60103,p=d?Symbol.for("react.portal"):60106,f=d?Symbol.for("react.fragment"):60107,h=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,m=d?Symbol.for("react.provider"):60109,k=d?Symbol.for("react.context"):60110,e=d?Symbol.for("react.async_mode"):60111,l=d?Symbol.for("react.forward_ref"):60112,q=d?Symbol.for("react.timeout"):60113;b.typeOf=c;b.AsyncMode=e;b.ContextConsumer=k;b.ContextProvider=m;b.Element=n;b.ForwardRef=l;b.Fragment=f;b.Profiler=g;b.Portal=p;b.StrictMode=
|
|
11
|
+
h;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===m||a.$$typeof===k||a.$$typeof===l)};b.isAsyncMode=function(a){return c(a)===e};b.isContextConsumer=function(a){return c(a)===k};b.isContextProvider=function(a){return c(a)===m};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===n};b.isForwardRef=function(a){return c(a)===l};b.isFragment=function(a){return c(a)===
|
|
12
|
+
f};b.isProfiler=function(a){return c(a)===g};b.isPortal=function(a){return c(a)===p};b.isStrictMode=function(a){return c(a)===h};Object.defineProperty(b,"__esModule",{value:!0})});
|