From a1d404566142863fac116029b5f101b07314f1cc Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Thu, 14 Dec 2023 23:01:55 +0800 Subject: [PATCH 1/2] fix: Update the `OptionOptions` type definition to accept `Uint8Array` as `stdin`, rather than `ArrayBuffer` --- src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.rs b/src/options.rs index 8df92dcea20..723e534133c 100644 --- a/src/options.rs +++ b/src/options.rs @@ -29,7 +29,7 @@ type CommonOptions = { /** Environment variables to set. */ env?: Record; /** The standard input stream. */ - stdin?: string | ArrayBuffer; + stdin?: string | Uint8Array; /** * Directories that should be mounted inside the WASIX instance. * From 1dd52c95a77ae70acc479b8eba8dbdf77707cdad Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Thu, 14 Dec 2023 23:02:04 +0800 Subject: [PATCH 2/2] Bumping the `package-lock.json` file --- examples/wasmer.sh/package-lock.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/wasmer.sh/package-lock.json b/examples/wasmer.sh/package-lock.json index 4cd7af0e947..2c9515720d2 100644 --- a/examples/wasmer.sh/package-lock.json +++ b/examples/wasmer.sh/package-lock.json @@ -19,24 +19,22 @@ }, "../..": { "name": "@wasmer/sdk", - "version": "0.4.1", + "version": "0.5.0", "license": "MIT", "devDependencies": { + "@babel/preset-env": "^7.23.3", "@esm-bundle/chai": "^4.3.4-fix.0", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.5", - "@rollup/plugin-url": "^8.0.1", + "@rollup/plugin-wasm": "^6.2.2", "@web/dev-server-esbuild": "^1.0.1", "@web/test-runner": "^0.18.0", "prettier": "^3.1.0", "rimraf": "^5.0.5", "rollup": "^4.8.0", + "rollup-plugin-copy": "^3.5.0", "rollup-plugin-dts": "^6.1.0", - "rollup-plugin-node-polyfills": "^0.2.1", - "rollup-plugin-typescript2": "^0.36.0", - "ts-loader": "^9.2.6", - "tslib": "^2.3.1", "typedoc": "^0.25.4", "typescript": "^5.3.3" }