@rkmodules/rules 0.0.149 → 0.0.150
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/index.esm.js
CHANGED
|
@@ -701,9 +701,6 @@ function interpolate(inputs, scope) {
|
|
|
701
701
|
}));
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
/**
|
|
705
|
-
* TODO: need rank polymorhism on the tree item sizes
|
|
706
|
-
*/
|
|
707
704
|
var getValue = {
|
|
708
705
|
name: "getValue",
|
|
709
706
|
label: "Get Value",
|
|
@@ -715,17 +712,14 @@ var getValue = {
|
|
|
715
712
|
outputs: {
|
|
716
713
|
tree: "any",
|
|
717
714
|
},
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
var
|
|
721
|
-
return __generator(this, function (
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
return val;
|
|
727
|
-
});
|
|
728
|
-
return [2 /*return*/, { tree: tree }];
|
|
715
|
+
impl: function (_a, params_1) { return __awaiter(void 0, [_a, params_1], void 0, function (_b, params) {
|
|
716
|
+
var result;
|
|
717
|
+
var _c = _b.tree, tree = _c === void 0 ? {} : _c, _d = _b.path, path = _d === void 0 ? {} : _d;
|
|
718
|
+
return __generator(this, function (_e) {
|
|
719
|
+
result = binaryOnTree(tree, path, function (value, path) {
|
|
720
|
+
return getValue$1(value, path);
|
|
721
|
+
}, true);
|
|
722
|
+
return [2 /*return*/, { tree: result }];
|
|
729
723
|
});
|
|
730
724
|
}); },
|
|
731
725
|
};
|
|
@@ -1964,7 +1958,7 @@ var mergeTree = {
|
|
|
1964
1958
|
name: "mergeTree",
|
|
1965
1959
|
label: "Merge Tree",
|
|
1966
1960
|
description: "Merge groups with the same index into a single tree.",
|
|
1967
|
-
nodeType: "
|
|
1961
|
+
nodeType: "DynamicInput",
|
|
1968
1962
|
inputs: {},
|
|
1969
1963
|
outputs: {
|
|
1970
1964
|
result: "any",
|