bare-module 4.8.1 → 4.8.3
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/binding.c +10 -6
- package/index.js +5 -1
- package/package.json +4 -1
- package/prebuilds/android-arm/bare-module.bare +0 -0
- package/prebuilds/android-arm64/bare-module.bare +0 -0
- package/prebuilds/android-ia32/bare-module.bare +0 -0
- package/prebuilds/android-x64/bare-module.bare +0 -0
- package/prebuilds/darwin-arm64/bare-module.bare +0 -0
- package/prebuilds/darwin-x64/bare-module.bare +0 -0
- package/prebuilds/ios-arm64/bare-module.bare +0 -0
- package/prebuilds/ios-arm64-simulator/bare-module.bare +0 -0
- package/prebuilds/ios-x64-simulator/bare-module.bare +0 -0
- package/prebuilds/linux-arm64/bare-module.bare +0 -0
- package/prebuilds/linux-x64/bare-module.bare +0 -0
- package/prebuilds/win32-arm64/bare-module.bare +0 -0
- package/prebuilds/win32-x64/bare-module.bare +0 -0
package/binding.c
CHANGED
|
@@ -282,9 +282,11 @@ bare_module_create_function(js_env_t *env, js_callback_info_t *info) {
|
|
|
282
282
|
|
|
283
283
|
js_value_t **args = malloc(sizeof(js_value_t *) * args_len);
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
uint32_t fetched;
|
|
286
|
+
err = js_get_array_elements(env, argv[1], args, args_len, 0, &fetched);
|
|
287
|
+
|
|
288
|
+
if (err < 0 || fetched != args_len) {
|
|
289
|
+
goto err;
|
|
288
290
|
}
|
|
289
291
|
|
|
290
292
|
js_value_t *source = argv[2];
|
|
@@ -368,9 +370,11 @@ bare_module_create_synthetic_module(js_env_t *env, js_callback_info_t *info) {
|
|
|
368
370
|
|
|
369
371
|
js_value_t **export_names = malloc(sizeof(js_value_t *) * names_len);
|
|
370
372
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
373
|
+
uint32_t fetched;
|
|
374
|
+
err = js_get_array_elements(env, argv[1], export_names, names_len, 0, &fetched);
|
|
375
|
+
|
|
376
|
+
if (err < 0 || fetched != names_len) {
|
|
377
|
+
goto err;
|
|
374
378
|
}
|
|
375
379
|
|
|
376
380
|
bare_module_context_t *context;
|
package/index.js
CHANGED
|
@@ -158,7 +158,11 @@ module.exports = exports = class Module {
|
|
|
158
158
|
const referrer = module
|
|
159
159
|
|
|
160
160
|
for (const { specifier, type } of result.imports) {
|
|
161
|
-
if (
|
|
161
|
+
if (
|
|
162
|
+
(type & lex.constants.REEXPORT) !== 0 &&
|
|
163
|
+
(type & lex.constants.ADDON) === 0 &&
|
|
164
|
+
(type & lex.constants.ASSET) === 0
|
|
165
|
+
) {
|
|
162
166
|
const resolved = Module.resolve(specifier, referrer._url, {
|
|
163
167
|
isImport: true,
|
|
164
168
|
referrer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bare-module",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.3",
|
|
4
4
|
"description": "Module support for JavaScript",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
"url": "https://github.com/holepunchto/bare-module/issues"
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/holepunchto/bare-module#readme",
|
|
35
|
+
"engines": {
|
|
36
|
+
"bare": ">=1.16.0"
|
|
37
|
+
},
|
|
35
38
|
"dependencies": {
|
|
36
39
|
"bare-bundle": "^1.3.0",
|
|
37
40
|
"bare-module-lexer": "^1.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|