mol_data_all 1.1.1345 → 1.1.1347
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 +4 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/test.html +1 -1
package/node.test.js
CHANGED
|
@@ -760,11 +760,13 @@ var $node = new Proxy({ require }, {
|
|
|
760
760
|
get(target, name, wrapper) {
|
|
761
761
|
if (target[name])
|
|
762
762
|
return target[name];
|
|
763
|
-
|
|
764
|
-
if (mod.builtinModules.indexOf(name) >= 0)
|
|
763
|
+
if (name.startsWith('node:'))
|
|
765
764
|
return target.require(name);
|
|
766
765
|
if (name[0] === '.')
|
|
767
766
|
return target.require(name);
|
|
767
|
+
const mod = target.require('module');
|
|
768
|
+
if (mod.builtinModules.indexOf(name) >= 0)
|
|
769
|
+
return target.require(name);
|
|
768
770
|
try {
|
|
769
771
|
target.require.resolve(name);
|
|
770
772
|
}
|