bare-module 1.14.7 → 1.14.8
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -266,13 +266,13 @@ module.exports = exports = class Module {
|
|
|
266
266
|
|
|
267
267
|
if (protocol.exists(pkg)) {
|
|
268
268
|
try {
|
|
269
|
-
module._info =
|
|
269
|
+
module._info = this.load(pkg, { protocol })._exports
|
|
270
270
|
} catch {}
|
|
271
271
|
break
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
dirname = path.dirname(dirname)
|
|
275
|
-
} while (dirname !==
|
|
275
|
+
} while (dirname !== path.sep && dirname !== '.')
|
|
276
276
|
|
|
277
277
|
if (specifier in this._builtins) {
|
|
278
278
|
module._exports = this._builtins[specifier]
|
|
@@ -529,7 +529,7 @@ module.exports = exports = class Module {
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
name = path.dirname(name)
|
|
532
|
-
} while (name !==
|
|
532
|
+
} while (name !== path.sep && name !== '.')
|
|
533
533
|
|
|
534
534
|
if (path.extname(name) !== '.bundle') return null
|
|
535
535
|
|