Skip to content

Commit 18e3e8a

Browse files
authored
fix: update binding file (#38)
1 parent c1d2a48 commit 18e3e8a

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,15 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
336336
nativeBinding = require('./tar.wasi.cjs')
337337
} catch (err) {
338338
if (process.env.NAPI_RS_FORCE_WASI) {
339-
console.error(err)
339+
loadErrors.push(err)
340340
}
341341
}
342342
if (!nativeBinding) {
343343
try {
344344
nativeBinding = require('@napi-rs/tar-wasm32-wasi')
345345
} catch (err) {
346346
if (process.env.NAPI_RS_FORCE_WASI) {
347-
console.error(err)
347+
loadErrors.push(err)
348348
}
349349
}
350350
}

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"files": [
1818
"index.d.ts",
1919
"index.js",
20-
"browser.js",
21-
"tar.wasi.cjs",
22-
"tar.wasi-browser.js",
23-
"wasi-worker-browser.mjs",
24-
"wasi-worker.mjs"
20+
"browser.js"
2521
],
2622
"napi": {
2723
"binaryName": "tar",
@@ -39,7 +35,7 @@
3935
"aarch64-unknown-linux-musl",
4036
"aarch64-pc-windows-msvc",
4137
"armv7-linux-androideabi",
42-
"wasm32-wasi-preview1-threads"
38+
"wasm32-wasip1-threads"
4339
]
4440
},
4541
"engines": {
@@ -64,7 +60,7 @@
6460
"version": "napi version"
6561
},
6662
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.60",
63+
"@napi-rs/cli": "^3.0.0-alpha.62",
6864
"@napi-rs/lzma": "^1.3.0",
6965
"@swc-node/register": "^1.9.0",
7066
"@swc/core": "^1.4.17",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ __metadata:
219219
languageName: node
220220
linkType: hard
221221

222-
"@napi-rs/cli@npm:^3.0.0-alpha.60":
223-
version: 3.0.0-alpha.61
224-
resolution: "@napi-rs/cli@npm:3.0.0-alpha.61"
222+
"@napi-rs/cli@npm:^3.0.0-alpha.62":
223+
version: 3.0.0-alpha.62
224+
resolution: "@napi-rs/cli@npm:3.0.0-alpha.62"
225225
dependencies:
226226
"@napi-rs/cross-toolchain": "npm:^0.0.16"
227227
"@napi-rs/wasm-tools": "npm:^0.0.2"
@@ -248,7 +248,7 @@ __metadata:
248248
bin:
249249
napi: ./dist/cli.js
250250
napi-raw: ./cli.mjs
251-
checksum: 10c0/edf4275fcb79573885512587815bf81f07108a4bcc7dd2ec9c8d6eefcd9f2a97ab005f07b9c465c6fcd4aaf3fba0cabbbd0ab089273f35fdaeabc7bd1628503b
251+
checksum: 10c0/5f667d6fe3f31745cbd41ae99b1a2576d36bb43d803493c15ee7d59932aa14b90bcb3a52f8cf76e7a8b52ce0d2fbbc47c6eb3122981ea18761578fc6408380de
252252
languageName: node
253253
linkType: hard
254254

@@ -589,7 +589,7 @@ __metadata:
589589
version: 0.0.0-use.local
590590
resolution: "@napi-rs/tar@workspace:."
591591
dependencies:
592-
"@napi-rs/cli": "npm:^3.0.0-alpha.60"
592+
"@napi-rs/cli": "npm:^3.0.0-alpha.62"
593593
"@napi-rs/lzma": "npm:^1.3.0"
594594
"@swc-node/register": "npm:^1.9.0"
595595
"@swc/core": "npm:^1.4.17"

0 commit comments

Comments
 (0)