@biomejs/wasm-web 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.d.ts +561 -351
- package/biome_wasm.js +30 -30
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.js
CHANGED
|
@@ -8,6 +8,15 @@ function getObject(idx) { return heap[idx]; }
|
|
|
8
8
|
|
|
9
9
|
let heap_next = heap.length;
|
|
10
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
|
+
|
|
11
20
|
function dropObject(idx) {
|
|
12
21
|
if (idx < 132) return;
|
|
13
22
|
heap[idx] = heap_next;
|
|
@@ -20,15 +29,6 @@ function takeObject(idx) {
|
|
|
20
29
|
return ret;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
function addHeapObject(obj) {
|
|
24
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
25
|
-
const idx = heap_next;
|
|
26
|
-
heap_next = heap[idx];
|
|
27
|
-
|
|
28
|
-
heap[idx] = obj;
|
|
29
|
-
return idx;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
32
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
33
33
|
|
|
34
34
|
cachedTextDecoder.decode();
|
|
@@ -690,17 +690,6 @@ async function load(module, imports) {
|
|
|
690
690
|
function getImports() {
|
|
691
691
|
const imports = {};
|
|
692
692
|
imports.wbg = {};
|
|
693
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
694
|
-
const ret = getObject(arg0) === undefined;
|
|
695
|
-
return ret;
|
|
696
|
-
};
|
|
697
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
698
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
699
|
-
return ret;
|
|
700
|
-
};
|
|
701
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
702
|
-
takeObject(arg0);
|
|
703
|
-
};
|
|
704
693
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
705
694
|
const v = getObject(arg0);
|
|
706
695
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -718,6 +707,9 @@ function getImports() {
|
|
|
718
707
|
const ret = getObject(arg0) === getObject(arg1);
|
|
719
708
|
return ret;
|
|
720
709
|
};
|
|
710
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
711
|
+
takeObject(arg0);
|
|
712
|
+
};
|
|
721
713
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
722
714
|
const ret = BigInt.asUintN(64, arg0);
|
|
723
715
|
return addHeapObject(ret);
|
|
@@ -745,29 +737,30 @@ function getImports() {
|
|
|
745
737
|
const ret = typeof(val) === 'object' && val !== null;
|
|
746
738
|
return ret;
|
|
747
739
|
};
|
|
740
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
741
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
742
|
+
return ret;
|
|
743
|
+
};
|
|
748
744
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
749
745
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
750
746
|
return ret;
|
|
751
747
|
};
|
|
752
|
-
imports.wbg.
|
|
753
|
-
const ret = getObject(arg0);
|
|
754
|
-
return
|
|
748
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
749
|
+
const ret = getObject(arg0) === undefined;
|
|
750
|
+
return ret;
|
|
755
751
|
};
|
|
756
752
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
757
753
|
const ret = getObject(arg0) == getObject(arg1);
|
|
758
754
|
return ret;
|
|
759
755
|
};
|
|
760
|
-
imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
761
|
-
const ret = String(getObject(arg1));
|
|
762
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
763
|
-
const len0 = WASM_VECTOR_LEN;
|
|
764
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
765
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
766
|
-
};
|
|
767
756
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
768
757
|
const ret = arg0;
|
|
769
758
|
return addHeapObject(ret);
|
|
770
759
|
};
|
|
760
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
761
|
+
const ret = getObject(arg0);
|
|
762
|
+
return addHeapObject(ret);
|
|
763
|
+
};
|
|
771
764
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
772
765
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
773
766
|
return addHeapObject(ret);
|
|
@@ -779,6 +772,13 @@ function getImports() {
|
|
|
779
772
|
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
780
773
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
781
774
|
};
|
|
775
|
+
imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
776
|
+
const ret = String(getObject(arg1));
|
|
777
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
778
|
+
const len0 = WASM_VECTOR_LEN;
|
|
779
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
780
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
781
|
+
};
|
|
782
782
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
783
783
|
const ret = new Error();
|
|
784
784
|
return addHeapObject(ret);
|
package/biome_wasm_bg.wasm
CHANGED
|
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.
|
|
1
|
+
{"name":"@biomejs/wasm-web","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"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
|