fig-tree-evaluator 2.4.0 → 2.4.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/README.md +1 -0
- package/build/evaluate.js +1 -1
- package/build/operators/index.d.ts +2 -2
- package/build/operators/index.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1502,6 +1502,7 @@ Please open an issue: https://github.com/CarlosNZ/fig-tree-evaluator/issues
|
|
|
1502
1502
|
|
|
1503
1503
|
*Trivial upgrades (e.g. documentation only) not included*
|
|
1504
1504
|
|
|
1505
|
+
- **v2.4.1**: Small bug fix for Fragments edge case
|
|
1505
1506
|
- **v2.4.0**: Implement [Fragments](#fragments) (#74)
|
|
1506
1507
|
- **v2.3.2**: Bug fix: alias nodes not working with `evaluateFullObject` (#72)
|
|
1507
1508
|
- **v2.3.0**: Implement [caching/memoization](#caching-memoization) (#68)
|
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 (
|
|
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])];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './logicalOr';
|
|
2
|
-
export
|
|
2
|
+
export { AND, type BasicExtendedNode } from './logicalAnd';
|
|
3
3
|
export * from './equal';
|
|
4
4
|
export * from './notEqual';
|
|
5
5
|
export * from './plus';
|
|
@@ -16,7 +16,7 @@ export * from './count';
|
|
|
16
16
|
export * from './split';
|
|
17
17
|
export * from './pgSQL';
|
|
18
18
|
export * from './graphQL';
|
|
19
|
-
export
|
|
19
|
+
export { GET, type APINode } from './getRequest';
|
|
20
20
|
export * from './postRequest';
|
|
21
21
|
export * from './buildObject';
|
|
22
22
|
export * from './match';
|
package/build/operators/index.js
CHANGED
|
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.GET = exports.AND = void 0;
|
|
17
18
|
__exportStar(require("./logicalOr"), exports);
|
|
18
|
-
|
|
19
|
+
var logicalAnd_1 = require("./logicalAnd");
|
|
20
|
+
Object.defineProperty(exports, "AND", { enumerable: true, get: function () { return logicalAnd_1.AND; } });
|
|
19
21
|
__exportStar(require("./equal"), exports);
|
|
20
22
|
__exportStar(require("./notEqual"), exports);
|
|
21
23
|
__exportStar(require("./plus"), exports);
|
|
@@ -32,7 +34,8 @@ __exportStar(require("./count"), exports);
|
|
|
32
34
|
__exportStar(require("./split"), exports);
|
|
33
35
|
__exportStar(require("./pgSQL"), exports);
|
|
34
36
|
__exportStar(require("./graphQL"), exports);
|
|
35
|
-
|
|
37
|
+
var getRequest_1 = require("./getRequest");
|
|
38
|
+
Object.defineProperty(exports, "GET", { enumerable: true, get: function () { return getRequest_1.GET; } });
|
|
36
39
|
__exportStar(require("./postRequest"), exports);
|
|
37
40
|
__exportStar(require("./buildObject"), exports);
|
|
38
41
|
__exportStar(require("./match"), exports);
|