bare-module 4.6.1 → 4.6.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 +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -32,6 +32,8 @@ const Module = module.exports = exports = class Module {
32
32
  this._names = null
33
33
  this._handle = null
34
34
 
35
+ Object.preventExtensions(this)
36
+
35
37
  Module._modules.add(this)
36
38
  }
37
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "Module support for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [