@biomejs/wasm-nodejs 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"
package/biome_wasm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { TextEncoder, TextDecoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -9,46 +9,6 @@ heap.push(undefined, null, true, false);
9
9
 
10
10
  function getObject(idx) { return heap[idx]; }
11
11
 
12
- let heap_next = heap.length;
13
-
14
- function addHeapObject(obj) {
15
- if (heap_next === heap.length) heap.push(heap.length + 1);
16
- const idx = heap_next;
17
- heap_next = heap[idx];
18
-
19
- heap[idx] = obj;
20
- return idx;
21
- }
22
-
23
- function dropObject(idx) {
24
- if (idx < 132) return;
25
- heap[idx] = heap_next;
26
- heap_next = idx;
27
- }
28
-
29
- function takeObject(idx) {
30
- const ret = getObject(idx);
31
- dropObject(idx);
32
- return ret;
33
- }
34
-
35
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
-
37
- cachedTextDecoder.decode();
38
-
39
- let cachedUint8Memory0 = null;
40
-
41
- function getUint8Memory0() {
42
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
43
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
44
- }
45
- return cachedUint8Memory0;
46
- }
47
-
48
- function getStringFromWasm0(ptr, len) {
49
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
- }
51
-
52
12
  function isLikeNone(x) {
53
13
  return x === undefined || x === null;
54
14
  }
@@ -73,6 +33,15 @@ function getInt32Memory0() {
73
33
 
74
34
  let WASM_VECTOR_LEN = 0;
75
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
+
76
45
  let cachedTextEncoder = new TextEncoder('utf-8');
77
46
 
78
47
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -92,14 +61,14 @@ function passStringToWasm0(arg, malloc, realloc) {
92
61
 
93
62
  if (realloc === undefined) {
94
63
  const buf = cachedTextEncoder.encode(arg);
95
- const ptr = malloc(buf.length);
64
+ const ptr = malloc(buf.length, 1) >>> 0;
96
65
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
97
66
  WASM_VECTOR_LEN = buf.length;
98
67
  return ptr;
99
68
  }
100
69
 
101
70
  let len = arg.length;
102
- let ptr = malloc(len);
71
+ let ptr = malloc(len, 1) >>> 0;
103
72
 
104
73
  const mem = getUint8Memory0();
105
74
 
@@ -115,17 +84,50 @@ function passStringToWasm0(arg, malloc, realloc) {
115
84
  if (offset !== 0) {
116
85
  arg = arg.slice(offset);
117
86
  }
118
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
87
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
119
88
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
120
89
  const ret = encodeString(arg, view);
121
90
 
122
91
  offset += ret.written;
92
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
123
93
  }
124
94
 
125
95
  WASM_VECTOR_LEN = offset;
126
96
  return ptr;
127
97
  }
128
98
 
99
+ let heap_next = heap.length;
100
+
101
+ function dropObject(idx) {
102
+ if (idx < 132) return;
103
+ heap[idx] = heap_next;
104
+ heap_next = idx;
105
+ }
106
+
107
+ function takeObject(idx) {
108
+ const ret = getObject(idx);
109
+ dropObject(idx);
110
+ return ret;
111
+ }
112
+
113
+ function addHeapObject(obj) {
114
+ if (heap_next === heap.length) heap.push(heap.length + 1);
115
+ const idx = heap_next;
116
+ heap_next = heap[idx];
117
+
118
+ heap[idx] = obj;
119
+ return idx;
120
+ }
121
+
122
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
123
+
124
+ cachedTextDecoder.decode();
125
+
126
+ function getStringFromWasm0(ptr, len) {
127
+ ptr = ptr >>> 0;
128
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
129
+ }
130
+
129
131
  let cachedBigInt64Memory0 = null;
130
132
 
131
133
  function getBigInt64Memory0() {
@@ -212,21 +214,18 @@ function handleError(f, args) {
212
214
  wasm.__wbindgen_exn_store(addHeapObject(e));
213
215
  }
214
216
  }
217
+
218
+ const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
219
+ ? { register: () => {}, unregister: () => {} }
220
+ : new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0));
215
221
  /**
216
222
  */
