mol_crypto_lib 0.1.1330 → 0.1.1331

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
@@ -1406,13 +1406,12 @@ var $;
1406
1406
  break;
1407
1407
  }
1408
1408
  if ($mol_promise_like(result) && !handled.has(result)) {
1409
- handled.add(result);
1410
1409
  const put = (res) => {
1411
1410
  if (this.cache === result)
1412
1411
  this.put(res);
1413
1412
  return res;
1414
1413
  };
1415
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1414
+ result = result.then(put, put);
1416
1415
  }
1417
1416
  }
1418
1417
  catch (error) {
@@ -1423,11 +1422,10 @@ var $;
1423
1422
  result = new Error(String(error), { cause: error });
1424
1423
  }
1425
1424
  if ($mol_promise_like(result) && !handled.has(result)) {
1426
- handled.add(result);
1427
- result = Object.assign(result.finally(() => {
1425
+ result = result.finally(() => {
1428
1426
  if (this.cache === result)
1429
1427
  this.absorb();
1430
- }), { destructor: result.destructor });
1428
+ });
1431
1429
  }
1432
1430
  }
1433
1431
  if ($mol_promise_like(result) && !handled.has(result)) {
package/node.test.js CHANGED
@@ -1397,13 +1397,12 @@ var $;
1397
1397
  break;
1398
1398
  }
1399
1399
  if ($mol_promise_like(result) && !handled.has(result)) {
1400
- handled.add(result);
1401
1400
  const put = (res) => {
1402
1401
  if (this.cache === result)
1403
1402
  this.put(res);
1404
1403
  return res;
1405
1404
  };
1406
- result = Object.assign(result.then(put, put), { destructor: result.destructor });
1405
+ result = result.then(put, put);
1407
1406
  }
1408
1407
  }
1409
1408
  catch (error) {
@@ -1414,11 +1413,10 @@ var $;
1414
1413
  result = new Error(String(error), { cause: error });
1415
1414
  }
1416
1415
  if ($mol_promise_like(result) && !handled.has(result)) {
1417
- handled.add(result);
1418
- result = Object.assign(result.finally(() => {
1416
+ result = result.finally(() => {
1419
1417
  if (this.cache === result)
1420
1418
  this.absorb();
1421
- }), { destructor: result.destructor });
1419
+ });
1422
1420
  }
1423
1421
  }
1424
1422
  if ($mol_promise_like(result) && !handled.has(result)) {