mol_text_distance 0.0.1300 → 0.0.1302

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
@@ -1393,10 +1393,12 @@ var $;
1393
1393
  result = wrappers.get(result);
1394
1394
  }
1395
1395
  else {
1396
- wrappers.set(result, result = Object.assign(result.finally(() => {
1396
+ const put = (v) => {
1397
1397
  if (this.cache === result)
1398
1398
  this.absorb();
1399
- }), { destructor: result.destructor || (() => { }) }));
1399
+ return v;
1400
+ };
1401
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1400
1402
  const error = new Error(`Promise in ${this}`);
1401
1403
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1402
1404
  }