@biomejs/wasm-web 1.7.2 → 1.7.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/biome_wasm.d.ts CHANGED
@@ -875,6 +875,10 @@ interface Nursery {
875
875
  * Disallow using a callback in asynchronous tests and hooks.
876
876
  */
877
877
  noDoneCallback?: RuleConfiguration_for_Null;
878
+ /**
879
+ * Disallow duplicate @import rules.
880
+ */
881
+ noDuplicateAtImportRules?: RuleConfiguration_for_Null;
878
882
  /**
879
883
  * Disallow duplicate conditions in if-else-if chains
880
884
  */
@@ -927,10 +931,18 @@ interface Nursery {
927
931
  * Disallow unknown CSS value functions.
928
932
  */
929
933
  noUnknownFunction?: RuleConfiguration_for_Null;
934
+ /**
935
+ * Disallow unknown pseudo-element selectors.
936
+ */
937
+ noUnknownSelectorPseudoElement?: RuleConfiguration_for_Null;
930
938
  /**
931
939
  * Disallow unknown CSS units.
932
940
  */
933
941
  noUnknownUnit?: RuleConfiguration_for_Null;
942
+ /**
943
+ * Disallow unmatchable An+B selectors.
944
+ */
945
+ noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
934
946
  /**
935
947
  * Disallow initializing variables to undefined.
936
948
  */
@@ -946,11 +958,15 @@ interface Nursery {
946
958
  /**
947
959
  * Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
948
960
  */
949
- useConsistentBuiltinInstatiation?: RuleConfiguration_for_Null;
961
+ useConsistentBuiltinInstantiation?: RuleConfiguration_for_Null;
950
962
  /**
951
963
  * Require the default clause in switch statements.
952
964
  */
953
965
  useDefaultSwitchClause?: RuleConfiguration_for_Null;
966
+ /**
967
+ * Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
968
+ */
969
+ useExplicitLengthCheck?: RuleConfiguration_for_Null;
954
970
  /**
955
971
  * Disallow a missing generic family keyword within font families.
956
972
  */
@@ -1868,12 +1884,12 @@ type Category =
1868
1884
  | "lint/correctness/useValidForDirection"
1869
1885
  | "lint/correctness/useYield"
1870
1886
  | "lint/nursery/colorNoInvalidHex"
1871
- | "lint/nursery/useArrayLiterals"
1872
1887
  | "lint/nursery/noColorInvalidHex"
1873
1888
  | "lint/nursery/noConsole"
1874
1889
  | "lint/nursery/noConstantMathMinMaxClamp"
1875
1890
  | "lint/nursery/noCssEmptyBlock"
1876
1891
  | "lint/nursery/noDoneCallback"
1892
+ | "lint/nursery/noDuplicateAtImportRules"
1877
1893
  | "lint/nursery/noDuplicateElseIf"
1878
1894
  | "lint/nursery/noDuplicateFontNames"
1879
1895
  | "lint/nursery/noDuplicateJsonKeys"
@@ -1889,12 +1905,16 @@ type Category =
1889
1905
  | "lint/nursery/noTypeOnlyImportAttributes"
1890
1906
  | "lint/nursery/noUndeclaredDependencies"
1891
1907
  | "lint/nursery/noUnknownFunction"
1892
- | "lint/nursery/noUselessUndefinedInitialization"
1908
+ | "lint/nursery/noUnknownSelectorPseudoElement"
1893
1909
  | "lint/nursery/noUnknownUnit"
1910
+ | "lint/nursery/noUnmatchableAnbSelector"
1911
+ | "lint/nursery/noUselessUndefinedInitialization"
1912
+ | "lint/nursery/useArrayLiterals"
1894
1913
  | "lint/nursery/useBiomeSuppressionComment"
1895
- | "lint/nursery/useConsistentBuiltinInstatiation"
1896
- | "lint/nursery/useGenericFontNames"
1914
+ | "lint/nursery/useExplicitLengthCheck"
1915
+ | "lint/nursery/useConsistentBuiltinInstantiation"
1897
1916
  | "lint/nursery/useDefaultSwitchClause"
1917
+ | "lint/nursery/useGenericFontNames"
1898
1918
  | "lint/nursery/useImportRestrictions"
1899
1919
  | "lint/nursery/useSortedClasses"
1900
1920
  | "lint/performance/noAccumulatingSpread"
@@ -2359,10 +2379,10 @@ export interface InitOutput {
2359
2379
  readonly diagnosticprinter_print_simple: (a: number, b: number, c: number) => void;
2360
2380
  readonly diagnosticprinter_print_verbose: (a: number, b: number, c: number) => void;
2361
2381
  readonly diagnosticprinter_finish: (a: number, b: number) => void;
2362
- readonly __wbindgen_malloc: (a: number) => number;
2363
- readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
2382
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
2383
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
2364
2384
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
2365
- readonly __wbindgen_free: (a: number, b: number) => void;
2385
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
2366
2386
  readonly __wbindgen_exn_store: (a: number) => void;
2367
2387
  readonly __wbindgen_start: () => void;
2368
2388
  }
@@ -2386,4 +2406,4 @@ export function initSync(module: SyncInitInput): InitOutput;
2386
2406
  *
2387
2407
  * @returns {Promise<InitOutput>}
2388
2408
  */
2389
- export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
2409
+ export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
package/biome_wasm.js CHANGED
@@ -6,46 +6,6 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
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;
17
- return idx;
18
- }
19
-
20
- function dropObject(idx) {
21
- if (idx < 132) return;
22
- heap[idx] = heap_next;
23
- heap_next = idx;
24
- }
25
-
26
- function takeObject(idx) {
27
- const ret = getObject(idx);
28
- dropObject(idx);
29
- return ret;
30
- }
31
-
32
- const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
33
-
34
- cachedTextDecoder.decode();
35
-
36
- let cachedUint8Memory0 = null;
37
-
38
- function getUint8Memory0() {
39
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
40
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
41
- }
42
- return cachedUint8Memory0;
43
- }
44
-
45
- function getStringFromWasm0(ptr, len) {
46
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
47
- }
48
-
49
9
  function isLikeNone(x) {
50
10
  return x === undefined || x === null;
51
11
  }
@@ -70,7 +30,16 @@ function getInt32Memory0() {
70
30
 
71
31
  let WASM_VECTOR_LEN = 0;
72
32
 
73
- const cachedTextEncoder = new TextEncoder('utf-8');
33
+ let cachedUint8Memory0 = null;
34
+
35
+ function getUint8Memory0() {
36
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
37
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
38
+ }
39
+ return cachedUint8Memory0;
40
+ }
41
+
42
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
74
43
 
75
44
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
76
45
  ? function (arg, view) {
@@ -89,14 +58,14 @@ function passStringToWasm0(arg, malloc, realloc) {
89
58
 
90
59
  if (realloc === undefined) {
91
60
  const buf = cachedTextEncoder.encode(arg);
92
- const ptr = malloc(buf.length);
61
+ const ptr = malloc(buf.length, 1) >>> 0;
93
62
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
94
63
  WASM_VECTOR_LEN = buf.length;
95
64
  return ptr;
96
65
  }
97
66
 
98
67
  let len = arg.length;
99
- let ptr = malloc(len);
68
+ let ptr = malloc(len, 1) >>> 0;
100
69
 
101
70
  const mem = getUint8Memory0();
102
71
 
@@ -112,17 +81,50 @@ function passStringToWasm0(arg, malloc, realloc) {
112
81
  if (offset !== 0) {
113
82
  arg = arg.slice(offset);
114
83
  }
115
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
84
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
116
85
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
117
86
  const ret = encodeString(arg, view);
118
87
 
119
88
  offset += ret.written;
89
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
120
90
  }
121
91
 
122
92
  WASM_VECTOR_LEN = offset;
123
93
  return ptr;
124
94
  }
125
95
 
96
+ let heap_next = heap.length;
97
+
98
+ function dropObject(idx) {
99
+ if (idx < 132) return;
100
+ heap[idx] = heap_next;
101
+ heap_next = idx;
102
+ }
103
+
104
+ function takeObject(idx) {
105
+ const ret = getObject(idx);
106
+ dropObject(idx);
107
+ return ret;
108
+ }
109
+
110
+ function addHeapObject(obj) {
111
+ if (heap_next === heap.length) heap.push(heap.length + 1);
112
+ const idx = heap_next;
113
+ heap_next = heap[idx];
114
+
115
+ heap[idx] = obj;
116
+ return idx;
117
+ }
118
+
119
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
120
+
121
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
122
+
123
+ function getStringFromWasm0(ptr, len) {
124
+ ptr = ptr >>> 0;
125
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
126
+ }
127
+
126
128
  let cachedBigInt64Memory0 = null;
127
129
 
128
130
  function getBigInt64Memory0() {
@@ -209,21 +211,18 @@ function handleError(f, args) {
209
211
  wasm.__wbindgen_exn_store(addHeapObject(e));
210
212
  }
211
213
  }
214
+
215
+ const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
216
+ ? { register: () => {}, unregister: () => {} }
217
+ : new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0));
212
218
  /**
213
219
  */
