@rkmodules/rules 0.0.107 → 0.0.109
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
|
@@ -2092,6 +2092,7 @@ var Engine = /** @class */ (function () {
|
|
|
2092
2092
|
});
|
|
2093
2093
|
context = {
|
|
2094
2094
|
scope: { inputs: inputs },
|
|
2095
|
+
inputs: { inputs: inputs },
|
|
2095
2096
|
timings: {},
|
|
2096
2097
|
activations: {},
|
|
2097
2098
|
};
|
|
@@ -2115,6 +2116,7 @@ var Engine = /** @class */ (function () {
|
|
|
2115
2116
|
inputs_1 = interpolate(fnCall.inputs || {}, context.scope);
|
|
2116
2117
|
params_1 = fnCall.params || {};
|
|
2117
2118
|
result_1 = {};
|
|
2119
|
+
context.inputs[name_1] = inputs_1;
|
|
2118
2120
|
cacheResult = this.checkCache(name_1, inputs_1);
|
|
2119
2121
|
if (!(cacheResult !== this.cacheMiss)) return [3 /*break*/, 2];
|
|
2120
2122
|
// use as result
|
|
@@ -2134,7 +2136,7 @@ var Engine = /** @class */ (function () {
|
|
|
2134
2136
|
context: context,
|
|
2135
2137
|
startTime: startTime_1,
|
|
2136
2138
|
});
|
|
2137
|
-
return [4 /*yield*/, fn.impl(inputs_1, params_1, this)];
|
|
2139
|
+
return [4 /*yield*/, fn.impl(inputs_1, params_1, this, name_1)];
|
|
2138
2140
|
case 3:
|
|
2139
2141
|
// call the implentation of sub functions
|
|
2140
2142
|
result_1 = _e.sent();
|
|
@@ -2300,7 +2302,7 @@ var Engine = /** @class */ (function () {
|
|
|
2300
2302
|
return [2 /*return*/, this.run(builtFn, inputs)];
|
|
2301
2303
|
}
|
|
2302
2304
|
mappedInputs = interpolate(inputs, {});
|
|
2303
|
-
return [4 /*yield*/, ((_a = node.impl) === null || _a === void 0 ? void 0 : _a.call(node, mappedInputs, {}, this))];
|
|
2305
|
+
return [4 /*yield*/, ((_a = node.impl) === null || _a === void 0 ? void 0 : _a.call(node, mappedInputs, {}, this, "_root"))];
|
|
2304
2306
|
case 1:
|
|
2305
2307
|
result = _b.sent();
|
|
2306
2308
|
// console.log("Engine run complete", result);
|