@emnudge/wat-lsp 0.5.2 → 0.6.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/index.js +1 -1
- package/dist/wasm/wat_lsp_rust.js +10 -14
- package/dist/wasm/wat_lsp_rust_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ export async function createWatLSP(options = {}) {
|
|
|
75
75
|
|
|
76
76
|
// Step 2: Initialize the WASM module
|
|
77
77
|
const { default: initWasm, WatLSP } = await import('./wasm/wat_lsp_rust.js');
|
|
78
|
-
await initWasm(watLspWasmPath || assets.watLspWasm);
|
|
78
|
+
await initWasm({ module_or_path: watLspWasmPath || assets.watLspWasm });
|
|
79
79
|
|
|
80
80
|
// Step 3: Create and initialize the LSP instance
|
|
81
81
|
const lsp = new WatLSP();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Parser, Language } from 'web-tree-sitter';
|
|
1
|
+
import { Parser, Language, Query } from 'web-tree-sitter';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -610,10 +610,6 @@ function __wbg_get_imports() {
|
|
|
610
610
|
const ret = arg0.length;
|
|
611
611
|
return ret;
|
|
612
612
|
};
|
|
613
|
-
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
614
|
-
const ret = arg0.length;
|
|
615
|
-
return ret;
|
|
616
|
-
};
|
|
617
613
|
imports.wbg.__wbg_load_90a535c2f576cb1a = function(arg0) {
|
|
618
614
|
const ret = Language.load(arg0);
|
|
619
615
|
return ret;
|
|
@@ -630,6 +626,10 @@ function __wbg_get_imports() {
|
|
|
630
626
|
const ret = new Array();
|
|
631
627
|
return ret;
|
|
632
628
|
};
|
|
629
|
+
imports.wbg.__wbg_new_89e9b5100cc71446 = function() { return handleError(function (arg0, arg1) {
|
|
630
|
+
const ret = new Query(arg0, arg1);
|
|
631
|
+
return ret;
|
|
632
|
+
}, arguments) };
|
|
633
633
|
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
634
634
|
const ret = new Error();
|
|
635
635
|
return ret;
|
|
@@ -680,10 +680,6 @@ function __wbg_get_imports() {
|
|
|
680
680
|
const ret = arg0.push(arg1);
|
|
681
681
|
return ret;
|
|
682
682
|
};
|
|
683
|
-
imports.wbg.__wbg_query_39f1b36324c250e6 = function() { return handleError(function (arg0, arg1) {
|
|
684
|
-
const ret = arg0.query(arg1);
|
|
685
|
-
return ret;
|
|
686
|
-
}, arguments) };
|
|
687
683
|
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
688
684
|
const ret = arg0.queueMicrotask;
|
|
689
685
|
return ret;
|
|
@@ -768,16 +764,16 @@ function __wbg_get_imports() {
|
|
|
768
764
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
769
765
|
return ret;
|
|
770
766
|
};
|
|
771
|
-
imports.wbg.__wbindgen_cast_6a2cd9d7a963b48a = function(arg0, arg1) {
|
|
772
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 587, function: Function { arguments: [Externref], shim_idx: 588, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
773
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h949c87b88cdbd48a, wasm_bindgen__convert__closures_____invoke__hffdd76fc25814859);
|
|
774
|
-
return ret;
|
|
775
|
-
};
|
|
776
767
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
777
768
|
// Cast intrinsic for `F64 -> Externref`.
|
|
778
769
|
const ret = arg0;
|
|
779
770
|
return ret;
|
|
780
771
|
};
|
|
772
|
+
imports.wbg.__wbindgen_cast_efaa74e24e38a7b5 = function(arg0, arg1) {
|
|
773
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 65, function: Function { arguments: [Externref], shim_idx: 66, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
774
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h949c87b88cdbd48a, wasm_bindgen__convert__closures_____invoke__hffdd76fc25814859);
|
|
775
|
+
return ret;
|
|
776
|
+
};
|
|
781
777
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
782
778
|
const table = wasm.__wbindgen_externrefs;
|
|
783
779
|
const offset = table.grow(4);
|
|
Binary file
|