214
220
  export class DiagnosticPrinter {
215
221
 
216
- static __wrap(ptr) {
217
- const obj = Object.create(DiagnosticPrinter.prototype);
218
- obj.ptr = ptr;
219
-
220
- return obj;
221
- }
222
-
223
222
  __destroy_into_raw() {
224
- const ptr = this.ptr;
225
- this.ptr = 0;
226
-
223
+ const ptr = this.__wbg_ptr;
224
+ this.__wbg_ptr = 0;
225
+ DiagnosticPrinterFinalization.unregister(this);
227
226
  return ptr;
228
227
  }
229
228
 
@@ -241,7 +240,8 @@ export class DiagnosticPrinter {
241
240
  const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
242
241
  const len1 = WASM_VECTOR_LEN;
243
242
  const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
244
- return DiagnosticPrinter.__wrap(ret);
243
+ this.__wbg_ptr = ret >>> 0;
244
+ return this;
245
245
  }
246
246
  /**
247
247
  * @param {Diagnostic} diagnostic
@@ -249,7 +249,7 @@ export class DiagnosticPrinter {
249
249
  print_simple(diagnostic) {
250
250
  try {
251
251
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
252
- wasm.diagnosticprinter_print_simple(retptr, this.ptr, addHeapObject(diagnostic));
252
+ wasm.diagnosticprinter_print_simple(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
253
253
  var r0 = getInt32Memory0()[retptr / 4 + 0];
254
254
  var r1 = getInt32Memory0()[retptr / 4 + 1];
255
255
  if (r1) {
@@ -265,7 +265,7 @@ export class DiagnosticPrinter {
265
265
  print_verbose(diagnostic) {
266
266
  try {
267
267
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
268
- wasm.diagnosticprinter_print_verbose(retptr, this.ptr, addHeapObject(diagnostic));
268
+ wasm.diagnosticprinter_print_verbose(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
269
269
  var r0 = getInt32Memory0()[retptr / 4 + 0];
270
270
  var r1 = getInt32Memory0()[retptr / 4 + 1];
271
271
  if (r1) {
@@ -279,6 +279,8 @@ export class DiagnosticPrinter {
279
279
  * @returns {string}
280
280
  */
281
281
  finish() {
282
+ let deferred2_0;
283
+ let deferred2_1;
282
284
  try {
283
285
  const ptr = this.__destroy_into_raw();
284
286
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -287,34 +289,33 @@ export class DiagnosticPrinter {
287
289
  var r1 = getInt32Memory0()[retptr / 4 + 1];
288
290
  var r2 = getInt32Memory0()[retptr / 4 + 2];
289
291
  var r3 = getInt32Memory0()[retptr / 4 + 3];
290
- var ptr0 = r0;
291
- var len0 = r1;
292
+ var ptr1 = r0;
293
+ var len1 = r1;
292
294
  if (r3) {
293
- ptr0 = 0; len0 = 0;
295
+ ptr1 = 0; len1 = 0;
294
296
  throw takeObject(r2);
295
297
  }
296
- return getStringFromWasm0(ptr0, len0);
298
+ deferred2_0 = ptr1;
299
+ deferred2_1 = len1;
300
+ return getStringFromWasm0(ptr1, len1);
297
301
  } finally {
298
302
  wasm.__wbindgen_add_to_stack_pointer(16);
299
- wasm.__wbindgen_free(ptr0, len0);
303
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
300
304
  }
301
305
  }
302
306
  }
307
+
308
+ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
309
+ ? { register: () => {}, unregister: () => {} }
310
+ : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0));
303
311
  /**
304
312
  */
