react-cosmos-shared2
Advanced tools
Comparing version 5.0.9 to 5.0.11
@@ -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 |
{ | ||
"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" | ||
} |
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
128769
2811