bare-module 3.0.3 → 3.0.4

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
@@ -257,7 +257,7 @@ const Module = module.exports = exports = class Module {
257
257
  static createRequire (parentURL, opts = {}) {
258
258
  const self = Module
259
259
 
260
- if (typeof parentURL === 'string') parentURL = url.pathToFileURL(parentURL)
260
+ if (typeof parentURL === 'string') parentURL = new URL(parentURL, 'file:')
261
261
 
262
262
  let {
263
263
  referrer = null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [