@bytecodealliance/jco 1.11.0 → 1.11.2-rc.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.
Files changed (49) hide show
  1. package/obj/interfaces/local-wasm-tools-tools.d.ts +52 -0
  2. package/obj/interfaces/wasi-cli-environment.d.ts +2 -0
  3. package/obj/interfaces/wasi-cli-exit.d.ts +3 -0
  4. package/obj/interfaces/wasi-cli-stderr.d.ts +3 -0
  5. package/obj/interfaces/wasi-cli-stdin.d.ts +3 -0
  6. package/obj/interfaces/wasi-cli-stdout.d.ts +3 -0
  7. package/obj/interfaces/wasi-cli-terminal-input.d.ts +8 -0
  8. package/obj/interfaces/wasi-cli-terminal-output.d.ts +8 -0
  9. package/obj/interfaces/wasi-cli-terminal-stderr.d.ts +3 -0
  10. package/obj/interfaces/wasi-cli-terminal-stdin.d.ts +3 -0
  11. package/obj/interfaces/wasi-cli-terminal-stdout.d.ts +3 -0
  12. package/obj/interfaces/wasi-clocks-wall-clock.d.ts +5 -0
  13. package/obj/interfaces/wasi-filesystem-preopens.d.ts +3 -0
  14. package/obj/interfaces/wasi-filesystem-types.d.ts +164 -0
  15. package/obj/interfaces/wasi-io-error.d.ts +8 -0
  16. package/obj/interfaces/wasi-io-streams.d.ts +30 -0
  17. package/obj/interfaces/wasi-random-random.d.ts +2 -0
  18. package/obj/js-component-bindgen-component.core.wasm +0 -0
  19. package/obj/js-component-bindgen-component.core2.wasm +0 -0
  20. package/obj/js-component-bindgen-component.d.ts +116 -0
  21. package/obj/js-component-bindgen-component.js +4302 -0
  22. package/obj/wasm-tools.core.wasm +0 -0
  23. package/obj/wasm-tools.core2.wasm +0 -0
  24. package/obj/wasm-tools.d.ts +20 -0
  25. package/obj/wasm-tools.js +4369 -0
  26. package/package.json +9 -4
  27. package/src/api.d.ts +42 -0
  28. package/src/api.d.ts.map +1 -0
  29. package/src/browser.d.ts +4 -0
  30. package/src/browser.d.ts.map +1 -0
  31. package/src/cmd/componentize.d.ts +2 -0
  32. package/src/cmd/componentize.d.ts.map +1 -0
  33. package/src/cmd/componentize.js +1 -1
  34. package/src/cmd/opt.d.ts +20 -0
  35. package/src/cmd/opt.d.ts.map +1 -0
  36. package/src/cmd/run.d.ts +3 -0
  37. package/src/cmd/run.d.ts.map +1 -0
  38. package/src/cmd/run.js +1 -1
  39. package/src/cmd/transpile.d.ts +89 -0
  40. package/src/cmd/transpile.d.ts.map +1 -0
  41. package/src/cmd/wasm-tools.d.ts +8 -0
  42. package/src/cmd/wasm-tools.d.ts.map +1 -0
  43. package/src/common.d.ts +16 -0
  44. package/src/common.d.ts.map +1 -0
  45. package/src/jco.d.ts +3 -0
  46. package/src/jco.d.ts.map +1 -0
  47. package/src/jco.js +1 -1
  48. package/src/ora-shim.d.ts +7 -0
  49. package/src/ora-shim.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "1.11.0",
3
+ "version": "1.11.2-rc.0",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "author": "Guy Bedford",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@bytecodealliance/componentize-js": "^0.17.0",
28
28
  "@bytecodealliance/preview2-shim": "^0.17.2",
29
- "binaryen": "^122.0.0",
29
+ "binaryen": "^123.0.0",
30
30
  "chalk-template": "^1",
31
31
  "commander": "^12",
32
32
  "mkdirp": "^3",
@@ -34,15 +34,19 @@
34
34
  "terser": "^5"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "^20.14.12",
37
+ "@commitlint/config-conventional": "^19.8.1",
38
+ "@types/node": "^22.15.17",
38
39
  "@typescript-eslint/eslint-plugin": "^8.2.0",
