@biomejs/wasm-nodejs 2.1.4 → 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
@@ -386,6 +386,17 @@ class Workspace {
386
386
  }
387
387
  return takeFromExternrefTable0(ret[0]);
388
388
  }
389
+ /**
390
+ * @param {ScanProjectParams} params
391
+ * @returns {ScanProjectResult}
392
+ */
393
+ scanProject(params) {
394
+ const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
395
+ if (ret[2]) {
396
+ throw takeFromExternrefTable0(ret[1]);
397
+ }
398
+ return takeFromExternrefTable0(ret[0]);
399
+ }
389
400
  /**
390
401
  * @param {OpenFileParams} params
391
402
  */
@@ -556,6 +567,48 @@ class Workspace {
556
567
  throw takeFromExternrefTable0(ret[0]);
557
568
  }
558
569
  }
570
+ /**
571
+ * @param {FileExitsParams} params
572
+ * @returns {boolean}
573
+ */
574
+ fileExists(params) {
575
+ const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
576
+ if (ret[2]) {
577
+ throw takeFromExternrefTable0(ret[1]);
578
+ }
579
+ return ret[0] !== 0;
580
+ }
581
+ /**
582
+ * @param {PathIsIgnoredParams} params
583
+ * @returns {boolean}
584
+ */
585
+ isPathIgnored(params) {
586
+ const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
587
+ if (ret[2]) {
588
+ throw takeFromExternrefTable0(ret[1]);
589
+ }
590
+ return ret[0] !== 0;
591
+ }
592
+ /**
593
+ * @param {UpdateModuleGraphParams} params
594
+ */
595
+ updateModuleGraph(params) {
596
+ const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
597
+ if (ret[1]) {
598
+ throw takeFromExternrefTable0(ret[0]);
599
+ }
600
+ }
601
+ /**
602
+ * @param {GetModuleGraphParams} params
603
+ * @returns {GetModuleGraphResult}
604
+ */
605
+ getModuleGraph(params) {
606
+ const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
607
+ if (ret[2]) {
608
+ throw takeFromExternrefTable0(ret[1]);
609
+ }
610
+ return takeFromExternrefTable0(ret[0]);
611
+ }
559
612
  /**
560
613
  * @param {PullDiagnosticsParams} params
561
614
  * @returns {PullDiagnosticsResult}
@@ -779,6 +832,11 @@ module.exports.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
779
832
  return ret;
780
833
  };
781
834
 
835
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
836
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
837
+ return ret;
838
+ };
839
+
782
840
  module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
783
841
  const ret = arg0.next;
784
842
  return ret;
@@ -789,6 +847,16 @@ module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(fun
789
847
  return ret;
790
848
  }, arguments) };
791
849
 
850
+ module.exports.__wbg_now_2c95c9de01293173 = function(arg0) {
851
+ const ret = arg0.now();
852
+ return ret;
853
+ };
854
+
855
+ module.exports.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
856
+ const ret = arg0.performance;
857
+ return ret;
858
+ };
859
+
792
860
  module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
793
861
  arg0[arg1 >>> 0] = arg2;
794
862
  };
@@ -814,6 +882,26 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
814
882
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
815
883
  };
816
884
 
885
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
886
+ const ret = typeof global === 'undefined' ? null : global;
887
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
888
+ };
889
+
890
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
891
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
892
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
893
+ };
894
+
895
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
896
+ const ret = typeof self === 'undefined' ? null : self;
897
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
898
+ };
899
+
900
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
901
+ const ret = typeof window === 'undefined' ? null : window;
902
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
903
+ };
904
+
817
905
  module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
818
906
  const ret = arg0.value;
819
907
  return ret;
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Biome Developers and Contributors"
5
5
  ],
6
6
  "description": "WebAssembly bindings to the Biome workspace API",
7
- "version": "2.1.4",
7
+ "version": "2.2.0",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",