Comparing version 0.2.0 to 0.3.0
@@ -89,7 +89,8 @@ /* | ||
var field = subpred[key][0]; | ||
if (!xlate.hasOwnProperty(field)) | ||
var value = mod_jsprim.pluck(xlate, field); | ||
if (value === undefined) | ||
throw (new VError('subpredicate "%j": ' + | ||
'no translation for field "%s"', | ||
subpred, field)); | ||
subpred[key][0] = xlate[field]; | ||
subpred[key][0] = value; | ||
}, newpred); | ||
@@ -96,0 +97,0 @@ return (new Predicate(newpred, this.p_types)); |
{ | ||
"name": "krill", | ||
"description": "simple boolean filter language", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -212,2 +212,20 @@ /* | ||
result: false | ||
}, { | ||
pred: { eq: [ 'nested.hostname', 'johnny tightlips' ] }, | ||
values: { | ||
nested: { | ||
hostname: 'johnny tightlips' | ||
}, | ||
pid: 15 | ||
}, | ||
result: true | ||
}, { | ||
pred: { eq: [ 'nested.hostname', 'sid the squealer' ] }, | ||
values: { /* nested properties */ | ||
nested: { | ||
hostname: 'johnny tightlips' | ||
}, | ||
pid: 15 | ||
}, | ||
result: false | ||
} ]; | ||
@@ -214,0 +232,0 @@ |
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
53270
1050