39
40
  "@typescript-eslint/parser": "^8.2.0",
41
+ "commitlint": "^19.8.1",
42
+ "conventional-changelog-conventionalcommits": "^8.0.0",
40
43
  "eslint": "^9.9.0",
41
44
  "eslint-config-prettier": "^10.1.1",
42
45
  "eslint-plugin-prettier": "^5.2.3",
43
46
  "mime": "^4.0.4",
44
47
  "prettier": "^3.5.3",
45
48
  "puppeteer": "^24.0.1",
49
+ "semver": "^7.7.1",
46
50
  "smol-toml": "^1.3.1",
47
51
  "typescript": "^5.5.4",
48
52
  "vitest": "^3.0.7"
@@ -69,7 +73,7 @@
69
73
  "lint:fix": "npm run lint -- --fix",
70
74
  "test": "vitest run -c test/vitest.ts",
71
75
  "test:lts": "vitest run -c test/vitest.lts.ts",
72
- "prepublishOnly": "cargo xtask build release && npm run test"
76
+ "prepack": "cargo xtask build release"
73
77
  },
74
78
  "files": [
75
79
  "lib",
@@ -84,6 +88,7 @@
84
88
  "examples/components/add",
85
89
  "examples/components/http-hello-world",
86
90
  "examples/components/node-fetch",
91
+ "examples/components/http-server-fetch-handler",
87
92
  "examples/components/string-reverse",
88
93
  "examples/components/string-reverse-upper",
89
94
  "examples/components/webidl-book-library",
package/src/api.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @param {Parameters<import('../obj/wasm-tools.js').print>[0]} binary
3
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').print>>}
4
+ */
5
+ export function print(binary: Parameters<any>[0]): Promise<ReturnType<any>>;
6
+ /**
7
+ * @param {Parameters<import('../obj/wasm-tools.js').parse>[0]} wat
8
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').parse>>}
9
+ */
10
+ export function parse(wat: Parameters<any>[0]): Promise<ReturnType<any>>;
11
+ /**
12
+ * @param {Parameters<import('../obj/wasm-tools.js').componentWit>[0]} binary
13
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').componentWit>>}
14
+ */
15
+ export function componentWit(binary: Parameters<any>[0]): Promise<ReturnType<any>>;
16
+ /**
17
+ * @param {Parameters<import('../obj/wasm-tools.js').componentNew>[0]} binary
18
+ * @param {Parameters<import('../obj/wasm-tools.js').componentNew>[1]} adapters
19
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').componentNew>>}
20
+ */
21
+ export function componentNew(binary: Parameters<any>[0], adapters: Parameters<any>[1]): Promise<ReturnType<any>>;
22
+ /**
23
+ * @param {Parameters<import('../obj/wasm-tools.js').componentEmbed>[0]} embedOpts
24
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').componentEmbed>>}
25
+ */
26
+ export function componentEmbed(embedOpts: Parameters<any>[0]): Promise<ReturnType<any>>;
27
+ /**
28
+ * @param {Parameters<import('../obj/wasm-tools.js').metadataAdd>[0]} binary
29
+ * @param {Parameters<import('../obj/wasm-tools.js').metadataAdd>[1]} metadata
30
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').metadataAdd>>}
31
+ */
32
+ export function metadataAdd(binary: Parameters<any>[0], metadata: Parameters<any>[1]): Promise<ReturnType<any>>;
33
+ /**
34
+ * @param {Parameters<import('../obj/wasm-tools.js').metadataShow>[0]} binary
35
+ * @return {Promise<ReturnType<import('../obj/wasm-tools.js').metadataShow>>}
36
+ */
37
+ export function metadataShow(binary: Parameters<any>[0]): Promise<ReturnType<any>>;
38
+ export function preview1AdapterCommandPath(): URL;
39
+ export function preview1AdapterReactorPath(): URL;
40
+ export { optimizeComponent as opt } from "./cmd/opt.js";
41
+ export { transpileComponent as transpile, typesComponent as types } from "./cmd/transpile.js";
42
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["api.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,8BAHW,UAAU,CAAC,GAAoC,CAAC,CAAC,CAAC,CAAC,GAClD,OAAO,CAAC,UAAU,CAAC,GAAoC,CAAC,CAAC,CAKpE;AACD;;;GAGG;AACH,2BAHW,UAAU,CAAC,GAAoC,CAAC,CAAC,CAAC,CAAC,GAClD,OAAO,CAAC,UAAU,CAAC,GAAoC,CAAC,CAAC,CAKpE;AACD;;;GAGG;AACH,qCAHW,UAAU,CAAC,GAA2C,CAAC,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,UAAU,CAAC,GAA2C,CAAC,CAAC,CAK3E;AACD;;;;GAIG;AACH,qCAJW,UAAU,CAAC,GAA2C,CAAC,CAAC,CAAC,CAAC,YAC1D,UAAU,CAAC,GAA2C,CAAC,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,UAAU,CAAC,GAA2C,CAAC,CAAC,CAK3E;AACD;;;GAGG;AACH,0CAHW,UAAU,CAAC,GAA6C,CAAC,CAAC,CAAC,CAAC,GAC3D,OAAO,CAAC,UAAU,CAAC,GAA6C,CAAC,CAAC,CAK7E;AACD;;;;GAIG;AACH,oCAJW,UAAU,CAAC,GAA0C,CAAC,CAAC,CAAC,CAAC,YACzD,UAAU,CAAC,GAA0C,CAAC,CAAC,CAAC,CAAC,GACxD,OAAO,CAAC,UAAU,CAAC,GAA0C,CAAC,CAAC,CAK1E;AACD;;;GAGG;AACH,qCAHW,UAAU,CAAC,GAA2C,CAAC,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,UAAU,CAAC,GAA2C,CAAC,CAAC,CAK3E;AACD,kDAEC;AACD,kDAEC"}
@@ -0,0 +1,4 @@
1
+ export function generate(...args: any[]): Promise<any>;
2
+ export function generateTypes(...args: any[]): Promise<any>;
3
+ export { generate as transpile };
4
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["browser.js"],"names":[],"mappings":"AAEA,uDAGC;AAED,4DAGC"}
@@ -0,0 +1,2 @@
1
+ export function componentize(jsSource: any, opts: any): Promise<void>;
2
+ //# sourceMappingURL=componentize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentize.d.ts","sourceRoot":"","sources":["componentize.js"],"names":[],"mappings":"AAKA,sEA4CC"}
@@ -1,4 +1,4 @@
1
- import { readFile, writeFile } from 'node:fs/promises';
1
+ import { stat, readFile, writeFile } from 'node:fs/promises';
2
2
  import { resolve, basename } from 'node:path';
3
3
 
4
4
  import c from 'chalk-template';
@@ -0,0 +1,20 @@
1
+ export function opt(componentPath: any, opts: any, program: any): Promise<void>;
2
+ /**
3
+ *
4
+ * @param {Uint8Array} componentBytes
5
+ * @param {{ quiet: boolean, asyncify?: boolean, optArgs?: string[], noVerify?: boolean }} opts?
6
+ * @returns {Promise<{ component: Uint8Array, compressionInfo: { beforeBytes: number, afterBytes: number }[] >}
7
+ */
8
+ export function optimizeComponent(componentBytes: Uint8Array, opts: {
9
+ quiet: boolean;
10
+ asyncify?: boolean;
11
+ optArgs?: string[];
12
+ noVerify?: boolean;
13
+ }): Promise<{
14
+ component: Uint8Array;
15
+ compressionInfo: {
16
+ beforeBytes: number;
17
+ afterBytes: number;
18
+ }[];
19
+ }>;
20
+ //# sourceMappingURL=opt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opt.d.ts","sourceRoot":"","sources":["opt.js"],"names":[],"mappings":"AAgBA,gFA2CC;AAgBD;;;;;GAKG;AACH,kDAJW,UAAU,QACV;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5E,OAAO,CAAC;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,eAAe,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAA,CAAE,CA2L7G"}
@@ -0,0 +1,3 @@
1
+ export function run(componentPath: any, args: any, opts: any): Promise<void>;
2
+ export function serve(componentPath: any, args: any, opts: any): Promise<void>;
3
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["run.js"],"names":[],"mappings":"AAWA,6EAwBC;AAED,+EAqCC"}
package/src/cmd/run.js CHANGED
@@ -117,7 +117,7 @@ async function runComponent(componentPath, args, opts, executor) {
117
117
  '../../../'
118
118
  );
