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