mol_key 0.0.1391 → 0.0.1393
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
|
@@ -628,7 +628,7 @@ var $node = new Proxy({ require }, {
|
|
|
628
628
|
const module = cache.get(name);
|
|
629
629
|
if (module)
|
|
630
630
|
return module;
|
|
631
|
-
throw import(name).then(module => cache.set(name, module));
|
|
631
|
+
throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
|
|
632
632
|
}
|
|
633
633
|
$.$mol_fail_log(error);
|
|
634
634
|
return null;
|