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