bare-module 4.6.2 → 4.6.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 +3 -15
- package/package.json +1 -1
- package/prebuilds/android-arm/bare-module.bare +0 -0
- package/prebuilds/android-arm64/bare-module.bare +0 -0
- package/prebuilds/android-ia32/bare-module.bare +0 -0
- package/prebuilds/android-x64/bare-module.bare +0 -0
- package/prebuilds/win32-arm64/bare-module.bare +0 -0
- package/prebuilds/win32-x64/bare-module.bare +0 -0
package/index.js
CHANGED
|
@@ -249,11 +249,7 @@ const Module = module.exports = exports = class Module {
|
|
|
249
249
|
const referrer = this._cache[referrerHref] || null
|
|
250
250
|
|
|
251
251
|
if (referrer === null) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (referrerHref) msg += ` imported from '${referrerHref}'`
|
|
255
|
-
|
|
256
|
-
throw errors.MODULE_NOT_FOUND(msg)
|
|
252
|
+
throw errors.MODULE_NOT_FOUND(`Cannot find referrer for module '${href}' imported from '${referrerHref}'`)
|
|
257
253
|
}
|
|
258
254
|
|
|
259
255
|
const url = this.resolve(href, referrer._url, { isImport: true, referrer, attributes })
|
|
@@ -469,11 +465,7 @@ const Module = module.exports = exports = class Module {
|
|
|
469
465
|
}
|
|
470
466
|
}
|
|
471
467
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
if (referrer) msg += ` imported from '${parentURL.href}'`
|
|
475
|
-
|
|
476
|
-
throw errors.MODULE_NOT_FOUND(msg)
|
|
468
|
+
throw errors.MODULE_NOT_FOUND(`Cannot find module '${specifier}' imported from '${parentURL.href}'`)
|
|
477
469
|
|
|
478
470
|
function readPackage (packageURL) {
|
|
479
471
|
if (protocol.exists(packageURL)) {
|
|
@@ -515,11 +507,7 @@ const Module = module.exports = exports = class Module {
|
|
|
515
507
|
}
|
|
516
508
|
}
|
|
517
509
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
if (referrer) msg += ` imported from '${parentURL.href}'`
|
|
521
|
-
|
|
522
|
-
throw errors.ASSET_NOT_FOUND(msg)
|
|
510
|
+
throw errors.ASSET_NOT_FOUND(`Cannot find asset '${specifier}' imported from '${parentURL.href}'`)
|
|
523
511
|
|
|
524
512
|
function readPackage (packageURL) {
|
|
525
513
|
if (protocol.exists(packageURL)) {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|