@bytecodealliance/jco 0.9.1 → 0.9.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.
@@ -0,0 +1,3 @@
1
+ export namespace ExportsTest {
2
+ export function hello(): string;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "author": "Guy Bedford",
6
6
  "bin": {
@@ -9,7 +9,7 @@
9
9
  "exports": "./src/api.js",
10
10
  "type": "module",
11
11
  "dependencies": {
12
- "@bytecodealliance/preview2-shim": "0.0.9",
12
+ "@bytecodealliance/preview2-shim": "0.0.10",
13
13
  "binaryen": "^111.0.0",
14
14
  "chalk-template": "^0.4.0",
15
15
  "commander": "^9.4.1",
@@ -91,9 +91,14 @@ export async function transpileComponent (component, opts = {}) {
91
91
  if (opts.wasiShim !== false) {
92
92
  opts.map = Object.assign({
93
93
  'wasi:cli-base/*': '@bytecodealliance/preview2-shim/cli-base#*',
94
+ 'wasi:clocks/*': '@bytecodealliance/preview2-shim/clocks#*',
94
95
  'wasi:filesystem/*': '@bytecodealliance/preview2-shim/filesystem#*',
96
+ 'wasi:http/*': '@bytecodealliance/preview2-shim/http#*',
95
97
  'wasi:io/*': '@bytecodealliance/preview2-shim/io#*',
98
+ 'wasi:logging/*': '@bytecodealliance/preview2-shim/logging#*',
99
+ 'wasi:poll/*': '@bytecodealliance/preview2-shim/poll#*',
96
100
  'wasi:random/*': '@bytecodealliance/preview2-shim/random#*',
101
+ 'wasi:sockets/*': '@bytecodealliance/preview2-shim/sockets#*',
97
102
  }, opts.map || {});
98
103
  }
99
104
 
package/src/jco.js CHANGED
@@ -10,7 +10,7 @@ program
10
10
  .name('jco')
11
11
  .description(c`{bold jco - WebAssembly JS Component Tools}\n JS Component Transpilation Bindgen & Wasm Tools for JS`)
12
12
  .usage('<command> [options]')
13
- .version('0.9.1');
13
+ .version('0.9.2');
14
14
 
15
15
  function myParseInt(value) {
16
16
  return parseInt(value, 10);