@supermachine/core 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -477,10 +477,11 @@ export declare class Vm {
|
|
|
477
477
|
writeFile(path: string, bytes: Buffer): Promise<void>
|
|
478
478
|
/**
|
|
479
479
|
* Read `path` from inside the guest, return bytes. Native
|
|
480
|
-
* vsock RPC, ~100 µs round-trip.
|
|
481
|
-
*
|
|
480
|
+
* vsock RPC, ~100 µs round-trip. Default cap is 32 MiB (raised
|
|
481
|
+
* from 4 MiB in 0.5.0); pass `maxBytes` for larger files, or
|
|
482
|
+
* stream via `exec('cat ...')` for unbounded reads.
|
|
482
483
|
*/
|
|
483
|
-
readFile(path: string): Promise<Buffer>
|
|
484
|
+
readFile(path: string, maxBytes?: bigint | undefined | null): Promise<Buffer>
|
|
484
485
|
/**
|
|
485
486
|
* Spawn a process inside the guest and return a streaming
|
|
486
487
|
* [`ExecChild`] handle. Unlike `exec()` which collects
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supermachine/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Run any OCI/Docker image as a hardware-isolated microVM. Node/Bun/Deno binding for the supermachine Rust crate.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"arm64"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@supermachine/core-darwin-arm64": "0.5.
|
|
25
|
+
"@supermachine/core-darwin-arm64": "0.5.2"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build:rust": "TYPE_DEF_TMP_PATH=$(pwd)/scripts/.napi_type_defs.tmp cargo build --release -p supermachine-napi && cargo build --release --bin supermachine-worker -p supermachine",
|