@astral-sh/ruff-wasm-nodejs 0.6.9 → 0.7.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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Charlie Marsh <charlie.r.marsh@gmail.com>"
5
5
  ],
6
6
  "description": "WebAssembly bindings for Ruff",
7
- "version": "0.6.9",
7
+ "version": "0.7.0",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/ruff_wasm.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- */
5
3
  export function run(): void;
6
4
 
7
5
  export interface Diagnostic {
@@ -32,51 +30,49 @@ export interface Diagnostic {
32
30
  };
33
31
 
34
32
 
35
- /**
36
- */
37
33
  export class Workspace {
38
34
  free(): void;
39
- /**
40
- * @returns {string}
41
- */
35
+ /**
36
+ * @returns {string}
37
+ */
42
38
  static version(): string;
43
- /**
44
- * @param {any} options
45
- */
39
+ /**
40
+ * @param {any} options
41
+ */
46
42
  constructor(options: any);
47
- /**
48
- * @returns {any}
49
- */
43
+ /**
44
+ * @returns {any}
45
+ */
50
46
  static defaultSettings(): any;
51
- /**
52
- * @param {string} contents
53
- * @returns {any}
54
- */
47
+ /**
48
+ * @param {string} contents
49
+ * @returns {any}
50
+ */
55
51
  check(contents: string): any;
56
- /**
57
- * @param {string} contents
58
- * @returns {string}
59
- */
52
+ /**
53
+ * @param {string} contents
54
+ * @returns {string}
55
+ */
60
56
  format(contents: string): string;
61
- /**
62
- * @param {string} contents
63
- * @returns {string}
64
- */
57
+ /**
58
+ * @param {string} contents
59
+ * @returns {string}
60
+ */
65
61
  format_ir(contents: string): string;
66
- /**
67
- * @param {string} contents
68
- * @returns {string}
69
- */
62
+ /**
63
+ * @param {string} contents
64
+ * @returns {string}
65
+ */
70
66
  comments(contents: string): string;
71
- /**
72
- * Parses the content and returns its AST
73
- * @param {string} contents
74
- * @returns {string}
75
- */
67
+ /**
68
+ * Parses the content and returns its AST
69
+ * @param {string} contents
70
+ * @returns {string}
71
+ */
76
72
  parse(contents: string): string;
77
- /**
78
- * @param {string} contents
79
- * @returns {string}
80
- */
73
+ /**
74
+ * @param {string} contents
75
+ * @returns {string}
76
+ */
81
77
  tokens(contents: string): string;
82
78
  }
package/ruff_wasm.js CHANGED
@@ -184,8 +184,7 @@ function debugString(val) {
184
184
  // TODO we could test for more things here, like `Set`s and `Map`s.
185
185
  return className;
186
186
  }
187
- /**
188
- */
187
+
189
188
  module.exports.run = function() {
190
189
  wasm.run();
191
190
  };
@@ -201,8 +200,7 @@ function handleError(f, args) {
201
200
  const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
202
201
  ? { register: () => {}, unregister: () => {} }
203
202
  : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
204
- /**
205
- */
203
+
206
204
  class Workspace {
207
205
 
208
206
  __destroy_into_raw() {
@@ -217,8 +215,8 @@ class Workspace {
217
215
  wasm.__wbg_workspace_free(ptr, 0);
218
216
  }
219
217
  /**
220
- * @returns {string}
221
- */
218
+ * @returns {string}
219
+ */
222
220
  static version() {
223
221
  let deferred1_0;
224
222
  let deferred1_1;
@@ -236,8 +234,8 @@ class Workspace {
236
234
  }
237
235
  }
238
236
  /**
239
- * @param {any} options
240
- */
237
+ * @param {any} options
238
+ */
241
239
  constructor(options) {
242
240
  try {
243
241
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -256,8 +254,8 @@ class Workspace {
256
254
  }
257
255
  }
258
256
  /**
259
- * @returns {any}
260
- */
257
+ * @returns {any}
258
+ */
261
259
  static defaultSettings() {
262
260
  try {
263
261
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -274,9 +272,9 @@ class Workspace {
274
272
  }
275
273
  }
276
274
  /**
277
- * @param {string} contents
278
- * @returns {any}
279
- */
275
+ * @param {string} contents
276
+ * @returns {any}
277
+ */
280
278
  check(contents) {
281
279
  try {
282
280
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -295,9 +293,9 @@ class Workspace {
295
293
  }
296
294
  }
297
295
  /**
298
- * @param {string} contents
299
- * @returns {string}
300
- */
296
+ * @param {string} contents
297
+ * @returns {string}
298
+ */
301
299
  format(contents) {
302
300
  let deferred3_0;
303
301
  let deferred3_1;
@@ -325,9 +323,9 @@ class Workspace {
325
323
  }
326
324
  }
327
325
  /**
328
- * @param {string} contents
329
- * @returns {string}
330
- */
326
+ * @param {string} contents
327
+ * @returns {string}
328
+ */
331
329
  format_ir(contents) {
332
330
  let deferred3_0;
333
331
  let deferred3_1;
@@ -355,9 +353,9 @@ class Workspace {
355
353
  }
356
354
  }
357
355
  /**
358
- * @param {string} contents
359
- * @returns {string}
360
- */
356
+ * @param {string} contents
357
+ * @returns {string}
358
+ */
361
359
  comments(contents) {
362
360
  let deferred3_0;
363
361
  let deferred3_1;
@@ -385,10 +383,10 @@ class Workspace {
385
383
  }
386
384
  }
387
385
  /**
388
- * Parses the content and returns its AST
389
- * @param {string} contents
390
- * @returns {string}
391
- */
386
+ * Parses the content and returns its AST
387
+ * @param {string} contents
388
+ * @returns {string}
389
+ */
392
390
  parse(contents) {
393
391
  let deferred3_0;
394
392
  let deferred3_1;
@@ -416,9 +414,9 @@ class Workspace {
416
414
  }
417
415
  }
418
416
  /**
419
- * @param {string} contents
420
- * @returns {string}
421
- */
417
+ * @param {string} contents
418
+ * @returns {string}
419
+ */
422
420
  tokens(contents) {
423
421
  let deferred3_0;
424
422
  let deferred3_1;
@@ -612,76 +610,76 @@ module.exports.__wbindgen_is_function = function(arg0) {
612
610
  return ret;
613
611
  };
614
612
 
615
- module.exports.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
613
+ module.exports.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
616
614
  const ret = getObject(arg0)[arg1 >>> 0];
617
615
  return addHeapObject(ret);
618
616
  };
619
617
 
620
- module.exports.__wbg_length_ae22078168b726f5 = function(arg0) {
618
+ module.exports.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
621
619
  const ret = getObject(arg0).length;
622
620
  return ret;
623
621
  };
624
622
 
625
- module.exports.__wbg_new_a220cf903aa02ca2 = function() {
623
+ module.exports.__wbg_new_034f913e7636e987 = function() {
626
624
  const ret = new Array();
627
625
  return addHeapObject(ret);
628
626
  };
629
627
 
630
- module.exports.__wbg_new_8608a2b51a5f6737 = function() {
628
+ module.exports.__wbg_new_7a87a0376e40533b = function() {
631
629
  const ret = new Map();
632
630
  return addHeapObject(ret);
633
631
  };
634
632
 
635
- module.exports.__wbg_next_de3e9db4440638b2 = function(arg0) {
633
+ module.exports.__wbg_next_13b477da1eaa3897 = function(arg0) {
636
634
  const ret = getObject(arg0).next;
637
635
  return addHeapObject(ret);
638
636
  };
639
637
 
640
- module.exports.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
638
+ module.exports.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
641
639
  const ret = getObject(arg0).next();
642
640
  return addHeapObject(ret);
643
641
  }, arguments) };
644
642
 
645
- module.exports.__wbg_done_bfda7aa8f252b39f = function(arg0) {
643
+ module.exports.__wbg_done_983b5ffcaec8c583 = function(arg0) {
646
644
  const ret = getObject(arg0).done;
647
645
  return ret;
648
646
  };
649
647
 
650
- module.exports.__wbg_value_6d39332ab4788d86 = function(arg0) {
648
+ module.exports.__wbg_value_2ab8a198c834c26a = function(arg0) {
651
649
  const ret = getObject(arg0).value;
652
650
  return addHeapObject(ret);
653
651
  };
654
652
 
655
- module.exports.__wbg_iterator_888179a48810a9fe = function() {
653
+ module.exports.__wbg_iterator_695d699a44d6234c = function() {
656
654
  const ret = Symbol.iterator;
657
655
  return addHeapObject(ret);
658
656
  };
659
657
 
660
- module.exports.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
658
+ module.exports.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
661
659
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
662
660
  return addHeapObject(ret);
663
661
  }, arguments) };
664
662
 
665
- module.exports.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
663
+ module.exports.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
666
664
  const ret = getObject(arg0).call(getObject(arg1));
667
665
  return addHeapObject(ret);
668
666
  }, arguments) };
669
667
 
670
- module.exports.__wbg_new_525245e2b9901204 = function() {
668
+ module.exports.__wbg_new_e69b5f66fda8f13c = function() {
671
669
  const ret = new Object();
672
670
  return addHeapObject(ret);
673
671
  };
674
672
 
675
- module.exports.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
673
+ module.exports.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
676
674
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
677
675
  };
678
676
 
679
- module.exports.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
677
+ module.exports.__wbg_isArray_6f3b47f09adb61b5 = function(arg0) {
680
678
  const ret = Array.isArray(getObject(arg0));
681
679
  return ret;
682
680
  };
683
681
 
684
- module.exports.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
682
+ module.exports.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
685
683
  let result;
686
684
  try {
687
685
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -692,12 +690,12 @@ module.exports.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
692
690
  return ret;
693
691
  };
694
692
 
695
- module.exports.__wbg_new_796382978dfd4fb0 = function(arg0, arg1) {
693
+ module.exports.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
696
694
  const ret = new Error(getStringFromWasm0(arg0, arg1));
697
695
  return addHeapObject(ret);
698
696
  };
699
697
 
700
- module.exports.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
698
+ module.exports.__wbg_instanceof_Map_f96986929e7e89ed = function(arg0) {
701
699
  let result;
702
700
  try {
703
701
  result = getObject(arg0) instanceof Map;
@@ -708,46 +706,46 @@ module.exports.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
708
706
  return ret;
709
707
  };
710
708
 
711
- module.exports.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
709
+ module.exports.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
712
710
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
713
711
  return addHeapObject(ret);
714
712
  };
715
713
 
716
- module.exports.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
714
+ module.exports.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
717
715
  const ret = Number.isSafeInteger(getObject(arg0));
718
716
  return ret;
719
717
  };
720
718
 
721
- module.exports.__wbg_entries_7a0e06255456ebcd = function(arg0) {
719
+ module.exports.__wbg_entries_c02034de337d3ee2 = function(arg0) {
722
720
  const ret = Object.entries(getObject(arg0));
723
721
  return addHeapObject(ret);
724
722
  };
725
723
 
726
- module.exports.__wbg_fromCodePoint_ae875c4ff5f6a86b = function() { return handleError(function (arg0) {
724
+ module.exports.__wbg_fromCodePoint_a9176a674cd93db9 = function() { return handleError(function (arg0) {
727
725
  const ret = String.fromCodePoint(arg0 >>> 0);
728
726
  return addHeapObject(ret);
729
727
  }, arguments) };
730
728
 
731
- module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
729
+ module.exports.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
732
730
  const ret = getObject(arg0).buffer;
733
731
  return addHeapObject(ret);
734
732
  };
735
733
 
736
- module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
734
+ module.exports.__wbg_new_fec2611eb9180f95 = function(arg0) {
737
735
  const ret = new Uint8Array(getObject(arg0));
738
736
  return addHeapObject(ret);
739
737
  };
740
738
 
741
- module.exports.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
739
+ module.exports.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
742
740
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
743
741
  };
744
742
 
745
- module.exports.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
743
+ module.exports.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
746
744
  const ret = getObject(arg0).length;
747
745
  return ret;
748
746
  };
749
747
 
750
- module.exports.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
748
+ module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
751
749
  let result;
752
750
  try {
753
751
  result = getObject(arg0) instanceof Uint8Array;
package/ruff_wasm_bg.wasm CHANGED
Binary file