chimpanzee
Advanced tools
Comparing version 0.0.51 to 0.0.52
@@ -33,6 +33,9 @@ "use strict"; | ||
return x !== undefined; | ||
}) : schema instanceof _schemas.Schema ? schemaSelector === paramSelector ? schema : undefined : typeof schema === "object" ? _lazily.Seq.of(Object.keys(schema)).reduce(function (acc, key) { | ||
const result = getSchema(schema[key], paramSelector); | ||
return result !== undefined && Object.keys(result).length > 0 ? _extends({}, acc, { [key]: result }) : acc; | ||
}, {}) : paramSelector === "default" ? schema : undefined; | ||
}) : schema instanceof _schemas.Schema ? schemaSelector === paramSelector ? schema : undefined : typeof schema === "object" ? function () { | ||
const innerSchema = _lazily.Seq.of(Object.keys(schema)).reduce(function (acc, key) { | ||
const result = getSchema(schema[key], paramSelector); | ||
return result !== undefined && Object.keys(result).length > 0 ? _extends({}, acc, { [key]: result }) : acc; | ||
}, {}); | ||
return Object.keys(innerSchema).length > 0 ? innerSchema : undefined; | ||
}() : paramSelector === "default" ? schema : undefined; | ||
} | ||
@@ -56,2 +59,4 @@ | ||
debugger; | ||
function fn(obj, key, parents, parentKeys) { | ||
@@ -58,0 +63,0 @@ return function (context) { |
{ | ||
"name": "chimpanzee", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"author": "Isotropy Team<isotropy@agilehead.com>", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
205477
78
1204