mol_text_distance 0.0.995 → 0.0.997
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 +5 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1283,12 +1283,13 @@ var $;
|
|
|
1283
1283
|
break;
|
|
1284
1284
|
}
|
|
1285
1285
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
1286
|
+
handled.add(result);
|
|
1286
1287
|
const put = (res) => {
|
|
1287
1288
|
if (this.cache === result)
|
|
1288
1289
|
this.put(res);
|
|
1289
1290
|
return res;
|
|
1290
1291
|
};
|
|
1291
|
-
result = result.then(put, put);
|
|
1292
|
+
result = Object.assign(result.then(put, put), { destructor: result.destructor });
|
|
1292
1293
|
}
|
|
1293
1294
|
}
|
|
1294
1295
|
catch (error) {
|
|
@@ -1299,10 +1300,11 @@ var $;
|
|
|
1299
1300
|
result = new Error(String(error), { cause: error });
|
|
1300
1301
|
}
|
|
1301
1302
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
1302
|
-
|
|
1303
|
+
handled.add(result);
|
|
1304
|
+
result = Object.assign(result.finally(() => {
|
|
1303
1305
|
if (this.cache === result)
|
|
1304
1306
|
this.absorb();
|
|
1305
|
-
});
|
|
1307
|
+
}), { destructor: result.destructor });
|
|
1306
1308
|
}
|
|
1307
1309
|
}
|
|
1308
1310
|
if ($mol_promise_like(result) && !handled.has(result)) {
|