Skip to content

Commit 02d2bd9

Browse files
authored
fix(*): update browser worker bindings (#830)
1 parent fe7fafd commit 02d2bd9

15 files changed

+26
-56
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"postinstall": "husky install"
2525
},
2626
"devDependencies": {
27-
"@napi-rs/cli": "^3.0.0-alpha.51",
27+
"@napi-rs/cli": "^3.0.0-alpha.52",
2828
"@napi-rs/wasm-runtime": "^0.2.0",
2929
"@swc-node/core": "^1.13.0",
3030
"@swc-node/register": "^1.9.0",

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.51",
65+
"@napi-rs/cli": "^3.0.0-alpha.52",
6666
"argon2": "^0.40.1",
6767
"cross-env": "^7.0.3"
6868
}

packages/argon2/wasi-worker-browser.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

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.51",
73+
"@napi-rs/cli": "^3.0.0-alpha.52",
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

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.51",
67+
"@napi-rs/cli": "^3.0.0-alpha.52",
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

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.51",
76+
"@napi-rs/cli": "^3.0.0-alpha.52",
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.51",
67+
"@napi-rs/cli": "^3.0.0-alpha.52",
6868
"nodejieba": "^2.6.0"
6969
},
7070
"funding": {

packages/jieba/wasi-worker-browser.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
2-
import { Volume, createFsFromVolume } from '@napi-rs/wasm-runtime/fs'
32

4-
const fs = createFsFromVolume(
5-
Volume.fromJSON({
6-
'/': null,
7-
}),
8-
)
3+
const fs = null
94

105
const handler = new MessageHandler({
116
onLoad({ wasmModule, wasmMemory }) {

0 commit comments

Comments
 (0)