217
223
  class DiagnosticPrinter {
218
224
 
219
- static __wrap(ptr) {
220
- const obj = Object.create(DiagnosticPrinter.prototype);
221
- obj.ptr = ptr;
222
-
223
- return obj;
224
- }
225
-
226
225
  __destroy_into_raw() {
227
- const ptr = this.ptr;
228
- this.ptr = 0;
229
-
226
+ const ptr = this.__wbg_ptr;
227
+ this.__wbg_ptr = 0;
228
+ DiagnosticPrinterFinalization.unregister(this);
230
229
  return ptr;
231
230
  }
232
231
 
@@ -244,7 +243,8 @@ class DiagnosticPrinter {
244
243
  const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
244
  const len1 = WASM_VECTOR_LEN;
246
245
  const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
247
- return DiagnosticPrinter.__wrap(ret);
246
+ this.__wbg_ptr = ret >>> 0;
247
+ return this;
248
248
  }
249
249
  /**
250
250
  * @param {Diagnostic} diagnostic
@@ -252,7 +252,7 @@ class DiagnosticPrinter {
252
252
  print_simple(diagnostic) {
253
253
  try {
254
254
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
255
- wasm.diagnosticprinter_print_simple(retptr, this.ptr, addHeapObject(diagnostic));
255
+ wasm.diagnosticprinter_print_simple(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
256
256
  var r0 = getInt32Memory0()[retptr / 4 + 0];
257
257
  var r1 = getInt32Memory0()[retptr / 4 + 1];
258
258
  if (r1) {
@@ -268,7 +268,7 @@ class DiagnosticPrinter {
268
268
  print_verbose(diagnostic) {
269
269
  try {
270
270
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
271
- wasm.diagnosticprinter_print_verbose(retptr, this.ptr, addHeapObject(diagnostic));
271
+ wasm.diagnosticprinter_print_verbose(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
272
272
  var r0 = getInt32Memory0()[retptr / 4 + 0];
273
273
  var r1 = getInt32Memory0()[retptr / 4 + 1];
274
274
  if (r1) {
@@ -282,6 +282,8 @@ class DiagnosticPrinter {
282
282
  * @returns {string}
283
283
  */
284
284
  finish() {
285
+ let deferred2_0;
286
+ let deferred2_1;
285
287
  try {
286
288
  const ptr = this.__destroy_into_raw();
287
289
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -290,35 +292,34 @@ class DiagnosticPrinter {
290
292
  var r1 = getInt32Memory0()[retptr / 4 + 1];
291
293
  var r2 = getInt32Memory0()[retptr / 4 + 2];
292
294
  var r3 = getInt32Memory0()[retptr / 4 + 3];
293
- var ptr0 = r0;
294
- var len0 = r1;
295
+ var ptr1 = r0;
296
+ var len1 = r1;
295
297
  if (r3) {
296
- ptr0 = 0; len0 = 0;
298
+ ptr1 = 0; len1 = 0;
297
299
  throw takeObject(r2);
298
300
  }
299
- return getStringFromWasm0(ptr0, len0);
301
+ deferred2_0 = ptr1;
302
+ deferred2_1 = len1;
303
+ return getStringFromWasm0(ptr1, len1);
300
304
  } finally {
301
305
  wasm.__wbindgen_add_to_stack_pointer(16);
302
- wasm.__wbindgen_free(ptr0, len0);
306
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
303
307
  }
304
308
  }
305
309
  }
306
310
  module.exports.DiagnosticPrinter = DiagnosticPrinter;
311
+
312
+ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
313
+ ? { register: () => {}, unregister: () => {} }
314
+ : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0));
307
315
  /**
308
316
  */
