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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [