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.
- package/index.js +7 -1
- 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
|
-
|
|
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(
|