@biomejs/wasm-bundler 2.2.0 → 2.2.2
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 +8 -2
- package/biome_wasm_bg.js +8 -4
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -8969,12 +8969,18 @@ type HtmlVariant =
|
|
|
8969
8969
|
| "Svelte";
|
|
8970
8970
|
type GritVariant = "Standard";
|
|
8971
8971
|
type HtmlTextExpressions = "None" | "Single" | "Double";
|
|
8972
|
+
interface OpenFileResult {
|
|
8973
|
+
diagnostics: Diagnostic[];
|
|
8974
|
+
}
|
|
8972
8975
|
interface ChangeFileParams {
|
|
8973
8976
|
content: string;
|
|
8974
8977
|
path: BiomePath;
|
|
8975
8978
|
projectKey: ProjectKey;
|
|
8976
8979
|
version: number;
|
|
8977
8980
|
}
|
|
8981
|
+
interface ChangeFileResult {
|
|
8982
|
+
diagnostics: Diagnostic[];
|
|
8983
|
+
}
|
|
8978
8984
|
interface CloseFileParams {
|
|
8979
8985
|
path: BiomePath;
|
|
8980
8986
|
projectKey: ProjectKey;
|
|
@@ -9279,7 +9285,7 @@ export class Workspace {
|
|
|
9279
9285
|
updateSettings(params: UpdateSettingsParams): UpdateSettingsResult;
|
|
9280
9286
|
openProject(params: OpenProjectParams): OpenProjectResult;
|
|
9281
9287
|
scanProject(params: ScanProjectParams): ScanProjectResult;
|
|
9282
|
-
openFile(params: OpenFileParams):
|
|
9288
|
+
openFile(params: OpenFileParams): OpenFileResult;
|
|
9283
9289
|
getFileContent(params: GetFileContentParams): string;
|
|
9284
9290
|
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
9285
9291
|
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
@@ -9287,7 +9293,7 @@ export class Workspace {
|
|
|
9287
9293
|
getTypeInfo(params: GetTypeInfoParams): string;
|
|
9288
9294
|
getRegisteredTypes(params: GetRegisteredTypesParams): string;
|
|
9289
9295
|
getSemanticModel(params: GetSemanticModelParams): string;
|
|
9290
|
-
changeFile(params: ChangeFileParams):
|
|
9296
|
+
changeFile(params: ChangeFileParams): ChangeFileResult;
|
|
9291
9297
|
closeFile(params: CloseFileParams): void;
|
|
9292
9298
|
fileExists(params: FileExitsParams): boolean;
|
|
9293
9299
|
isPathIgnored(params: PathIsIgnoredParams): boolean;
|
package/biome_wasm_bg.js
CHANGED
|
@@ -401,12 +401,14 @@ export class Workspace {
|
|
|
401
401
|
}
|
|
402
402
|
/**
|
|
403
403
|
* @param {OpenFileParams} params
|
|
404
|
+
* @returns {OpenFileResult}
|
|
404
405
|
*/
|
|
405
406
|
openFile(params) {
|
|
406
407
|
const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
|
|
407
|
-
if (ret[
|
|
408
|
-
throw takeFromExternrefTable0(ret[
|
|
408
|
+
if (ret[2]) {
|
|
409
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
409
410
|
}
|
|
411
|
+
return takeFromExternrefTable0(ret[0]);
|
|
410
412
|
}
|
|
411
413
|
/**
|
|
412
414
|
* @param {GetFileContentParams} params
|
|
@@ -553,12 +555,14 @@ export class Workspace {
|
|
|
553
555
|
}
|
|
554
556
|
/**
|
|
555
557
|
* @param {ChangeFileParams} params
|
|
558
|
+
* @returns {ChangeFileResult}
|
|
556
559
|
*/
|
|
557
560
|
changeFile(params) {
|
|
558
561
|
const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
|
|
559
|
-
if (ret[
|
|
560
|
-
throw takeFromExternrefTable0(ret[
|
|
562
|
+
if (ret[2]) {
|
|
563
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
561
564
|
}
|
|
565
|
+
return takeFromExternrefTable0(ret[0]);
|
|
562
566
|
}
|
|
563
567
|
/**
|
|
564
568
|
* @param {CloseFileParams} params
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|