wao 0.9.2 → 0.10.2

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/cjs/ao.js CHANGED
@@ -584,21 +584,20 @@ var AO = /*#__PURE__*/function () {
584
584
  });
585
585
  case 17:
586
586
  pid = _context8.sent;
587
- _context8.next = 24;
587
+ _context8.next = 23;
588
588
  break;
589
589
  case 20:
590
590
  _context8.prev = 20;
591
591
  _context8.t0 = _context8["catch"](10);
592
- console.log(_context8.t0);
593
592
  err = _context8.t0;
594
- case 24:
593
+ case 23:
595
594
  p = pid ? this.p(pid) : null;
596
595
  return _context8.abrupt("return", {
597
596
  err: err,
598
597
  pid: pid,
599
598
  p: p
600
599
  });
601
- case 26:
600
+ case 25:
602
601
  case "end":
603
602
  return _context8.stop();
604
603
  }
@@ -683,54 +682,54 @@ var AO = /*#__PURE__*/function () {
683
682
  };
684
683
  }();
685
684
  checkOut = /*#__PURE__*/function () {
686
- var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(get, _txs, _txmap) {
687
- var out, _iterator3, _step3, v, _res2;
685
+ var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(get, _txs, _txmap, out) {
686
+ var _iterator3, _step3, v, _res2, _out;
688
687
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
689
688
  while (1) switch (_context10.prev = _context10.next) {
690
689
  case 0:
691
- out = null;
692
690
  _iterator3 = _createForOfIteratorHelper(_txs);
693
- _context10.prev = 2;
691
+ _context10.prev = 1;
694
692
  _iterator3.s();
695
- case 4:
693
+ case 3:
696
694
  if ((_step3 = _iterator3.n()).done) {
697
695
  _context10.next = 18;
698
696
  break;
699
697
  }
700
698
  v = _step3.value;
701
699
  if (!(0, _ramda.isNil)(_txmap[v.id].res)) {
702
- _context10.next = 11;
700
+ _context10.next = 10;
703
701
  break;
704
702
  }
705
- _context10.next = 9;
703
+ _context10.next = 8;
706
704
  return _this3.result({
707
705
  process: pid,
708
706
  message: v.id
709
707
  });
710
- case 9:
708
+ case 8:
711
709
  _res2 = _context10.sent;
712
710
  _txmap[v.id].res = _res2;
713
- case 11:
711
+ case 10:
714
712
  if (!(!(0, _ramda.isNil)(_txmap[v.id].res) && _txmap[v.id].out !== true)) {
715
713
  _context10.next = 16;
716
714
  break;
717
715
  }
718
716
  _txmap[v.id].out = true;
719
- out = (0, _utils.getTagVal)(get, _txmap[v.id].res, v.from);
720
- if (!out) {
717
+ _out = (0, _utils.getTagVal)(get, _txmap[v.id].res, v.from);
718
+ out = (0, _utils.mergeOut)(out, _out, get);
719
+ if (!(0, _utils.isOutComplete)(out, get)) {
721
720
  _context10.next = 16;
722
721
  break;
723
722
  }
724
723
  return _context10.abrupt("break", 18);
725
724
  case 16:
726
- _context10.next = 4;
725
+ _context10.next = 3;
727
726
  break;
728
727
  case 18:
729
728
  _context10.next = 23;
730
729
  break;
731
730
  case 20:
732
731
  _context10.prev = 20;
733
- _context10.t0 = _context10["catch"](2);
732
+ _context10.t0 = _context10["catch"](1);
734
733
  _iterator3.e(_context10.t0);
735
734
  case 23:
736
735
  _context10.prev = 23;
@@ -742,9 +741,9 @@ var AO = /*#__PURE__*/function () {
742
741
  case "end":
743
742
  return _context10.stop();
744
743
  }
745
- }, _callee10, null, [[2, 20, 23, 26]]);
744
+ }, _callee10, null, [[1, 20, 23, 26]]);
746
745
  }));
747
- return function checkOut(_x11, _x12, _x13) {
746
+ return function checkOut(_x11, _x12, _x13, _x14) {
748
747
  return _ref14.apply(this, arguments);
749
748
  };
750
749
  }();
