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