bare-module 6.1.0 → 6.1.2

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
@@ -618,7 +618,7 @@ function extensionsForType(type) {
618
618
  case constants.types.JSON:
619
619
  return ['.json']
620
620
  case constants.types.BUNDLE:
621
- return ['.json']
621
+ return ['.bundle']
622
622
  case constants.types.ADDON:
623
623
  return ['.bare', '.node']
624
624
  case constants.types.BINARY:
@@ -920,8 +920,8 @@ Module._extensions['.bundle'] = function (module, source, referrer) {
920
920
  return bundle.exists(url.href) ? url : context.postresolve(url)
921
921
  },
922
922
 
923
- exists(context, url) {
924
- return bundle.exists(url.href) || context.exists(url)
923
+ exists(context, url, type) {
924
+ return bundle.exists(url.href) || context.exists(url, type)
925
925
  },
926
926
 
927
927
  read(context, url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "description": "Module support for JavaScript",
5
5
  "exports": {
6
6
  ".": {