mol_wire_dom 0.0.1525 → 0.0.1527

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
@@ -887,10 +887,12 @@ var $;
887
887
  result = wrappers.get(result);
888
888
  }
889
889
  else {
890
- wrappers.set(result, result = Object.assign(result.finally(() => {
890
+ const put = (v) => {
891
891
  if (this.cache === result)
892
892
  this.absorb();
893
- }), { destructor: result.destructor || (() => { }) }));
893
+ return v;
894
+ };
895
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
894
896
  const error = new Error(`Promise in ${this}`);
895
897
  Object.defineProperty(result, 'stack', { get: () => error.stack });
896
898
  }
package/node.test.js CHANGED
@@ -878,10 +878,12 @@ var $;
878
878
  result = wrappers.get(result);
879
879
  }
880
880
  else {
881
- wrappers.set(result, result = Object.assign(result.finally(() => {
881
+ const put = (v) => {
882
882
  if (this.cache === result)
883
883
  this.absorb();
884
- }), { destructor: result.destructor || (() => { }) }));
884
+ return v;
885
+ };
886
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
885
887
  const error = new Error(`Promise in ${this}`);
886
888
  Object.defineProperty(result, 'stack', { get: () => error.stack });
887
889
  }