@rkmodules/rules 0.0.100 → 0.0.101

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
@@ -2240,14 +2240,14 @@ var Engine = /** @class */ (function () {
2240
2240
  var _this = this;
2241
2241
  if (inputs === void 0) { inputs = {}; }
2242
2242
  return __generator(this, function (_a) {
2243
- return [2 /*return*/, new Promise(function (resolve) {
2243
+ return [2 /*return*/, new Promise(function (resolve, reject) {
2244
2244
  var unsub = _this.subscribe("result", function (event) {
2245
2245
  if (event.name === node.name) {
2246
2246
  resolve(event);
2247
2247
  unsub();
2248
2248
  }
2249
2249
  });
2250
- _this.run(node, inputs);
2250
+ _this.run(node, inputs).catch(reject);
2251
2251
  })];
2252
2252
  });
2253
2253
  });