chimpanzee
Advanced tools
Comparing version 0.0.45 to 0.0.46
@@ -15,3 +15,3 @@ "use strict"; | ||
return build ? function () { | ||
const output = build(result)(context); | ||
const output = build(obj, key, parents, parentKeys)(context)(result); | ||
return output instanceof _results.Result ? output : new _results.Match(output, { obj, key, parents, parentKeys }); | ||
@@ -18,0 +18,0 @@ }() : result; |
{ | ||
"name": "chimpanzee", | ||
"version": "0.0.45", | ||
"version": "0.0.46", | ||
"author": "Jeswin<jeswinpk@agilehead.com>", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -479,3 +479,3 @@ chimpanzee | ||
{ | ||
build: result => context => | ||
build: obj => context => result => | ||
result instanceof Match ? new Match({ hello: `${result.value.hello}!!!` }) : result | ||
@@ -482,0 +482,0 @@ } |
Sorry, the diff of this file is not supported yet
198424