@bytecodealliance/jco 1.17.0 → 1.17.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/obj/interfaces/wasi-filesystem-types.d.ts +29 -28
- 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.js +7502 -5885
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.core2.wasm +0 -0
- package/obj/wasm-tools.js +7610 -5943
- package/package.json +1 -1
- package/src/cmd/transpile.js +1 -1
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
/** @module Interface wasi:filesystem/types@0.2.3 **/
|
|
2
2
|
export function filesystemErrorCode(err: Error): ErrorCode | undefined;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* ## `"directory"`
|
|
13
|
-
*
|
|
14
|
-
* ## `"fifo"`
|
|
15
|
-
*
|
|
16
|
-
* ## `"symbolic-link"`
|
|
17
|
-
*
|
|
18
|
-
* ## `"regular-file"`
|
|
19
|
-
*
|
|
20
|
-
* ## `"socket"`
|
|
21
|
-
*/
|
|
22
|
-
export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
|
|
3
|
+
export interface DescriptorFlags {
|
|
4
|
+
read?: boolean,
|
|
5
|
+
write?: boolean,
|
|
6
|
+
fileIntegritySync?: boolean,
|
|
7
|
+
dataIntegritySync?: boolean,
|
|
8
|
+
requestedWriteSync?: boolean,
|
|
9
|
+
mutateDirectory?: boolean,
|
|
10
|
+
}
|
|
23
11
|
/**
|
|
24
12
|
* # Variants
|
|
25
13
|
*
|
|
@@ -98,6 +86,26 @@ export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | '
|
|
|
98
86
|
* ## `"cross-device"`
|
|
99
87
|
*/
|
|
100
88
|
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';
|
|
89
|
+
/**
|
|
90
|
+
* # Variants
|
|
91
|
+
*
|
|
92
|
+
* ## `"unknown"`
|
|
93
|
+
*
|
|
94
|
+
* ## `"block-device"`
|
|
95
|
+
*
|
|
96
|
+
* ## `"character-device"`
|
|
97
|
+
*
|
|
98
|
+
* ## `"directory"`
|
|
99
|
+
*
|
|
100
|
+
* ## `"fifo"`
|
|
101
|
+
*
|
|
102
|
+
* ## `"symbolic-link"`
|
|
103
|
+
*
|
|
104
|
+
* ## `"regular-file"`
|
|
105
|
+
*
|
|
106
|
+
* ## `"socket"`
|
|
107
|
+
*/
|
|
108
|
+
export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
|
|
101
109
|
export interface MetadataHashValue {
|
|
102
110
|
lower: bigint,
|
|
103
111
|
upper: bigint,
|
|
@@ -125,14 +133,6 @@ export interface OpenFlags {
|
|
|
125
133
|
exclusive?: boolean,
|
|
126
134
|
truncate?: boolean,
|
|
127
135
|
}
|
|
128
|
-
export interface DescriptorFlags {
|
|
129
|
-
read?: boolean,
|
|
130
|
-
write?: boolean,
|
|
131
|
-
fileIntegritySync?: boolean,
|
|
132
|
-
dataIntegritySync?: boolean,
|
|
133
|
-
requestedWriteSync?: boolean,
|
|
134
|
-
mutateDirectory?: boolean,
|
|
135
|
-
}
|
|
136
136
|
export interface DirectoryEntry {
|
|
137
137
|
type: DescriptorType,
|
|
138
138
|
name: string,
|
|
@@ -146,6 +146,7 @@ export class Descriptor {
|
|
|
146
146
|
readViaStream(offset: Filesize): InputStream;
|
|
147
147
|
writeViaStream(offset: Filesize): OutputStream;
|
|
148
148
|
appendViaStream(): OutputStream;
|
|
149
|
+
getFlags(): DescriptorFlags;
|
|
149
150
|
getType(): DescriptorType;
|
|
150
151
|
readDirectory(): DirectoryEntryStream;
|
|
151
152
|
stat(): DescriptorStat;
|
|
Binary file
|
|
Binary file
|