mol_tree2 1.0.890 → 1.0.892

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_tree2",
3
- "version": "1.0.890",
3
+ "version": "1.0.892",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.test.js CHANGED
@@ -2482,7 +2482,7 @@ var $;
2482
2482
  }
2483
2483
  return this.cache;
2484
2484
  }
2485
- async async() {
2485
+ async async_raw() {
2486
2486
  while (true) {
2487
2487
  this.fresh();
2488
2488
  if (this.cache instanceof Error) {
@@ -2498,6 +2498,12 @@ var $;
2498
2498
  }
2499
2499
  }
2500
2500
  }
2501
+ async() {
2502
+ const promise = this.async_raw();
2503
+ if (!promise.destructor)
2504
+ promise.destructor = () => this.destructor();
2505
+ return promise;
2506
+ }
2501
2507
  step() {
2502
2508
  return new Promise(done => {
2503
2509
  const sub = new $mol_wire_pub_sub;