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.0.9 to 5.0.11

6

dist/react/getSortedDecoratorsForFixturePath.js

@@ -28,3 +28,3 @@ "use strict";

return Object.keys(decoratorsByPath).filter(function (dPath) {
return fixturePath.indexOf("".concat(getParentPath(dPath), "/")) === 0;
return isParentDir(getParentPath(dPath), fixturePath);
}).reduce(function (acc, dPath) {

@@ -35,2 +35,6 @@ return _objectSpread({}, acc, _defineProperty({}, dPath, decoratorsByPath[dPath]));

function isParentDir(parentPath, filePath) {
return parentPath === '' || filePath.indexOf("".concat(parentPath, "/")) === 0;
}
function getParentPath(nestedPath) {

@@ -37,0 +41,0 @@ // Remove everything right of the right-most forward slash, or return an

4

package.json
{
"name": "react-cosmos-shared2",
"version": "5.0.9",
"version": "5.0.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": "155d52264b1c0b9509031896edec68483f991230"
"gitHead": "c99c36488d8b5f7a66a1f052a581e0161ce99574"
}
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