@legalplace/lplogic 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LpLogic.js +3 -2
- package/package.json +1 -1
package/dist/LpLogic.js
CHANGED
|
@@ -104,8 +104,9 @@ json_logic_js_1.default.add_operation("not-selected", function (values, comparat
|
|
|
104
104
|
var filter = reducedValue.filter(function (_value) { return _value === true; });
|
|
105
105
|
return reducedValue.length === filter.length;
|
|
106
106
|
});
|
|
107
|
-
json_logic_js_1.default.add_operation("not-selected-ip", function (values) {
|
|
108
|
-
var
|
|
107
|
+
json_logic_js_1.default.add_operation("not-selected-ip", function (values, comparator, parents) {
|
|
108
|
+
var reducedValue = reduceValues(values, parents, function (value, parent) { return (parent && !value) || !parent; });
|
|
109
|
+
var filter = reducedValue.filter(function (_value) { return _value === true; });
|
|
109
110
|
return values.length === filter.length;
|
|
110
111
|
});
|
|
111
112
|
json_logic_js_1.default.add_operation("has-one", function (values, comparator, parents) {
|