@bytecodealliance/preview2-shim 0.0.18 → 0.0.19

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/common/io.js CHANGED
@@ -163,3 +163,19 @@ class OutputStream {
163
163
  }
164
164
 
165
165
  export const streams = { Error, InputStream, OutputStream };
166
+
167
+ class Pollable {}
168
+
169
+ function pollList (_list) {
170
+ // TODO
171
+ }
172
+
173
+ function pollOne (_poll) {
174
+ // TODO
175
+ }
176
+
177
+ export const poll = {
178
+ Pollable,
179
+ pollList,
180
+ pollOne
181
+ };
@@ -423,6 +423,7 @@ export class FileSystem {
423
423
  };
424
424
  this.types = {
425
425
  Descriptor,
426
+ DirectoryEntryStream,
426
427
  };
427
428
  }
428
429
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/preview2-shim",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "WASI Preview2 shim for JS environments",
5
5
  "author": "Guy Bedford, Eduardo Rodrigues<16357187+eduardomourar@users.noreply.github.com>",
6
6
  "type": "module",