@legalplace/lplogic 2.1.0 → 2.1.1

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.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- declare const LpLogic: (logic: any, data?: any) => any;
1
+ import jsonLogic from "@legalplace/json-logic-js";
2
+ declare const LpLogic: typeof jsonLogic.apply;
2
3
  export default LpLogic;
package/dist/LpLogic.js CHANGED
@@ -190,8 +190,5 @@ var notLike = function (values, comparator, parents) {
190
190
  return reducedValues.length === filter.length;
191
191
  };
192
192
  json_logic_js_1.default.add_operation("not-like", notLike);
193
- var LpLogic = function (logic, data) {
194
- console.log("Condition", { logic: logic, data: data });
195
- return json_logic_js_1.default.apply(logic, data);
196
- };
193
+ var LpLogic = json_logic_js_1.default.apply;
197
194
  exports.default = LpLogic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/lplogic",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "LegalPlace LpLogic",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",