@bytecodealliance/jco 0.11.2 → 0.12.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/lib/wasi_snapshot_preview1.command.wasm +0 -0
- package/lib/wasi_snapshot_preview1.reactor.wasm +0 -0
- package/obj/{exports → interfaces}/local-wasm-tools-tools.d.ts +5 -5
- package/obj/{imports → interfaces}/wasi-cli-stderr.d.ts +1 -1
- package/obj/{exports → interfaces}/wasi-cli-stdin.d.ts +1 -1
- package/obj/{exports → interfaces}/wasi-cli-stdout.d.ts +1 -1
- package/obj/interfaces/wasi-cli-terminal-stderr.d.ts +5 -0
- package/obj/interfaces/wasi-cli-terminal-stdin.d.ts +5 -0
- package/obj/interfaces/wasi-cli-terminal-stdout.d.ts +5 -0
- package/obj/{exports → interfaces}/wasi-filesystem-preopens.d.ts +1 -1
- package/obj/{exports → interfaces}/wasi-filesystem-types.d.ts +3 -3
- package/obj/{exports → interfaces}/wasi-io-streams.d.ts +12 -2
- 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 +17 -16
- package/obj/js-component-bindgen-component.js +263 -162
- 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 +16 -16
- package/obj/wasm-tools.js +208 -115
- package/package.json +3 -3
- package/src/cmd/transpile.js +3 -1
- package/src/cmd/wasm-tools.js +1 -1
- package/src/jco.js +2 -1
- package/obj/exports/wasi-cli-stderr.d.ts +0 -5
- package/obj/exports/wasi-cli-terminal-stderr.d.ts +0 -5
- package/obj/exports/wasi-cli-terminal-stdin.d.ts +0 -5
- package/obj/exports/wasi-cli-terminal-stdout.d.ts +0 -5
- package/obj/imports/wasi-cli-environment.d.ts +0 -3
- package/obj/imports/wasi-cli-exit.d.ts +0 -4
- package/obj/imports/wasi-cli-stdin.d.ts +0 -5
- package/obj/imports/wasi-cli-stdout.d.ts +0 -5
- package/obj/imports/wasi-cli-terminal-input.d.ts +0 -4
- package/obj/imports/wasi-cli-terminal-output.d.ts +0 -4
- package/obj/imports/wasi-cli-terminal-stderr.d.ts +0 -5
- package/obj/imports/wasi-cli-terminal-stdin.d.ts +0 -5
- package/obj/imports/wasi-cli-terminal-stdout.d.ts +0 -5
- package/obj/imports/wasi-clocks-wall-clock.d.ts +0 -6
- package/obj/imports/wasi-filesystem-preopens.d.ts +0 -5
- package/obj/imports/wasi-filesystem-types.d.ts +0 -153
- package/obj/imports/wasi-io-streams.d.ts +0 -18
- package/obj/imports/wasi-random-random.d.ts +0 -3
- /package/obj/{exports → interfaces}/wasi-cli-environment.d.ts +0 -0
- /package/obj/{exports → interfaces}/wasi-cli-exit.d.ts +0 -0
- /package/obj/{exports → interfaces}/wasi-cli-terminal-input.d.ts +0 -0
- /package/obj/{exports → interfaces}/wasi-cli-terminal-output.d.ts +0 -0
- /package/obj/{exports → interfaces}/wasi-clocks-wall-clock.d.ts +0 -0
- /package/obj/{exports → interfaces}/wasi-random-random.d.ts +0 -0
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
export namespace WasiFilesystemTypes {
|
|
2
|
-
export function readViaStream(this_: Descriptor, offset: Filesize): InputStream;
|
|
3
|
-
export function writeViaStream(this_: Descriptor, offset: Filesize): OutputStream;
|
|
4
|
-
export function appendViaStream(this_: Descriptor): OutputStream;
|
|
5
|
-
export function getType(this_: Descriptor): DescriptorType;
|
|
6
|
-
export function stat(this_: Descriptor): DescriptorStat;
|
|
7
|
-
export function openAt(this_: Descriptor, pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags, modes: Modes): Descriptor;
|
|
8
|
-
export function dropDescriptor(this_: Descriptor): void;
|
|
9
|
-
export function dropDirectoryEntryStream(this_: DirectoryEntryStream): void;
|
|
10
|
-
export function metadataHash(this_: Descriptor): MetadataHashValue;
|
|
11
|
-
}
|
|
12
|
-
export type Descriptor = number;
|
|
13
|
-
export type Filesize = bigint;
|
|
14
|
-
import type { InputStream } from '../imports/wasi-io-streams';
|
|
15
|
-
export { InputStream };
|
|
16
|
-
/**
|
|
17
|
-
* # Variants
|
|
18
|
-
*
|
|
19
|
-
* ## `"access"`
|
|
20
|
-
*
|
|
21
|
-
* ## `"would-block"`
|
|
22
|
-
*
|
|
23
|
-
* ## `"already"`
|
|
24
|
-
*
|
|
25
|
-
* ## `"bad-descriptor"`
|
|
26
|
-
*
|
|
27
|
-
* ## `"busy"`
|
|
28
|
-
*
|
|
29
|
-
* ## `"deadlock"`
|
|
30
|
-
*
|
|
31
|
-
* ## `"quota"`
|
|
32
|
-
*
|
|
33
|
-
* ## `"exist"`
|
|
34
|
-
*
|
|
35
|
-
* ## `"file-too-large"`
|
|
36
|
-
*
|
|
37
|
-
* ## `"illegal-byte-sequence"`
|
|
38
|
-
*
|
|
39
|
-
* ## `"in-progress"`
|
|
40
|
-
*
|
|
41
|
-
* ## `"interrupted"`
|
|
42
|
-
*
|
|
43
|
-
* ## `"invalid"`
|
|
44
|
-
*
|
|
45
|
-
* ## `"io"`
|
|
46
|
-
*
|
|
47
|
-
* ## `"is-directory"`
|
|
48
|
-
*
|
|
49
|
-
* ## `"loop"`
|
|
50
|
-
*
|
|
51
|
-
* ## `"too-many-links"`
|
|
52
|
-
*
|
|
53
|
-
* ## `"message-size"`
|
|
54
|
-
*
|
|
55
|
-
* ## `"name-too-long"`
|
|
56
|
-
*
|
|
57
|
-
* ## `"no-device"`
|
|
58
|
-
*
|
|
59
|
-
* ## `"no-entry"`
|
|
60
|
-
*
|
|
61
|
-
* ## `"no-lock"`
|
|
62
|
-
*
|
|
63
|
-
* ## `"insufficient-memory"`
|
|
64
|
-
*
|
|
65
|
-
* ## `"insufficient-space"`
|
|
66
|
-
*
|
|
67
|
-
* ## `"not-directory"`
|
|
68
|
-
*
|
|
69
|
-
* ## `"not-empty"`
|
|
70
|
-
*
|
|
71
|
-
* ## `"not-recoverable"`
|
|
72
|
-
*
|
|
73
|
-
* ## `"unsupported"`
|
|
74
|
-
*
|
|
75
|
-
* ## `"no-tty"`
|
|
76
|
-
*
|
|
77
|
-
* ## `"no-such-device"`
|
|
78
|
-
*
|
|
79
|
-
* ## `"overflow"`
|
|
80
|
-
*
|
|
81
|
-
* ## `"not-permitted"`
|
|
82
|
-
*
|
|
83
|
-
* ## `"pipe"`
|
|
84
|
-
*
|
|
85
|
-
* ## `"read-only"`
|
|
86
|
-
*
|
|
87
|
-
* ## `"invalid-seek"`
|
|
88
|
-
*
|
|
89
|
-
* ## `"text-file-busy"`
|
|
90
|
-
*
|
|
91
|
-
* ## `"cross-device"`
|
|
92
|
-
*/
|
|
93
|
-
export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
|
|
94
|
-
import type { OutputStream } from '../imports/wasi-io-streams';
|
|
95
|
-
export { OutputStream };
|
|
96
|
-
/**
|
|
97
|
-
* # Variants
|
|
98
|
-
*
|
|
99
|
-
* ## `"unknown"`
|
|
100
|
-
*
|
|
101
|
-
* ## `"block-device"`
|
|
102
|
-
*
|
|
103
|
-
* ## `"character-device"`
|
|
104
|
-
*
|
|
105
|
-
* ## `"directory"`
|
|
106
|
-
*
|
|
107
|
-
* ## `"fifo"`
|
|
108
|
-
*
|
|
109
|
-
* ## `"symbolic-link"`
|
|
110
|
-
*
|
|
111
|
-
* ## `"regular-file"`
|
|
112
|
-
*
|
|
113
|
-
* ## `"socket"`
|
|
114
|
-
*/
|
|
115
|
-
export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
|
|
116
|
-
export type LinkCount = bigint;
|
|
117
|
-
import type { Datetime } from '../imports/wasi-clocks-wall-clock';
|
|
118
|
-
export { Datetime };
|
|
119
|
-
export interface DescriptorStat {
|
|
120
|
-
type: DescriptorType,
|
|
121
|
-
linkCount: LinkCount,
|
|
122
|
-
size: Filesize,
|
|
123
|
-
dataAccessTimestamp: Datetime,
|
|
124
|
-
dataModificationTimestamp: Datetime,
|
|
125
|
-
statusChangeTimestamp: Datetime,
|
|
126
|
-
}
|
|
127
|
-
export interface PathFlags {
|
|
128
|
-
symlinkFollow?: boolean,
|
|
129
|
-
}
|
|
130
|
-
export interface OpenFlags {
|
|
131
|
-
create?: boolean,
|
|
132
|
-
directory?: boolean,
|
|
133
|
-
exclusive?: boolean,
|
|
134
|
-
truncate?: boolean,
|
|
135
|
-
}
|
|
136
|
-
export interface DescriptorFlags {
|
|
137
|
-
read?: boolean,
|
|
138
|
-
write?: boolean,
|
|
139
|
-
fileIntegritySync?: boolean,
|
|
140
|
-
dataIntegritySync?: boolean,
|
|
141
|
-
requestedWriteSync?: boolean,
|
|
142
|
-
mutateDirectory?: boolean,
|
|
143
|
-
}
|
|
144
|
-
export interface Modes {
|
|
145
|
-
readable?: boolean,
|
|
146
|
-
writable?: boolean,
|
|
147
|
-
executable?: boolean,
|
|
148
|
-
}
|
|
149
|
-
export type DirectoryEntryStream = number;
|
|
150
|
-
export interface MetadataHashValue {
|
|
151
|
-
lower: bigint,
|
|
152
|
-
upper: bigint,
|
|
153
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export namespace WasiIoStreams {
|
|
2
|
-
export function read(this_: InputStream, len: bigint): [Uint8Array | ArrayBuffer, StreamStatus];
|
|
3
|
-
export function blockingRead(this_: InputStream, len: bigint): [Uint8Array | ArrayBuffer, StreamStatus];
|
|
4
|
-
export function dropInputStream(this_: InputStream): void;
|
|
5
|
-
export function write(this_: OutputStream, buf: Uint8Array): [bigint, StreamStatus];
|
|
6
|
-
export function blockingWrite(this_: OutputStream, buf: Uint8Array): [bigint, StreamStatus];
|
|
7
|
-
export function dropOutputStream(this_: OutputStream): void;
|
|
8
|
-
}
|
|
9
|
-
export type InputStream = number;
|
|
10
|
-
/**
|
|
11
|
-
* # Variants
|
|
12
|
-
*
|
|
13
|
-
* ## `"open"`
|
|
14
|
-
*
|
|
15
|
-
* ## `"ended"`
|
|
16
|
-
*/
|
|
17
|
-
export type StreamStatus = 'open' | 'ended';
|
|
18
|
-
export type OutputStream = number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|