Skip to content

Commit

Permalink
chore: update napi changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Oct 22, 2024
1 parent f935ecd commit ee87dbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions napi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,15 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
nativeBinding = require('./resolver.wasi.cjs')
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
console.error(err)
loadErrors.push(err)
}
}
if (!nativeBinding) {
try {
nativeBinding = require('@oxc-resolver/binding-wasm32-wasi')
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
console.error(err)
loadErrors.push(err)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion napi/resolver.wasi-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const {
const worker = new Worker(new URL('./wasi-worker-browser.mjs', import.meta.url), {
type: 'module',
})

worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs))

return worker
Expand Down
2 changes: 1 addition & 1 deletion napi/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub struct NapiResolveOptions {
}

#[napi]
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EnforceExtension {
Auto,
Enabled,
Expand Down

0 comments on commit ee87dbc

Please sign in to comment.