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