@rkmodules/rules 0.0.113 → 0.0.114

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
@@ -2340,6 +2340,7 @@ var Engine = /** @class */ (function () {
2340
2340
  startTime_1 = performance.now();
2341
2341
  this.fireEvent("functionCall", {
2342
2342
  name: name_1,
2343
+ fn: fnCall.name,
2343
2344
  inputs: inputs_1,
2344
2345
  params: params_1,
2345
2346
  executionId: executionId,
@@ -2357,6 +2358,7 @@ var Engine = /** @class */ (function () {
2357
2358
  context.scope[name_1] = result_1;
2358
2359
  this.fireEvent("functionResult", {
2359
2360
  name: name_1,
2361
+ fn: fnCall.name,
2360
2362
  inputs: inputs_1,
2361
2363
  params: params_1,
2362
2364
  executionId: executionId,
@@ -2375,6 +2377,7 @@ var Engine = /** @class */ (function () {
2375
2377
  endTime = performance.now();
2376
2378
  response = {
2377
2379
  name: node.name,
2380
+ fn: "root",
2378
2381
  inputs: inputs,
2379
2382
  params: params,
2380
2383
  executionId: executionId,
@@ -2533,7 +2536,10 @@ var Engine = /** @class */ (function () {
2533
2536
  unsub();
2534
2537
  }
2535
2538
  });
2536
- _this.run(node, inputs).catch(reject);
2539
+ _this.run(node, inputs).catch(function (e) {
2540
+ unsub();
2541
+ reject(e);
2542
+ });
2537
2543
  })];
2538
2544
  });
2539
2545
  });