@biomejs/wasm-nodejs 1.5.3 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/biome_wasm.js CHANGED
@@ -11,6 +11,15 @@ function getObject(idx) { return heap[idx]; }
11
11
 
12
12
  let heap_next = heap.length;
13
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
+
14
23
  function dropObject(idx) {
15
24
  if (idx < 132) return;
16
25
  heap[idx] = heap_next;
@@ -23,15 +32,6 @@ function takeObject(idx) {
23
32
  return ret;
24
33
  }
25
34
 
26
- function addHeapObject(obj) {
27
- if (heap_next === heap.length) heap.push(heap.length + 1);
28
- const idx = heap_next;
29
- heap_next = heap[idx];
30
-
31
- heap[idx] = obj;
32
- return idx;
33
- }
34
-
35
35
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
36
 
37
37
  cachedTextDecoder.decode();
@@ -661,20 +661,6 @@ class Workspace {
661
661
  }
662
662
  module.exports.Workspace = Workspace;
663
663
 
664
- module.exports.__wbindgen_is_undefined = function(arg0) {
665
- const ret = getObject(arg0) === undefined;
666
- return ret;
667
- };
668
-
669
- module.exports.__wbindgen_in = function(arg0, arg1) {
670
- const ret = getObject(arg0) in getObject(arg1);
671
- return ret;
672
- };
673
-
674
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
675
- takeObject(arg0);
676
- };
677
-
678
664
  module.exports.__wbindgen_boolean_get = function(arg0) {
679
665
  const v = getObject(arg0);
680
666
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
@@ -696,6 +682,10 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
696
682
  return ret;
697
683
  };
698
684
 
685
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
686
+ takeObject(arg0);
687
+ };
688
+
699
689
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
700
690
  const ret = BigInt.asUintN(64, arg0);
701
691
  return addHeapObject(ret);
@@ -728,14 +718,19 @@ module.exports.__wbindgen_is_object = function(arg0) {
728
718
  return ret;
729
719
  };
730
720
 
721
+ module.exports.__wbindgen_in = function(arg0, arg1) {
722
+ const ret = getObject(arg0) in getObject(arg1);
723
+ return ret;
724
+ };
725
+
731
726
  module.exports.__wbindgen_is_string = function(arg0) {
732
727
  const ret = typeof(getObject(arg0)) === 'string';
733
728
  return ret;
734
729
  };
735
730
 
736
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
737
- const ret = getObject(arg0);
738
- return addHeapObject(ret);
731
+ module.exports.__wbindgen_is_undefined = function(arg0) {
732
+ const ret = getObject(arg0) === undefined;
733
+ return ret;
739
734
  };
740
735
 
741
736
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
@@ -743,19 +738,16 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
743
738
  return ret;
744
739
  };
745
740
 
746
- module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
747
- const ret = String(getObject(arg1));
748
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
749
- const len0 = WASM_VECTOR_LEN;
750
- getInt32Memory0()[arg0 / 4 + 1] = len0;
751
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
752
- };
753
-
754
741
  module.exports.__wbindgen_number_new = function(arg0) {
755
742
  const ret = arg0;
756
743
  return addHeapObject(ret);
757
744
  };
758
745
 
746
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
747
+ const ret = getObject(arg0);
748
+ return addHeapObject(ret);
749
+ };
750
+
759
751
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
760
752
  const ret = getStringFromWasm0(arg0, arg1);
761
753
  return addHeapObject(ret);
@@ -770,6 +762,14 @@ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
770
762
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
771
763
  };
772
764
 
765
+ module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
766
+ const ret = String(getObject(arg1));
767
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
768
+ const len0 = WASM_VECTOR_LEN;
769
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
770
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
771
+ };
772
+
773
773
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
774
774
  const ret = new Error();
775
775
  return addHeapObject(ret);
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.5.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"]}
1
+ {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.6.0","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"]}