mol_jsx_lib 0.0.775 → 0.0.777

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/node.mjs CHANGED
@@ -95,6 +95,7 @@ var $;
95
95
  if (!$mol_fail_catch(error))
96
96
  return false;
97
97
  console.error(error);
98
+ console.error(error.stack);
98
99
  return true;
99
100
  }
100
101
  $.$mol_fail_log = $mol_fail_log;
@@ -1676,25 +1677,19 @@ var $;
1676
1677
  return this.cache;
1677
1678
  }
1678
1679
  async async() {
1679
- try {
1680
- while (true) {
1681
- this.fresh();
1682
- if (this.cache instanceof Error) {
1683
- $mol_fail_hidden(this.cache);
1684
- }
1685
- if (!$mol_promise_like(this.cache))
1686
- return this.cache;
1687
- await Promise.race([this.cache, this.step()]);
1688
- if (!$mol_promise_like(this.cache))
1689
- return this.cache;
1690
- if (this.cursor === $mol_wire_cursor.final) {
1691
- await new Promise(() => { });
1692
- }
1680
+ while (true) {
1681
+ this.fresh();
1682
+ if (this.cache instanceof Error) {
1683
+ $mol_fail_hidden(this.cache);
1684
+ }
1685
+ if (!$mol_promise_like(this.cache))
1686
+ return this.cache;
1687
+ await Promise.race([this.cache, this.step()]);
1688
+ if (!$mol_promise_like(this.cache))
1689
+ return this.cache;
1690
+ if (this.cursor === $mol_wire_cursor.final) {
1691
+ await new Promise(() => { });
1693
1692
  }
1694
- }
1695
- catch (e) {
1696
- e.message += '\n' + e.stack;
1697
- throw e;
1698
1693
  }
1699
1694
  }
1700
1695
  step() {
package/node.test.js CHANGED
@@ -86,6 +86,7 @@ var $;
86
86
  if (!$mol_fail_catch(error))
87
87
  return false;
88
88
  console.error(error);
89
+ console.error(error.stack);
89
90
  return true;
90
91
  }
91
92
  $.$mol_fail_log = $mol_fail_log;
@@ -1667,26 +1668,20 @@ var $;
1667
1668
  return this.cache;
1668
1669
  }
1669
1670
  async async() {
1670
- try {
1671
- while (true) {
1672
- this.fresh();
1673
- if (this.cache instanceof Error) {
1674
- $mol_fail_hidden(this.cache);
1675
- }
1676
- if (!$mol_promise_like(this.cache))
1677
- return this.cache;
1678
- await Promise.race([this.cache, this.step()]);
1679
- if (!$mol_promise_like(this.cache))
1680
- return this.cache;
1681
- if (this.cursor === $mol_wire_cursor.final) {
1682
- await new Promise(() => { });
1683
- }
1671
+ while (true) {
1672
+ this.fresh();
1673
+ if (this.cache instanceof Error) {
1674
+ $mol_fail_hidden(this.cache);
1675
+ }
1676
+ if (!$mol_promise_like(this.cache))
1677
+ return this.cache;
1678
+ await Promise.race([this.cache, this.step()]);
1679
+ if (!$mol_promise_like(this.cache))
1680
+ return this.cache;
1681
+ if (this.cursor === $mol_wire_cursor.final) {
1682
+ await new Promise(() => { });
1684
1683
  }
1685
1684
  }
1686
- catch (e) {
1687
- e.message += '\n' + e.stack;
1688
- throw e;
1689
- }
1690
1685
  }
1691
1686
  step() {
1692
1687
  return new Promise(done => {