mol_text_distance 0.0.1326 → 0.0.1328
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 +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -313,7 +313,7 @@ var $node = new Proxy({ require }, {
|
|
|
313
313
|
const module = cache.get(name);
|
|
314
314
|
if (module)
|
|
315
315
|
return module;
|
|
316
|
-
throw import(name).then(module => cache.set(name, module));
|
|
316
|
+
throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
|
|
317
317
|
}
|
|
318
318
|
$.$mol_fail_log(error);
|
|
319
319
|
return null;
|