mol_crypto_lib 0.1.1624 → 0.1.1626

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
@@ -1257,10 +1257,12 @@ var $;
1257
1257
  result = wrappers.get(result);
1258
1258
  }
1259
1259
  else {
1260
- wrappers.set(result, result = Object.assign(result.finally(() => {
1260
+ const put = (v) => {
1261
1261
  if (this.cache === result)
1262
1262
  this.absorb();
1263
- }), { destructor: result.destructor || (() => { }) }));
1263
+ return v;
1264
+ };
1265
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1264
1266
  const error = new Error(`Promise in ${this}`);
1265
1267
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1266
1268
  }
package/node.test.js CHANGED
@@ -1248,10 +1248,12 @@ var $;
1248
1248
  result = wrappers.get(result);
1249
1249
  }
1250
1250
  else {
1251
- wrappers.set(result, result = Object.assign(result.finally(() => {
1251
+ const put = (v) => {
1252
1252
  if (this.cache === result)
1253
1253
  this.absorb();
1254
- }), { destructor: result.destructor || (() => { }) }));
1254
+ return v;
1255
+ };
1256
+ wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
1255
1257
  const error = new Error(`Promise in ${this}`);
1256
1258
  Object.defineProperty(result, 'stack', { get: () => error.stack });
1257
1259
  }