Skip to content

Commit b3a8654

Browse files
committed
chore(*): update wasi browser binding
1 parent 5b22f19 commit b3a8654

15 files changed

+28
-64
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"postinstall": "husky install"
2525
},
2626
"devDependencies": {
27-
"@napi-rs/cli": "^3.0.0-alpha.53",
27+
"@napi-rs/cli": "^3.0.0-alpha.54",
2828
"@napi-rs/wasm-runtime": "^0.2.3",
2929
"@swc-node/core": "^1.13.0",
3030
"@swc-node/register": "^1.9.0",
3131
"@swc/core": "^1.4.16",
3232
"@taplo/cli": "^0.7.0",
33-
"@tybys/wasm-util": "^0.8.1",
33+
"@tybys/wasm-util": "^0.8.3",
3434
"@types/node": "^20.12.7",
3535
"ava": "^6.1.2",
3636
"benchmark": "^2.1.4",

packages/argon2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"version": "napi version && git add npm"
6363
},
6464
"devDependencies": {
65-
"@napi-rs/cli": "^3.0.0-alpha.53",
65+
"@napi-rs/cli": "^3.0.0-alpha.54",
6666
"argon2": "^0.40.1",
6767
"cross-env": "^7.0.3"
6868
}

packages/argon2/wasi-worker-browser.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime'
2-
3-
const fs = null
1+
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
42

53
const handler = new MessageHandler({
64
onLoad({ wasmModule, wasmMemory }) {
75
const wasi = new WASI({
8-
fs,
9-
preopens: {
10-
'/': '/',
11-
},
126
print: function () {
137
// eslint-disable-next-line no-console
148
console.log.apply(console, arguments)

packages/bcrypt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"url": "https://github.com/napi-rs/node-rs/issues"
7171
},
7272
"devDependencies": {
73-
"@napi-rs/cli": "^3.0.0-alpha.53",
73+
"@napi-rs/cli": "^3.0.0-alpha.54",
7474
"@types/bcrypt": "^5.0.2",
7575
"bcrypt": "^5.1.1",
7676
"bcryptjs": "^2.4.3",

packages/bcrypt/wasi-worker-browser.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime'
2-
3-
const fs = null
1+
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
42

53
const handler = new MessageHandler({
64
onLoad({ wasmModule, wasmMemory }) {
75
const wasi = new WASI({
8-
fs,
9-
preopens: {
10-
'/': '/',
11-
},
126
print: function () {
137
// eslint-disable-next-line no-console
148
console.log.apply(console, arguments)

packages/crc32/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"url": "https://github.com/napi-rs/node-rs/issues"
6565
},
6666
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.53",
67+
"@napi-rs/cli": "^3.0.0-alpha.54",
6868
"@types/crc": "^3.8.3",
6969
"buffer": "^6.0.3",
7070
"crc": "^4.3.2",

packages/crc32/wasi-worker-browser.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime'
2-
3-
const fs = null
1+
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
42

53
const handler = new MessageHandler({
64
onLoad({ wasmModule, wasmMemory }) {
75
const wasi = new WASI({
8-
fs,
9-
preopens: {
10-
'/': '/',
11-
},
126
print: function () {
137
// eslint-disable-next-line no-console
148
console.log.apply(console, arguments)

packages/deno-lint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"typanion": "^3.14.0"
7474
},
7575
"devDependencies": {
76-
"@napi-rs/cli": "^3.0.0-alpha.53",
76+
"@napi-rs/cli": "^3.0.0-alpha.54",
7777
"@types/webpack": "^5.28.5"
7878
},
7979
"funding": {

packages/jieba/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"url": "https://github.com/napi-rs/node-rs/issues"
6565
},
6666
"devDependencies": {
67-
"@napi-rs/cli": "^3.0.0-alpha.53",
67+
"@napi-rs/cli": "^3.0.0-alpha.54",
6868
"nodejieba": "^2.6.0"
6969
},
7070
"funding": {

packages/jieba/wasi-worker-browser.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { instantiateNapiModuleSync, MessageHandler, WASI, createFsProxy } from '@napi-rs/wasm-runtime'
2-
3-
const fs = null
1+
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
42

53
const handler = new MessageHandler({
64
onLoad({ wasmModule, wasmMemory }) {
75
const wasi = new WASI({
8-
fs,
9-
preopens: {
10-
'/': '/',
11-
},
126
print: function () {
137
// eslint-disable-next-line no-console
148
console.log.apply(console, arguments)

0 commit comments

Comments
 (0)