bare-module 7.0.0 → 7.0.1

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/lib/loader.js CHANGED
@@ -358,11 +358,11 @@ module.exports = class ModuleLoader {
358
358
  },
359
359
 
360
360
  list(context, url) {
361
- return [] // TODO
361
+ return bundleOwns(bundle, url) ? [url] : context.list(url)
362
362
  },
363
363
 
364
364
  listSync(context, url) {
365
- return [] // TODO
365
+ return bundleOwns(bundle, url) ? [url] : context.listSync(url)
366
366
  }
367
367
  })
368
368
  }
package/lib/module.js CHANGED
@@ -57,7 +57,7 @@ module.exports = exports = class Module {
57
57
  }
58
58
 
59
59
  get protocol() {
60
- return this._loader.protocol
60
+ return this._loader._protocolFor(this.url)
61
61
  }
62
62
 
63
63
  // For Node.js compatibility
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "The module system that powers Bare",
5
5
  "exports": {
6
6
  "./package": "./package.json",