tombi-wasm-lib 1.5.1 → 1.5.3

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/dist/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "ya7010 <ya7010@outlook.com>"
6
6
  ],
7
7
  "description": "Tombi formatter, linter, and language server for WebAssembly",
8
- "version": "1.5.1",
8
+ "version": "1.5.3",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,70 +1,81 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function start(): void;
4
- export function format(source: string, source_path: string, options: any): Promise<any>;
5
- export function lint(source: string, source_path: string, options: any): Promise<any>;
3
+
6
4
  export class Diagnostic {
7
- private constructor();
8
- free(): void;
5
+ private constructor();
6
+ free(): void;
7
+ [Symbol.dispose](): void;
9
8
  }
9
+
10
10
  export class Position {
11
- private constructor();
12
- free(): void;
13
- line: number;
14
- column: number;
11
+ private constructor();
12
+ free(): void;
13
+ [Symbol.dispose](): void;
14
+ column: number;
15
+ line: number;
15
16
  }
17
+
16
18
  export class Range {
17
- private constructor();
18
- free(): void;
19
- start: Position;
20
- end: Position;
19
+ private constructor();
20
+ free(): void;
21
+ [Symbol.dispose](): void;
22
+ end: Position;
23
+ start: Position;
21
24
  }
22
25
 
26
+ export function format(source: string, source_path: string, options: any): Promise<any>;
27
+
28
+ export function lint(source: string, source_path: string, options: any): Promise<any>;
29
+
30
+ export function start(): void;
31
+
23
32
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
24
33
 
25
34
  export interface InitOutput {
26
- readonly memory: WebAssembly.Memory;
27
- readonly start: () => void;
28
- readonly format: (a: number, b: number, c: number, d: number, e: number) => number;
29
- readonly lint: (a: number, b: number, c: number, d: number, e: number) => number;
30
- readonly __wbg_diagnostic_free: (a: number, b: number) => void;
31
- readonly __wbg_get_position_column: (a: number) => number;
32
- readonly __wbg_get_position_line: (a: number) => number;
33
- readonly __wbg_get_range_end: (a: number) => number;
34
- readonly __wbg_get_range_start: (a: number) => number;
35
- readonly __wbg_position_free: (a: number, b: number) => void;
36
- readonly __wbg_range_free: (a: number, b: number) => void;
37
- readonly __wbg_set_position_column: (a: number, b: number) => void;
38
- readonly __wbg_set_position_line: (a: number, b: number) => void;
39
- readonly __wbg_set_range_end: (a: number, b: number) => void;
40
- readonly __wbg_set_range_start: (a: number, b: number) => void;
41
- readonly __wbindgen_export_0: (a: number, b: number) => number;
42
- readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
43
- readonly __wbindgen_export_2: (a: number) => void;
44
- readonly __wbindgen_export_3: (a: number, b: number, c: number) => void;
45
- readonly __wbindgen_export_4: WebAssembly.Table;
46
- readonly __wbindgen_export_5: (a: number, b: number, c: number) => void;
47
- readonly __wbindgen_export_6: (a: number, b: number, c: number, d: number) => void;
48
- readonly __wbindgen_start: () => void;
35
+ readonly memory: WebAssembly.Memory;
36
+ readonly __wbg_diagnostic_free: (a: number, b: number) => void;
37
+ readonly __wbg_get_position_column: (a: number) => number;
38
+ readonly __wbg_get_position_line: (a: number) => number;
39
+ readonly __wbg_get_range_end: (a: number) => number;
40
+ readonly __wbg_get_range_start: (a: number) => number;
41
+ readonly __wbg_position_free: (a: number, b: number) => void;
42
+ readonly __wbg_range_free: (a: number, b: number) => void;
43
+ readonly __wbg_set_position_column: (a: number, b: number) => void;
44
+ readonly __wbg_set_position_line: (a: number, b: number) => void;
45
+ readonly __wbg_set_range_end: (a: number, b: number) => void;
46
+ readonly __wbg_set_range_start: (a: number, b: number) => void;
47
+ readonly format: (a: number, b: number, c: number, d: number, e: number) => number;
48
+ readonly lint: (a: number, b: number, c: number, d: number, e: number) => number;
49
+ readonly start: () => void;
50
+ readonly __wasm_bindgen_func_elem_8942: (a: number, b: number, c: number, d: number) => void;
51
+ readonly __wasm_bindgen_func_elem_8944: (a: number, b: number, c: number, d: number) => void;
52
+ readonly __wbindgen_export: (a: number, b: number) => number;
53
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
54
+ readonly __wbindgen_export3: (a: number) => void;
55
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
56
+ readonly __wbindgen_export5: (a: number, b: number) => void;
57
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
58
+ readonly __wbindgen_start: () => void;
49
59
  }
50
60
 
51
61
  export type SyncInitInput = BufferSource | WebAssembly.Module;
62
+
52
63
  /**
53
- * Instantiates the given `module`, which can either be bytes or
54
- * a precompiled `WebAssembly.Module`.
55
- *
56
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
57
- *
58
- * @returns {InitOutput}
59
- */
64
+ * Instantiates the given `module`, which can either be bytes or
65
+ * a precompiled `WebAssembly.Module`.
66
+ *
67
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
68
+ *
69
+ * @returns {InitOutput}
70
+ */
60
71
  export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
61
72
 
62
73
  /**
63
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
64
- * for everything else, calls `WebAssembly.instantiate` directly.
65
- *
66
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
67
- *
68
- * @returns {Promise<InitOutput>}
69
- */
74
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
75
+ * for everything else, calls `WebAssembly.instantiate` directly.
76
+ *
77
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
78
+ *
79
+ * @returns {Promise<InitOutput>}
80
+ */
70
81
  export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;