bare-module 3.1.8 → 3.1.9

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
@@ -211,6 +211,10 @@ const Module = module.exports = exports = class Module {
211
211
 
212
212
  this._exports = binding.getNamespace(this._handle)
213
213
  }
214
+
215
+ if (this._type === constants.types.ADDON) {
216
+ if (eagerRun) binding.runModule(this._handle, Module._handle)
217
+ }
214
218
  }
215
219
 
216
220
  [Symbol.for('bare.inspect')] () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [