@bytecodealliance/jco 1.1.0 → 1.2.0
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/README.md +0 -2
- package/obj/interfaces/wasi-io-streams.d.ts +5 -5
- package/obj/js-component-bindgen-component.core.wasm +0 -0
- package/obj/js-component-bindgen-component.js +1193 -233
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.js +10 -20
- package/package.json +8 -5
- package/src/api.d.ts +1 -1
- package/src/api.js +1 -1
- package/src/cmd/componentize.d.ts.map +1 -1
- package/src/cmd/componentize.js +3 -3
- package/src/cmd/run.js +6 -2
- package/src/cmd/transpile.d.ts +30 -1
- package/src/cmd/transpile.d.ts.map +1 -1
- package/src/cmd/transpile.js +56 -16
- package/src/jco.js +17 -5
- package/lib/console.js +0 -7
- package/obj/js-component-bindgen-component.component.wasm +0 -0
- package/obj/js-component-bindgen-component.core2.wasm +0 -0
- package/obj/wasm-tools.component.wasm +0 -0
- package/obj/wasm-tools.core2.wasm +0 -0
package/README.md
CHANGED
|
@@ -150,8 +150,6 @@ Currently requires an explicit install of the componentize-js engine via `npm in
|
|
|
150
150
|
|
|
151
151
|
See [ComponentizeJS](https://github.com/bytecodealliance/componentize-js) for more details on this process.
|
|
152
152
|
|
|
153
|
-
> Additional engines might be supported in future via an `--engine` field or otherwise.
|
|
154
|
-
|
|
155
153
|
## API
|
|
156
154
|
|
|
157
155
|
#### `transpile(component: Uint8Array, opts?): Promise<{ files: Record<string, Uint8Array> }>`
|
|
@@ -13,14 +13,14 @@ export interface StreamErrorClosed {
|
|
|
13
13
|
tag: 'closed',
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export class InputStream {
|
|
17
|
+
read(len: bigint): Uint8Array;
|
|
18
|
+
blockingRead(len: bigint): Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
export class OutputStream {
|
|
17
22
|
checkWrite(): bigint;
|
|
18
23
|
write(contents: Uint8Array): void;
|
|
19
24
|
blockingWriteAndFlush(contents: Uint8Array): void;
|
|
20
25
|
blockingFlush(): void;
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
export class InputStream {
|
|
24
|
-
read(len: bigint): Uint8Array;
|
|
25
|
-
blockingRead(len: bigint): Uint8Array;
|
|
26
|
-
}
|
|
Binary file
|