wao 0.34.0 → 0.34.1

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.
Files changed (3) hide show
  1. package/cjs/hb.js +8 -5
  2. package/esm/hb.js +1 -0
  3. package/package.json +1 -1
package/cjs/hb.js CHANGED
@@ -871,8 +871,11 @@ var HB = /*#__PURE__*/function () {
871
871
  while (1) switch (_context25.prev = _context25.next) {
872
872
  case 0:
873
873
  tags = _args26.length > 0 && _args26[0] !== undefined ? _args26[0] : {};
874
+ _context25.next = 3;
875
+ return this.setInfo();
876
+ case 3:
874
877
  _context25.t0 = this;
875
- _context25.next = 4;
878
+ _context25.next = 6;
876
879
  return this.commit((0, _ramda.mergeLeft)(tags, {
877
880
  "random-seed": (0, _utils.seed)(16),
878
881
  type: "Process",
@@ -882,7 +885,7 @@ var HB = /*#__PURE__*/function () {
882
885
  }), {
883
886
  path: false
884
887
  });
885
- case 4:
888
+ case 6:
886
889
  _context25.t1 = _context25.sent;
887
890
  _context25.t2 = this.operator;
888
891
  _context25.t3 = {
@@ -890,15 +893,15 @@ var HB = /*#__PURE__*/function () {
890
893
  body: _context25.t1,
891
894
  scheduler: _context25.t2
892
895
  };
893
- _context25.next = 9;
896
+ _context25.next = 11;
894
897
  return _context25.t0.post.call(_context25.t0, _context25.t3);
895
- case 9:
898
+ case 11:
896
899
  res = _context25.sent;
897
900
  return _context25.abrupt("return", {
898
901
  res: res,
899
902
  pid: res.out.process
900
903
  });
901
- case 11:
904
+ case 13:
902
905
  case "end":
903
906
  return _context25.stop();
904
907
  }
package/esm/hb.js CHANGED
@@ -191,6 +191,7 @@ class HB {
191
191
  return res
192
192
  }
193
193
  async spawn(tags = {}) {
194
+ await this.setInfo()
194
195
  const res = await this.post({
195
196
  path: "/~process@1.0/schedule",
196
197
  body: await this.commit(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"