@biomejs/wasm-nodejs 2.4.16 → 2.5.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 +1670 -1239
- package/biome_wasm.js +20 -20
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.js
CHANGED
|
@@ -30,7 +30,7 @@ class DiagnosticPrinter {
|
|
|
30
30
|
deferred2_1 = len1;
|
|
31
31
|
return getStringFromWasm0(ptr1, len1);
|
|
32
32
|
} finally {
|
|
33
|
-
wasm.
|
|
33
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -38,9 +38,9 @@ class DiagnosticPrinter {
|
|
|
38
38
|
* @param {string} file_source
|
|
39
39
|
*/
|
|
40
40
|
constructor(file_name, file_source) {
|
|
41
|
-
const ptr0 = passStringToWasm0(file_name, wasm.
|
|
41
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
42
42
|
const len0 = WASM_VECTOR_LEN;
|
|
43
|
-
const ptr1 = passStringToWasm0(file_source, wasm.
|
|
43
|
+
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
44
44
|
const len1 = WASM_VECTOR_LEN;
|
|
45
45
|
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
46
46
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -85,9 +85,9 @@ class MemoryFileSystem {
|
|
|
85
85
|
* @param {Uint8Array} data
|
|
86
86
|
*/
|
|
87
87
|
insert(path, data) {
|
|
88
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
88
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
89
89
|
const len0 = WASM_VECTOR_LEN;
|
|
90
|
-
const ptr1 = passArray8ToWasm0(data, wasm.
|
|
90
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc_command_export);
|
|
91
91
|
const len1 = WASM_VECTOR_LEN;
|
|
92
92
|
wasm.memoryfilesystem_insert(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
93
93
|
}
|
|
@@ -101,7 +101,7 @@ class MemoryFileSystem {
|
|
|
101
101
|
* @param {string} path
|
|
102
102
|
*/
|
|
103
103
|
remove(path) {
|
|
104
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
104
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
105
105
|
const len0 = WASM_VECTOR_LEN;
|
|
106
106
|
wasm.memoryfilesystem_remove(this.__wbg_ptr, ptr0, len0);
|
|
107
107
|
}
|
|
@@ -241,7 +241,7 @@ class Workspace {
|
|
|
241
241
|
deferred2_1 = len1;
|
|
242
242
|
return getStringFromWasm0(ptr1, len1);
|
|
243
243
|
} finally {
|
|
244
|
-
wasm.
|
|
244
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
@@ -263,7 +263,7 @@ class Workspace {
|
|
|
263
263
|
deferred2_1 = len1;
|
|
264
264
|
return getStringFromWasm0(ptr1, len1);
|
|
265
265
|
} finally {
|
|
266
|
-
wasm.
|
|
266
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
@@ -285,7 +285,7 @@ class Workspace {
|
|
|
285
285
|
deferred2_1 = len1;
|
|
286
286
|
return getStringFromWasm0(ptr1, len1);
|
|
287
287
|
} finally {
|
|
288
|
-
wasm.
|
|
288
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
@@ -318,7 +318,7 @@ class Workspace {
|
|
|
318
318
|
deferred2_1 = len1;
|
|
319
319
|
return getStringFromWasm0(ptr1, len1);
|
|
320
320
|
} finally {
|
|
321
|
-
wasm.
|
|
321
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
@@ -340,7 +340,7 @@ class Workspace {
|
|
|
340
340
|
deferred2_1 = len1;
|
|
341
341
|
return getStringFromWasm0(ptr1, len1);
|
|
342
342
|
} finally {
|
|
343
|
-
wasm.
|
|
343
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
@@ -373,7 +373,7 @@ class Workspace {
|
|
|
373
373
|
deferred2_1 = len1;
|
|
374
374
|
return getStringFromWasm0(ptr1, len1);
|
|
375
375
|
} finally {
|
|
376
|
-
wasm.
|
|
376
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
@@ -532,7 +532,7 @@ function __wbg_get_imports() {
|
|
|
532
532
|
},
|
|
533
533
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
534
534
|
const ret = String(arg1);
|
|
535
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
535
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
536
536
|
const len1 = WASM_VECTOR_LEN;
|
|
537
537
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
538
538
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -550,7 +550,7 @@ function __wbg_get_imports() {
|
|
|
550
550
|
},
|
|
551
551
|
__wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
|
|
552
552
|
const ret = debugString(arg1);
|
|
553
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
553
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
554
554
|
const len1 = WASM_VECTOR_LEN;
|
|
555
555
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
556
556
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -597,7 +597,7 @@ function __wbg_get_imports() {
|
|
|
597
597
|
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
598
598
|
const obj = arg1;
|
|
599
599
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
600
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
600
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
601
601
|
var len1 = WASM_VECTOR_LEN;
|
|
602
602
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
603
603
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -625,7 +625,7 @@ function __wbg_get_imports() {
|
|
|
625
625
|
deferred0_1 = arg1;
|
|
626
626
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
627
627
|
} finally {
|
|
628
|
-
wasm.
|
|
628
|
+
wasm.__wbindgen_free_command_export(deferred0_0, deferred0_1, 1);
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
@@ -749,7 +749,7 @@ function __wbg_get_imports() {
|
|
|
749
749
|
},
|
|
750
750
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
751
751
|
const ret = arg1.stack;
|
|
752
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
752
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
753
753
|
const len1 = WASM_VECTOR_LEN;
|
|
754
754
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
755
755
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -821,7 +821,7 @@ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
821
821
|
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
|
|
822
822
|
|
|
823
823
|
function addToExternrefTable0(obj) {
|
|
824
|
-
const idx = wasm.
|
|
824
|
+
const idx = wasm.__externref_table_alloc_command_export();
|
|
825
825
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
826
826
|
return idx;
|
|
827
827
|
}
|
|
@@ -928,7 +928,7 @@ function handleError(f, args) {
|
|
|
928
928
|
return f.apply(this, args);
|
|
929
929
|
} catch (e) {
|
|
930
930
|
const idx = addToExternrefTable0(e);
|
|
931
|
-
wasm.
|
|
931
|
+
wasm.__wbindgen_exn_store_command_export(idx);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
|
|
@@ -982,7 +982,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
982
982
|
|
|
983
983
|
function takeFromExternrefTable0(idx) {
|
|
984
984
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
985
|
-
wasm.
|
|
985
|
+
wasm.__externref_table_dealloc_command_export(idx);
|
|
986
986
|
return value;
|
|
987
987
|
}
|
|
988
988
|
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|