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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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 = Module.load(pkg, { protocol })._exports
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 !== '/' && 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 !== '/' && name !== '.')
532
+ } while (name !== path.sep && name !== '.')
533
533
 
534
534
  if (path.extname(name) !== '.bundle') return null
535
535
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "1.14.7",
3
+ "version": "1.14.8",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [