@legalplace/lplogic 2.1.1 → 2.1.2
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 +4 -0
- package/package.json +1 -1
package/dist/LpLogic.js
CHANGED
|
@@ -97,6 +97,10 @@ json_logic_js_1.default.add_operation("not-selected", function (values, comparat
|
|
|
97
97
|
var filter = reducedValue.filter(function (_value) { return _value !== true; });
|
|
98
98
|
return reducedValue.length === filter.length;
|
|
99
99
|
});
|
|
100
|
+
json_logic_js_1.default.add_operation("not-selected-ip", function (values) {
|
|
101
|
+
var filter = values.filter(function (_value) { return _value !== true; });
|
|
102
|
+
return values.length === filter.length;
|
|
103
|
+
});
|
|
100
104
|
json_logic_js_1.default.add_operation("has-one", function (values, comparator, parents) {
|
|
101
105
|
var reducedValue = reduceValues(values, parents, function (value, parent) { return value && parent; });
|
|
102
106
|
if (!Array.isArray(reducedValue))
|