309
317
  class Workspace {
310
318
 
311
- static __wrap(ptr) {
312
- const obj = Object.create(Workspace.prototype);
313
- obj.ptr = ptr;
314
-
315
- return obj;
316
- }
317
-
318
319
  __destroy_into_raw() {
319
- const ptr = this.ptr;
320
- this.ptr = 0;
321
-
320
+ const ptr = this.__wbg_ptr;
321
+ this.__wbg_ptr = 0;
322
+ WorkspaceFinalization.unregister(this);
322
323
  return ptr;
323
324
  }
324
325
 
@@ -330,7 +331,8 @@ class Workspace {
330
331
  */
331
332
  constructor() {
332
333
  const ret = wasm.workspace_new();
333
- return Workspace.__wrap(ret);
334
+ this.__wbg_ptr = ret >>> 0;
335
+ return this;
334
336
  }
335
337
  /**
336
338
  * @param {SupportsFeatureParams} params
@@ -339,7 +341,7 @@ class Workspace {
339
341
  fileFeatures(params) {
340
342
  try {
341
343
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
342
- wasm.workspace_fileFeatures(retptr, this.ptr, addHeapObject(params));
344
+ wasm.workspace_fileFeatures(retptr, this.__wbg_ptr, addHeapObject(params));
343
345
  var r0 = getInt32Memory0()[retptr / 4 + 0];
344
346
  var r1 = getInt32Memory0()[retptr / 4 + 1];
345
347
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -357,7 +359,7 @@ class Workspace {
357
359
  updateSettings(params) {
358
360
  try {
359
361
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
360
- wasm.workspace_updateSettings(retptr, this.ptr, addHeapObject(params));
362
+ wasm.workspace_updateSettings(retptr, this.__wbg_ptr, addHeapObject(params));
361
363
  var r0 = getInt32Memory0()[retptr / 4 + 0];
362
364
  var r1 = getInt32Memory0()[retptr / 4 + 1];
363
365
  if (r1) {
@@ -374,7 +376,7 @@ class Workspace {
374
376
  registerProjectFolder(params) {
375
377
  try {
376
378
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
377
- wasm.workspace_registerProjectFolder(retptr, this.ptr, addHeapObject(params));
379
+ wasm.workspace_registerProjectFolder(retptr, this.__wbg_ptr, addHeapObject(params));
378
380
  var r0 = getInt32Memory0()[retptr / 4 + 0];
379
381
  var r1 = getInt32Memory0()[retptr / 4 + 1];
380
382
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -392,7 +394,7 @@ class Workspace {
392
394
  openFile(params) {
393
395
  try {
394
396
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
395
- wasm.workspace_openFile(retptr, this.ptr, addHeapObject(params));
397
+ wasm.workspace_openFile(retptr, this.__wbg_ptr, addHeapObject(params));
396
398
  var r0 = getInt32Memory0()[retptr / 4 + 0];
397
399
  var r1 = getInt32Memory0()[retptr / 4 + 1];
398
400
  if (r1) {
@@ -407,23 +409,27 @@ class Workspace {
407
409
  * @returns {string}
408
410
  */
409
411
  getFileContent(params) {
412
+ let deferred2_0;
413
+ let deferred2_1;
410
414
  try {
411
415
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
412
- wasm.workspace_getFileContent(retptr, this.ptr, addHeapObject(params));
416
+ wasm.workspace_getFileContent(retptr, this.__wbg_ptr, addHeapObject(params));
413
417
  var r0 = getInt32Memory0()[retptr / 4 + 0];
414
418
  var r1 = getInt32Memory0()[retptr / 4 + 1];
415
419
  var r2 = getInt32Memory0()[retptr / 4 + 2];
416
420
  var r3 = getInt32Memory0()[retptr / 4 + 3];
417
- var ptr0 = r0;
418
- var len0 = r1;
421
+ var ptr1 = r0;
422
+ var len1 = r1;
419
423
  if (r3) {
420
- ptr0 = 0; len0 = 0;
424
+ ptr1 = 0; len1 = 0;
421
425
  throw takeObject(r2);
422
426
  }
423
- return getStringFromWasm0(ptr0, len0);
427
+ deferred2_0 = ptr1;
428
+ deferred2_1 = len1;
429
+ return getStringFromWasm0(ptr1, len1);
424
430
  } finally {
425
431
  wasm.__wbindgen_add_to_stack_pointer(16);
426
- wasm.__wbindgen_free(ptr0, len0);
432
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
427
433
  }
428
434
  }
429
435
  /**
@@ -433,7 +439,7 @@ class Workspace {
433
439
  getSyntaxTree(params) {
434
440
  try {
435
441
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
436
- wasm.workspace_getSyntaxTree(retptr, this.ptr, addHeapObject(params));
442
+ wasm.workspace_getSyntaxTree(retptr, this.__wbg_ptr, addHeapObject(params));
437
443
  var r0 = getInt32Memory0()[retptr / 4 + 0];
438
444
  var r1 = getInt32Memory0()[retptr / 4 + 1];
439
445
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -450,23 +456,27 @@ class Workspace {
450
456
  * @returns {string}
451
457
  */
452
458
  getControlFlowGraph(params) {
459
+ let deferred2_0;
460
+ let deferred2_1;
453
461
  try {
454
462
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
455
- wasm.workspace_getControlFlowGraph(retptr, this.ptr, addHeapObject(params));
463
+ wasm.workspace_getControlFlowGraph(retptr, this.__wbg_ptr, addHeapObject(params));
456
464
  var r0 = getInt32Memory0()[retptr / 4 + 0];
457
465
  var r1 = getInt32Memory0()[retptr / 4 + 1];
458
466
  var r2 = getInt32Memory0()[retptr / 4 + 2];
459
467
  var r3 = getInt32Memory0()[retptr / 4 + 3];
460
- var ptr0 = r0;
461
- var len0 = r1;
468
+ var ptr1 = r0;
469
+ var len1 = r1;
462
470
  if (r3) {
463
- ptr0 = 0; len0 = 0;
471
+ ptr1 = 0; len1 = 0;
464
472
  throw takeObject(r2);
465
473
  }
466
- return getStringFromWasm0(ptr0, len0);
474
+ deferred2_0 = ptr1;
475
+ deferred2_1 = len1;
476
+ return getStringFromWasm0(ptr1, len1);
467
477
  } finally {
468
478
  wasm.__wbindgen_add_to_stack_pointer(16);
469
- wasm.__wbindgen_free(ptr0, len0);
479
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
470
480
  }
471
481
  }
472
482
  /**
@@ -474,23 +484,27 @@ class Workspace {
474
484
  * @returns {string}
475
485
  */
476
486
  getFormatterIr(params) {
487
+ let deferred2_0;
488
+ let deferred2_1;
477
489
  try {
478
490
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
479
- wasm.workspace_getFormatterIr(retptr, this.ptr, addHeapObject(params));
491
+ wasm.workspace_getFormatterIr(retptr, this.__wbg_ptr, addHeapObject(params));
480
492
  var r0 = getInt32Memory0()[retptr / 4 + 0];
481
493
  var r1 = getInt32Memory0()[retptr / 4 + 1];
482
494
  var r2 = getInt32Memory0()[retptr / 4 + 2];
483
495
  var r3 = getInt32Memory0()[retptr / 4 + 3];
484
- var ptr0 = r0;
485
- var len0 = r1;
496
+ var ptr1 = r0;
497
+ var len1 = r1;
486
498
  if (r3) {
487
- ptr0 = 0; len0 = 0;
499
+ ptr1 = 0; len1 = 0;
488
500
  throw takeObject(r2);
489
501
  }
490
- return getStringFromWasm0(ptr0, len0);
502
+ deferred2_0 = ptr1;
503
+ deferred2_1 = len1;
504
+ return getStringFromWasm0(ptr1, len1);
491
505
  } finally {
492
506
  wasm.__wbindgen_add_to_stack_pointer(16);
493
- wasm.__wbindgen_free(ptr0, len0);
507
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
494
508
  }
495
509
  }
496
510
  /**
@@ -499,7 +513,7 @@ class Workspace {
499
513
  changeFile(params) {
500
514
  try {
501
515
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
502
- wasm.workspace_changeFile(retptr, this.ptr, addHeapObject(params));
516
+ wasm.workspace_changeFile(retptr, this.__wbg_ptr, addHeapObject(params));
503
517
  var r0 = getInt32Memory0()[retptr / 4 + 0];
504
518
  var r1 = getInt32Memory0()[retptr / 4 + 1];
505
519
  if (r1) {
@@ -515,7 +529,7 @@ class Workspace {
515
529
  closeFile(params) {
516
530
  try {
517
531
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
518
- wasm.workspace_closeFile(retptr, this.ptr, addHeapObject(params));
532
+ wasm.workspace_closeFile(retptr, this.__wbg_ptr, addHeapObject(params));
519
533
  var r0 = getInt32Memory0()[retptr / 4 + 0];
520
534
  var r1 = getInt32Memory0()[retptr / 4 + 1];
521
535
  if (r1) {
@@ -532,7 +546,7 @@ class Workspace {
532
546
  pullDiagnostics(params) {
533
547
  try {
534
548
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
535
- wasm.workspace_pullDiagnostics(retptr, this.ptr, addHeapObject(params));
549
+ wasm.workspace_pullDiagnostics(retptr, this.__wbg_ptr, addHeapObject(params));
536
550
  var r0 = getInt32Memory0()[retptr / 4 + 0];
537
551
  var r1 = getInt32Memory0()[retptr / 4 + 1];
538
552
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -551,7 +565,7 @@ class Workspace {
551
565
  pullActions(params) {
552
566
  try {
553
567
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
554
- wasm.workspace_pullActions(retptr, this.ptr, addHeapObject(params));
568
+ wasm.workspace_pullActions(retptr, this.__wbg_ptr, addHeapObject(params));
555
569
  var r0 = getInt32Memory0()[retptr / 4 + 0];
556
570
  var r1 = getInt32Memory0()[retptr / 4 + 1];
557
571
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -570,7 +584,7 @@ class Workspace {
570
584
  formatFile(params) {
571
585
  try {
572
586
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
573
- wasm.workspace_formatFile(retptr, this.ptr, addHeapObject(params));
587
+ wasm.workspace_formatFile(retptr, this.__wbg_ptr, addHeapObject(params));
574
588
  var r0 = getInt32Memory0()[retptr / 4 + 0];
575
589
  var r1 = getInt32Memory0()[retptr / 4 + 1];
576
590
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -589,7 +603,7 @@ class Workspace {
589
603
  formatRange(params) {
590
604
  try {
591
605
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
- wasm.workspace_formatRange(retptr, this.ptr, addHeapObject(params));
606
+ wasm.workspace_formatRange(retptr, this.__wbg_ptr, addHeapObject(params));
593
607
  var r0 = getInt32Memory0()[retptr / 4 + 0];
594
608
  var r1 = getInt32Memory0()[retptr / 4 + 1];
595
609
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -608,7 +622,7 @@ class Workspace {
608
622
  formatOnType(params) {
609
623
  try {
610
624
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
611
- wasm.workspace_formatOnType(retptr, this.ptr, addHeapObject(params));
625
+ wasm.workspace_formatOnType(retptr, this.__wbg_ptr, addHeapObject(params));
612
626
  var r0 = getInt32Memory0()[retptr / 4 + 0];
613
627
  var r1 = getInt32Memory0()[retptr / 4 + 1];
614
628
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -627,7 +641,7 @@ class Workspace {
627
641
  fixFile(params) {
628
642
  try {
629
643
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
630
- wasm.workspace_fixFile(retptr, this.ptr, addHeapObject(params));
644
+ wasm.workspace_fixFile(retptr, this.__wbg_ptr, addHeapObject(params));
631
645
  var r0 = getInt32Memory0()[retptr / 4 + 0];
632
646
  var r1 = getInt32Memory0()[retptr / 4 + 1];
633
647
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -646,7 +660,7 @@ class Workspace {
646
660
  organizeImports(params) {
647
661
  try {
648
662
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
649
- wasm.workspace_organizeImports(retptr, this.ptr, addHeapObject(params));
663
+ wasm.workspace_organizeImports(retptr, this.__wbg_ptr, addHeapObject(params));
650
664
  var r0 = getInt32Memory0()[retptr / 4 + 0];
651
665
  var r1 = getInt32Memory0()[retptr / 4 + 1];
652
666
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -665,7 +679,7 @@ class Workspace {
665
679
  rename(params) {
666
680
  try {
667
681
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
668
- wasm.workspace_rename(retptr, this.ptr, addHeapObject(params));
682
+ wasm.workspace_rename(retptr, this.__wbg_ptr, addHeapObject(params));
669
683
  var r0 = getInt32Memory0()[retptr / 4 + 0];
670
684
  var r1 = getInt32Memory0()[retptr / 4 + 1];
671
685
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -691,30 +705,6 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
691
705
  return ret;
692
706
  };
693
707
 
694
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
695
- const ret = arg0;
696
- return addHeapObject(ret);
697
- };
698
-
699
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
700
- const ret = getObject(arg0) === getObject(arg1);
701
- return ret;
702
- };
703
-
704
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
705
- takeObject(arg0);
706
- };
707
-
708
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
709
- const ret = BigInt.asUintN(64, arg0);
710
- return addHeapObject(ret);
711
- };
712
-
713
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
714
- const ret = new Error(getStringFromWasm0(arg0, arg1));
715
- return addHeapObject(ret);
716
- };
717
-
718
708
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
719
709
  const obj = getObject(arg1);
720
710
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -725,10 +715,10 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
725
715
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
726
716
  const obj = getObject(arg1);
727
717
  const ret = typeof(obj) === 'string' ? obj : undefined;
728
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
729
- var len0 = WASM_VECTOR_LEN;
730
- getInt32Memory0()[arg0 / 4 + 1] = len0;
731
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
718
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
719
+ var len1 = WASM_VECTOR_LEN;
720
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
721
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
732
722
  };
733
723
 
734
724
  module.exports.__wbindgen_is_object = function(arg0) {
@@ -742,6 +732,30 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
742
732
  return ret;
743
733
  };
744
734
 
735
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
736
+ takeObject(arg0);
737
+ };
738
+
739
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
740
+ const ret = arg0;
741
+ return addHeapObject(ret);
742
+ };
743
+
744
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
745
+ const ret = getObject(arg0) === getObject(arg1);
746
+ return ret;
747
+ };
748
+
749
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
750
+ const ret = BigInt.asUintN(64, arg0);
751
+ return addHeapObject(ret);
752
+ };
753
+
754
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
755
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
756
+ return addHeapObject(ret);
757
+ };
758
+
745
759
  module.exports.__wbindgen_is_string = function(arg0) {
746
760
  const ret = typeof(getObject(arg0)) === 'string';
747
761
  return ret;
@@ -752,6 +766,16 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
752
766
  return ret;
753
767
  };
754
768
 
769
+ module.exports.__wbindgen_as_number = function(arg0) {
770
+ const ret = +getObject(arg0);
771
+ return ret;
772
+ };
773
+
774
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
775
+ const ret = getObject(arg0);
776
+ return addHeapObject(ret);
777
+ };
778
+
755
779
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
756
780
  const ret = getObject(arg0) == getObject(arg1);
757
781
  return ret;
@@ -762,31 +786,26 @@ module.exports.__wbindgen_number_new = function(arg0) {
762
786
  return addHeapObject(ret);
763
787
  };
764
788
 
765
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
766
- const ret = getObject(arg0);
767
- return addHeapObject(ret);
768
- };
769
-
770
789
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
771
790
  const ret = getStringFromWasm0(arg0, arg1);
772
791
  return addHeapObject(ret);
773
792
  };
774
793
 
775
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
794
+ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
776
795
  const ret = getObject(arg0)[getObject(arg1)];
777
796
  return addHeapObject(ret);
778
797
  };
779
798
 
780
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
799
+ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
781
800
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
782
801
  };
783
802
 
784
- module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
803
+ module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
785
804
  const ret = String(getObject(arg1));
786
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
- const len0 = WASM_VECTOR_LEN;
788
- getInt32Memory0()[arg0 / 4 + 1] = len0;
789
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
805
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
806
+ const len1 = WASM_VECTOR_LEN;
807
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
808
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
790
809
  };
791
810
 
792
811
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
@@ -796,149 +815,164 @@ module.exports.__wbg_new_abda76e883ba8a5f = function() {
796
815
 
797
816
  module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
798
817
  const ret = getObject(arg1).stack;
799
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
800
- const len0 = WASM_VECTOR_LEN;
801
- getInt32Memory0()[arg0 / 4 + 1] = len0;
802
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
818
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
819
+ const len1 = WASM_VECTOR_LEN;
820
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
821
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
803
822
  };
804
823
 
805
824
  module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
825
+ let deferred0_0;
826
+ let deferred0_1;
806
827
  try {
828
+ deferred0_0 = arg0;
829
+ deferred0_1 = arg1;
807
830
  console.error(getStringFromWasm0(arg0, arg1));
808
831
  } finally {
809
- wasm.__wbindgen_free(arg0, arg1);
832
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
810
833
  }
811
834
  };
812
835
 
813
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
836
+ module.exports.__wbindgen_is_function = function(arg0) {
837
+ const ret = typeof(getObject(arg0)) === 'function';
838
+ return ret;
839
+ };
840
+
841
+ module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
814
842
  const ret = getObject(arg0)[arg1 >>> 0];
815
843
  return addHeapObject(ret);
816
844
  };
817
845
 
818
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
846
+ module.exports.__wbg_length_cd7af8117672b8b8 = function(arg0) {
819
847
  const ret = getObject(arg0).length;
820
848
  return ret;
821
849
  };
822
850
 
823
- module.exports.__wbg_new_b525de17f44a8943 = function() {
851
+ module.exports.__wbg_new_16b304a2cfa7ff4a = function() {
824
852
  const ret = new Array();
825
853
  return addHeapObject(ret);
826
854
  };
827
855
 
828
- module.exports.__wbindgen_is_function = function(arg0) {
829
- const ret = typeof(getObject(arg0)) === 'function';
830
- return ret;
831
- };
832
-
833
- module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
856
+ module.exports.__wbg_new_d9bc3a0147634640 = function() {
834
857
  const ret = new Map();
835
858
  return addHeapObject(ret);
836
859
  };
837
860
 
838
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
861
+ module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
839
862
  const ret = getObject(arg0).next;
840
863
  return addHeapObject(ret);
841
864
  };
842
865
 
843
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
866
+ module.exports.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
844
867
  const ret = getObject(arg0).next();
845
868
  return addHeapObject(ret);
846
869
  }, arguments) };
847
870
 
848
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
871
+ module.exports.__wbg_done_298b57d23c0fc80c = function(arg0) {
849
872
  const ret = getObject(arg0).done;
850
873
  return ret;
851
874
  };
852
875
 
853
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
876
+ module.exports.__wbg_value_d93c65011f51a456 = function(arg0) {
854
877
  const ret = getObject(arg0).value;
855
878
  return addHeapObject(ret);
856
879
  };
857
880
 
858
- module.exports.__wbg_iterator_55f114446221aa5a = function() {
881
+ module.exports.__wbg_iterator_2cee6dadfd956dfa = function() {
859
882
  const ret = Symbol.iterator;
860
883
  return addHeapObject(ret);
861
884
  };
862
885
 
863
- module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
886
+ module.exports.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
864
887
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
865
888
  return addHeapObject(ret);
866
889
  }, arguments) };
867
890
 
868
- module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
891
+ module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
869
892
  const ret = getObject(arg0).call(getObject(arg1));
870
893
  return addHeapObject(ret);
871
894
  }, arguments) };
872
895
 
873
- module.exports.__wbg_new_f9876326328f45ed = function() {
896
+ module.exports.__wbg_new_72fb9a18b5ae2624 = function() {
874
897
  const ret = new Object();
875
898
  return addHeapObject(ret);
876
899
  };
877
900
 
878
- module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
901
+ module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
879
902
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
880
903
  };
881
904
 
882
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
905
+ module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
883
906
  const ret = Array.isArray(getObject(arg0));
884
907
  return ret;
885
908
  };
886
909
 
887
- module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
910
+ module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
888
911
  let result;
889
912
  try {
890
913
  result = getObject(arg0) instanceof ArrayBuffer;
891
- } catch {
914
+ } catch (_) {
892
915
  result = false;
893
916
  }
894
917
  const ret = result;
895
918
  return ret;
896
919
  };
897
920
 
898
- module.exports.__wbg_new_15d3966e9981a196 = function(arg0, arg1) {
921
+ module.exports.__wbg_new_28c511d9baebfa89 = function(arg0, arg1) {
899
922
  const ret = new Error(getStringFromWasm0(arg0, arg1));
900
923
  return addHeapObject(ret);
901
924
  };
902
925
 
903
- module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
926
+ module.exports.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
927
+ let result;
928
+ try {
929
+ result = getObject(arg0) instanceof Map;
930
+ } catch (_) {
931
+ result = false;
932
+ }
933
+ const ret = result;
934
+ return ret;
935
+ };
936
+
937
+ module.exports.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
904
938
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
905
939
  return addHeapObject(ret);
906
940
  };
907
941
 
908
- module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
942
+ module.exports.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
909
943
  const ret = Number.isSafeInteger(getObject(arg0));
910
944
  return ret;
911
945
  };
912
946
 
913
- module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
947
+ module.exports.__wbg_entries_95cc2c823b285a09 = function(arg0) {
914
948
  const ret = Object.entries(getObject(arg0));
915
949
  return addHeapObject(ret);
916
950
  };
917
951
 
918
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
952
+ module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
919
953
  const ret = getObject(arg0).buffer;
920
954
  return addHeapObject(ret);
921
955
  };
922
956
 
923
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
957
+ module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
924
958
  const ret = new Uint8Array(getObject(arg0));
925
959
  return addHeapObject(ret);
926
960
  };
927
961
 
928
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
962
+ module.exports.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
929
963
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
930
964
  };
931
965
 
932
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
966
+ module.exports.__wbg_length_c20a40f15020d68a = function(arg0) {
933
967
  const ret = getObject(arg0).length;
934
968
  return ret;
935
969
  };
936
970
 
937
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
971
+ module.exports.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
938
972
  let result;
939
973
  try {
940
974
  result = getObject(arg0) instanceof Uint8Array;
941
- } catch {
975
+ } catch (_) {
942
976
  result = false;
943
977
  }
944
978
  const ret = result;
@@ -954,10 +988,10 @@ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
954
988
 
955
989
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
956
990
  const ret = debugString(getObject(arg1));
957
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
958
- const len0 = WASM_VECTOR_LEN;
959
- getInt32Memory0()[arg0 / 4 + 1] = len0;
960
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
991
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
992
+ const len1 = WASM_VECTOR_LEN;
993
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
994
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
961
995
  };
962
996
 
963
997
  module.exports.__wbindgen_throw = function(arg0, arg1) {
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-nodejs","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"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]}
1
+ {"name":"@biomejs/wasm-nodejs","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"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]}