@biomejs/wasm-nodejs 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.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.js
CHANGED
|
@@ -399,12 +399,14 @@ class Workspace {
|
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* @param {OpenFileParams} params
|
|
402
|
+
* @returns {OpenFileResult}
|
|
402
403
|
*/
|
|
403
404
|
openFile(params) {
|
|
404
405
|
const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
|
|
405
|
-
if (ret[
|
|
406
|
-
throw takeFromExternrefTable0(ret[
|
|
406
|
+
if (ret[2]) {
|
|
407
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
407
408
|
}
|
|
409
|
+
return takeFromExternrefTable0(ret[0]);
|
|
408
410
|
}
|
|
409
411
|
/**
|
|
410
412
|
* @param {GetFileContentParams} params
|
|
@@ -551,12 +553,14 @@ class Workspace {
|
|
|
551
553
|
}
|
|
552
554
|
/**
|
|
553
555
|
* @param {ChangeFileParams} params
|
|
556
|
+
* @returns {ChangeFileResult}
|
|
554
557
|
*/
|
|
555
558
|
changeFile(params) {
|
|
556
559
|
const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
|
|
557
|
-
if (ret[
|
|
558
|
-
throw takeFromExternrefTable0(ret[
|
|
560
|
+
if (ret[2]) {
|
|
561
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
559
562
|
}
|
|
563
|
+
return takeFromExternrefTable0(ret[0]);
|
|
560
564
|
}
|
|
561
565
|
/**
|
|
562
566
|
* @param {CloseFileParams} params
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|