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