@tombi-toml/wasm-lsp 0.0.0-bootstrap.0 → 1.4.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
@@ -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": "0.0.0-dev",
8
+ "version": "1.4.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,9 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Serve Tombi LSP over byte streams using the standard LSP header framing.
5
- */
6
- export function serve(config: ServerConfig): Promise<void>;
7
3
  /**
8
4
  * Update one file in the browser-backed virtual workspace.
9
5
  */
@@ -12,14 +8,18 @@ export function set_workspace_file(uri: string, text: string): void;
12
8
  * Remove one file from the browser-backed virtual workspace.
13
9
  */
14
10
  export function remove_workspace_file(uri: string): void;
11
+ /**
12
+ * Replace the virtual workspace files visible to the WASM language server.
13
+ */
14
+ export function set_workspace_files(files: any): void;
15
15
  /**
16
16
  * Replace the virtual workspace entries visible to the WASM language server.
17
17
  */
18
18
  export function set_workspace_entries(entries: any): void;
19
19
  /**
20
- * Replace the virtual workspace files visible to the WASM language server.
20
+ * Serve Tombi LSP over byte streams using the standard LSP header framing.
21
21
  */
22
- export function set_workspace_files(files: any): void;
22
+ export function serve(config: ServerConfig): Promise<void>;
23
23
  export function start(): void;
24
24
  /**
25
25
  * The `ReadableStreamType` enum.
@@ -62,36 +62,34 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
62
62
  export interface InitOutput {
63
63
  readonly memory: WebAssembly.Memory;
64
64
  readonly __wbg_serverconfig_free: (a: number, b: number) => void;
65
- readonly remove_workspace_file: (a: number, b: number) => [number, number];
66
- readonly serve: (a: number) => any;
67
- readonly set_workspace_entries: (a: any) => [number, number];
68
- readonly set_workspace_file: (a: number, b: number, c: number, d: number) => [number, number];
69
- readonly set_workspace_files: (a: any) => [number, number];
70
- readonly serverconfig_new: (a: any, b: any) => number;
65
+ readonly remove_workspace_file: (a: number, b: number, c: number) => void;
66
+ readonly serve: (a: number) => number;
67
+ readonly set_workspace_entries: (a: number, b: number) => void;
68
+ readonly set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
69
+ readonly set_workspace_files: (a: number, b: number) => void;
70
+ readonly serverconfig_new: (a: number, b: number) => number;
71
71
  readonly start: () => void;
72
72
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
73
- readonly intounderlyingsink_abort: (a: number, b: any) => any;
74
- readonly intounderlyingsink_close: (a: number) => any;
75
- readonly intounderlyingsink_write: (a: number, b: any) => any;
76
73
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
74
+ readonly intounderlyingsink_abort: (a: number, b: number) => number;
75
+ readonly intounderlyingsink_close: (a: number) => number;
76
+ readonly intounderlyingsink_write: (a: number, b: number) => number;
77
77
  readonly intounderlyingsource_cancel: (a: number) => void;
78
- readonly intounderlyingsource_pull: (a: number, b: any) => any;
78
+ readonly intounderlyingsource_pull: (a: number, b: number) => number;
79
79
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
80
80
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
81
81
  readonly intounderlyingbytesource_cancel: (a: number) => void;
82
- readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
83
- readonly intounderlyingbytesource_start: (a: number, b: any) => void;
82
+ readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
83
+ readonly intounderlyingbytesource_start: (a: number, b: number) => void;
84
84
  readonly intounderlyingbytesource_type: (a: number) => number;
85
- readonly __wbindgen_exn_store: (a: number) => void;
86
- readonly __externref_table_alloc: () => number;
87
- readonly __wbindgen_export_2: WebAssembly.Table;
88
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
89
- readonly __wbindgen_malloc: (a: number, b: number) => number;
90
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
91
- readonly __wbindgen_export_6: WebAssembly.Table;
92
- readonly __externref_table_dealloc: (a: number) => void;
93
- readonly closure5184_externref_shim: (a: number, b: number, c: any) => void;
94
- readonly closure5208_externref_shim: (a: number, b: number, c: any, d: any) => void;
85
+ readonly __wbindgen_export_0: (a: number) => void;
86
+ readonly __wbindgen_export_1: (a: number, b: number, c: number) => void;
87
+ readonly __wbindgen_export_2: (a: number, b: number) => number;
88
+ readonly __wbindgen_export_3: (a: number, b: number, c: number, d: number) => number;
89
+ readonly __wbindgen_export_4: WebAssembly.Table;
90
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
91
+ readonly __wbindgen_export_5: (a: number, b: number, c: number) => void;
92
+ readonly __wbindgen_export_6: (a: number, b: number, c: number, d: number) => void;
95
93
  readonly __wbindgen_start: () => void;
96
94
  }
97
95
 
@@ -1,8 +1,19 @@
1
1
  let wasm;
2
2
 
3
- function addToExternrefTable0(obj) {
4
- const idx = wasm.__externref_table_alloc();
5
- wasm.__wbindgen_export_2.set(idx, obj);
3
+ const heap = new Array(128).fill(undefined);
4
+
5
+ heap.push(undefined, null, true, false);
6
+
7
+ function getObject(idx) { return heap[idx]; }
8
+
9
+ let heap_next = heap.length;
10
+
11
+ function addHeapObject(obj) {
12
+ if (heap_next === heap.length) heap.push(heap.length + 1);
13
+ const idx = heap_next;
14
+ heap_next = heap[idx];
15
+
16
+ heap[idx] = obj;
6
17
  return idx;
7
18
  }
8
19
 
@@ -10,8 +21,7 @@ function handleError(f, args) {
10
21
  try {
11
22
  return f.apply(this, args);
12
23
  } catch (e) {
13
- const idx = addToExternrefTable0(e);
14
- wasm.__wbindgen_exn_store(idx);
24
+ wasm.__wbindgen_export_0(addHeapObject(e));
15
25
  }
16
26
  }
17
27
 
@@ -107,10 +117,22 @@ function getDataViewMemory0() {
107
117
  return cachedDataViewMemory0;
108
118
  }
109
119
 
120
+ function dropObject(idx) {
121
+ if (idx < 132) return;
122
+ heap[idx] = heap_next;
123
+ heap_next = idx;
124
+ }
125
+
126
+ function takeObject(idx) {
127
+ const ret = getObject(idx);
128
+ dropObject(idx);
129
+ return ret;
130
+ }
131
+
110
132
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
111
133
  ? { register: () => {}, unregister: () => {} }
112
134
  : new FinalizationRegistry(state => {
113
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
135
+ wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b)
114
136
  });
115
137
 
116
138
  function makeMutClosure(arg0, arg1, dtor, f) {
@@ -126,7 +148,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
126
148
  return f(a, state.b, ...args);
127
149
  } finally {
128
150
  if (--state.cnt === 0) {
129
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
151
+ wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
130
152
  CLOSURE_DTORS.unregister(state);
131
153
  } else {
132
154
  state.a = a;
@@ -202,42 +224,26 @@ function debugString(val) {
202
224
  // TODO we could test for more things here, like `Set`s and `Map`s.
203
225
  return className;
204
226
  }
205
-
206
- function _assertClass(instance, klass) {
207
- if (!(instance instanceof klass)) {
208
- throw new Error(`expected instance of ${klass.name}`);
209
- }
210
- }
211
- /**
212
- * Serve Tombi LSP over byte streams using the standard LSP header framing.
213
- * @param {ServerConfig} config
214
- * @returns {Promise<void>}
215
- */
216
- export function serve(config) {
217
- _assertClass(config, ServerConfig);
218
- var ptr0 = config.__destroy_into_raw();
219
- const ret = wasm.serve(ptr0);
220
- return ret;
221
- }
222
-
223
- function takeFromExternrefTable0(idx) {
224
- const value = wasm.__wbindgen_export_2.get(idx);
225
- wasm.__externref_table_dealloc(idx);
226
- return value;
227
- }
228
227
  /**
229
228
  * Update one file in the browser-backed virtual workspace.
230
229
  * @param {string} uri
231
230
  * @param {string} text
232
231
  */
233
232
  export function set_workspace_file(uri, text) {
234
- const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
235
- const len0 = WASM_VECTOR_LEN;
236
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
237
- const len1 = WASM_VECTOR_LEN;
238
- const ret = wasm.set_workspace_file(ptr0, len0, ptr1, len1);
239
- if (ret[1]) {
240
- throw takeFromExternrefTable0(ret[0]);
233
+ try {
234
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
235
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
236
+ const len0 = WASM_VECTOR_LEN;
237
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
238
+ const len1 = WASM_VECTOR_LEN;
239
+ wasm.set_workspace_file(retptr, ptr0, len0, ptr1, len1);
240
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
241
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
242
+ if (r1) {
243
+ throw takeObject(r0);
244
+ }
245
+ } finally {
246
+ wasm.__wbindgen_add_to_stack_pointer(16);
241
247
  }
242
248
  }
243
249
 
@@ -246,11 +252,36 @@ export function set_workspace_file(uri, text) {
246
252
  * @param {string} uri
247
253
  */
248
254
  export function remove_workspace_file(uri) {
249
- const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
- const len0 = WASM_VECTOR_LEN;
251
- const ret = wasm.remove_workspace_file(ptr0, len0);
252
- if (ret[1]) {
253
- throw takeFromExternrefTable0(ret[0]);
255
+ try {
256
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
257
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
258
+ const len0 = WASM_VECTOR_LEN;
259
+ wasm.remove_workspace_file(retptr, ptr0, len0);
260
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
261
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
262
+ if (r1) {
263
+ throw takeObject(r0);
264
+ }
265
+ } finally {
266
+ wasm.__wbindgen_add_to_stack_pointer(16);
267
+ }
268
+ }
269
+
270
+ /**
271
+ * Replace the virtual workspace files visible to the WASM language server.
272
+ * @param {any} files
273
+ */
274
+ export function set_workspace_files(files) {
275
+ try {
276
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
277
+ wasm.set_workspace_entries(retptr, addHeapObject(files));
278
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
279
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
280
+ if (r1) {
281
+ throw takeObject(r0);
282
+ }
283
+ } finally {
284
+ wasm.__wbindgen_add_to_stack_pointer(16);
254
285
  }
255
286
  }
256
287
 
@@ -259,33 +290,46 @@ export function remove_workspace_file(uri) {
259
290
  * @param {any} entries
260
291
  */
261
292
  export function set_workspace_entries(entries) {
262
- const ret = wasm.set_workspace_entries(entries);
263
- if (ret[1]) {
264
- throw takeFromExternrefTable0(ret[0]);
293
+ try {
294
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
295
+ wasm.set_workspace_entries(retptr, addHeapObject(entries));
296
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
297
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
298
+ if (r1) {
299
+ throw takeObject(r0);
300
+ }
301
+ } finally {
302
+ wasm.__wbindgen_add_to_stack_pointer(16);
265
303
  }
266
304
  }
267
305
 
306
+ function _assertClass(instance, klass) {
307
+ if (!(instance instanceof klass)) {
308
+ throw new Error(`expected instance of ${klass.name}`);
309
+ }
310
+ }
268
311
  /**
269
- * Replace the virtual workspace files visible to the WASM language server.
270
- * @param {any} files
312
+ * Serve Tombi LSP over byte streams using the standard LSP header framing.
313
+ * @param {ServerConfig} config
314
+ * @returns {Promise<void>}
271
315
  */
272
- export function set_workspace_files(files) {
273
- const ret = wasm.set_workspace_files(files);
274
- if (ret[1]) {
275
- throw takeFromExternrefTable0(ret[0]);
276
- }
316
+ export function serve(config) {
317
+ _assertClass(config, ServerConfig);
318
+ var ptr0 = config.__destroy_into_raw();
319
+ const ret = wasm.serve(ptr0);
320
+ return takeObject(ret);
277
321
  }
278
322
 
279
323
  export function start() {
280
324
  wasm.start();
281
325
  }
282
326
 
283
- function __wbg_adapter_40(arg0, arg1, arg2) {
284
- wasm.closure5184_externref_shim(arg0, arg1, arg2);
327
+ function __wbg_adapter_38(arg0, arg1, arg2) {
328
+ wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
285
329
  }
286
330
 
287
- function __wbg_adapter_168(arg0, arg1, arg2, arg3) {
288
- wasm.closure5208_externref_shim(arg0, arg1, arg2, arg3);
331
+ function __wbg_adapter_164(arg0, arg1, arg2, arg3) {
332
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
289
333
  }
290
334
 
291
335
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -319,14 +363,14 @@ export class IntoUnderlyingByteSource {
319
363
  * @returns {Promise<any>}
320
364
  */
321
365
  pull(controller) {
322
- const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
323
- return ret;
366
+ const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
367
+ return takeObject(ret);
324
368
  }
325
369
  /**
326
370
  * @param {ReadableByteStreamController} controller
327
371
  */
328
372
  start(controller) {
329
- wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
373
+ wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
330
374
  }
331
375
  /**
332
376
  * @returns {ReadableStreamType}
@@ -364,8 +408,8 @@ export class IntoUnderlyingSink {
364
408
  */
365
409
  abort(reason) {
366
410
  const ptr = this.__destroy_into_raw();
367
- const ret = wasm.intounderlyingsink_abort(ptr, reason);
368
- return ret;
411
+ const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
412
+ return takeObject(ret);
369
413
  }
370
414
  /**
371
415
  * @returns {Promise<any>}
@@ -373,15 +417,15 @@ export class IntoUnderlyingSink {
373
417
  close() {
374
418
  const ptr = this.__destroy_into_raw();
375
419
  const ret = wasm.intounderlyingsink_close(ptr);
376
- return ret;
420
+ return takeObject(ret);
377
421
  }
378
422
  /**
379
423
  * @param {any} chunk
380
424
  * @returns {Promise<any>}
381
425
  */
382
426
  write(chunk) {
383
- const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
384
- return ret;
427
+ const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
428
+ return takeObject(ret);
385
429
  }
386
430
  }
387
431
 
@@ -407,8 +451,8 @@ export class IntoUnderlyingSource {
407
451
  * @returns {Promise<any>}
408
452
  */
409
453
  pull(controller) {
410
- const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
411
- return ret;
454
+ const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
455
+ return takeObject(ret);
412
456
  }
413
457
  cancel() {
414
458
  const ptr = this.__destroy_into_raw();
@@ -440,7 +484,7 @@ export class ServerConfig {
440
484
  * @param {WritableStream} from_server
441
485
  */
442
486
  constructor(into_server, from_server) {
443
- const ret = wasm.serverconfig_new(into_server, from_server);
487
+ const ret = wasm.serverconfig_new(addHeapObject(into_server), addHeapObject(from_server));
444
488
  this.__wbg_ptr = ret >>> 0;
445
489
  ServerConfigFinalization.register(this, this.__wbg_ptr, this);
446
490
  return this;
@@ -482,57 +526,57 @@ function __wbg_get_imports() {
482
526
  const imports = {};
483
527
  imports.wbg = {};
484
528
  imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
485
- const ret = arg0.arrayBuffer();
486
- return ret;
529
+ const ret = getObject(arg0).arrayBuffer();
530
+ return addHeapObject(ret);
487
531
  }, arguments) };
488
532
  imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
489
- const ret = arg0.buffer;
490
- return ret;
533
+ const ret = getObject(arg0).buffer;
534
+ return addHeapObject(ret);
491
535
  };
492
536
  imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
493
- const ret = arg0.buffer;
494
- return ret;
537
+ const ret = getObject(arg0).buffer;
538
+ return addHeapObject(ret);
495
539
  };
496
540
  imports.wbg.__wbg_byobRequest_77d9adf63337edfb = function(arg0) {
497
- const ret = arg0.byobRequest;
498
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
541
+ const ret = getObject(arg0).byobRequest;
542
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
499
543
  };
500
544
  imports.wbg.__wbg_byteLength_e674b853d9c77e1d = function(arg0) {
501
- const ret = arg0.byteLength;
545
+ const ret = getObject(arg0).byteLength;
502
546
  return ret;
503
547
  };
504
548
  imports.wbg.__wbg_byteOffset_fd862df290ef848d = function(arg0) {
505
- const ret = arg0.byteOffset;
549
+ const ret = getObject(arg0).byteOffset;
506
550
  return ret;
507
551
  };
508
552
  imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
509
- const ret = arg0.call(arg1);
510
- return ret;
553
+ const ret = getObject(arg0).call(getObject(arg1));
554
+ return addHeapObject(ret);
511
555
  }, arguments) };
512
556
  imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
513
- const ret = arg0.call(arg1, arg2);
514
- return ret;
557
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
558
+ return addHeapObject(ret);
515
559
  }, arguments) };
516
560
  imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
517
- arg0.close();
561
+ getObject(arg0).close();
518
562
  }, arguments) };
519
563
  imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) {
520
- arg0.close();
564
+ getObject(arg0).close();
521
565
  }, arguments) };
522
566
  imports.wbg.__wbg_close_fa50b16598acbea1 = function(arg0) {
523
- const ret = arg0.close();
524
- return ret;
567
+ const ret = getObject(arg0).close();
568
+ return addHeapObject(ret);
525
569
  };
526
570
  imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
527
- const ret = arg0.done;
571
+ const ret = getObject(arg0).done;
528
572
  return ret;
529
573
  };
530
574
  imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) {
531
- arg0.enqueue(arg1);
575
+ getObject(arg0).enqueue(getObject(arg1));
532
576
  }, arguments) };
533
577
  imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
534
- const ret = Object.entries(arg0);
535
- return ret;
578
+ const ret = Object.entries(getObject(arg0));
579
+ return addHeapObject(ret);
536
580
  };
537
581
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
538
582
  let deferred0_0;
@@ -542,44 +586,44 @@ function __wbg_get_imports() {
542
586
  deferred0_1 = arg1;
543
587
  console.error(getStringFromWasm0(arg0, arg1));
544
588
  } finally {
545
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
589
+ wasm.__wbindgen_export_1(deferred0_0, deferred0_1, 1);
546
590
  }
547
591
  };
