@oxc-node/core-wasm32-wasi 0.0.20 → 0.0.22
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/oxc-node.wasi-browser.js +6 -19
- package/oxc-node.wasi.cjs +7 -19
- package/oxc-node.wasm32-wasi.wasm +0 -0
- package/package.json +2 -2
package/oxc-node.wasi-browser.js
CHANGED
|
@@ -46,28 +46,15 @@ const {
|
|
|
46
46
|
return importObject
|
|
47
47
|
},
|
|
48
48
|
beforeInit({ instance }) {
|
|
49
|
-
|
|
49
|
+
for (const name of Object.keys(instance.exports)) {
|
|
50
|
+
if (name.startsWith('__napi_register__')) {
|
|
51
|
+
instance.exports[name]()
|
|
52
|
+
}
|
|
53
|
+
}
|
|
50
54
|
},
|
|
51
55
|
})
|
|
52
|
-
|
|
53
|
-
function __napi_rs_initialize_modules(__napiInstance) {
|
|
54
|
-
__napiInstance.exports['__napi_register__init_tracing_0']?.()
|
|
55
|
-
__napiInstance.exports['__napi_register__Output_struct_1']?.()
|
|
56
|
-
__napiInstance.exports['__napi_register__Output_impl_4']?.()
|
|
57
|
-
__napiInstance.exports['__napi_register__transform_5']?.()
|
|
58
|
-
__napiInstance.exports['__napi_register__TransformTask_impl_6']?.()
|
|
59
|
-
__napiInstance.exports['__napi_register__transform_async_7']?.()
|
|
60
|
-
__napiInstance.exports['__napi_register__ResolveContext_struct_8']?.()
|
|
61
|
-
__napiInstance.exports['__napi_register__ResolveFnOutput_struct_9']?.()
|
|
62
|
-
__napiInstance.exports['__napi_register__OxcResolveOptions_struct_10']?.()
|
|
63
|
-
__napiInstance.exports['__napi_register__create_resolve_11']?.()
|
|
64
|
-
__napiInstance.exports['__napi_register__LoadContext_struct_12']?.()
|
|
65
|
-
__napiInstance.exports['__napi_register__LoadFnOutput_struct_13']?.()
|
|
66
|
-
__napiInstance.exports['__napi_register__load_14']?.()
|
|
67
|
-
}
|
|
68
56
|
export const Output = __napiModule.exports.Output
|
|
57
|
+
export const OxcTransformer = __napiModule.exports.OxcTransformer
|
|
69
58
|
export const createResolve = __napiModule.exports.createResolve
|
|
70
59
|
export const initTracing = __napiModule.exports.initTracing
|
|
71
60
|
export const load = __napiModule.exports.load
|
|
72
|
-
export const transform = __napiModule.exports.transform
|
|
73
|
-
export const transformAsync = __napiModule.exports.transformAsync
|
package/oxc-node.wasi.cjs
CHANGED
|
@@ -77,28 +77,16 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
|
|
|
77
77
|
return importObject
|
|
78
78
|
},
|
|
79
79
|
beforeInit({ instance }) {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
for (const name of Object.keys(instance.exports)) {
|
|
81
|
+
if (name.startsWith('__napi_register__')) {
|
|
82
|
+
instance.exports[name]()
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
82
86
|
})
|
|
83
87
|
|
|
84
|
-
function __napi_rs_initialize_modules(__napiInstance) {
|
|
85
|
-
__napiInstance.exports['__napi_register__init_tracing_0']?.()
|
|
86
|
-
__napiInstance.exports['__napi_register__Output_struct_1']?.()
|
|
87
|
-
__napiInstance.exports['__napi_register__Output_impl_4']?.()
|
|
88
|
-
__napiInstance.exports['__napi_register__transform_5']?.()
|
|
89
|
-
__napiInstance.exports['__napi_register__TransformTask_impl_6']?.()
|
|
90
|
-
__napiInstance.exports['__napi_register__transform_async_7']?.()
|
|
91
|
-
__napiInstance.exports['__napi_register__ResolveContext_struct_8']?.()
|
|
92
|
-
__napiInstance.exports['__napi_register__ResolveFnOutput_struct_9']?.()
|
|
93
|
-
__napiInstance.exports['__napi_register__OxcResolveOptions_struct_10']?.()
|
|
94
|
-
__napiInstance.exports['__napi_register__create_resolve_11']?.()
|
|
95
|
-
__napiInstance.exports['__napi_register__LoadContext_struct_12']?.()
|
|
96
|
-
__napiInstance.exports['__napi_register__LoadFnOutput_struct_13']?.()
|
|
97
|
-
__napiInstance.exports['__napi_register__load_14']?.()
|
|
98
|
-
}
|
|
99
88
|
module.exports.Output = __napiModule.exports.Output
|
|
89
|
+
module.exports.OxcTransformer = __napiModule.exports.OxcTransformer
|
|
100
90
|
module.exports.createResolve = __napiModule.exports.createResolve
|
|
101
91
|
module.exports.initTracing = __napiModule.exports.initTracing
|
|
102
92
|
module.exports.load = __napiModule.exports.load
|
|
103
|
-
module.exports.transform = __napiModule.exports.transform
|
|
104
|
-
module.exports.transformAsync = __napiModule.exports.transformAsync
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-node/core-wasm32-wasi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"browser": "oxc-node.wasi-browser.js",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@napi-rs/wasm-runtime": "^0.2.
|
|
29
|
+
"@napi-rs/wasm-runtime": "^0.2.8"
|
|
30
30
|
}
|
|
31
31
|
}
|