bare-module 3.3.0 → 4.1.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.
- package/README.md +3 -0
- package/index.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -237,7 +237,7 @@ const Module = module.exports = exports = class Module {
|
|
|
237
237
|
static _protocol = null
|
|
238
238
|
static _cache = module.cache || Object.create(null)
|
|
239
239
|
static _modules = new Set()
|
|
240
|
-
static _conditions = ['bare', 'node']
|
|
240
|
+
static _conditions = ['bare', 'node', Bare.platform, Bare.arch]
|
|
241
241
|
|
|
242
242
|
static _handle = binding.init(this, this._onimport, this._onevaluate, this._onmeta)
|
|
243
243
|
|
|
@@ -597,6 +597,8 @@ const createRequire = exports.createRequire = function createRequire (parentURL,
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
+
if (Bare.simulator) Module._conditions.push('simulator')
|
|
601
|
+
|
|
600
602
|
Module._extensions['.js'] = function (module, source, referrer) {
|
|
601
603
|
const self = Module
|
|
602
604
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bare-module",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Module support for JavaScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"bare-bundle": "^1.0.0",
|
|
30
30
|
"bare-module-resolve": "^1.6.0",
|
|
31
|
-
"bare-path": "^
|
|
31
|
+
"bare-path": "^3.0.0",
|
|
32
32
|
"cjs-module-lexer": "^1.2.3",
|
|
33
33
|
"url-file-url": "^1.0.2"
|
|
34
34
|
},
|