548
592
  imports.wbg.__wbg_fetch_a9bc66c159c18e19 = function(arg0) {
549
- const ret = fetch(arg0);
550
- return ret;
593
+ const ret = fetch(getObject(arg0));
594
+ return addHeapObject(ret);
551
595
  };
552
596
  imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
553
597
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
554
598
  }, arguments) };
555
599
  imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
556
- const ret = arg0.getTime();
600
+ const ret = getObject(arg0).getTime();
557
601
  return ret;
558
602
  };
559
603
  imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
560
- const ret = arg0.getTimezoneOffset();
604
+ const ret = getObject(arg0).getTimezoneOffset();
561
605
  return ret;
562
606
  };
563
607
  imports.wbg.__wbg_getWriter_6ce182d0adc3f96b = function() { return handleError(function (arg0) {
564
- const ret = arg0.getWriter();
565
- return ret;
608
+ const ret = getObject(arg0).getWriter();
609
+ return addHeapObject(ret);
566
610
  }, arguments) };
567
611
  imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
568
- const ret = Reflect.get(arg0, arg1);
569
- return ret;
612
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
613
+ return addHeapObject(ret);
570
614
  }, arguments) };
571
615
  imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
572
- const ret = arg0[arg1 >>> 0];
573
- return ret;
616
+ const ret = getObject(arg0)[arg1 >>> 0];
617
+ return addHeapObject(ret);
574
618
  };