119
119
  } catch (err) {
120
- const msg = c`{red.bold error} Failed to resolve {bold @bytecodealliance/preview2-shim}, ensure it is installed.`;
120
+ let msg = c`{red.bold error} Failed to resolve {bold @bytecodealliance/preview2-shim}, ensure it is installed.`;
121
121
  msg += `\nERROR:\n${err.toString()}`;
122
122
  throw new Error(msg);
123
123
  }
@@ -0,0 +1,89 @@
1
+ export function types(witPath: any, opts: any): Promise<void>;
2
+ export function guestTypes(witPath: any, opts: any): Promise<void>;
3
+ /**
4
+ * @param {string} witPath
5
+ * @param {{
6
+ * name?: string,
7
+ * worldName?: string,
8
+ * instantiation?: 'async' | 'sync',
9
+ * tlaCompat?: bool,
10
+ * asyncMode?: string,
11
+ * asyncImports?: string[],
12
+ * asyncExports?: string[],
13
+ * outDir?: string,
14
+ * features?: string[] | 'all',
15
+ * guest?: bool,
16
+ * }} opts
17
+ * @returns {Promise<{ [filename: string]: Uint8Array }>}
18
+ */
19
+ export function typesComponent(witPath: string, opts: {
20
+ name?: string;
21
+ worldName?: string;
22
+ instantiation?: "async" | "sync";
23
+ tlaCompat?: bool;
24
+ asyncMode?: string;
25
+ asyncImports?: string[];
26
+ asyncExports?: string[];
27
+ outDir?: string;
28
+ features?: string[] | "all";
29
+ guest?: bool;
30
+ }): Promise<{
31
+ [filename: string]: Uint8Array;
32
+ }>;
33
+ export function transpile(componentPath: any, opts: any, program: any): Promise<void>;
34
+ /**
35
+ *
36
+ * @param {Uint8Array} component
37
+ * @param {{
38
+ * name: string,
39
+ * instantiation?: 'async' | 'sync',
40
+ * importBindings?: 'js' | 'optimized' | 'hybrid' | 'direct-optimized',
41
+ * map?: Record<string, string>,
42
+ * asyncMode?: string,
43
+ * asyncImports?: string[],
44
+ * asyncExports?: string[],
45
+ * validLiftingOptimization?: bool,
46
+ * tracing?: bool,
47
+ * nodejsCompat?: bool,
48
+ * tlaCompat?: bool,
49
+ * base64Cutoff?: bool,
50
+ * js?: bool,
51
+ * minify?: bool,
52
+ * optimize?: bool,
53
+ * namespacedExports?: bool,
54
+ * outDir?: string,
55
+ * multiMemory?: bool,
56
+ * experimentalIdlImports?: bool,
57
+ * optArgs?: string[],
58
+ * }} opts
59
+ * @returns {Promise<{ files: { [filename: string]: Uint8Array }, imports: string[], exports: [string, 'function' | 'instance'][] }>}
60
+ */
61
+ export function transpileComponent(component: Uint8Array, opts?: {
62
+ name: string;
63
+ instantiation?: "async" | "sync";
64
+ importBindings?: "js" | "optimized" | "hybrid" | "direct-optimized";
65
+ map?: Record<string, string>;
66
+ asyncMode?: string;
67
+ asyncImports?: string[];
68
+ asyncExports?: string[];
69
+ validLiftingOptimization?: bool;
70
+ tracing?: bool;
71
+ nodejsCompat?: bool;
72
+ tlaCompat?: bool;
73
+ base64Cutoff?: bool;
74
+ js?: bool;
75
+ minify?: bool;
76
+ optimize?: bool;
77
+ namespacedExports?: bool;
78
+ outDir?: string;
79
+ multiMemory?: bool;
80
+ experimentalIdlImports?: bool;
81
+ optArgs?: string[];
82
+ }): Promise<{
83
+ files: {
84
+ [filename: string]: Uint8Array;
85
+ };
86
+ imports: string[];
87
+ exports: [string, "function" | "instance"][];
88
+ }>;
89
+ //# sourceMappingURL=transpile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transpile.d.ts","sourceRoot":"","sources":["transpile.js"],"names":[],"mappings":"AA8CA,8DAGC;AAED,mEAQC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wCAfW,MAAM,QACN;IACN,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5B,KAAK,CAAC,EAAE,IAAI,CAAC;CACd,GACS,OAAO,CAAC;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAC,CA+DvD;AAyCD,sFAuCC;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,8CAzBW,UAAU,SACV;IACN,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,cAAc,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IACpE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,wBAAwB,CAAC,EAAE,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,sBAAsB,CAAC,EAAE,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,GACS,OAAO,CAAC;IAAE,KAAK,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,EAAE,CAAA;CAAE,CAAC,CA4TnI"}
@@ -0,0 +1,8 @@
1
+ export function parse(file: any, opts: any): Promise<void>;
2
+ export function print(file: any, opts: any): Promise<void>;
3
+ export function componentWit(file: any, opts: any): Promise<void>;
4
+ export function componentNew(file: any, opts: any): Promise<void>;
5
+ export function componentEmbed(file: any, opts: any): Promise<void>;
6
+ export function metadataAdd(file: any, opts: any): Promise<void>;
7
+ export function metadataShow(file: any, opts: any): Promise<void>;
8
+ //# sourceMappingURL=wasm-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm-tools.d.ts","sourceRoot":"","sources":["wasm-tools.js"],"names":[],"mappings":"AAeA,2DAKC;AAED,2DASC;AAED,kEASC;AAED,kEAoDC;AAED,oEAaC;AAED,iEAUC;AAED,kEA8BC"}
@@ -0,0 +1,16 @@
1
+ export function setShowSpinner(val: any): void;
2
+ export function getShowSpinner(): boolean;
3
+ export function sizeStr(num: any): string;
4
+ export function fixedDigitDisplay(num: any, maxChars: any): string;
5
+ export function table(data: any, align?: any[]): string;
6
+ /**
7
+ * Securely creates a temporary directory and returns its path.
8
+ *
9
+ * The new directory is created using `fsPromises.mkdtemp()`.
10
+ */
11
+ export function getTmpDir(): Promise<string>;
12
+ export function spawnIOTmp(cmd: any, input: any, args: any): Promise<Buffer<ArrayBufferLike>>;
13
+ export const isWindows: boolean;
14
+ export { readFileCli as readFile };
15
+ declare function readFileCli(file: any, encoding: any): Promise<Buffer<ArrayBufferLike>>;
16
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.js"],"names":[],"mappings":"AAWA,+CAEC;AACD,0CAIC;AAED,0CAOC;AAED,mEAaC;AAED,wDAcC;AAED;;;;GAIG;AACH,6CAEC;AAYD,8FA8BC;AArGD,gCAA8C;;AA6D9C,yFAOC"}
package/src/jco.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=jco.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jco.d.ts","sourceRoot":"","sources":["jco.js"],"names":[],"mappings":""}
package/src/jco.js CHANGED
@@ -13,7 +13,7 @@ program
13
13
  .name('jco')
14
14
  .description(c`{bold jco - WebAssembly JS Component Tools}\n JS Component Transpilation Bindgen & Wasm Tools for JS`)
15
15
  .usage('<command> [options]')
16
- .version('1.10.2');
16
+ .version('1.11.2-rc.0');
17
17
 
18
18
  function myParseInt(value) {
19
19
  return parseInt(value, 10);
@@ -0,0 +1,7 @@
1
+ export default function ora(): Ora;
2
+ declare class Ora {
3
+ start(): void;
4
+ stop(): void;
5
+ }
6
+ export {};
7
+ //# sourceMappingURL=ora-shim.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ora-shim.d.ts","sourceRoot":"","sources":["ora-shim.js"],"names":[],"mappings":"AACA,mCAEC;AAED;IACE,cAAW;IACX,aAAU;CACX"}