@bytecodealliance/jco 0.10.3 → 0.11.1
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 +15 -2
- package/lib/wasi_snapshot_preview1.command.wasm +0 -0
- package/lib/wasi_snapshot_preview1.reactor.wasm +0 -0
- package/obj/exports/local-wasm-tools-tools.d.ts +43 -0
- package/obj/{interfaces/environment.d.ts → exports/wasi-cli-environment.d.ts} +1 -1
- package/obj/{interfaces/exit.d.ts → exports/wasi-cli-exit.d.ts} +1 -1
- package/obj/exports/wasi-cli-stderr.d.ts +5 -0
- package/obj/exports/wasi-cli-stdin.d.ts +5 -0
- package/obj/exports/wasi-cli-stdout.d.ts +5 -0
- package/obj/exports/wasi-cli-terminal-input.d.ts +4 -0
- package/obj/exports/wasi-cli-terminal-output.d.ts +4 -0
- package/obj/exports/wasi-cli-terminal-stderr.d.ts +5 -0
- package/obj/exports/wasi-cli-terminal-stdin.d.ts +5 -0
- package/obj/exports/wasi-cli-terminal-stdout.d.ts +5 -0
- package/obj/exports/wasi-filesystem-preopens.d.ts +5 -0
- package/obj/{interfaces/filesystem.d.ts → exports/wasi-filesystem-types.d.ts} +17 -16
- package/obj/exports/wasi-io-streams.d.ts +18 -0
- package/obj/imports/{wasi-cli-base-environment.d.ts → wasi-cli-environment.d.ts} +1 -1
- package/obj/{interfaces/wasi-cli-base-exit.d.ts → imports/wasi-cli-exit.d.ts} +1 -1
- package/obj/imports/{wasi-cli-base-stderr.d.ts → wasi-cli-stderr.d.ts} +1 -1
- package/obj/imports/{wasi-cli-base-stdin.d.ts → wasi-cli-stdin.d.ts} +1 -1
- package/obj/imports/{wasi-cli-base-stdout.d.ts → wasi-cli-stdout.d.ts} +1 -1
- package/obj/imports/wasi-cli-terminal-input.d.ts +4 -0
- package/obj/imports/wasi-cli-terminal-output.d.ts +4 -0
- package/obj/imports/wasi-cli-terminal-stderr.d.ts +5 -0
- package/obj/imports/wasi-cli-terminal-stdin.d.ts +5 -0
- package/obj/imports/wasi-cli-terminal-stdout.d.ts +5 -0
- package/obj/imports/wasi-filesystem-preopens.d.ts +5 -0
- package/obj/imports/{wasi-filesystem-filesystem.d.ts → wasi-filesystem-types.d.ts} +14 -13
- package/obj/imports/wasi-io-streams.d.ts +6 -9
- package/obj/js-component-bindgen-component.component.wasm +0 -0
- package/obj/js-component-bindgen-component.core.wasm +0 -0
- package/obj/js-component-bindgen-component.core2.wasm +0 -0
- package/obj/js-component-bindgen-component.d.ts +12 -7
- package/obj/js-component-bindgen-component.js +365 -117
- package/obj/wasm-tools.component.wasm +0 -0
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.core2.wasm +0 -0
- package/obj/wasm-tools.d.ts +14 -48
- package/obj/wasm-tools.js +386 -127
- package/package.json +7 -4
- package/src/api.js +2 -1
- package/src/browser.js +3 -0
- package/src/cmd/opt.js +2 -1
- package/src/cmd/run.js +103 -0
- package/src/cmd/transpile.js +4 -3
- package/src/cmd/wasm-tools.js +10 -3
- package/src/jco.js +11 -1
- package/obj/imports/wasi-cli-base-exit.d.ts +0 -4
- package/obj/imports/wasi-cli-base-preopens.d.ts +0 -5
- package/obj/interfaces/preopens.d.ts +0 -5
- package/obj/interfaces/random.d.ts +0 -3
- package/obj/interfaces/stderr.d.ts +0 -5
- package/obj/interfaces/stdin.d.ts +0 -5
- package/obj/interfaces/stdout.d.ts +0 -5
- package/obj/interfaces/streams.d.ts +0 -21
- package/obj/interfaces/wall-clock.d.ts +0 -6
- package/obj/interfaces/wasi-cli-base-environment.d.ts +0 -3
- package/obj/interfaces/wasi-cli-base-preopens.d.ts +0 -5
- package/obj/interfaces/wasi-cli-base-stderr.d.ts +0 -5
- package/obj/interfaces/wasi-cli-base-stdin.d.ts +0 -5
- package/obj/interfaces/wasi-cli-base-stdout.d.ts +0 -5
- package/obj/interfaces/wasi-filesystem-filesystem.d.ts +0 -152
- package/obj/interfaces/wasi-io-streams.d.ts +0 -21
- /package/obj/{interfaces → exports}/wasi-clocks-wall-clock.d.ts +0 -0
- /package/obj/{interfaces → exports}/wasi-random-random.d.ts +0 -0
|
Binary file
|
package/obj/wasm-tools.core.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/obj/wasm-tools.d.ts
CHANGED
|
@@ -1,53 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type ProducersFields = [string, [string, string][]][];
|
|
12
|
-
export interface EmbedOpts {
|
|
13
|
-
binary?: Uint8Array,
|
|
14
|
-
witSource?: string,
|
|
15
|
-
witPath?: string,
|
|
16
|
-
stringEncoding?: StringEncoding,
|
|
17
|
-
dummy?: boolean,
|
|
18
|
-
world?: string,
|
|
19
|
-
metadata?: ProducersFields,
|
|
20
|
-
}
|
|
21
|
-
export type ModuleMetaType = ModuleMetaTypeModule | ModuleMetaTypeComponent;
|
|
22
|
-
export interface ModuleMetaTypeModule {
|
|
23
|
-
tag: 'module',
|
|
24
|
-
}
|
|
25
|
-
export interface ModuleMetaTypeComponent {
|
|
26
|
-
tag: 'component',
|
|
27
|
-
val: number,
|
|
28
|
-
}
|
|
29
|
-
export interface ModuleMetadata {
|
|
30
|
-
name?: string,
|
|
31
|
-
metaType: ModuleMetaType,
|
|
32
|
-
range: [number, number],
|
|
33
|
-
producers: ProducersFields,
|
|
34
|
-
}
|
|
35
|
-
import { WasiCliBaseEnvironment } from './imports/wasi-cli-base-environment';
|
|
36
|
-
import { WasiCliBaseExit } from './imports/wasi-cli-base-exit';
|
|
37
|
-
import { WasiCliBasePreopens } from './imports/wasi-cli-base-preopens';
|
|
38
|
-
import { WasiCliBaseStderr } from './imports/wasi-cli-base-stderr';
|
|
39
|
-
import { WasiCliBaseStdin } from './imports/wasi-cli-base-stdin';
|
|
40
|
-
import { WasiCliBaseStdout } from './imports/wasi-cli-base-stdout';
|
|
1
|
+
import { WasiCliEnvironment } from './imports/wasi-cli-environment';
|
|
2
|
+
import { WasiCliExit } from './imports/wasi-cli-exit';
|
|
3
|
+
import { WasiCliStderr } from './imports/wasi-cli-stderr';
|
|
4
|
+
import { WasiCliStdin } from './imports/wasi-cli-stdin';
|
|
5
|
+
import { WasiCliStdout } from './imports/wasi-cli-stdout';
|
|
6
|
+
import { WasiCliTerminalInput } from './imports/wasi-cli-terminal-input';
|
|
7
|
+
import { WasiCliTerminalOutput } from './imports/wasi-cli-terminal-output';
|
|
8
|
+
import { WasiCliTerminalStderr } from './imports/wasi-cli-terminal-stderr';
|
|
9
|
+
import { WasiCliTerminalStdin } from './imports/wasi-cli-terminal-stdin';
|
|
10
|
+
import { WasiCliTerminalStdout } from './imports/wasi-cli-terminal-stdout';
|
|
41
11
|
import { WasiClocksWallClock } from './imports/wasi-clocks-wall-clock';
|
|
42
|
-
import {
|
|
12
|
+
import { WasiFilesystemPreopens } from './imports/wasi-filesystem-preopens';
|
|
13
|
+
import { WasiFilesystemTypes } from './imports/wasi-filesystem-types';
|
|
43
14
|
import { WasiIoStreams } from './imports/wasi-io-streams';
|
|
44
15
|
import { WasiRandomRandom } from './imports/wasi-random-random';
|
|
45
|
-
|
|
46
|
-
export
|
|
47
|
-
export function componentNew(binary: Uint8Array | ArrayBuffer, adapters: [string, Uint8Array | ArrayBuffer][] | null): Uint8Array;
|
|
48
|
-
export function componentWit(binary: Uint8Array | ArrayBuffer): string;
|
|
49
|
-
export function componentEmbed(embedOpts: EmbedOpts): Uint8Array;
|
|
50
|
-
export function metadataShow(binary: Uint8Array | ArrayBuffer): ModuleMetadata[];
|
|
51
|
-
export function metadataAdd(binary: Uint8Array | ArrayBuffer, metadata: ProducersFields): Uint8Array;
|
|
16
|
+
import { LocalWasmToolsTools } from './exports/local-wasm-tools-tools';
|
|
17
|
+
export const tools: typeof LocalWasmToolsTools;
|
|
52
18
|
|
|
53
19
|
export const $init: Promise<void>;
|