mol_wire_lib 1.0.1227 → 1.0.1229

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
@@ -754,13 +754,12 @@ var $;
754
754
  break;
755
755
  }
756
756
  if ($mol_promise_like(result) && !handled.has(result)) {
757
- handled.add(result);
758
757
  const put = (res) => {
759
758
  if (this.cache === result)
760
759
  this.put(res);
761
760
  return res;
762
761
  };
763
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
762
+ result = result.then(put, put);
764
763
  }
765
764
  }
766
765
  catch (error) {
@@ -771,11 +770,10 @@ var $;
771
770
  result = new Error(String(error), { cause: error });
772
771
  }
773
772
  if ($mol_promise_like(result) && !handled.has(result)) {
774
- handled.add(result);
775
- result = Object.assign(result.finally(() => {
773
+ result = result.finally(() => {
776
774
  if (this.cache === result)
777
775
  this.absorb();
778
- }), { destructor: result.destructor });
776
+ });
779
777
  }
780
778
  }
781
779
  if ($mol_promise_like(result) && !handled.has(result)) {
package/node.test.js CHANGED
@@ -745,13 +745,12 @@ var $;
745
745
  break;
746
746
  }
747
747
  if ($mol_promise_like(result) && !handled.has(result)) {
748
- handled.add(result);
749
748
  const put = (res) => {
750
749
  if (this.cache === result)
751
750
  this.put(res);
752
751
  return res;
753
752
  };
754
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
753
+ result = result.then(put, put);
755
754
  }
756
755
  }
757
756
  catch (error) {
@@ -762,11 +761,10 @@ var $;
762
761
  result = new Error(String(error), { cause: error });
763
762
  }
764
763
  if ($mol_promise_like(result) && !handled.has(result)) {
765
- handled.add(result);
766
- result = Object.assign(result.finally(() => {
764
+ result = result.finally(() => {
767
765
  if (this.cache === result)
768
766
  this.absorb();
769
- }), { destructor: result.destructor });
767
+ });
770
768
  }
771
769
  }
772
770
  if ($mol_promise_like(result) && !handled.has(result)) {