hyoo_sync_client 0.0.544 → 0.0.545

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