575
619
  imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
576
- const ret = arg0[arg1];
577
- return ret;
620
+ const ret = getObject(arg0)[getObject(arg1)];
621
+ return addHeapObject(ret);
578
622
  };
579
623
  imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
580
624
  let result;
581
625
  try {
582
- result = arg0 instanceof ArrayBuffer;
626
+ result = getObject(arg0) instanceof ArrayBuffer;
583
627
  } catch (_) {
584
628
  result = false;
585
629
  }
@@ -589,7 +633,7 @@ function __wbg_get_imports() {
589
633
  imports.wbg.__wbg_instanceof_Error_4d54113b22d20306 = function(arg0) {
590
634
  let result;
591
635
  try {
592
- result = arg0 instanceof Error;
636
+ result = getObject(arg0) instanceof Error;
593
637
  } catch (_) {
594
638
  result = false;
595
639
  }
@@ -599,7 +643,7 @@ function __wbg_get_imports() {
599
643
  imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
600
644
  let result;
601
645
  try {
602
- result = arg0 instanceof Response;
646
+ result = getObject(arg0) instanceof Response;
603
647
  } catch (_) {
604
648
  result = false;
605
649
  }
@@ -609,7 +653,7 @@ function __wbg_get_imports() {
609
653
  imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
610
654
  let result;
611
655
  try {
612
- result = arg0 instanceof Uint8Array;
656
+ result = getObject(arg0) instanceof Uint8Array;
613
657
  } catch (_) {
614
658
  result = false;
615
659
  }
@@ -617,36 +661,36 @@ function __wbg_get_imports() {
617
661
  return ret;
618
662
  };
619
663
  imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
620
- const ret = Array.isArray(arg0);
664
+ const ret = Array.isArray(getObject(arg0));
621
665
  return ret;
622
666
  };
623
667
  imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
624
668
  const ret = Symbol.iterator;
625
- return ret;
669
+ return addHeapObject(ret);
626
670
  };
627
671
  imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
628
- const ret = arg0.length;
672
+ const ret = getObject(arg0).length;
629
673
  return ret;
630
674
  };
631
675
  imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
632
- const ret = arg0.length;
676
+ const ret = getObject(arg0).length;
633
677
  return ret;
634
678
  };
635
679
  imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
636
- const ret = arg0.message;
637
- return ret;
680
+ const ret = getObject(arg0).message;
681
+ return addHeapObject(ret);
638
682
  };
639
683
  imports.wbg.__wbg_name_0b327d569f00ebee = function(arg0) {
640
- const ret = arg0.name;
641
- return ret;
684
+ const ret = getObject(arg0).name;
685
+ return addHeapObject(ret);
642
686
  };
643
687
  imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
644
688
  const ret = new Date();
645
- return ret;
689
+ return addHeapObject(ret);
646
690
  };
647
691
  imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
648
692
  const ret = new Headers();
649
- return ret;
693
+ return addHeapObject(ret);
650
694
  }, arguments) };
651
695
  imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
652
696
  try {
@@ -655,186 +699,186 @@ function __wbg_get_imports() {
655
699
  const a = state0.a;
656
700
  state0.a = 0;
657
701
  try {
658
- return __wbg_adapter_168(a, state0.b, arg0, arg1);
702
+ return __wbg_adapter_164(a, state0.b, arg0, arg1);
659
703
  } finally {
660
704
  state0.a = a;
661
705
  }
662
706
  };
663
707
  const ret = new Promise(cb0);
664
- return ret;
708
+ return addHeapObject(ret);
665
709
  } finally {
666
710
  state0.a = state0.b = 0;
667
711
  }
668
712
  };
669
713
  imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
670
- const ret = new Date(arg0);
671
- return ret;
714
+ const ret = new Date(getObject(arg0));
715
+ return addHeapObject(ret);
672
716
  };
673
717
  imports.wbg.__wbg_new_405e22f390576ce2 = function() {
674
718
  const ret = new Object();
675
- return ret;
719
+ return addHeapObject(ret);
676
720
  };
677
721
  imports.wbg.__wbg_new_80bf4ee74f41ff92 = function() { return handleError(function () {
678
722
  const ret = new URLSearchParams();
679
- return ret;
723
+ return addHeapObject(ret);
680
724
  }, arguments) };
681
725
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
682
726
  const ret = new Error();
683
- return ret;
727
+ return addHeapObject(ret);
684
728
  };
685
729
  imports.wbg.__wbg_new_9ffbe0a71eff35e3 = function() { return handleError(function (arg0, arg1) {
686
730
  const ret = new URL(getStringFromWasm0(arg0, arg1));
687
- return ret;
731
+ return addHeapObject(ret);
688
732
  }, arguments) };
689
733
  imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
690
- const ret = new Uint8Array(arg0);
691
- return ret;
734
+ const ret = new Uint8Array(getObject(arg0));
735
+ return addHeapObject(ret);
692
736
  };
