bare-module 5.0.1 → 5.0.3

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 CHANGED
@@ -451,7 +451,7 @@ module.exports = exports = class Module {
451
451
  attributes !== null &&
452
452
  typeof attributes.imports === 'string'
453
453
  ) {
454
- const resolved = self.resolve(attributes.imports, url, {
454
+ const resolved = self.resolve(attributes.imports, referrer._url, {
455
455
  referrer: module
456
456
  })
457
457
 
@@ -547,7 +547,7 @@ module.exports = exports = class Module {
547
547
  }
548
548
  }
549
549
 
550
- let message = `Cannot find module '${specifier}' imported from '${parentURL.href}`
550
+ let message = `Cannot find module '${specifier}' imported from '${parentURL.href}'`
551
551
 
552
552
  if (candidates.length > 0) {
553
553
  message += '\nCandidates:'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Module support for JavaScript",
5
5
  "exports": {
6
6
  ".": {