@biomejs/wasm-bundler 2.1.4 → 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_bg.js CHANGED
@@ -388,14 +388,27 @@ export class Workspace {
388
388
  }
389
389
  return takeFromExternrefTable0(ret[0]);
390
390
  }
391
+ /**
392
+ * @param {ScanProjectParams} params
393
+ * @returns {ScanProjectResult}
394
+ */
395
+ scanProject(params) {
396
+ const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
397
+ if (ret[2]) {
398
+ throw takeFromExternrefTable0(ret[1]);
399
+ }
400
+ return takeFromExternrefTable0(ret[0]);
401
+ }
391
402
  /**
392
403
  * @param {OpenFileParams} params
404
+ * @returns {OpenFileResult}
393
405
  */
394
406
  openFile(params) {
395
407
  const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
396
- if (ret[1]) {
397
- throw takeFromExternrefTable0(ret[0]);
408
+ if (ret[2]) {
409
+ throw takeFromExternrefTable0(ret[1]);
398
410
  }
411
+ return takeFromExternrefTable0(ret[0]);
399
412
  }
400
413
  /**
401
414
  * @param {GetFileContentParams} params
@@ -542,12 +555,14 @@ export class Workspace {
542
555
  }
543
556
  /**
544
557
  * @param {ChangeFileParams} params
558
+ * @returns {ChangeFileResult}
545
559
  */
546
560
  changeFile(params) {
547
561
  const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
548
- if (ret[1]) {
549
- throw takeFromExternrefTable0(ret[0]);
562
+ if (ret[2]) {
563
+ throw takeFromExternrefTable0(ret[1]);
550
564
  }
565
+ return takeFromExternrefTable0(ret[0]);
551
566
  }
552
567
  /**
553
568
  * @param {CloseFileParams} params
@@ -558,6 +573,48 @@ export class Workspace {
558
573
  throw takeFromExternrefTable0(ret[0]);
559
574
  }
560
575
  }
576
+ /**
577
+ * @param {FileExitsParams} params
578
+ * @returns {boolean}
579
+ */
580
+ fileExists(params) {
581
+ const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
582
+ if (ret[2]) {
583
+ throw takeFromExternrefTable0(ret[1]);
584
+ }
585
+ return ret[0] !== 0;
586
+ }
587
+ /**
588
+ * @param {PathIsIgnoredParams} params
589
+ * @returns {boolean}
590
+ */
591
+ isPathIgnored(params) {
592
+ const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
593
+ if (ret[2]) {
594
+ throw takeFromExternrefTable0(ret[1]);
595
+ }
596
+ return ret[0] !== 0;
597
+ }
598
+ /**
599
+ * @param {UpdateModuleGraphParams} params
600
+ */
601
+ updateModuleGraph(params) {
602
+ const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
603
+ if (ret[1]) {
604
+ throw takeFromExternrefTable0(ret[0]);
605
+ }
606
+ }
607
+ /**
608
+ * @param {GetModuleGraphParams} params
609
+ * @returns {GetModuleGraphResult}
610
+ */
611
+ getModuleGraph(params) {
612
+ const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
613
+ if (ret[2]) {
614
+ throw takeFromExternrefTable0(ret[1]);
615
+ }
616
+ return takeFromExternrefTable0(ret[0]);
617
+ }
561
618
  /**
562
619
  * @param {PullDiagnosticsParams} params
563
620
  * @returns {PullDiagnosticsResult}
@@ -780,6 +837,11 @@ export function __wbg_new_c68d7209be747379(arg0, arg1) {
780
837
  return ret;
781
838
  };
782
839
 
840
+ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
841
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
842
+ return ret;
843
+ };
844
+
783
845
  export function __wbg_next_25feadfc0913fea9(arg0) {
784
846
  const ret = arg0.next;
785
847
  return ret;
@@ -790,6 +852,16 @@ export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg
790
852
  return ret;
791
853
  }, arguments) };
792
854
 
855
+ export function __wbg_now_2c95c9de01293173(arg0) {
856
+ const ret = arg0.now();
857
+ return ret;
858
+ };
859
+
860
+ export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
861
+ const ret = arg0.performance;
862
+ return ret;
863
+ };
864
+
793
865
  export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
794
866
  arg0[arg1 >>> 0] = arg2;
795
867
  };
@@ -815,6 +887,26 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
815
887
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
816
888
  };
817
889
 
890
+ export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
891
+ const ret = typeof global === 'undefined' ? null : global;
892
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
893
+ };
894
+
895
+ export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
896
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
897
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
898
+ };
899
+
900
+ export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
901
+ const ret = typeof self === 'undefined' ? null : self;
902
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
903
+ };
904
+
905
+ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
906
+ const ret = typeof window === 'undefined' ? null : window;
907
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
908
+ };
909
+
818
910
  export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
819
911
  const ret = arg0.value;
820
912
  return ret;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Biome Developers and Contributors"
6
6
  ],
7
7
  "description": "WebAssembly bindings to the Biome workspace API",
8
- "version": "2.1.4",
8
+ "version": "2.2.2",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",