693
737
  imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
694
738
  const ret = new Error(getStringFromWasm0(arg0, arg1));
695
- return ret;
739
+ return addHeapObject(ret);
696
740
  };
697
741
  imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
698
742
  const ret = new Function(getStringFromWasm0(arg0, arg1));
699
- return ret;
743
+ return addHeapObject(ret);
700
744
  };
701
745
  imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
702
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
703
- return ret;
746
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
747
+ return addHeapObject(ret);
704
748
  };
705
749
  imports.wbg.__wbg_newwithstr_78e86e03c4ae814e = function() { return handleError(function (arg0, arg1) {
706
750
  const ret = new Request(getStringFromWasm0(arg0, arg1));
707
- return ret;
751
+ return addHeapObject(ret);
708
752
  }, arguments) };
709
753
  imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
710
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
711
- return ret;
754
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
755
+ return addHeapObject(ret);
712
756
  }, arguments) };
713
757
  imports.wbg.__wbg_newwithyearmonthdayhrminsec_72c204d952ef4426 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
714
758
  const ret = new Date(arg0 >>> 0, arg1, arg2, arg3, arg4, arg5);
715
- return ret;
759
+ return addHeapObject(ret);
716
760
  };
717
761
  imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
718
- const ret = arg0.next;
719
- return ret;
762
+ const ret = getObject(arg0).next;
763
+ return addHeapObject(ret);
720
764
  };
721
765
  imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
722
- const ret = arg0.next();
723
- return ret;
766
+ const ret = getObject(arg0).next();
767
+ return addHeapObject(ret);
724
768
  }, arguments) };
725
769
  imports.wbg.__wbg_next_c3ab0d59847b3b5c = function() { return handleError(function (arg0) {
726
- const ret = arg0.next();
727
- return ret;
770
+ const ret = getObject(arg0).next();
771
+ return addHeapObject(ret);
728
772
  }, arguments) };
729
773
  imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
730
- queueMicrotask(arg0);
774
+ queueMicrotask(getObject(arg0));
731
775
  };
732
776
  imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
733
- const ret = arg0.queueMicrotask;
734
- return ret;
777
+ const ret = getObject(arg0).queueMicrotask;
778
+ return addHeapObject(ret);
735
779
  };
736
780
  imports.wbg.__wbg_ready_480b0e63c18378c7 = function(arg0) {
737
- const ret = arg0.ready;
738
- return ret;
781
+ const ret = getObject(arg0).ready;
782
+ return addHeapObject(ret);
739
783
  };
740
784
  imports.wbg.__wbg_releaseLock_a389e6ea62ce0f4d = function(arg0) {
741
- arg0.releaseLock();
785
+ getObject(arg0).releaseLock();
742
786
  };
743
787
  imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
744
- const ret = Promise.resolve(arg0);
745
- return ret;
788
+ const ret = Promise.resolve(getObject(arg0));
789
+ return addHeapObject(ret);
746
790
  };
747
791
  imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) {
748
- arg0.respond(arg1 >>> 0);
792
+ getObject(arg0).respond(arg1 >>> 0);
749
793
  }, arguments) };
750
794
  imports.wbg.__wbg_search_e0e79cfe010c5c23 = function(arg0, arg1) {
751
- const ret = arg1.search;
752
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
795
+ const ret = getObject(arg1).search;
796
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
753
797
  const len1 = WASM_VECTOR_LEN;
754
798
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
755
799
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
756
800
  };
757
801
  imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
758
- arg0.set(arg1, arg2 >>> 0);
802
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
759
803
  };
760
804
  imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
761
- arg0.headers = arg1;
805
+ getObject(arg0).headers = getObject(arg1);
762
806
  };
763
807
  imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
764
- arg0.method = getStringFromWasm0(arg1, arg2);
808
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
765
809
  };
766
810
  imports.wbg.__wbg_setsearch_609451e9e712f3c6 = function(arg0, arg1, arg2) {
767
- arg0.search = getStringFromWasm0(arg1, arg2);
811
+ getObject(arg0).search = getStringFromWasm0(arg1, arg2);
768
812
  };
769
813
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
770
- const ret = arg1.stack;
771
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
814
+ const ret = getObject(arg1).stack;
815
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
772
816
  const len1 = WASM_VECTOR_LEN;
773
817
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
774
818
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
775
819
  };
776
820
  imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
777
821
  const ret = typeof global === 'undefined' ? null : global;
778
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
822
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
779
823
  };
780
824
  imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
781
825
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
782
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
826
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
783
827
  };
784
828
  imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
785
829
  const ret = typeof self === 'undefined' ? null : self;
786
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
830
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
787
831
  };
788
832
  imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
789
833
  const ret = typeof window === 'undefined' ? null : window;
790
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
834
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
791
835
  };
792
836
  imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
793
- const ret = arg0.status;
837
+ const ret = getObject(arg0).status;
794
838
  return ret;
