@biomejs/wasm-web 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.js CHANGED
@@ -380,14 +380,27 @@ export class Workspace {
380
380
  }
381
381
  return takeFromExternrefTable0(ret[0]);
382
382
  }
383
+ /**
384
+ * @param {ScanProjectParams} params
385
+ * @returns {ScanProjectResult}
386
+ */
387
+ scanProject(params) {
388
+ const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
389
+ if (ret[2]) {
390
+ throw takeFromExternrefTable0(ret[1]);
391
+ }
392
+ return takeFromExternrefTable0(ret[0]);
393
+ }
383
394
  /**
384
395
  * @param {OpenFileParams} params
396
+ * @returns {OpenFileResult}
385
397
  */
386
398
  openFile(params) {
387
399
  const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
388
- if (ret[1]) {
389
- throw takeFromExternrefTable0(ret[0]);
400
+ if (ret[2]) {
401
+ throw takeFromExternrefTable0(ret[1]);
390
402
  }
403
+ return takeFromExternrefTable0(ret[0]);
391
404
  }
392
405
  /**
393
406
  * @param {GetFileContentParams} params
@@ -534,12 +547,14 @@ export class Workspace {
534
547
  }
535
548
  /**
536
549
  * @param {ChangeFileParams} params
550
+ * @returns {ChangeFileResult}
537
551
  */
538
552
  changeFile(params) {
539
553
  const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
540
- if (ret[1]) {
541
- throw takeFromExternrefTable0(ret[0]);
554
+ if (ret[2]) {
555
+ throw takeFromExternrefTable0(ret[1]);
542
556
  }
557
+ return takeFromExternrefTable0(ret[0]);
543
558
  }
544
559
  /**
545
560
  * @param {CloseFileParams} params
@@ -550,6 +565,48 @@ export class Workspace {
550
565
  throw takeFromExternrefTable0(ret[0]);
551
566
  }
552
567
  }
568
+ /**
569
+ * @param {FileExitsParams} params
570
+ * @returns {boolean}
571
+ */
572
+ fileExists(params) {
573
+ const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
574
+ if (ret[2]) {
575
+ throw takeFromExternrefTable0(ret[1]);
576
+ }
577
+ return ret[0] !== 0;
578
+ }
579
+ /**
580
+ * @param {PathIsIgnoredParams} params
581
+ * @returns {boolean}
582
+ */
583
+ isPathIgnored(params) {
584
+ const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
585
+ if (ret[2]) {
586
+ throw takeFromExternrefTable0(ret[1]);
587
+ }
588
+ return ret[0] !== 0;
589
+ }
590
+ /**
591
+ * @param {UpdateModuleGraphParams} params
592
+ */
593
+ updateModuleGraph(params) {
594
+ const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
595
+ if (ret[1]) {
596
+ throw takeFromExternrefTable0(ret[0]);
597
+ }
598
+ }
599
+ /**
600
+ * @param {GetModuleGraphParams} params
601
+ * @returns {GetModuleGraphResult}
602
+ */
603
+ getModuleGraph(params) {
604
+ const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
605
+ if (ret[2]) {
606
+ throw takeFromExternrefTable0(ret[1]);
607
+ }
608
+ return takeFromExternrefTable0(ret[0]);
609
+ }
553
610
  /**
554
611
  * @param {PullDiagnosticsParams} params
555
612
  * @returns {PullDiagnosticsResult}
@@ -783,6 +840,10 @@ function __wbg_get_imports() {
783
840
  const ret = new Error(getStringFromWasm0(arg0, arg1));
784
841
  return ret;
785
842
  };
843
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
844
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
845
+ return ret;
846
+ };
786
847
  imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
787
848
  const ret = arg0.next;
788
849
  return ret;
@@ -791,6 +852,14 @@ function __wbg_get_imports() {
791
852
  const ret = arg0.next();
792
853
  return ret;
793
854
  }, arguments) };
855
+ imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
856
+ const ret = arg0.now();
857
+ return ret;
858
+ };
859
+ imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
860
+ const ret = arg0.performance;
861
+ return ret;
862
+ };
794
863
  imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
795
864
  arg0[arg1 >>> 0] = arg2;
796
865
  };
@@ -811,6 +880,22 @@ function __wbg_get_imports() {
811
880
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
812
881
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
813
882
  };
883
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
884
+ const ret = typeof global === 'undefined' ? null : global;
885
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
886
+ };
887
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
888
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
889
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
890
+ };
891
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
892
+ const ret = typeof self === 'undefined' ? null : self;
893
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
894
+ };
895
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
896
+ const ret = typeof window === 'undefined' ? null : window;
897
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
898
+ };
814
899
  imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
815
900
  const ret = arg0.value;
816
901
  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",