@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.
Files changed (2) hide show
  1. package/dist/LpLogic.js +3 -2
  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 filter = values.filter(function (_value) { return _value !== true; });
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/lplogic",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "LegalPlace LpLogic",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",