Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cosmos-shared2

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-shared2 - npm Package Compare versions

Comparing version 5.5.0-alpha.7 to 5.5.0-alpha.11

10

dist/FixtureLoader/FixtureCapture/shared/findRelevantElementPaths.js

@@ -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);

4

package.json
{
"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"
}
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