mol_jsx_lib 0.0.1406 → 0.0.1408

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
@@ -1084,10 +1084,12 @@ var $;
1084
1084
  result = wrappers.get(result);
1085
1085
  }
1086
1086
  else {
1087
- wrappers.set(result, result = Object.assign(result.finally(() => {
1087
+ const put = (v) => {
1088
1088
  if (this.cache === result)
1089
1089
  this.absorb();
1090
- }), { destructor: result.destructor || (() => { }) }));
1090
+ return v;
1091
+ };
1092
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1091
1093
  const error = new Error(`Promise in ${this}`);
1092
1094
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1093
1095
  }
package/node.test.js CHANGED
@@ -1075,10 +1075,12 @@ var $;
1075
1075
  result = wrappers.get(result);
1076
1076
  }
1077
1077
  else {
1078
- wrappers.set(result, result = Object.assign(result.finally(() => {
1078
+ const put = (v) => {
1079
1079
  if (this.cache === result)
1080
1080
  this.absorb();
1081
- }), { destructor: result.destructor || (() => { }) }));
1081
+ return v;
1082
+ };
1083
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1082
1084
  const error = new Error(`Promise in ${this}`);
1083
1085
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1084
1086
  }