react-cosmos-shared2
Advanced tools
Comparing version 5.5.0-alpha.7 to 5.5.0-alpha.11
@@ -10,2 +10,4 @@ "use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function findRelevantElementPaths(node) { | ||
@@ -15,8 +17,8 @@ var elPaths = (0, _nodeTree.findElementPaths)(node); | ||
var _getExpectedElementAt = (0, _nodeTree.getExpectedElementAtPath)(node, elPath), | ||
type = _getExpectedElementAt.type; | ||
type = _getExpectedElementAt.type; // Ignore symbol types, like StrictMode | ||
// https://github.com/react-cosmos/react-cosmos/issues/1249 | ||
if (typeof type === 'string') { | ||
return isInterestingTag(type); | ||
} | ||
if (_typeof(type) === 'symbol') return false; | ||
if (typeof type === 'string') return isInterestingTag(type); | ||
var classType = type; | ||
@@ -23,0 +25,0 @@ return classType.cosmosCapture !== false && isInterestingClass(classType); |
{ | ||
"name": "react-cosmos-shared2", | ||
"version": "5.5.0-alpha.7", | ||
"version": "5.5.0-alpha.11", | ||
"description": "Code shared between Cosmos packages", | ||
@@ -14,3 +14,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/master/packages/react-cosmos-shared2", | ||
}, | ||
"gitHead": "e20722d7dfd4c157188a4c899fd24d0d8c35d1ad" | ||
"gitHead": "32c081607e731638dc6ed40ebc6482ae42a08f51" | ||
} |
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
759872
3367