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