mol_plot_all 1.2.1213 → 1.2.1215

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
@@ -789,12 +789,13 @@ var $;
789
789
  break;
790
790
  }
791
791
  if ($mol_promise_like(result) && !handled.has(result)) {
792
+ handled.add(result);
792
793
  const put = (res) => {
793
794
  if (this.cache === result)
794
795
  this.put(res);
795
796
  return res;
796
797
  };
797
- result = result.then(put, put);
798
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
798
799
  }
799
800
  }
800
801
  catch (error) {
@@ -805,10 +806,11 @@ var $;
805
806
  result = new Error(String(error), { cause: error });
806
807
  }
807
808
  if ($mol_promise_like(result) && !handled.has(result)) {
808
- result = result.finally(() => {
809
+ handled.add(result);
810
+ result = Object.assign(result.finally(() => {
809
811
  if (this.cache === result)
810
812
  this.absorb();
811
- });
813
+ }), { destructor: result.destructor });
812
814
  }
813
815
  }
814
816
  if ($mol_promise_like(result) && !handled.has(result)) {
package/node.test.js CHANGED
@@ -780,12 +780,13 @@ var $;
780
780
  break;
781
781
  }
782
782
  if ($mol_promise_like(result) && !handled.has(result)) {
783
+ handled.add(result);
783
784
  const put = (res) => {
784
785
  if (this.cache === result)
785
786
  this.put(res);
786
787
  return res;
787
788
  };
788
- result = result.then(put, put);
789
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
789
790
  }
790
791
  }
791
792
  catch (error) {
@@ -796,10 +797,11 @@ var $;
796
797
  result = new Error(String(error), { cause: error });
797
798
  }
798
799
  if ($mol_promise_like(result) && !handled.has(result)) {
799
- result = result.finally(() => {
800
+ handled.add(result);
801
+ result = Object.assign(result.finally(() => {
800
802
  if (this.cache === result)
801
803
  this.absorb();
802
- });
804
+ }), { destructor: result.destructor });
803
805
  }
804
806
  }
805
807
  if ($mol_promise_like(result) && !handled.has(result)) {