@emnudge/wat-lsp 0.5.0 → 0.5.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.
@@ -98,6 +98,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
98
98
  export interface InitOutput {
99
99
  readonly memory: WebAssembly.Memory;
100
100
  readonly __wbg_watlsp_free: (a: number, b: number) => void;
101
+ readonly init: () => void;
101
102
  readonly watlsp_debugWordAt: (a: number, b: number, c: number) => any;
102
103
  readonly watlsp_getSemanticTokensLegend: (a: number) => any;
103
104
  readonly watlsp_getSymbolTableHTML: (a: number) => [number, number];
@@ -116,10 +117,9 @@ export interface InitOutput {
116
117
  readonly watlsp_provideSignatureHelp: (a: number, b: number, c: number) => any;
117
118
  readonly watlsp_ready: (a: number) => number;
118
119
  readonly watlsp_rename: (a: number, b: number, c: number, d: number, e: number) => any;
119
- readonly init: () => void;
120
- readonly wasm_bindgen__convert__closures_____invoke__h1dcbf0770fc52c58: (a: number, b: number, c: any) => void;
121
- readonly wasm_bindgen__closure__destroy__hf9f97e092acaa4ab: (a: number, b: number) => void;
122
- readonly wasm_bindgen__convert__closures_____invoke__h8a37a6dad742f4fb: (a: number, b: number, c: any, d: any) => void;
120
+ readonly wasm_bindgen__convert__closures_____invoke__hffdd76fc25814859: (a: number, b: number, c: any) => void;
121
+ readonly wasm_bindgen__closure__destroy__h949c87b88cdbd48a: (a: number, b: number) => void;
122
+ readonly wasm_bindgen__convert__closures_____invoke__hab1d1118a7ff639c: (a: number, b: number, c: any, d: any) => void;
123
123
  readonly __wbindgen_exn_store: (a: number) => void;
124
124
  readonly __externref_table_alloc: () => number;
125
125
  readonly __wbindgen_externrefs: WebAssembly.Table;
@@ -233,12 +233,12 @@ if (!('encodeInto' in cachedTextEncoder)) {
233
233
 
234
234
  let WASM_VECTOR_LEN = 0;
235
235
 
236
- function wasm_bindgen__convert__closures_____invoke__h1dcbf0770fc52c58(arg0, arg1, arg2) {
237
- wasm.wasm_bindgen__convert__closures_____invoke__h1dcbf0770fc52c58(arg0, arg1, arg2);
236
+ function wasm_bindgen__convert__closures_____invoke__hffdd76fc25814859(arg0, arg1, arg2) {
237
+ wasm.wasm_bindgen__convert__closures_____invoke__hffdd76fc25814859(arg0, arg1, arg2);
238
238
  }
239
239
 
240
- function wasm_bindgen__convert__closures_____invoke__h8a37a6dad742f4fb(arg0, arg1, arg2, arg3) {
241
- wasm.wasm_bindgen__convert__closures_____invoke__h8a37a6dad742f4fb(arg0, arg1, arg2, arg3);
240
+ function wasm_bindgen__convert__closures_____invoke__hab1d1118a7ff639c(arg0, arg1, arg2, arg3) {
241
+ wasm.wasm_bindgen__convert__closures_____invoke__hab1d1118a7ff639c(arg0, arg1, arg2, arg3);
242
242
  }
243
243
 
244
244
  const WatLSPFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -641,7 +641,7 @@ function __wbg_get_imports() {
641
641
  const a = state0.a;
642
642
  state0.a = 0;
643
643
  try {
644
- return wasm_bindgen__convert__closures_____invoke__h8a37a6dad742f4fb(a, state0.b, arg0, arg1);
644
+ return wasm_bindgen__convert__closures_____invoke__hab1d1118a7ff639c(a, state0.b, arg0, arg1);
645
645
  } finally {
646
646
  state0.a = a;
647
647
  }
@@ -768,16 +768,16 @@ function __wbg_get_imports() {
768
768
  const ret = getStringFromWasm0(arg0, arg1);
769
769
  return ret;
770
770
  };
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
+ };
771
776
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
772
777
  // Cast intrinsic for `F64 -> Externref`.
773
778
  const ret = arg0;
774
779
  return ret;
775
780
  };
776
- imports.wbg.__wbindgen_cast_f2161ef24e95b954 = function(arg0, arg1) {
777
- // Cast intrinsic for `Closure(Closure { dtor_idx: 733, function: Function { arguments: [Externref], shim_idx: 734, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
778
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf9f97e092acaa4ab, wasm_bindgen__convert__closures_____invoke__h1dcbf0770fc52c58);
779
- return ret;
780
- };
781
781
  imports.wbg.__wbindgen_init_externref_table = function() {
782
782
  const table = wasm.__wbindgen_externrefs;
783
783
  const offset = table.grow(4);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emnudge/wat-lsp",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "WebAssembly Text Format (WAT) Language Server - WASM build for browser and Node.js",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "bin"
26
26
  ],
27
27
  "scripts": {
28
- "build:wasm": "cd ../.. && wasm-pack build --target web --no-opt --no-pack -- --features wasm --no-default-features && mkdir -p packages/wat-lsp/dist/wasm && cp pkg/wat_lsp_rust.js pkg/wat_lsp_rust.d.ts pkg/wat_lsp_rust_bg.wasm packages/wat-lsp/dist/wasm/",
28
+ "build:wasm": "cd ../.. && wasm-pack build --target web --no-pack -- --features wasm --no-default-features && mkdir -p packages/wat-lsp/dist/wasm && cp pkg/wat_lsp_rust.js pkg/wat_lsp_rust.d.ts pkg/wat_lsp_rust_bg.wasm packages/wat-lsp/dist/wasm/",
29
29
  "build:wrapper": "mkdir -p dist && cp src/*.js dist/ && cp src/*.d.ts dist/",
30
30
  "build:assets": "node scripts/copy-assets.js",
31
- "build": "npm run build:wasm && npm run build:wrapper && npm run build:assets",
31
+ "build": "pnpm run build:wasm && pnpm run build:wrapper && pnpm run build:assets",
32
32
  "clean": "rm -rf dist",
33
- "prepublishOnly": "npm run clean && npm run build"
33
+ "prepublishOnly": "pnpm run clean && pnpm run build"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",