@biomejs/wasm-web 2.4.15 → 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 +1624 -1192
- package/biome_wasm.js +21 -21
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.js
CHANGED
|
@@ -30,7 +30,7 @@ export 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 @@ export 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;
|
|
@@ -84,9 +84,9 @@ export class MemoryFileSystem {
|
|
|
84
84
|
* @param {Uint8Array} data
|
|
85
85
|
*/
|
|
86
86
|
insert(path, data) {
|
|
87
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
87
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
88
88
|
const len0 = WASM_VECTOR_LEN;
|
|
89
|
-
const ptr1 = passArray8ToWasm0(data, wasm.
|
|
89
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc_command_export);
|
|
90
90
|
const len1 = WASM_VECTOR_LEN;
|
|
91
91
|
wasm.memoryfilesystem_insert(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
92
92
|
}
|
|
@@ -100,7 +100,7 @@ export class MemoryFileSystem {
|
|
|
100
100
|
* @param {string} path
|
|
101
101
|
*/
|
|
102
102
|
remove(path) {
|
|
103
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
103
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
104
104
|
const len0 = WASM_VECTOR_LEN;
|
|
105
105
|
wasm.memoryfilesystem_remove(this.__wbg_ptr, ptr0, len0);
|
|
106
106
|
}
|
|
@@ -155,7 +155,7 @@ export class Workspace {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* @param {
|
|
158
|
+
* @param {FileExistsParams} params
|
|
159
159
|
* @returns {boolean}
|
|
160
160
|
*/
|
|
161
161
|
fileExists(params) {
|
|
@@ -239,7 +239,7 @@ export class Workspace {
|
|
|
239
239
|
deferred2_1 = len1;
|
|
240
240
|
return getStringFromWasm0(ptr1, len1);
|
|
241
241
|
} finally {
|
|
242
|
-
wasm.
|
|
242
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
@@ -261,7 +261,7 @@ export class Workspace {
|
|
|
261
261
|
deferred2_1 = len1;
|
|
262
262
|
return getStringFromWasm0(ptr1, len1);
|
|
263
263
|
} finally {
|
|
264
|
-
wasm.
|
|
264
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
@@ -283,7 +283,7 @@ export class Workspace {
|
|
|
283
283
|
deferred2_1 = len1;
|
|
284
284
|
return getStringFromWasm0(ptr1, len1);
|
|
285
285
|
} finally {
|
|
286
|
-
wasm.
|
|
286
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
@@ -316,7 +316,7 @@ export class Workspace {
|
|
|
316
316
|
deferred2_1 = len1;
|
|
317
317
|
return getStringFromWasm0(ptr1, len1);
|
|
318
318
|
} finally {
|
|
319
|
-
wasm.
|
|
319
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
@@ -338,7 +338,7 @@ export class Workspace {
|
|
|
338
338
|
deferred2_1 = len1;
|
|
339
339
|
return getStringFromWasm0(ptr1, len1);
|
|
340
340
|
} finally {
|
|
341
|
-
wasm.
|
|
341
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
@@ -371,7 +371,7 @@ export class Workspace {
|
|
|
371
371
|
deferred2_1 = len1;
|
|
372
372
|
return getStringFromWasm0(ptr1, len1);
|
|
373
373
|
} finally {
|
|
374
|
-
wasm.
|
|
374
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
/**
|
|
@@ -528,7 +528,7 @@ function __wbg_get_imports() {
|
|
|
528
528
|
},
|
|
529
529
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
530
530
|
const ret = String(arg1);
|
|
531
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
531
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
532
532
|
const len1 = WASM_VECTOR_LEN;
|
|
533
533
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
534
534
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -546,7 +546,7 @@ function __wbg_get_imports() {
|
|
|
546
546
|
},
|
|
547
547
|
__wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
|
|
548
548
|
const ret = debugString(arg1);
|
|
549
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
549
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
550
550
|
const len1 = WASM_VECTOR_LEN;
|
|
551
551
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
552
552
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -593,7 +593,7 @@ function __wbg_get_imports() {
|
|
|
593
593
|
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
594
594
|
const obj = arg1;
|
|
595
595
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
596
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
596
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
597
597
|
var len1 = WASM_VECTOR_LEN;
|
|
598
598
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
599
599
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -621,7 +621,7 @@ function __wbg_get_imports() {
|
|
|
621
621
|
deferred0_1 = arg1;
|
|
622
622
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
623
623
|
} finally {
|
|
624
|
-
wasm.
|
|
624
|
+
wasm.__wbindgen_free_command_export(deferred0_0, deferred0_1, 1);
|
|
625
625
|
}
|
|
626
626
|
},
|
|
627
627
|
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
@@ -745,7 +745,7 @@ function __wbg_get_imports() {
|
|
|
745
745
|
},
|
|
746
746
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
747
747
|
const ret = arg1.stack;
|
|
748
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
748
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
749
749
|
const len1 = WASM_VECTOR_LEN;
|
|
750
750
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
751
751
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -817,7 +817,7 @@ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
817
817
|
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
|
|
818
818
|
|
|
819
819
|
function addToExternrefTable0(obj) {
|
|
820
|
-
const idx = wasm.
|
|
820
|
+
const idx = wasm.__externref_table_alloc_command_export();
|
|
821
821
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
822
822
|
return idx;
|
|
823
823
|
}
|
|
@@ -924,7 +924,7 @@ function handleError(f, args) {
|
|
|
924
924
|
return f.apply(this, args);
|
|
925
925
|
} catch (e) {
|
|
926
926
|
const idx = addToExternrefTable0(e);
|
|
927
|
-
wasm.
|
|
927
|
+
wasm.__wbindgen_exn_store_command_export(idx);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
|
|
@@ -978,7 +978,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
978
978
|
|
|
979
979
|
function takeFromExternrefTable0(idx) {
|
|
980
980
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
981
|
-
wasm.
|
|
981
|
+
wasm.__externref_table_dealloc_command_export(idx);
|
|
982
982
|
return value;
|
|
983
983
|
}
|
|
984
984
|
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|