bare-module 6.0.0 → 6.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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -256,8 +256,14 @@ module.exports = exports = class Module {
256
256
  }
257
257
 
258
258
  static _extensions = Object.create(null)
259
+
259
260
  static _protocol = null
260
- static _cache = module.cache || Object.create(null)
261
+
262
+ static _cache =
263
+ module[kind] === Module[kind]
264
+ ? module.cache || Object.create(null)
265
+ : Object.create(null)
266
+
261
267
  static _conditions = ['bare', 'node', Bare.platform, Bare.arch]
262
268
 
263
269
  static _handle = binding.init(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-module",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Module support for JavaScript",
5
5
  "exports": {
6
6
  ".": {