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