@oxc-resolver/binding-wasm32-wasi
Advanced tools
Comparing version 2.1.1 to 3.0.0
{ | ||
"name": "@oxc-resolver/binding-wasm32-wasi", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"cpu": [ | ||
@@ -5,0 +5,0 @@ "wasm32" |
import { | ||
createOnMessage as __wasmCreateOnMessageForFsProxy, | ||
getDefaultContext as __emnapiGetDefaultContext, | ||
instantiateNapiModuleSync as __emnapiInstantiateNapiModuleSync, | ||
getDefaultContext as __emnapiGetDefaultContext, | ||
WASI as __WASI, | ||
createOnMessage as __wasmCreateOnMessageForFsProxy, | ||
} from '@napi-rs/wasm-runtime' | ||
import { memfs } from '@napi-rs/wasm-runtime/fs' | ||
import __wasmUrl from './resolver.wasm32-wasi.wasm?url' | ||
} from '@napi-rs/wasm-runtime'; | ||
import { memfs } from '@napi-rs/wasm-runtime/fs'; | ||
import __wasmUrl from './resolver.wasm32-wasi.wasm?url'; | ||
export const { fs: __fs, vol: __volume } = memfs() | ||
export const { fs: __fs, vol: __volume } = memfs(); | ||
@@ -17,6 +17,6 @@ const __wasi = new __WASI({ | ||
'/': '/', | ||
} | ||
}) | ||
}, | ||
}); | ||
const __emnapiContext = __emnapiGetDefaultContext() | ||
const __emnapiContext = __emnapiGetDefaultContext(); | ||
@@ -27,5 +27,5 @@ const __sharedMemory = new WebAssembly.Memory({ | ||
shared: true, | ||
}) | ||
}); | ||
const __wasmFile = await fetch(__wasmUrl).then((res) => res.arrayBuffer()) | ||
const __wasmFile = await fetch(__wasmUrl).then((res) => res.arrayBuffer()); | ||
@@ -43,6 +43,6 @@ const { | ||
type: 'module', | ||
}) | ||
worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs)) | ||
}); | ||
worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs)); | ||
return worker | ||
return worker; | ||
}, | ||
@@ -55,23 +55,23 @@ overwriteImports(importObject) { | ||
memory: __sharedMemory, | ||
} | ||
return importObject | ||
}; | ||
return importObject; | ||
}, | ||
beforeInit({ instance }) { | ||
__napi_rs_initialize_modules(instance) | ||
__napi_rs_initialize_modules(instance); | ||
}, | ||
}) | ||
}); | ||
function __napi_rs_initialize_modules(__napiInstance) { | ||
__napiInstance.exports['__napi_register__NapiResolveOptions_struct_0']?.() | ||
__napiInstance.exports['__napi_register__EnforceExtension_1']?.() | ||
__napiInstance.exports['__napi_register__Restriction_struct_2']?.() | ||
__napiInstance.exports['__napi_register__TsconfigOptions_struct_3']?.() | ||
__napiInstance.exports['__napi_register__ResolveResult_struct_4']?.() | ||
__napiInstance.exports['__napi_register__sync_5']?.() | ||
__napiInstance.exports['__napi_register__ResolveTask_impl_6']?.() | ||
__napiInstance.exports['__napi_register__ResolverFactory_struct_7']?.() | ||
__napiInstance.exports['__napi_register__ResolverFactory_impl_14']?.() | ||
__napiInstance.exports['__napi_register__NapiResolveOptions_struct_0']?.(); | ||
__napiInstance.exports['__napi_register__EnforceExtension_1']?.(); | ||
__napiInstance.exports['__napi_register__Restriction_struct_2']?.(); | ||
__napiInstance.exports['__napi_register__TsconfigOptions_struct_3']?.(); | ||
__napiInstance.exports['__napi_register__ResolveResult_struct_4']?.(); | ||
__napiInstance.exports['__napi_register__sync_5']?.(); | ||
__napiInstance.exports['__napi_register__ResolveTask_impl_6']?.(); | ||
__napiInstance.exports['__napi_register__ResolverFactory_struct_7']?.(); | ||
__napiInstance.exports['__napi_register__ResolverFactory_impl_14']?.(); | ||
} | ||
export const ResolverFactory = __napiModule.exports.ResolverFactory | ||
export const EnforceExtension = __napiModule.exports.EnforceExtension | ||
export const sync = __napiModule.exports.sync | ||
export const ResolverFactory = __napiModule.exports.ResolverFactory; | ||
export const EnforceExtension = __napiModule.exports.EnforceExtension; | ||
export const sync = __napiModule.exports.sync; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
524415
246