react-cosmos-shared
Advanced tools
Comparing version 4.7.0-3 to 4.7.0-4
@@ -23,2 +23,10 @@ 'use strict'; | ||
var _keys = require('babel-runtime/core-js/object/keys'); | ||
var _keys2 = _interopRequireDefault(_keys); | ||
var _set = require('babel-runtime/core-js/set'); | ||
var _set2 = _interopRequireDefault(_set); | ||
exports.getNormalizedFixtureModules = getNormalizedFixtureModules; | ||
@@ -39,6 +47,6 @@ exports.getOldSchoolFixturesFromNewStyleComponents = getOldSchoolFixturesFromNewStyleComponents; | ||
var alteredFixtures = new Set(); | ||
var invalidFixtures = new Set(); | ||
var alteredFixtures = new _set2.default(); | ||
var invalidFixtures = new _set2.default(); | ||
var modules = Object.keys(fixtureModules).reduce(function (acc, next) { | ||
var modules = (0, _keys2.default)(fixtureModules).reduce(function (acc, next) { | ||
var fixtureModule = (0, _importModule.importModule)(fixtureModules[next]); | ||
@@ -45,0 +53,0 @@ |
@@ -10,4 +10,2 @@ 'use strict'; | ||
var _path2 = _interopRequireDefault(_path); | ||
var _slash = require('slash'); | ||
@@ -19,4 +17,2 @@ | ||
var _resolveFrom2 = _interopRequireDefault(_resolveFrom); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -28,6 +24,6 @@ | ||
// An absolute path is already resolved | ||
_path2.default.isAbsolute(userPath) ? userPath : _resolveFrom2.default.silent(rootPath, userPath) || | ||
(0, _path.isAbsolute)(userPath) ? userPath : (0, _resolveFrom.silent)(rootPath, userPath) || | ||
// Final attempt to resolve path, for when relative paths that don't | ||
// start with ./ and for output file paths | ||
_path2.default.join(rootPath, userPath)); | ||
(0, _path.join)(rootPath, userPath)); | ||
} |
@@ -6,2 +6,7 @@ 'use strict'; | ||
}); | ||
var _keys = require('babel-runtime/core-js/object/keys'); | ||
var _keys2 = _interopRequireDefault(_keys); | ||
exports.splitUnserializableParts = splitUnserializableParts; | ||
@@ -19,7 +24,7 @@ | ||
Object.keys(obj).forEach(function (key) { | ||
(0, _keys2.default)(obj).forEach(function (key) { | ||
if (isSerializable(obj[key])) { | ||
serializable[key] = obj[key]; | ||
} else if (key === 'props' && (0, _lodash2.default)(obj[key])) { | ||
Object.keys(obj.props).forEach(function (propKey) { | ||
(0, _keys2.default)(obj.props).forEach(function (propKey) { | ||
var propVal = obj.props[propKey]; | ||
@@ -52,3 +57,3 @@ var propHome = isSerializable(propVal) ? serializable : unserializable; | ||
Object.keys(obj).forEach(function (key) { | ||
(0, _keys2.default)(obj).forEach(function (key) { | ||
if (!isSerializable(obj[key])) { | ||
@@ -55,0 +60,0 @@ serializable = false; |
{ | ||
"name": "react-cosmos-shared", | ||
"version": "4.7.0-3", | ||
"version": "4.7.0-4", | ||
"description": "Libs shared between React Cosmos packages", | ||
@@ -14,3 +14,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/master/packages/react-cosmos-shared", | ||
}, | ||
"gitHead": "5066f9d03b886d6db2521629d11a6dedba0f25fe" | ||
"gitHead": "66cc3f616083082f4bc569a2edd59b580193cb82" | ||
} |
@@ -5,2 +5,3 @@ // @flow | ||
exports.resolveUserPath = require('./dist/server/resolve-user-path').resolveUserPath; | ||
exports.slash = require('./dist/server/slash-path').slash; | ||
@@ -7,0 +8,0 @@ exports.defaultFileMatch = [ |
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
458723
14
232