chimpanzee
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -27,3 +27,3 @@ "use strict"; | ||
const newSchema = _lazily.Seq.of(Object.keys(schema)).reduce(function (acc, key) { | ||
return schema[key] instanceof _schema2.default ? params.name === schema[key].params.options || (params.name === "default" || typeof params.name === "undefined") && (schema[key].params.options === "default" || typeof schema[key].params.options === "undefined") ? _extends({}, acc, { [key]: schema[key] }) : acc : typeof schema[key] === "object" ? _extends({}, acc, { [key]: getSchema(schema[key], params.name) }) : acc; | ||
return schema[key] instanceof _schema2.default ? params.name === schema[key].params.selector || (params.name === "default" || typeof params.name === "undefined") && (schema[key].params.selector === "default" || typeof schema[key].params.selector === "undefined") ? _extends({}, acc, { [key]: schema[key] }) : acc : typeof schema[key] === "object" ? _extends({}, acc, { [key]: getSchema(schema[key], params.name) }) : acc; | ||
}, {}); | ||
@@ -39,3 +39,3 @@ return (0, _traverse.traverse)(newSchema, params); | ||
return params.name === "default" || typeof params.name === "undefined"; | ||
}) ? normalizedParams : normalizedParams.concat({}); | ||
}) ? normalizedParams : [{}].concat(normalizedParams); | ||
@@ -42,0 +42,0 @@ const schemas = paramsList.map(function (params) { |
{ | ||
"name": "chimpanzee", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"author": "Jeswin<jeswinpk@agilehead.com>", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
136107