@biomejs/wasm-web 2.1.3 → 2.2.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.js CHANGED
@@ -380,6 +380,17 @@ 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
385
396
  */
@@ -550,6 +561,48 @@ export class Workspace {
550
561
  throw takeFromExternrefTable0(ret[0]);
551
562
  }
552
563
  }
564
+ /**
565
+ * @param {FileExitsParams} params
566
+ * @returns {boolean}
567
+ */
568
+ fileExists(params) {
569
+ const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
570
+ if (ret[2]) {
571
+ throw takeFromExternrefTable0(ret[1]);
572
+ }
573
+ return ret[0] !== 0;
574
+ }
575
+ /**
576
+ * @param {PathIsIgnoredParams} params
577
+ * @returns {boolean}
578
+ */
579
+ isPathIgnored(params) {
580
+ const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
581
+ if (ret[2]) {
582
+ throw takeFromExternrefTable0(ret[1]);
583
+ }
584
+ return ret[0] !== 0;
585
+ }
586
+ /**
587
+ * @param {UpdateModuleGraphParams} params
588
+ */
589
+ updateModuleGraph(params) {
590
+ const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
591
+ if (ret[1]) {
592
+ throw takeFromExternrefTable0(ret[0]);
593
+ }
594
+ }
595
+ /**
596
+ * @param {GetModuleGraphParams} params
597
+ * @returns {GetModuleGraphResult}
598
+ */
599
+ getModuleGraph(params) {
600
+ const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
601
+ if (ret[2]) {
602
+ throw takeFromExternrefTable0(ret[1]);
603
+ }
604
+ return takeFromExternrefTable0(ret[0]);
605
+ }
553
606
  /**
554
607
  * @param {PullDiagnosticsParams} params
555
608
  * @returns {PullDiagnosticsResult}
@@ -783,6 +836,10 @@ function __wbg_get_imports() {
783
836
  const ret = new Error(getStringFromWasm0(arg0, arg1));
784
837
  return ret;
785
838
  };
839
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
840
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
841
+ return ret;
842
+ };
786
843
  imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
787
844
  const ret = arg0.next;
788
845
  return ret;
@@ -791,6 +848,14 @@ function __wbg_get_imports() {
791
848
  const ret = arg0.next();
792
849
  return ret;
793
850
  }, arguments) };
851
+ imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
852
+ const ret = arg0.now();
853
+ return ret;
854
+ };
855
+ imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
856
+ const ret = arg0.performance;
857
+ return ret;
858
+ };
794
859
  imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
795
860
  arg0[arg1 >>> 0] = arg2;
796
861
  };
@@ -811,6 +876,22 @@ function __wbg_get_imports() {
811
876
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
812
877
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
813
878
  };
879
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
880
+ const ret = typeof global === 'undefined' ? null : global;
881
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
882
+ };
883
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
884
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
885
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
886
+ };
887
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
888
+ const ret = typeof self === 'undefined' ? null : self;
889
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
890
+ };
891
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
892
+ const ret = typeof window === 'undefined' ? null : window;
893
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
894
+ };
814
895
  imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
815
896
  const ret = arg0.value;
816
897
  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.3",
8
+ "version": "2.2.0",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",