@@ -859,7 +858,7 @@ var AO = /*#__PURE__*/function () {
859
858
  _context11.t4 = _utils.mergeOut;
860
859
  _context11.t5 = out;
861
860
  _context11.next = 69;
862
- return checkOut(get, _txs, _txmap);
861
+ return checkOut(get, _txs, _txmap, out);
863
862
  case 69:
864
863
  _context11.t6 = _context11.sent;
865
864
  _context11.t7 = get;
@@ -879,7 +878,7 @@ var AO = /*#__PURE__*/function () {
879
878
  _context11.t8 = _utils.mergeOut;
880
879
  _context11.t9 = out;
881
880
  _context11.next = 80;
882
- return checkOut(get, _txs, _txmap);
881
+ return checkOut(get, _txs, _txmap, out);
883
882
  case 80:
884
883
  _context11.t10 = _context11.sent;
885
884
  _context11.t11 = get;
@@ -989,7 +988,7 @@ var AO = /*#__PURE__*/function () {
989
988
  }
990
989
  }, _callee12, this, [[10, 21]]);
991
990
  }));
992
- function asgn(_x14) {
991
+ function asgn(_x15) {
993
992
  return _asgn.apply(this, arguments);
994
993
  }
995
994
  return asgn;
@@ -1055,7 +1054,7 @@ var AO = /*#__PURE__*/function () {
1055
1054
  }
1056
1055
  }, _callee13, this, [[11, 22]]);
1057
1056
  }));
1058
- function dry(_x15) {
1057
+ function dry(_x16) {
1059
1058
  return _dry.apply(this, arguments);
1060
1059
  }
1061
1060
  return dry;
@@ -1094,7 +1093,7 @@ var AO = /*#__PURE__*/function () {
1094
1093
  }
1095
1094
  }, _callee14, this);
1096
1095
  }));
1097
- function _eval(_x16) {
1096
+ function _eval(_x17) {
1098
1097
  return _eval2.apply(this, arguments);
1099
1098
  }
1100
1099
  return _eval;
@@ -1141,7 +1140,7 @@ var AO = /*#__PURE__*/function () {
1141
1140
  }
1142
1141
  }, _callee15, this);
1143
1142
  }));
1144
- function transform(_x17) {
1143
+ function transform(_x18) {
1145
1144
  return _transform.apply(this, arguments);
1146
1145
  }
1147
1146
  return transform;
@@ -1184,7 +1183,7 @@ var AO = /*#__PURE__*/function () {
1184
1183
  }
1185
1184
  }, _callee16, this);
1186
1185
  }));
1187
- function load(_x18) {
1186
+ function load(_x19) {
1188
1187
  return _load.apply(this, arguments);
1189
1188
  }
1190
1189
  return load;
@@ -1251,7 +1250,7 @@ var AO = /*#__PURE__*/function () {
1251
1250
  }
1252
1251
  }, _callee17, this);
1253
1252
  }));
1254
- function wait(_x19) {
1253
+ function wait(_x20) {
1255
1254
  return _wait2.apply(this, arguments);
1256
1255
  }
1257
1256
  return wait;
@@ -1282,7 +1281,7 @@ var AO = /*#__PURE__*/function () {
1282
1281
  }
1283
1282
  }, _callee18, this);
1284
1283
  }));
1285
- function attest(_x20) {
1284
+ function attest(_x21) {
1286
1285
  return _attest.apply(this, arguments);
1287
1286
  }
1288
1287
  return attest;
@@ -1314,7 +1313,7 @@ var AO = /*#__PURE__*/function () {
1314
1313
  }
1315
1314
  }, _callee19, this);
1316
1315
  }));
1317
- function avail(_x21) {
1316
+ function avail(_x22) {
1318
1317
  return _avail.apply(this, arguments);
1319
1318
  }
1320
1319
  return avail;
@@ -1418,7 +1417,7 @@ var AO = /*#__PURE__*/function () {
1418
1417
  }
1419
1418
  }, _callee20, this);
1420
1419
  }));
1421
- function deploy(_x22) {
1420
+ function deploy(_x23) {
1422
1421
  return _deploy.apply(this, arguments);
1423
1422
  }
1424
1423
  return deploy;
@@ -1503,7 +1502,7 @@ var Process = /*#__PURE__*/function () {
1503
1502
  }
1504
1503
  }, _callee22, this);
1505
1504
  }));
1506
- function msg(_x23, _x24, _x25) {
1505
+ function msg(_x24, _x25, _x26) {
1507
1506
  return _msg2.apply(this, arguments);
1508
1507
  }
1509
1508
  return msg;
@@ -1531,7 +1530,7 @@ var Process = /*#__PURE__*/function () {
1531
1530
  }
1532
1531
  }, _callee23, this);
1533
1532
  }));
1534
- function dry(_x26, _x27, _x28) {
1533
+ function dry(_x27, _x28, _x29) {
1535
1534
  return _dry2.apply(this, arguments);
1536
1535
  }
1537
1536
  return dry;