305
313
  export class Workspace {
306
314
 
307
- static __wrap(ptr) {
308
- const obj = Object.create(Workspace.prototype);
309
- obj.ptr = ptr;
310
-
311
- return obj;
312
- }
313
-
314
315
  __destroy_into_raw() {
315
- const ptr = this.ptr;
316
- this.ptr = 0;
317
-
316
+ const ptr = this.__wbg_ptr;
317
+ this.__wbg_ptr = 0;
318
+ WorkspaceFinalization.unregister(this);
318
319
  return ptr;
319
320
  }
320
321
 
@@ -326,7 +327,8 @@ export class Workspace {
326
327
  */
327
328
  constructor() {
328
329
  const ret = wasm.workspace_new();
329
- return Workspace.__wrap(ret);
330
+ this.__wbg_ptr = ret >>> 0;
331
+ return this;
330
332
  }
331
333
  /**
332
334
  * @param {SupportsFeatureParams} params
@@ -335,7 +337,7 @@ export class Workspace {
335
337
  fileFeatures(params) {
336
338
  try {
337
339
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
338
- wasm.workspace_fileFeatures(retptr, this.ptr, addHeapObject(params));
340
+ wasm.workspace_fileFeatures(retptr, this.__wbg_ptr, addHeapObject(params));
339
341
  var r0 = getInt32Memory0()[retptr / 4 + 0];
340
342
  var r1 = getInt32Memory0()[retptr / 4 + 1];
341
343
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -353,7 +355,7 @@ export class Workspace {
353
355
  updateSettings(params) {
354
356
  try {
355
357
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
356
- wasm.workspace_updateSettings(retptr, this.ptr, addHeapObject(params));
358
+ wasm.workspace_updateSettings(retptr, this.__wbg_ptr, addHeapObject(params));
357
359
  var r0 = getInt32Memory0()[retptr / 4 + 0];
358
360
  var r1 = getInt32Memory0()[retptr / 4 + 1];
359
361
  if (r1) {
@@ -370,7 +372,7 @@ export class Workspace {
370
372
  registerProjectFolder(params) {
371
373
  try {
372
374
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
373
- wasm.workspace_registerProjectFolder(retptr, this.ptr, addHeapObject(params));
375
+ wasm.workspace_registerProjectFolder(retptr, this.__wbg_ptr, addHeapObject(params));
374
376
  var r0 = getInt32Memory0()[retptr / 4 + 0];
375
377
  var r1 = getInt32Memory0()[retptr / 4 + 1];
376
378
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -388,7 +390,7 @@ export class Workspace {
388
390
  openFile(params) {
389
391
  try {
390
392
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
391
- wasm.workspace_openFile(retptr, this.ptr, addHeapObject(params));
393
+ wasm.workspace_openFile(retptr, this.__wbg_ptr, addHeapObject(params));
392
394
  var r0 = getInt32Memory0()[retptr / 4 + 0];
393
395
  var r1 = getInt32Memory0()[retptr / 4 + 1];
394
396
  if (r1) {
@@ -403,23 +405,27 @@ export class Workspace {
403
405
  * @returns {string}
404
406
  */
405
407
  getFileContent(params) {
408
+ let deferred2_0;
409
+ let deferred2_1;
406
410
  try {
407
411
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
408
- wasm.workspace_getFileContent(retptr, this.ptr, addHeapObject(params));
412
+ wasm.workspace_getFileContent(retptr, this.__wbg_ptr, addHeapObject(params));
409
413
  var r0 = getInt32Memory0()[retptr / 4 + 0];
410
414
  var r1 = getInt32Memory0()[retptr / 4 + 1];
411
415
  var r2 = getInt32Memory0()[retptr / 4 + 2];
412
416
  var r3 = getInt32Memory0()[retptr / 4 + 3];
413
- var ptr0 = r0;
414
- var len0 = r1;
417
+ var ptr1 = r0;
418
+ var len1 = r1;
415
419
  if (r3) {
416
- ptr0 = 0; len0 = 0;
420
+ ptr1 = 0; len1 = 0;
417
421
  throw takeObject(r2);
418
422
  }
419
- return getStringFromWasm0(ptr0, len0);
423
+ deferred2_0 = ptr1;
424
+ deferred2_1 = len1;
425
+ return getStringFromWasm0(ptr1, len1);
420
426
  } finally {
421
427
  wasm.__wbindgen_add_to_stack_pointer(16);
422
- wasm.__wbindgen_free(ptr0, len0);
428
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
423
429
  }
424
430
  }
425
431
  /**
@@ -429,7 +435,7 @@ export class Workspace {
429
435
  getSyntaxTree(params) {
430
436
  try {
431
437
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
432
- wasm.workspace_getSyntaxTree(retptr, this.ptr, addHeapObject(params));
438
+ wasm.workspace_getSyntaxTree(retptr, this.__wbg_ptr, addHeapObject(params));
433
439
  var r0 = getInt32Memory0()[retptr / 4 + 0];
434
440
  var r1 = getInt32Memory0()[retptr / 4 + 1];
435
441
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -446,23 +452,27 @@ export class Workspace {
446
452
  * @returns {string}
447
453
  */
448
454
  getControlFlowGraph(params) {
455
+ let deferred2_0;
456
+ let deferred2_1;
449
457
  try {
450
458
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
451
- wasm.workspace_getControlFlowGraph(retptr, this.ptr, addHeapObject(params));
459
+ wasm.workspace_getControlFlowGraph(retptr, this.__wbg_ptr, addHeapObject(params));
452
460
  var r0 = getInt32Memory0()[retptr / 4 + 0];
453
461
  var r1 = getInt32Memory0()[retptr / 4 + 1];
454
462
  var r2 = getInt32Memory0()[retptr / 4 + 2];
455
463
  var r3 = getInt32Memory0()[retptr / 4 + 3];
456
- var ptr0 = r0;
457
- var len0 = r1;
464
+ var ptr1 = r0;
465
+ var len1 = r1;
458
466
  if (r3) {
459
- ptr0 = 0; len0 = 0;
467
+ ptr1 = 0; len1 = 0;
460
468
  throw takeObject(r2);
461
469
  }
462
- return getStringFromWasm0(ptr0, len0);
470
+ deferred2_0 = ptr1;
471
+ deferred2_1 = len1;
472
+ return getStringFromWasm0(ptr1, len1);
463
473
  } finally {
464
474
  wasm.__wbindgen_add_to_stack_pointer(16);
465
- wasm.__wbindgen_free(ptr0, len0);
475
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
466
476
  }
467
477
  }
468
478
  /**
@@ -470,23 +480,27 @@ export class Workspace {
470
480
  * @returns {string}
471
481
  */
472
482
  getFormatterIr(params) {
483
+ let deferred2_0;
484
+ let deferred2_1;
473
485
  try {
474
486
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
475
- wasm.workspace_getFormatterIr(retptr, this.ptr, addHeapObject(params));
487
+ wasm.workspace_getFormatterIr(retptr, this.__wbg_ptr, addHeapObject(params));
476
488
  var r0 = getInt32Memory0()[retptr / 4 + 0];
477
489
  var r1 = getInt32Memory0()[retptr / 4 + 1];
478
490
  var r2 = getInt32Memory0()[retptr / 4 + 2];
479
491
  var r3 = getInt32Memory0()[retptr / 4 + 3];
480
- var ptr0 = r0;
481
- var len0 = r1;
492
+ var ptr1 = r0;
493
+ var len1 = r1;
482
494
  if (r3) {
483
- ptr0 = 0; len0 = 0;
495
+ ptr1 = 0; len1 = 0;
484
496
  throw takeObject(r2);
485
497
  }
486
- return getStringFromWasm0(ptr0, len0);
498
+ deferred2_0 = ptr1;
499
+ deferred2_1 = len1;
500
+ return getStringFromWasm0(ptr1, len1);
487
501
  } finally {
488
502
  wasm.__wbindgen_add_to_stack_pointer(16);
489
- wasm.__wbindgen_free(ptr0, len0);
503
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
490
504
  }
491
505
  }
492
506
  /**
@@ -495,7 +509,7 @@ export class Workspace {
495
509
  changeFile(params) {
496
510
  try {
497
511
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
498
- wasm.workspace_changeFile(retptr, this.ptr, addHeapObject(params));
512
+ wasm.workspace_changeFile(retptr, this.__wbg_ptr, addHeapObject(params));
499
513
  var r0 = getInt32Memory0()[retptr / 4 + 0];
500
514
  var r1 = getInt32Memory0()[retptr / 4 + 1];
501
515
  if (r1) {
@@ -511,7 +525,7 @@ export class Workspace {
511
525
  closeFile(params) {
512
526
  try {
513
527
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
514
- wasm.workspace_closeFile(retptr, this.ptr, addHeapObject(params));
528
+ wasm.workspace_closeFile(retptr, this.__wbg_ptr, addHeapObject(params));
515
529
  var r0 = getInt32Memory0()[retptr / 4 + 0];
516
530
  var r1 = getInt32Memory0()[retptr / 4 + 1];
517
531
  if (r1) {
@@ -528,7 +542,7 @@ export class Workspace {
528
542
  pullDiagnostics(params) {
529
543
  try {
530
544
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
531
- wasm.workspace_pullDiagnostics(retptr, this.ptr, addHeapObject(params));
545
+ wasm.workspace_pullDiagnostics(retptr, this.__wbg_ptr, addHeapObject(params));
532
546
  var r0 = getInt32Memory0()[retptr / 4 + 0];
533
547
  var r1 = getInt32Memory0()[retptr / 4 + 1];
534
548
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -547,7 +561,7 @@ export class Workspace {
547
561
  pullActions(params) {
548
562
  try {
549
563
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
550
- wasm.workspace_pullActions(retptr, this.ptr, addHeapObject(params));
564
+ wasm.workspace_pullActions(retptr, this.__wbg_ptr, addHeapObject(params));
551
565
  var r0 = getInt32Memory0()[retptr / 4 + 0];
552
566
  var r1 = getInt32Memory0()[retptr / 4 + 1];
553
567
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -566,7 +580,7 @@ export class Workspace {
566
580
  formatFile(params) {
567
581
  try {
568
582
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
569
- wasm.workspace_formatFile(retptr, this.ptr, addHeapObject(params));
583
+ wasm.workspace_formatFile(retptr, this.__wbg_ptr, addHeapObject(params));
570
584
  var r0 = getInt32Memory0()[retptr / 4 + 0];
571
585
  var r1 = getInt32Memory0()[retptr / 4 + 1];
572
586
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -585,7 +599,7 @@ export class Workspace {
585
599
  formatRange(params) {
586
600
  try {
587
601
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
588
- wasm.workspace_formatRange(retptr, this.ptr, addHeapObject(params));
602
+ wasm.workspace_formatRange(retptr, this.__wbg_ptr, addHeapObject(params));
589
603
  var r0 = getInt32Memory0()[retptr / 4 + 0];
590
604
  var r1 = getInt32Memory0()[retptr / 4 + 1];
591
605
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -604,7 +618,7 @@ export class Workspace {
604
618
  formatOnType(params) {
605
619
  try {
606
620
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
607
- wasm.workspace_formatOnType(retptr, this.ptr, addHeapObject(params));
621
+ wasm.workspace_formatOnType(retptr, this.__wbg_ptr, addHeapObject(params));
608
622
  var r0 = getInt32Memory0()[retptr / 4 + 0];
609
623
  var r1 = getInt32Memory0()[retptr / 4 + 1];
610
624
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -623,7 +637,7 @@ export class Workspace {
623
637
  fixFile(params) {
624
638
  try {
625
639
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
626
- wasm.workspace_fixFile(retptr, this.ptr, addHeapObject(params));
640
+ wasm.workspace_fixFile(retptr, this.__wbg_ptr, addHeapObject(params));
627
641
  var r0 = getInt32Memory0()[retptr / 4 + 0];
628
642
  var r1 = getInt32Memory0()[retptr / 4 + 1];
629
643
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -642,7 +656,7 @@ export class Workspace {
642
656
  organizeImports(params) {
643
657
  try {
644
658
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
645
- wasm.workspace_organizeImports(retptr, this.ptr, addHeapObject(params));
659
+ wasm.workspace_organizeImports(retptr, this.__wbg_ptr, addHeapObject(params));
646
660
  var r0 = getInt32Memory0()[retptr / 4 + 0];
647
661
  var r1 = getInt32Memory0()[retptr / 4 + 1];
648
662
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -661,7 +675,7 @@ export class Workspace {
661
675
  rename(params) {
662
676
  try {
663
677
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
664
- wasm.workspace_rename(retptr, this.ptr, addHeapObject(params));
678
+ wasm.workspace_rename(retptr, this.__wbg_ptr, addHeapObject(params));
665
679
  var r0 = getInt32Memory0()[retptr / 4 + 0];
666
680
  var r1 = getInt32Memory0()[retptr / 4 + 1];
667
681
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -675,7 +689,7 @@ export class Workspace {
675
689
  }
676
690
  }
677
691
 
678
- async function load(module, imports) {
692
+ async function __wbg_load(module, imports) {
679
693
  if (typeof Response === 'function' && module instanceof Response) {
680
694
  if (typeof WebAssembly.instantiateStreaming === 'function') {
681
695
  try {
@@ -706,7 +720,7 @@ async function load(module, imports) {
706
720
  }
707
721
  }
708
722
 
709
- function getImports() {
723
+ function __wbg_get_imports() {
710
724
  const imports = {};
711
725
  imports.wbg = {};
712
726
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
@@ -718,25 +732,6 @@ function getImports() {
718
732
  const ret = typeof(getObject(arg0)) === 'bigint';
719
733
  return ret;
720
734
  };
721
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
722
- const ret = arg0;
723
- return addHeapObject(ret);
724
- };
725
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
726
- const ret = getObject(arg0) === getObject(arg1);
727
- return ret;
728
- };
729
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
730
- takeObject(arg0);
731
- };
732
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
733
- const ret = BigInt.asUintN(64, arg0);
734
- return addHeapObject(ret);
735
- };
736
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
737
- const ret = new Error(getStringFromWasm0(arg0, arg1));
738
- return addHeapObject(ret);
739
- };
740
735
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
741
736
  const obj = getObject(arg1);
742
737
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -746,10 +741,10 @@ function getImports() {
746
741
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
747
742
  const obj = getObject(arg1);
748
743
  const ret = typeof(obj) === 'string' ? obj : undefined;
749
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
750
- var len0 = WASM_VECTOR_LEN;
751
- getInt32Memory0()[arg0 / 4 + 1] = len0;
752
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
744
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
745
+ var len1 = WASM_VECTOR_LEN;
746
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
747
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
753
748
  };
754
749
  imports.wbg.__wbindgen_is_object = function(arg0) {
755
750
  const val = getObject(arg0);
@@ -760,6 +755,25 @@ function getImports() {
760
755
  const ret = getObject(arg0) in getObject(arg1);
761
756
  return ret;
762
757
  };
758
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
759
+ takeObject(arg0);
760
+ };
761
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
762
+ const ret = arg0;
763
+ return addHeapObject(ret);
764
+ };
765
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
766
+ const ret = getObject(arg0) === getObject(arg1);
767
+ return ret;
768
+ };
769
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
770
+ const ret = BigInt.asUintN(64, arg0);
771
+ return addHeapObject(ret);
772
+ };
773
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
774
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
775
+ return addHeapObject(ret);
776
+ };
763
777
  imports.wbg.__wbindgen_is_string = function(arg0) {
764
778
  const ret = typeof(getObject(arg0)) === 'string';
765
779
  return ret;
@@ -768,6 +782,14 @@ function getImports() {
768
782
  const ret = getObject(arg0) === undefined;
769
783
  return ret;
770
784
  };
785
+ imports.wbg.__wbindgen_as_number = function(arg0) {
786
+ const ret = +getObject(arg0);
787
+ return ret;
788
+ };
789
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
790
+ const ret = getObject(arg0);
791
+ return addHeapObject(ret);
792
+ };
771
793
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
772
794
  const ret = getObject(arg0) == getObject(arg1);
773
795
  return ret;
@@ -776,27 +798,23 @@ function getImports() {
776
798
  const ret = arg0;
777
799
  return addHeapObject(ret);
778
800
  };
779
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
780
- const ret = getObject(arg0);
781
- return addHeapObject(ret);
782
- };
783
801
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
784
802
  const ret = getStringFromWasm0(arg0, arg1);
785
803
  return addHeapObject(ret);
786
804
  };
787
- imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
805
+ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
788
806
  const ret = getObject(arg0)[getObject(arg1)];
789
807
  return addHeapObject(ret);
790
808
  };
791
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
809
+ imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
792
810
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
793
811
  };
794
- imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
812
+ imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
795
813
  const ret = String(getObject(arg1));
796
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
797
- const len0 = WASM_VECTOR_LEN;
798
- getInt32Memory0()[arg0 / 4 + 1] = len0;
799
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
814
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
815
+ const len1 = WASM_VECTOR_LEN;
816
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
817
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
800
818
  };
801
819
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
802
820
  const ret = new Error();
@@ -804,123 +822,137 @@ function getImports() {
804
822
  };
805
823
  imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
806
824
  const ret = getObject(arg1).stack;
807
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
808
- const len0 = WASM_VECTOR_LEN;
809
- getInt32Memory0()[arg0 / 4 + 1] = len0;
810
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
825
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
826
+ const len1 = WASM_VECTOR_LEN;
827
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
828
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
811
829
  };
812
830
  imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
831
+ let deferred0_0;
832
+ let deferred0_1;
813
833
  try {
834
+ deferred0_0 = arg0;
835
+ deferred0_1 = arg1;
814
836
  console.error(getStringFromWasm0(arg0, arg1));
815
837
  } finally {
816
- wasm.__wbindgen_free(arg0, arg1);
838
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
817
839
  }
818
840
  };
819
- imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
841
+ imports.wbg.__wbindgen_is_function = function(arg0) {
842
+ const ret = typeof(getObject(arg0)) === 'function';
843
+ return ret;
844
+ };
845
+ imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
820
846
  const ret = getObject(arg0)[arg1 >>> 0];
821
847
  return addHeapObject(ret);
822
848
  };
823
- imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
849
+ imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
824
850
  const ret = getObject(arg0).length;
825
851
  return ret;
826
852
  };
827
- imports.wbg.__wbg_new_b525de17f44a8943 = function() {
853
+ imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
828
854
  const ret = new Array();
829
855
  return addHeapObject(ret);
830
856
  };
831
- imports.wbg.__wbindgen_is_function = function(arg0) {
832
- const ret = typeof(getObject(arg0)) === 'function';
833
- return ret;
834
- };
835
- imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() {
857
+ imports.wbg.__wbg_new_d9bc3a0147634640 = function() {
836
858
  const ret = new Map();
837
859
  return addHeapObject(ret);
838
860
  };
839
- imports.wbg.__wbg_next_b7d530c04fd8b217 = function(arg0) {
861
+ imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
840
862
  const ret = getObject(arg0).next;
841
863
  return addHeapObject(ret);
842
864
  };
843
- imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
865
+ imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
844
866
  const ret = getObject(arg0).next();
845
867
  return addHeapObject(ret);
846
868
  }, arguments) };
847
- imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
869
+ imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
848
870
  const ret = getObject(arg0).done;
849
871
  return ret;
850
872
  };
851
- imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
873
+ imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
852
874
  const ret = getObject(arg0).value;
853
875
  return addHeapObject(ret);
854
876
  };
855
- imports.wbg.__wbg_iterator_55f114446221aa5a = function() {
877
+ imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
856
878
  const ret = Symbol.iterator;
857
879
  return addHeapObject(ret);
858
880
  };
859
- imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
881
+ imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
860
882
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
861
883
  return addHeapObject(ret);
862
884
  }, arguments) };
863
- imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
885
+ imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
864
886
  const ret = getObject(arg0).call(getObject(arg1));
865
887
  return addHeapObject(ret);
866
888
  }, arguments) };
867
- imports.wbg.__wbg_new_f9876326328f45ed = function() {
889
+ imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
868
890
  const ret = new Object();
869
891
  return addHeapObject(ret);
870
892
  };
871
- imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
893
+ imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
872
894
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
873
895
  };
874
- imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
896
+ imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
875
897
  const ret = Array.isArray(getObject(arg0));
876
898
  return ret;
877
899
  };
878
- imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
900
+ imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
879
901
  let result;
880
902
  try {
881
903
  result = getObject(arg0) instanceof ArrayBuffer;
882
- } catch {
904
+ } catch (_) {
883
905
  result = false;
884
906
  }
885
907
  const ret = result;
886
908
  return ret;
887
909
  };
888
- imports.wbg.__wbg_new_15d3966e9981a196 = function(arg0, arg1) {
910
+ imports.wbg.__wbg_new_28c511d9baebfa89 = function(arg0, arg1) {
889
911
  const ret = new Error(getStringFromWasm0(arg0, arg1));
890
912
  return addHeapObject(ret);
891
913
  };
892
- imports.wbg.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
914
+ imports.wbg.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
915
+ let result;
916
+ try {
917
+ result = getObject(arg0) instanceof Map;
918
+ } catch (_) {
919
+ result = false;
920
+ }
921
+ const ret = result;
922
+ return ret;
923
+ };
924
+ imports.wbg.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
893
925
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
894
926
  return addHeapObject(ret);
895
927
  };
896
- imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
928
+ imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
897
929
  const ret = Number.isSafeInteger(getObject(arg0));
898
930
  return ret;
899
931
  };
900
- imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
932
+ imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) {
901
933
  const ret = Object.entries(getObject(arg0));
902
934
  return addHeapObject(ret);
903
935
  };
904
- imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
936
+ imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
905
937
  const ret = getObject(arg0).buffer;
906
938
  return addHeapObject(ret);
907
939
  };
908
- imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
940
+ imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
909
941
  const ret = new Uint8Array(getObject(arg0));
910
942
  return addHeapObject(ret);
911
943
  };
912
- imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
944
+ imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
913
945
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
914
946
  };
915
- imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) {
947
+ imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
916
948
  const ret = getObject(arg0).length;
917
949
  return ret;
918
950
  };
919
- imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
951
+ imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
920
952
  let result;
921
953
  try {
922
954
  result = getObject(arg0) instanceof Uint8Array;
923
- } catch {
955
+ } catch (_) {
924
956
  result = false;
925
957
  }
926
958
  const ret = result;
@@ -934,10 +966,10 @@ function getImports() {
934
966
  };
935
967
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
936
968
  const ret = debugString(getObject(arg1));
937
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
938
- const len0 = WASM_VECTOR_LEN;
939
- getInt32Memory0()[arg0 / 4 + 1] = len0;
940
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
969
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
970
+ const len1 = WASM_VECTOR_LEN;
971
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
972
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
941
973
  };
942
974
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
943
975
  throw new Error(getStringFromWasm0(arg0, arg1));
@@ -950,13 +982,13 @@ function getImports() {
950
982
  return imports;
951
983
  }
952
984
 
953
- function initMemory(imports, maybe_memory) {
985
+ function __wbg_init_memory(imports, maybe_memory) {
954
986
 
955
987
  }
956
988
 
957
- function finalizeInit(instance, module) {
989
+ function __wbg_finalize_init(instance, module) {
958
990
  wasm = instance.exports;
959
- init.__wbindgen_wasm_module = module;
991
+ __wbg_init.__wbindgen_wasm_module = module;
960
992
  cachedBigInt64Memory0 = null;
961
993
  cachedFloat64Memory0 = null;
962
994
  cachedInt32Memory0 = null;
@@ -967,9 +999,11 @@ function finalizeInit(instance, module) {
967
999
  }
968
1000
 
969
1001
  function initSync(module) {
970
- const imports = getImports();
1002
+ if (wasm !== undefined) return wasm;
971
1003
 
972
- initMemory(imports);
1004
+ const imports = __wbg_get_imports();
1005
+
1006
+ __wbg_init_memory(imports);
973
1007
 
974
1008
  if (!(module instanceof WebAssembly.Module)) {
975
1009
  module = new WebAssembly.Module(module);
@@ -977,25 +1011,27 @@ function initSync(module) {
977
1011
 
978
1012
  const instance = new WebAssembly.Instance(module, imports);
979
1013
 
980
- return finalizeInit(instance, module);
1014
+ return __wbg_finalize_init(instance, module);
981
1015
  }
982
1016
 
983
- async function init(input) {
1017
+ async function __wbg_init(input) {
1018
+ if (wasm !== undefined) return wasm;
1019
+
984
1020
  if (typeof input === 'undefined') {
985
1021
  input = new URL('biome_wasm_bg.wasm', import.meta.url);
986
1022
  }
987
- const imports = getImports();
1023
+ const imports = __wbg_get_imports();
988
1024
 
989
1025
  if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
990
1026
  input = fetch(input);
991
1027
  }
992
1028
 
993
- initMemory(imports);
1029
+ __wbg_init_memory(imports);
994
1030
 
995
- const { instance, module } = await load(await input, imports);
1031
+ const { instance, module } = await __wbg_load(await input, imports);
996
1032
 
997
- return finalizeInit(instance, module);
1033
+ return __wbg_finalize_init(instance, module);
998
1034
  }
999
1035
 
1000
1036
  export { initSync }
1001
- export default init;
1037
+ export default __wbg_init;
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.2","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
1
+ {"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.3","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}