bare-module 2.1.0 → 2.2.0

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 +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -51,6 +51,10 @@ const Module = module.exports = exports = class Module {
51
51
  this._exports = value
52
52
  }
53
53
 
54
+ get protocol () {
55
+ return this._protocol
56
+ }
57
+
54
58
  // For Node.js compatibility
55
59
  get id () {
56
60
  return this.filename
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [