@tombi-toml/wasm-lib 1.4.1 → 1.5.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.
package/dist/package.json
CHANGED
package/dist/tombi_wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function start(): void;
|
|
3
4
|
export function format(source: string, source_path: string, options: any): Promise<any>;
|
|
4
5
|
export function lint(source: string, source_path: string, options: any): Promise<any>;
|
|
5
|
-
export function start(): void;
|
|
6
6
|
export class Diagnostic {
|
|
7
7
|
private constructor();
|
|
8
8
|
free(): void;
|
|
@@ -24,9 +24,9 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
24
24
|
|
|
25
25
|
export interface InitOutput {
|
|
26
26
|
readonly memory: WebAssembly.Memory;
|
|
27
|
+
readonly start: () => void;
|
|
27
28
|
readonly format: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
28
29
|
readonly lint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
29
|
-
readonly start: () => void;
|
|
30
30
|
readonly __wbg_diagnostic_free: (a: number, b: number) => void;
|
|
31
31
|
readonly __wbg_get_position_column: (a: number) => number;
|
|
32
32
|
readonly __wbg_get_position_line: (a: number) => number;
|
package/dist/tombi_wasm.js
CHANGED
|
@@ -224,6 +224,11 @@ function debugString(val) {
|
|
|
224
224
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
225
225
|
return className;
|
|
226
226
|
}
|
|
227
|
+
|
|
228
|
+
export function start() {
|
|
229
|
+
wasm.start();
|
|
230
|
+
}
|
|
231
|
+
|
|
227
232
|
/**
|
|
228
233
|
* @param {string} source
|
|
229
234
|
* @param {string} source_path
|
|
@@ -254,10 +259,6 @@ export function lint(source, source_path, options) {
|
|
|
254
259
|
return takeObject(ret);
|
|
255
260
|
}
|
|
256
261
|
|
|
257
|
-
export function start() {
|
|
258
|
-
wasm.start();
|
|
259
|
-
}
|
|
260
|
-
|
|
261
262
|
function _assertClass(instance, klass) {
|
|
262
263
|
if (!(instance instanceof klass)) {
|
|
263
264
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -768,8 +769,8 @@ function __wbg_get_imports() {
|
|
|
768
769
|
const ret = false;
|
|
769
770
|
return ret;
|
|
770
771
|
};
|
|
771
|
-
imports.wbg.
|
|
772
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
772
|
+
imports.wbg.__wbindgen_closure_wrapper7988 = function(arg0, arg1, arg2) {
|
|
773
|
+
const ret = makeMutClosure(arg0, arg1, 2665, __wbg_adapter_50);
|
|
773
774
|
return addHeapObject(ret);
|
|
774
775
|
};
|
|
775
776
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/dist/tombi_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const start: () => void;
|
|
4
5
|
export const format: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
5
6
|
export const lint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
6
|
-
export const start: () => void;
|
|
7
7
|
export const __wbg_diagnostic_free: (a: number, b: number) => void;
|
|
8
8
|
export const __wbg_get_position_column: (a: number) => number;
|
|
9
9
|
export const __wbg_get_position_line: (a: number) => number;
|