bare-module 2.8.0 → 2.8.1
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 +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -383,7 +383,7 @@ const Module = module.exports = exports = class Module {
|
|
|
383
383
|
throw new TypeError(`Specifier must be a string. Received type ${typeof specifier} (${specifier})`)
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
if (typeof dirname !== 'string') {
|
|
386
|
+
if (typeof dirname !== 'string' && dirname !== null) {
|
|
387
387
|
opts = dirname
|
|
388
388
|
dirname = null
|
|
389
389
|
}
|