fig-tree-evaluator 2.4.0 → 2.4.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/build/evaluate.js CHANGED
@@ -78,7 +78,7 @@ var evaluatorFunction = function (input, config) { return __awaiter(void 0, void
78
78
  case 5:
79
79
  _b = (_s.sent()), fragment = _b[0], parameters = _b[1];
80
80
  fragmentReplacement = (_q = options === null || options === void 0 ? void 0 : options.fragments) === null || _q === void 0 ? void 0 : _q[fragment];
81
- if (!!fragmentReplacement) return [3, 7];
81
+ if (!(fragmentReplacement === undefined)) return [3, 7];
82
82
  _c = helpers_1.fallbackOrError;
83
83
  return [4, (0, exports.evaluatorFunction)(fallback, config)];
84
84
  case 6: return [2, _c.apply(void 0, [_s.sent(), "Fragment not defined: ".concat(fragment), returnErrorAsString])];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fig-tree-evaluator",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Module to evaluate JSON-structured expression trees",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",