mol_data_all 1.1.1594 → 1.1.1595

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.test.js CHANGED
@@ -1831,10 +1831,12 @@ var $;
1831
1831
  result = wrappers.get(result);
1832
1832
  }
1833
1833
  else {
1834
- wrappers.set(result, result = Object.assign(result.finally(() => {
1834
+ const put = (v) => {
1835
1835
  if (this.cache === result)
1836
1836
  this.absorb();
1837
- }), { destructor: result.destructor || (() => { }) }));
1837
+ return v;
1838
+ };
1839
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1838
1840
  const error = new Error(`Promise in ${this}`);
1839
1841
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1840
1842
  }