mol_conform 0.0.95 → 0.0.97
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
|
@@ -358,7 +358,7 @@ var $node = new Proxy({ require }, {
|
|
|
358
358
|
const module = cache.get(name);
|
|
359
359
|
if (module)
|
|
360
360
|
return module;
|
|
361
|
-
throw import(name).then(module => cache.set(name, module));
|
|
361
|
+
throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
|
|
362
362
|
}
|
|
363
363
|
$.$mol_fail_log(error);
|
|
364
364
|
return null;
|