795
839
  };
796
840
  imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
797
- const ret = arg0.then(arg1);
798
- return ret;
841
+ const ret = getObject(arg0).then(getObject(arg1));
842
+ return addHeapObject(ret);
799
843
  };
800
844
  imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
801
- const ret = arg0.then(arg1, arg2);
802
- return ret;
845
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
846
+ return addHeapObject(ret);
803
847
  };
804
848
  imports.wbg.__wbg_toString_5285597960676b7b = function(arg0) {
805
- const ret = arg0.toString();
806
- return ret;
849
+ const ret = getObject(arg0).toString();
850
+ return addHeapObject(ret);
807
851
  };
808
852
  imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
809
- const ret = arg0.toString();
810
- return ret;
853
+ const ret = getObject(arg0).toString();
854
+ return addHeapObject(ret);
811
855
  };
812
856
  imports.wbg.__wbg_url_8f9653b899456042 = function(arg0, arg1) {
813
- const ret = arg1.url;
814
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
857
+ const ret = getObject(arg1).url;
858
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
815
859
  const len1 = WASM_VECTOR_LEN;
816
860
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
817
861
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
818
862
  };
819
863
  imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
820
- const ret = arg0.value;
821
- return ret;
864
+ const ret = getObject(arg0).value;
865
+ return addHeapObject(ret);
822
866
  };
823
867
  imports.wbg.__wbg_view_fd8a56e8983f448d = function(arg0) {
824
- const ret = arg0.view;
825
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
868
+ const ret = getObject(arg0).view;
869
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
826
870
  };
827
871
  imports.wbg.__wbg_write_311434e30ee214e5 = function(arg0, arg1) {
828
- const ret = arg0.write(arg1);
829
- return ret;
872
+ const ret = getObject(arg0).write(getObject(arg1));
873
+ return addHeapObject(ret);
830
874
  };
831
875
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
832
- const v = arg0;
876
+ const v = getObject(arg0);
833
877
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
834
878
  return ret;
835
879
  };
836
880
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
837
- const obj = arg0.original;
881
+ const obj = takeObject(arg0).original;
838
882
  if (obj.cnt-- == 1) {
839
883
  obj.a = 0;
840
884
  return true;
@@ -842,81 +886,78 @@ function __wbg_get_imports() {
842
886
  const ret = false;
843
887
  return ret;
844
888
  };
845
- imports.wbg.__wbindgen_closure_wrapper15781 = function(arg0, arg1, arg2) {
846
- const ret = makeMutClosure(arg0, arg1, 5185, __wbg_adapter_40);
847
- return ret;
889
+ imports.wbg.__wbindgen_closure_wrapper15864 = function(arg0, arg1, arg2) {
890
+ const ret = makeMutClosure(arg0, arg1, 5177, __wbg_adapter_38);
891
+ return addHeapObject(ret);
848
892
  };
849
893
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
850
- const ret = debugString(arg1);
851
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
894
+ const ret = debugString(getObject(arg1));
895
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
852
896
  const len1 = WASM_VECTOR_LEN;
853
897
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
854
898
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
855
899
  };
856
900
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
857
901
  const ret = new Error(getStringFromWasm0(arg0, arg1));
858
- return ret;
902
+ return addHeapObject(ret);
859
903
  };
860
904
  imports.wbg.__wbindgen_in = function(arg0, arg1) {
861
- const ret = arg0 in arg1;
905
+ const ret = getObject(arg0) in getObject(arg1);
862
906
  return ret;
863
907
  };
864
- imports.wbg.__wbindgen_init_externref_table = function() {
865
- const table = wasm.__wbindgen_export_2;
866
- const offset = table.grow(4);
867
- table.set(0, undefined);
868
- table.set(offset + 0, undefined);
869
- table.set(offset + 1, null);
870
- table.set(offset + 2, true);
871
- table.set(offset + 3, false);
872
- ;
873
- };
874
908
  imports.wbg.__wbindgen_is_function = function(arg0) {
875
- const ret = typeof(arg0) === 'function';
909
+ const ret = typeof(getObject(arg0)) === 'function';
876
910
  return ret;
877
911
  };
878
912
  imports.wbg.__wbindgen_is_object = function(arg0) {
879
- const val = arg0;
913
+ const val = getObject(arg0);
880
914
  const ret = typeof(val) === 'object' && val !== null;
881
915
  return ret;
882
916
  };
883
917
  imports.wbg.__wbindgen_is_string = function(arg0) {
884
- const ret = typeof(arg0) === 'string';
918
+ const ret = typeof(getObject(arg0)) === 'string';
885
919
  return ret;
886
920
  };
887
921
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
888
- const ret = arg0 === undefined;
922
+ const ret = getObject(arg0) === undefined;
889
923
  return ret;
890
924
  };
891
925
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
892
- const ret = arg0 == arg1;
926
+ const ret = getObject(arg0) == getObject(arg1);
893
927
  return ret;
