@astral-sh/ruff-wasm-nodejs 0.8.1 → 0.8.3

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.8.1",
7
+ "version": "0.8.3",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/ruff_wasm.d.ts CHANGED
@@ -32,47 +32,16 @@ export interface Diagnostic {
32
32
 
33
33
  export class Workspace {
34
34
  free(): void;
35
- /**
36
- * @returns {string}
37
- */
38
35
  static version(): string;
39
- /**
40
- * @param {any} options
41
- */
42
36
  constructor(options: any);
43
- /**
44
- * @returns {any}
45
- */
46
37
  static defaultSettings(): any;
47
- /**
48
- * @param {string} contents
49
- * @returns {any}
50
- */
51
38
  check(contents: string): any;
52
- /**
53
- * @param {string} contents
54
- * @returns {string}
55
- */
56
39
  format(contents: string): string;
57
- /**
58
- * @param {string} contents
59
- * @returns {string}
60
- */
61
40
  format_ir(contents: string): string;
62
- /**
63
- * @param {string} contents
64
- * @returns {string}
65
- */
66
41
  comments(contents: string): string;
67
42
  /**
68
43
  * Parses the content and returns its AST
69
- * @param {string} contents
70
- * @returns {string}
71
44
  */
72
45
  parse(contents: string): string;
73
- /**
74
- * @param {string} contents
75
- * @returns {string}
76
- */
77
46
  tokens(contents: string): string;
78
47
  }
package/ruff_wasm.js CHANGED
@@ -2,11 +2,9 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
- const { TextDecoder, TextEncoder } = require(`util`);
5
+ const { TextEncoder, TextDecoder } = require(`util`);
6
6
 
7
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
8
-
9
- cachedTextDecoder.decode();
7
+ let WASM_VECTOR_LEN = 0;
10
8
 
11
9
  let cachedUint8ArrayMemory0 = null;
12
10
 
@@ -17,26 +15,6 @@ function getUint8ArrayMemory0() {
17
15
  return cachedUint8ArrayMemory0;
18
16
  }
19
17
 
20
- function getStringFromWasm0(ptr, len) {
21
- ptr = ptr >>> 0;
22
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
- }
24
-
25
- function isLikeNone(x) {
26
- return x === undefined || x === null;
27
- }
28
-
29
- let cachedDataViewMemory0 = null;
30
-
31
- function getDataViewMemory0() {
32
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
33
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
34
- }
35
- return cachedDataViewMemory0;
36
- }
37
-
38
- let WASM_VECTOR_LEN = 0;
39
-
40
18
  let cachedTextEncoder = new TextEncoder('utf-8');
41
19
 
42
20
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -91,6 +69,43 @@ function passStringToWasm0(arg, malloc, realloc) {
91
69
  return ptr;
92
70
  }
93
71
 