894
928
  };
895
929
  imports.wbg.__wbindgen_memory = function() {
896
930
  const ret = wasm.memory;
897
- return ret;
931
+ return addHeapObject(ret);
898
932
  };
899
933
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
900
- const obj = arg1;
934
+ const obj = getObject(arg1);
901
935
  const ret = typeof(obj) === 'number' ? obj : undefined;
902
936
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
903
937
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
904
938
  };
905
939
  imports.wbg.__wbindgen_number_new = function(arg0) {
906
940
  const ret = arg0;
907
- return ret;
941
+ return addHeapObject(ret);
942
+ };
943
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
944
+ const ret = getObject(arg0);
945
+ return addHeapObject(ret);
946
+ };
947
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
948
+ takeObject(arg0);
908
949
  };
909
950
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
910
- const obj = arg1;
951
+ const obj = getObject(arg1);
911
952
  const ret = typeof(obj) === 'string' ? obj : undefined;
912
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
953
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
913
954
  var len1 = WASM_VECTOR_LEN;
914
955
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
915
956
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
916
957
  };
917
958
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
918
959
  const ret = getStringFromWasm0(arg0, arg1);
919
- return ret;
960
+ return addHeapObject(ret);
920
961
  };
921
962
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
922
963
  throw new Error(getStringFromWasm0(arg0, arg1));
Binary file
@@ -2,34 +2,32 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_serverconfig_free: (a: number, b: number) => void;
5
- export const remove_workspace_file: (a: number, b: number) => [number, number];
6
- export const serve: (a: number) => any;
7
- export const set_workspace_entries: (a: any) => [number, number];
8
- export const set_workspace_file: (a: number, b: number, c: number, d: number) => [number, number];
9
- export const set_workspace_files: (a: any) => [number, number];
10
- export const serverconfig_new: (a: any, b: any) => number;
5
+ export const remove_workspace_file: (a: number, b: number, c: number) => void;
6
+ export const serve: (a: number) => number;
7
+ export const set_workspace_entries: (a: number, b: number) => void;
8
+ export const set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
9
+ export const set_workspace_files: (a: number, b: number) => void;
10
+ export const serverconfig_new: (a: number, b: number) => number;
11
11
  export const start: () => void;
12
12
  export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
13
- export const intounderlyingsink_abort: (a: number, b: any) => any;
14
- export const intounderlyingsink_close: (a: number) => any;
15
- export const intounderlyingsink_write: (a: number, b: any) => any;
16
13
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
14
+ export const intounderlyingsink_abort: (a: number, b: number) => number;
15
+ export const intounderlyingsink_close: (a: number) => number;
16
+ export const intounderlyingsink_write: (a: number, b: number) => number;
17
17
  export const intounderlyingsource_cancel: (a: number) => void;
18
- export const intounderlyingsource_pull: (a: number, b: any) => any;
18
+ export const intounderlyingsource_pull: (a: number, b: number) => number;
19
19
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
20
20
  export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
21
21
  export const intounderlyingbytesource_cancel: (a: number) => void;
22
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
23
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
22
+ export const intounderlyingbytesource_pull: (a: number, b: number) => number;
23
+ export const intounderlyingbytesource_start: (a: number, b: number) => void;
24
24
  export const intounderlyingbytesource_type: (a: number) => number;
25
- export const __wbindgen_exn_store: (a: number) => void;
26
- export const __externref_table_alloc: () => number;
27
- export const __wbindgen_export_2: WebAssembly.Table;
28
- export const __wbindgen_free: (a: number, b: number, c: number) => void;
29
- export const __wbindgen_malloc: (a: number, b: number) => number;
30
- export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
31
- export const __wbindgen_export_6: WebAssembly.Table;
32
- export const __externref_table_dealloc: (a: number) => void;
33
- export const closure5184_externref_shim: (a: number, b: number, c: any) => void;
34
- export const closure5208_externref_shim: (a: number, b: number, c: any, d: any) => void;
25
+ export const __wbindgen_export_0: (a: number) => void;
26
+ export const __wbindgen_export_1: (a: number, b: number, c: number) => void;
27
+ export const __wbindgen_export_2: (a: number, b: number) => number;
28
+ export const __wbindgen_export_3: (a: number, b: number, c: number, d: number) => number;
29
+ export const __wbindgen_export_4: WebAssembly.Table;
30
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
31
+ export const __wbindgen_export_5: (a: number, b: number, c: number) => void;
32
+ export const __wbindgen_export_6: (a: number, b: number, c: number, d: number) => void;
35
33
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@tombi-toml/wasm-lsp",
3
- "version": "0.0.0-bootstrap.0",
3
+ "version": "1.4.0",
4
4
  "description": "Tombi Language Server for WebAssembly",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/tombi-toml/tombi.git",
8
+ "directory": "typescript/@tombi-toml/wasm-lsp"
9
+ },
5
10
  "type": "module",
6
11
  "files": [
7
12
  "dist"