72
+ let cachedDataViewMemory0 = null;
73
+
74
+ function getDataViewMemory0() {
75
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
76
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
77
+ }
78
+ return cachedDataViewMemory0;
79
+ }
80
+
81
+ function addToExternrefTable0(obj) {
82
+ const idx = wasm.__externref_table_alloc();
83
+ wasm.__wbindgen_export_4.set(idx, obj);
84
+ return idx;
85
+ }
86
+
87
+ function handleError(f, args) {
88
+ try {
89
+ return f.apply(this, args);
90
+ } catch (e) {
91
+ const idx = addToExternrefTable0(e);
92
+ wasm.__wbindgen_exn_store(idx);
93
+ }
94
+ }
95
+
96
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
97
+
98
+ cachedTextDecoder.decode();
99
+
100
+ function getStringFromWasm0(ptr, len) {
101
+ ptr = ptr >>> 0;
102
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
103
+ }
104
+
105
+ function isLikeNone(x) {
106
+ return x === undefined || x === null;
107
+ }
108
+
94
109
  function debugString(val) {
95
110
  // primitive types
96
111
  const type = typeof val;
@@ -132,7 +147,7 @@ function debugString(val) {
132
147
  // Test for built-in
133
148
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
134
149
  let className;
135
- if (builtInMatches.length > 1) {
150
+ if (builtInMatches && builtInMatches.length > 1) {
136
151
  className = builtInMatches[1];
137
152
  } else {
138
153
  // Failed to match the standard '[object ClassName]'
@@ -161,28 +176,11 @@ module.exports.run = function() {
161
176
  };
162
177
 
163
178
  function takeFromExternrefTable0(idx) {
164
- const value = wasm.__wbindgen_export_2.get(idx);
179
+ const value = wasm.__wbindgen_export_4.get(idx);
165
180
  wasm.__externref_table_dealloc(idx);
166
181
  return value;
167
182
  }
168
183
 
169
- function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
170
-
171
- function addToExternrefTable0(obj) {
172
- const idx = wasm.__externref_table_alloc();
173
- wasm.__wbindgen_export_2.set(idx, obj);
174
- return idx;
175
- }
176
-
177
- function handleError(f, args) {
178
- try {
179
- return f.apply(this, args);
180
- } catch (e) {
181
- const idx = addToExternrefTable0(e);
182
- wasm.__wbindgen_exn_store(idx);
183
- }
184
- }
185
-
186
184
  const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
187
185
  ? { register: () => {}, unregister: () => {} }
188
186
  : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
@@ -374,330 +372,340 @@ class Workspace {
374
372
  }
375
373
  module.exports.Workspace = Workspace;
376
374
 
377
- module.exports.__wbindgen_is_string = function(arg0) {
378
- const ret = typeof(arg0) === 'string';
379
- return ret;
375
+ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
376
+ const ret = String(arg1);
377
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
378
+ const len1 = WASM_VECTOR_LEN;
379
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
380
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
380
381
  };
381
382
 
382
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
383
- const ret = new Error(getStringFromWasm0(arg0, arg1));
383
+ module.exports.__wbg_buffer_6e1d53ff183194fc = function(arg0) {
384
+ const ret = arg0.buffer;
384
385
  return ret;
385
386
  };
386
387
 
387
- module.exports.__wbindgen_as_number = function(arg0) {
388
- const ret = +arg0;
388
+ module.exports.__wbg_call_3114932863209ca6 = function() { return handleError(function (arg0, arg1) {
389
+ const ret = arg0.call(arg1);
389
390
  return ret;
391
+ }, arguments) };
392
+
393
+ module.exports.__wbg_debug_347b3d1f33e1c28e = function(arg0) {
394
+ console.debug(arg0);
390
395
  };
391
396
 
392
- module.exports.__wbindgen_boolean_get = function(arg0) {
393
- const v = arg0;
394
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
397
+ module.exports.__wbg_done_adfd3f40364def50 = function(arg0) {
398
+ const ret = arg0.done;
395
399
  return ret;
396
400
  };
397
401
 
398
- module.exports.__wbindgen_is_bigint = function(arg0) {
399
- const ret = typeof(arg0) === 'bigint';
402
+ module.exports.__wbg_entries_ce82e236f8300a53 = function(arg0) {
403
+ const ret = Object.entries(arg0);
400
404
  return ret;
401
405
  };
402
406
 
403
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
404
- const obj = arg1;
405
- const ret = typeof(obj) === 'number' ? obj : undefined;
406
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
407
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
407
+ module.exports.__wbg_error_2a6b93fdada7ff11 = function(arg0) {
408
+ console.error(arg0);
408
409
  };
409
410
 
410
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
411
- const obj = arg1;
412
- const ret = typeof(obj) === 'string' ? obj : undefined;
413
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
414
- var len1 = WASM_VECTOR_LEN;
415
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
416
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
411
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
412
+ let deferred0_0;
413
+ let deferred0_1;
414
+ try {
415
+ deferred0_0 = arg0;
416
+ deferred0_1 = arg1;
417
+ console.error(getStringFromWasm0(arg0, arg1));
418
+ } finally {
419
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
420
+ }
417
421
  };
418
422
 
419
- module.exports.__wbindgen_is_object = function(arg0) {
420
- const val = arg0;
421
- const ret = typeof(val) === 'object' && val !== null;
423
+ module.exports.__wbg_fromCodePoint_12f8bccbf527a957 = function() { return handleError(function (arg0) {
424
+ const ret = String.fromCodePoint(arg0 >>> 0);
422
425
  return ret;
423
- };
426
+ }, arguments) };
424
427
 
425
- module.exports.__wbindgen_in = function(arg0, arg1) {
426
- const ret = arg0 in arg1;
428
+ module.exports.__wbg_get_68aa371864aa301a = function(arg0, arg1) {
429
+ const ret = arg0[arg1 >>> 0];
427
430
  return ret;
428
431
  };
429
432
 
430
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
431
- const ret = arg0;
433
+ module.exports.__wbg_get_92a4780a3beb5fe9 = function() { return handleError(function (arg0, arg1) {
434
+ const ret = Reflect.get(arg0, arg1);
432
435
  return ret;
433
- };
436
+ }, arguments) };
434
437
 
435
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
436
- const ret = arg0 === arg1;
438
+ module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
439
+ const ret = arg0[arg1];
437
440
  return ret;
438
441
  };
439
442
 
440
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
441
- const ret = BigInt.asUintN(64, arg0);
442
- return ret;
443
+ module.exports.__wbg_info_b6bd3cb6471c2b4c = function(arg0) {
444
+ console.info(arg0);
443
445
  };
444
446
 
445
- module.exports.__wbindgen_is_undefined = function(arg0) {
446
- const ret = arg0 === undefined;
447
+ module.exports.__wbg_instanceof_ArrayBuffer_435fcead703e2827 = function(arg0) {
448
+ let result;
449
+ try {
450
+ result = arg0 instanceof ArrayBuffer;
451
+ } catch (_) {
452
+ result = false;
453
+ }
454
+ const ret = result;
447
455
  return ret;
448
456
  };
449
457
 
450
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
451
- const ret = arg0 == arg1;
458
+ module.exports.__wbg_instanceof_Map_77fd223783fe0068 = function(arg0) {
459
+ let result;
460
+ try {
461
+ result = arg0 instanceof Map;
462
+ } catch (_) {
463
+ result = false;
464
+ }
465
+ const ret = result;
452
466
  return ret;
453
467
  };
454
468
 
455
- module.exports.__wbindgen_number_new = function(arg0) {
456
- const ret = arg0;
469
+ module.exports.__wbg_instanceof_Uint8Array_9b67296cab48238f = function(arg0) {
470
+ let result;
471
+ try {
472
+ result = arg0 instanceof Uint8Array;
473
+ } catch (_) {
474
+ result = false;
475
+ }
476
+ const ret = result;
457
477
  return ret;
458
478
  };
459
479
 
460
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
461
- const ret = getStringFromWasm0(arg0, arg1);
480
+ module.exports.__wbg_isArray_fcd559a3bcfde1e9 = function(arg0) {
481
+ const ret = Array.isArray(arg0);
462
482
  return ret;
463
483
  };
464
484
 
465
- module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
466
- const ret = String(arg1);
467
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
468
- const len1 = WASM_VECTOR_LEN;
469
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
470
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
471
- };
472
-
473
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
474
- const ret = arg0[arg1];
485
+ module.exports.__wbg_isSafeInteger_4de146aa53f6e470 = function(arg0) {
486
+ const ret = Number.isSafeInteger(arg0);
475
487
  return ret;
476
488
  };
477
489
 
478
- module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
479
- arg0[arg1] = arg2;
490
+ module.exports.__wbg_iterator_7a20c20ce22add0f = function() {
491
+ const ret = Symbol.iterator;
492
+ return ret;
480
493
  };
481
494
 
482
- module.exports.__wbg_debug_5fb96680aecf5dc8 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
483
-
484
- module.exports.__wbg_error_8e3928cfb8a43e2b = typeof console.error == 'function' ? console.error : notDefined('console.error');
485
-
486
- module.exports.__wbg_info_530a29cb2e4e3304 = typeof console.info == 'function' ? console.info : notDefined('console.info');
487
-
488
- module.exports.__wbg_log_5bb5f88f245d7762 = typeof console.log == 'function' ? console.log : notDefined('console.log');
489
-
490
- module.exports.__wbg_warn_63bbae1730aead09 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
491
-
492
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
493
- const ret = new Error();
495
+ module.exports.__wbg_length_2e63ba34c4121df5 = function(arg0) {
496
+ const ret = arg0.length;
494
497
  return ret;
495
498
  };
496
499
 
497
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
498
- const ret = arg1.stack;
499
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
500
- const len1 = WASM_VECTOR_LEN;
501
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
502
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
500
+ module.exports.__wbg_length_e74df4881604f1d9 = function(arg0) {
501
+ const ret = arg0.length;
502
+ return ret;
503
503
  };
504
504
 
505
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
506
- let deferred0_0;
507
- let deferred0_1;
508
- try {
509
- deferred0_0 = arg0;
510
- deferred0_1 = arg1;
511
- console.error(getStringFromWasm0(arg0, arg1));
512
- } finally {
513
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
514
- }
505
+ module.exports.__wbg_log_d818ca3cab23fc77 = function(arg0) {
506
+ console.log(arg0);
515
507
  };
516
508
 
517
- module.exports.__wbindgen_is_function = function(arg0) {
518
- const ret = typeof(arg0) === 'function';
509
+ module.exports.__wbg_new_076cac58bb698dd4 = function() {
510
+ const ret = new Object();
519
511
  return ret;
520
512
  };
521
513
 
522
- module.exports.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
523
- const ret = arg0[arg1 >>> 0];
514
+ module.exports.__wbg_new_0c28e72025e00594 = function() {
515
+ const ret = new Array();
524
516
  return ret;
525
517
  };
526
518
 
527
- module.exports.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
528
- const ret = arg0.length;
519
+ module.exports.__wbg_new_23362fa370a0a372 = function(arg0) {
520
+ const ret = new Uint8Array(arg0);
529
521
  return ret;
530
522
  };
531
523
 
532
- module.exports.__wbg_new_034f913e7636e987 = function() {
533
- const ret = new Array();
524
+ module.exports.__wbg_new_3f616ed16821b4c5 = function() {
525
+ const ret = new Map();
534
526
  return ret;
535
527
  };
536
528
 
537
- module.exports.__wbg_new_7a87a0376e40533b = function() {
538
- const ret = new Map();
529
+ module.exports.__wbg_new_4d81617a04bc1b5b = function(arg0, arg1) {
530
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
539
531
  return ret;
540
532
  };
541
533
 
542
- module.exports.__wbg_next_13b477da1eaa3897 = function(arg0) {
543
- const ret = arg0.next;
534
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
535
+ const ret = new Error();
544
536
  return ret;
545
537
  };
546
538
 
547
- module.exports.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
539
+ module.exports.__wbg_next_c591766a7286b02a = function() { return handleError(function (arg0) {
548
540
  const ret = arg0.next();
549
541
  return ret;
550
542
  }, arguments) };
551
543
 
552
- module.exports.__wbg_done_983b5ffcaec8c583 = function(arg0) {
553
- const ret = arg0.done;
544
+ module.exports.__wbg_next_f387ecc56a94ba00 = function(arg0) {
545
+ const ret = arg0.next;
554
546
  return ret;
555
547
  };
556
548
 
557
- module.exports.__wbg_value_2ab8a198c834c26a = function(arg0) {
558
- const ret = arg0.value;
549
+ module.exports.__wbg_set_1d975b42d95fd6c6 = function(arg0, arg1, arg2) {
550
+ const ret = arg0.set(arg1, arg2);
559
551
  return ret;
560
552
  };
561
553
 
562
- module.exports.__wbg_iterator_695d699a44d6234c = function() {
563
- const ret = Symbol.iterator;
554
+ module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
555
+ arg0[arg1] = arg2;
556
+ };
557
+
558
+ module.exports.__wbg_set_7b70226104a82921 = function(arg0, arg1, arg2) {
559
+ arg0.set(arg1, arg2 >>> 0);
560
+ };
561
+
562
+ module.exports.__wbg_set_a1fb6291729caffb = function(arg0, arg1, arg2) {
563
+ arg0[arg1 >>> 0] = arg2;
564
+ };
565
+
566
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
567
+ const ret = arg1.stack;
568
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
569
+ const len1 = WASM_VECTOR_LEN;
570
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
571
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
572
+ };
573
+
574
+ module.exports.__wbg_value_30db1d77772f3236 = function(arg0) {
575
+ const ret = arg0.value;
564
576
  return ret;
565
577
  };
566
578
 
567
- module.exports.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
568
- const ret = Reflect.get(arg0, arg1);
579
+ module.exports.__wbg_warn_a6963915e4da61f6 = function(arg0) {
580
+ console.warn(arg0);
581
+ };
582
+
583
+ module.exports.__wbindgen_as_number = function(arg0) {
584
+ const ret = +arg0;
569
585
  return ret;
570
- }, arguments) };
586
+ };
571
587
 
572
- module.exports.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
573
- const ret = arg0.call(arg1);
588
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
589
+ const ret = arg0;
574
590
  return ret;
575
- }, arguments) };
591
+ };
576
592
 
577
- module.exports.__wbg_new_e69b5f66fda8f13c = function() {
578
- const ret = new Object();
593
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
594
+ const ret = BigInt.asUintN(64, arg0);
579
595
  return ret;
580
596
  };
581
597
 
582
- module.exports.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
583
- arg0[arg1 >>> 0] = arg2;
598
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
599
+ const v = arg1;
600
+ const ret = typeof(v) === 'bigint' ? v : undefined;
601
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
602
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
584
603
  };
585
604
 
586
- module.exports.__wbg_isArray_6f3b47f09adb61b5 = function(arg0) {
587
- const ret = Array.isArray(arg0);
605
+ module.exports.__wbindgen_boolean_get = function(arg0) {
606
+ const v = arg0;
607
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
588
608
  return ret;
589
609
  };
590
610
 
591
- module.exports.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
592
- let result;
593
- try {
594
- result = arg0 instanceof ArrayBuffer;
595
- } catch (_) {
596
- result = false;
597
- }
598
- const ret = result;
599
- return ret;
611
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
612
+ const ret = debugString(arg1);
613
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
614
+ const len1 = WASM_VECTOR_LEN;
615
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
616
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
600
617
  };
601
618
 
602
- module.exports.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
619
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
603
620
  const ret = new Error(getStringFromWasm0(arg0, arg1));
604
621
  return ret;
605
622
  };
606
623
 
607
- module.exports.__wbg_instanceof_Map_f96986929e7e89ed = function(arg0) {
608
- let result;
609
- try {
610
- result = arg0 instanceof Map;
611
- } catch (_) {
612
- result = false;
613
- }
614
- const ret = result;
624
+ module.exports.__wbindgen_in = function(arg0, arg1) {
625
+ const ret = arg0 in arg1;
615
626
  return ret;
616
627
  };
617
628
 
618
- module.exports.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
619
- const ret = arg0.set(arg1, arg2);
620
- return ret;
629
+ module.exports.__wbindgen_init_externref_table = function() {
630
+ const table = wasm.__wbindgen_export_4;
631
+ const offset = table.grow(4);
632
+ table.set(0, undefined);
633
+ table.set(offset + 0, undefined);
634
+ table.set(offset + 1, null);
635
+ table.set(offset + 2, true);
636
+ table.set(offset + 3, false);
637
+ ;
621
638
  };
622
639
 
623
- module.exports.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
624
- const ret = Number.isSafeInteger(arg0);
640
+ module.exports.__wbindgen_is_bigint = function(arg0) {
641
+ const ret = typeof(arg0) === 'bigint';
625
642
  return ret;
626
643
  };
627
644
 
628
- module.exports.__wbg_entries_c02034de337d3ee2 = function(arg0) {
629
- const ret = Object.entries(arg0);
645
+ module.exports.__wbindgen_is_function = function(arg0) {
646
+ const ret = typeof(arg0) === 'function';
630
647
  return ret;
631
648
  };
632
649
 
633
- module.exports.__wbg_fromCodePoint_a9176a674cd93db9 = function() { return handleError(function (arg0) {
634
- const ret = String.fromCodePoint(arg0 >>> 0);
650
+ module.exports.__wbindgen_is_object = function(arg0) {
651
+ const val = arg0;
652
+ const ret = typeof(val) === 'object' && val !== null;
635
653
  return ret;
636
- }, arguments) };
654
+ };
637
655
 
638
- module.exports.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
639
- const ret = arg0.buffer;
656
+ module.exports.__wbindgen_is_string = function(arg0) {
657
+ const ret = typeof(arg0) === 'string';
640
658
  return ret;
641
659
  };
642
660
 
643
- module.exports.__wbg_new_fec2611eb9180f95 = function(arg0) {
644
- const ret = new Uint8Array(arg0);
661
+ module.exports.__wbindgen_is_undefined = function(arg0) {
662
+ const ret = arg0 === undefined;
645
663
  return ret;
646
664
  };
647
665
 
648
- module.exports.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
649
- arg0.set(arg1, arg2 >>> 0);
666
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
667
+ const ret = arg0 === arg1;
668
+ return ret;
650
669
  };
651
670
 
652
- module.exports.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
653
- const ret = arg0.length;
671
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
672
+ const ret = arg0 == arg1;
654
673
  return ret;
655
674
  };
656
675
 
657
- module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
658
- let result;
659
- try {
660
- result = arg0 instanceof Uint8Array;
661
- } catch (_) {
662
- result = false;
663
- }
664
- const ret = result;
676
+ module.exports.__wbindgen_memory = function() {
677
+ const ret = wasm.memory;
665
678
  return ret;
666
679
  };
667
680
 
668
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
669
- const v = arg1;
670
- const ret = typeof(v) === 'bigint' ? v : undefined;
671
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
681
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
682
+ const obj = arg1;
683
+ const ret = typeof(obj) === 'number' ? obj : undefined;
684
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
672
685
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
673
686
  };
674
687
 
675
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
676
- const ret = debugString(arg1);
677
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
678
- const len1 = WASM_VECTOR_LEN;
679
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
680
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
688
+ module.exports.__wbindgen_number_new = function(arg0) {
689
+ const ret = arg0;
690
+ return ret;
681
691
  };
682
692
 
683
- module.exports.__wbindgen_throw = function(arg0, arg1) {
684
- throw new Error(getStringFromWasm0(arg0, arg1));
693
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
694
+ const obj = arg1;
695
+ const ret = typeof(obj) === 'string' ? obj : undefined;
696
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
697
+ var len1 = WASM_VECTOR_LEN;
698
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
699
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
685
700
  };
686
701
 
687
- module.exports.__wbindgen_memory = function() {
688
- const ret = wasm.memory;
702
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
703
+ const ret = getStringFromWasm0(arg0, arg1);
689
704
  return ret;
690
705
  };
691
706
 
692
- module.exports.__wbindgen_init_externref_table = function() {
693
- const table = wasm.__wbindgen_export_2;
694
- const offset = table.grow(4);
695
- table.set(0, undefined);
696
- table.set(offset + 0, undefined);
697
- table.set(offset + 1, null);
698
- table.set(offset + 2, true);
699
- table.set(offset + 3, false);
700
- ;
707
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
708
+ throw new Error(getStringFromWasm0(arg0, arg1));
701
709
  };
702
710
 
703
711
  const path = require('path').join(__dirname, 'ruff_wasm_bg.wasm');
package/ruff_wasm_bg.wasm CHANGED
Binary file