@astral-sh/ruff-wasm-bundler 0.14.2 → 0.14.4
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 +6 -5
- package/ruff_wasm_bg.js +201 -206
- package/ruff_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/ruff_wasm.d.ts
CHANGED
|
@@ -37,16 +37,17 @@ export interface Diagnostic {
|
|
|
37
37
|
|
|
38
38
|
export class Workspace {
|
|
39
39
|
free(): void;
|
|
40
|
-
|
|
41
|
-
constructor(options: any, position_encoding: PositionEncoding);
|
|
40
|
+
[Symbol.dispose](): void;
|
|
42
41
|
static defaultSettings(): any;
|
|
42
|
+
constructor(options: any, position_encoding: PositionEncoding);
|
|
43
43
|
check(contents: string): any;
|
|
44
|
-
format(contents: string): string;
|
|
45
|
-
format_ir(contents: string): string;
|
|
46
|
-
comments(contents: string): string;
|
|
47
44
|
/**
|
|
48
45
|
* Parses the content and returns its AST
|
|
49
46
|
*/
|
|
50
47
|
parse(contents: string): string;
|
|
48
|
+
format(contents: string): string;
|
|
51
49
|
tokens(contents: string): string;
|
|
50
|
+
static version(): string;
|
|
51
|
+
comments(contents: string): string;
|
|
52
|
+
format_ir(contents: string): string;
|
|
52
53
|
}
|
package/ruff_wasm_bg.js
CHANGED
|
@@ -13,9 +13,7 @@ function getUint8ArrayMemory0() {
|
|
|
13
13
|
return cachedUint8ArrayMemory0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
19
17
|
|
|
20
18
|
cachedTextDecoder.decode();
|
|
21
19
|
|
|
@@ -24,7 +22,7 @@ let numBytesDecoded = 0;
|
|
|
24
22
|
function decodeText(ptr, len) {
|
|
25
23
|
numBytesDecoded += len;
|
|
26
24
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
27
|
-
cachedTextDecoder = new
|
|
25
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
26
|
cachedTextDecoder.decode();
|
|
29
27
|
numBytesDecoded = len;
|
|
30
28
|
}
|
|
@@ -38,22 +36,18 @@ function getStringFromWasm0(ptr, len) {
|
|
|
38
36
|
|
|
39
37
|
let WASM_VECTOR_LEN = 0;
|
|
40
38
|
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
const cachedTextEncoder = new lTextEncoder('utf-8');
|
|
39
|
+
const cachedTextEncoder = new TextEncoder();
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
42
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
43
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
44
|
+
view.set(buf);
|
|
45
|
+
return {
|
|
46
|
+
read: arg.length,
|
|
47
|
+
written: buf.length
|
|
48
|
+
};
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
|
-
: function (arg, view) {
|
|
50
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
51
|
-
view.set(buf);
|
|
52
|
-
return {
|
|
53
|
-
read: arg.length,
|
|
54
|
-
written: buf.length
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
51
|
|
|
58
52
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
59
53
|
|
|
@@ -84,7 +78,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
84
78
|
}
|
|
85
79
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
86
80
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
87
|
-
const ret =
|
|
81
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
88
82
|
|
|
89
83
|
offset += ret.written;
|
|
90
84
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -103,26 +97,6 @@ function getDataViewMemory0() {
|
|
|
103
97
|
return cachedDataViewMemory0;
|
|
104
98
|
}
|
|
105
99
|
|
|
106
|
-
function addToExternrefTable0(obj) {
|
|
107
|
-
const idx = wasm.__externref_table_alloc();
|
|
108
|
-
wasm.__wbindgen_export_4.set(idx, obj);
|
|
109
|
-
return idx;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function handleError(f, args) {
|
|
113
|
-
try {
|
|
114
|
-
return f.apply(this, args);
|
|
115
|
-
} catch (e) {
|
|
116
|
-
const idx = addToExternrefTable0(e);
|
|
117
|
-
wasm.__wbindgen_exn_store(idx);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
122
|
-
ptr = ptr >>> 0;
|
|
123
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
100
|
function isLikeNone(x) {
|
|
127
101
|
return x === undefined || x === null;
|
|
128
102
|
}
|
|
@@ -192,12 +166,32 @@ function debugString(val) {
|
|
|
192
166
|
return className;
|
|
193
167
|
}
|
|
194
168
|
|
|
169
|
+
function addToExternrefTable0(obj) {
|
|
170
|
+
const idx = wasm.__externref_table_alloc();
|
|
171
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
172
|
+
return idx;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function handleError(f, args) {
|
|
176
|
+
try {
|
|
177
|
+
return f.apply(this, args);
|
|
178
|
+
} catch (e) {
|
|
179
|
+
const idx = addToExternrefTable0(e);
|
|
180
|
+
wasm.__wbindgen_exn_store(idx);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
185
|
+
ptr = ptr >>> 0;
|
|
186
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
187
|
+
}
|
|
188
|
+
|
|
195
189
|
export function run() {
|
|
196
190
|
wasm.run();
|
|
197
191
|
}
|
|
198
192
|
|
|
199
193
|
function takeFromExternrefTable0(idx) {
|
|
200
|
-
const value = wasm.
|
|
194
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
201
195
|
wasm.__externref_table_dealloc(idx);
|
|
202
196
|
return value;
|
|
203
197
|
}
|
|
@@ -228,19 +222,14 @@ export class Workspace {
|
|
|
228
222
|
wasm.__wbg_workspace_free(ptr, 0);
|
|
229
223
|
}
|
|
230
224
|
/**
|
|
231
|
-
* @returns {
|
|
225
|
+
* @returns {any}
|
|
232
226
|
*/
|
|
233
|
-
static
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
const ret = wasm.workspace_version();
|
|
238
|
-
deferred1_0 = ret[0];
|
|
239
|
-
deferred1_1 = ret[1];
|
|
240
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
241
|
-
} finally {
|
|
242
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
227
|
+
static defaultSettings() {
|
|
228
|
+
const ret = wasm.workspace_defaultSettings();
|
|
229
|
+
if (ret[2]) {
|
|
230
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
243
231
|
}
|
|
232
|
+
return takeFromExternrefTable0(ret[0]);
|
|
244
233
|
}
|
|
245
234
|
/**
|
|
246
235
|
* @param {any} options
|
|
@@ -255,16 +244,6 @@ export class Workspace {
|
|
|
255
244
|
WorkspaceFinalization.register(this, this.__wbg_ptr, this);
|
|
256
245
|
return this;
|
|
257
246
|
}
|
|
258
|
-
/**
|
|
259
|
-
* @returns {any}
|
|
260
|
-
*/
|
|
261
|
-
static defaultSettings() {
|
|
262
|
-
const ret = wasm.workspace_defaultSettings();
|
|
263
|
-
if (ret[2]) {
|
|
264
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
265
|
-
}
|
|
266
|
-
return takeFromExternrefTable0(ret[0]);
|
|
267
|
-
}
|
|
268
247
|
/**
|
|
269
248
|
* @param {string} contents
|
|
270
249
|
* @returns {any}
|
|
@@ -279,16 +258,17 @@ export class Workspace {
|
|
|
279
258
|
return takeFromExternrefTable0(ret[0]);
|
|
280
259
|
}
|
|
281
260
|
/**
|
|
261
|
+
* Parses the content and returns its AST
|
|
282
262
|
* @param {string} contents
|
|
283
263
|
* @returns {string}
|
|
284
264
|
*/
|
|
285
|
-
|
|
265
|
+
parse(contents) {
|
|
286
266
|
let deferred3_0;
|
|
287
267
|
let deferred3_1;
|
|
288
268
|
try {
|
|
289
269
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
290
270
|
const len0 = WASM_VECTOR_LEN;
|
|
291
|
-
const ret = wasm.
|
|
271
|
+
const ret = wasm.workspace_parse(this.__wbg_ptr, ptr0, len0);
|
|
292
272
|
var ptr2 = ret[0];
|
|
293
273
|
var len2 = ret[1];
|
|
294
274
|
if (ret[3]) {
|
|
@@ -306,13 +286,13 @@ export class Workspace {
|
|
|
306
286
|
* @param {string} contents
|
|
307
287
|
* @returns {string}
|
|
308
288
|
*/
|
|
309
|
-
|
|
289
|
+
format(contents) {
|
|
310
290
|
let deferred3_0;
|
|
311
291
|
let deferred3_1;
|
|
312
292
|
try {
|
|
313
293
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
294
|
const len0 = WASM_VECTOR_LEN;
|
|
315
|
-
const ret = wasm.
|
|
295
|
+
const ret = wasm.workspace_format(this.__wbg_ptr, ptr0, len0);
|
|
316
296
|
var ptr2 = ret[0];
|
|
317
297
|
var len2 = ret[1];
|
|
318
298
|
if (ret[3]) {
|
|
@@ -330,13 +310,13 @@ export class Workspace {
|
|
|
330
310
|
* @param {string} contents
|
|
331
311
|
* @returns {string}
|
|
332
312
|
*/
|
|
333
|
-
|
|
313
|
+
tokens(contents) {
|
|
334
314
|
let deferred3_0;
|
|
335
315
|
let deferred3_1;
|
|
336
316
|
try {
|
|
337
317
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
338
318
|
const len0 = WASM_VECTOR_LEN;
|
|
339
|
-
const ret = wasm.
|
|
319
|
+
const ret = wasm.workspace_tokens(this.__wbg_ptr, ptr0, len0);
|
|
340
320
|
var ptr2 = ret[0];
|
|
341
321
|
var len2 = ret[1];
|
|
342
322
|
if (ret[3]) {
|
|
@@ -351,17 +331,31 @@ export class Workspace {
|
|
|
351
331
|
}
|
|
352
332
|
}
|
|
353
333
|
/**
|
|
354
|
-
*
|
|
334
|
+
* @returns {string}
|
|
335
|
+
*/
|
|
336
|
+
static version() {
|
|
337
|
+
let deferred1_0;
|
|
338
|
+
let deferred1_1;
|
|
339
|
+
try {
|
|
340
|
+
const ret = wasm.workspace_version();
|
|
341
|
+
deferred1_0 = ret[0];
|
|
342
|
+
deferred1_1 = ret[1];
|
|
343
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
344
|
+
} finally {
|
|
345
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
355
349
|
* @param {string} contents
|
|
356
350
|
* @returns {string}
|
|
357
351
|
*/
|
|
358
|
-
|
|
352
|
+
comments(contents) {
|
|
359
353
|
let deferred3_0;
|
|
360
354
|
let deferred3_1;
|
|
361
355
|
try {
|
|
362
356
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
363
357
|
const len0 = WASM_VECTOR_LEN;
|
|
364
|
-
const ret = wasm.
|
|
358
|
+
const ret = wasm.workspace_comments(this.__wbg_ptr, ptr0, len0);
|
|
365
359
|
var ptr2 = ret[0];
|
|
366
360
|
var len2 = ret[1];
|
|
367
361
|
if (ret[3]) {
|
|
@@ -379,13 +373,13 @@ export class Workspace {
|
|
|
379
373
|
* @param {string} contents
|
|
380
374
|
* @returns {string}
|
|
381
375
|
*/
|
|
382
|
-
|
|
376
|
+
format_ir(contents) {
|
|
383
377
|
let deferred3_0;
|
|
384
378
|
let deferred3_1;
|
|
385
379
|
try {
|
|
386
380
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
381
|
const len0 = WASM_VECTOR_LEN;
|
|
388
|
-
const ret = wasm.
|
|
382
|
+
const ret = wasm.workspace_format_ir(this.__wbg_ptr, ptr0, len0);
|
|
389
383
|
var ptr2 = ret[0];
|
|
390
384
|
var len2 = ret[1];
|
|
391
385
|
if (ret[3]) {
|
|
@@ -400,13 +394,14 @@ export class Workspace {
|
|
|
400
394
|
}
|
|
401
395
|
}
|
|
402
396
|
}
|
|
397
|
+
if (Symbol.dispose) Workspace.prototype[Symbol.dispose] = Workspace.prototype.free;
|
|
403
398
|
|
|
404
|
-
export function
|
|
399
|
+
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
405
400
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
406
401
|
return ret;
|
|
407
402
|
};
|
|
408
403
|
|
|
409
|
-
export function
|
|
404
|
+
export function __wbg_Number_bb48ca12f395cd08(arg0) {
|
|
410
405
|
const ret = Number(arg0);
|
|
411
406
|
return ret;
|
|
412
407
|
};
|
|
@@ -419,34 +414,112 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
419
414
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
420
415
|
};
|
|
421
416
|
|
|
422
|
-
export function
|
|
417
|
+
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
|
|
418
|
+
const v = arg1;
|
|
419
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
420
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
421
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
|
|
425
|
+
const v = arg0;
|
|
426
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
427
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
431
|
+
const ret = debugString(arg1);
|
|
432
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
+
const len1 = WASM_VECTOR_LEN;
|
|
434
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
435
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
|
|
439
|
+
const ret = arg0 in arg1;
|
|
440
|
+
return ret;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
|
|
444
|
+
const ret = typeof(arg0) === 'bigint';
|
|
445
|
+
return ret;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
449
|
+
const ret = typeof(arg0) === 'function';
|
|
450
|
+
return ret;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
454
|
+
const val = arg0;
|
|
455
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
456
|
+
return ret;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
|
|
460
|
+
const ret = typeof(arg0) === 'string';
|
|
461
|
+
return ret;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
|
|
465
|
+
const ret = arg0 === undefined;
|
|
466
|
+
return ret;
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
|
|
470
|
+
const ret = arg0 === arg1;
|
|
471
|
+
return ret;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
|
|
475
|
+
const ret = arg0 == arg1;
|
|
476
|
+
return ret;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
|
|
480
|
+
const obj = arg1;
|
|
481
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
482
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
483
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
487
|
+
const obj = arg1;
|
|
488
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
489
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
490
|
+
var len1 = WASM_VECTOR_LEN;
|
|
491
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
492
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
496
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
|
|
423
500
|
const ret = arg0.call(arg1);
|
|
424
501
|
return ret;
|
|
425
502
|
}, arguments) };
|
|
426
503
|
|
|
427
|
-
export function
|
|
504
|
+
export function __wbg_codePointAt_01a186303396f7ad(arg0, arg1) {
|
|
428
505
|
const ret = arg0.codePointAt(arg1 >>> 0);
|
|
429
506
|
return ret;
|
|
430
507
|
};
|
|
431
508
|
|
|
432
|
-
export function
|
|
509
|
+
export function __wbg_debug_f4b0c59db649db48(arg0) {
|
|
433
510
|
console.debug(arg0);
|
|
434
511
|
};
|
|
435
512
|
|
|
436
|
-
export function
|
|
513
|
+
export function __wbg_done_2042aa2670fb1db1(arg0) {
|
|
437
514
|
const ret = arg0.done;
|
|
438
515
|
return ret;
|
|
439
516
|
};
|
|
440
517
|
|
|
441
|
-
export function
|
|
518
|
+
export function __wbg_entries_e171b586f8f6bdbf(arg0) {
|
|
442
519
|
const ret = Object.entries(arg0);
|
|
443
520
|
return ret;
|
|
444
521
|
};
|
|
445
522
|
|
|
446
|
-
export function __wbg_error_41f0589870426ea4(arg0) {
|
|
447
|
-
console.error(arg0);
|
|
448
|
-
};
|
|
449
|
-
|
|
450
523
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
451
524
|
let deferred0_0;
|
|
452
525
|
let deferred0_1;
|
|
@@ -459,31 +532,35 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
459
532
|
}
|
|
460
533
|
};
|
|
461
534
|
|
|
462
|
-
export function
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}, arguments) };
|
|
535
|
+
export function __wbg_error_a7f8fbb0523dae15(arg0) {
|
|
536
|
+
console.error(arg0);
|
|
537
|
+
};
|
|
466
538
|
|
|
467
|
-
export function
|
|
468
|
-
const ret =
|
|
539
|
+
export function __wbg_fromCodePoint_a1c5bb992dc05846() { return handleError(function (arg0) {
|
|
540
|
+
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
469
541
|
return ret;
|
|
470
542
|
}, arguments) };
|
|
471
543
|
|
|
472
|
-
export function
|
|
544
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
473
545
|
const ret = arg0[arg1 >>> 0];
|
|
474
546
|
return ret;
|
|
475
547
|
};
|
|
476
548
|
|
|
477
|
-
export function
|
|
549
|
+
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
550
|
+
const ret = Reflect.get(arg0, arg1);
|
|
551
|
+
return ret;
|
|
552
|
+
}, arguments) };
|
|
553
|
+
|
|
554
|
+
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
478
555
|
const ret = arg0[arg1];
|
|
479
556
|
return ret;
|
|
480
557
|
};
|
|
481
558
|
|
|
482
|
-
export function
|
|
559
|
+
export function __wbg_info_e674a11f4f50cc0c(arg0) {
|
|
483
560
|
console.info(arg0);
|
|
484
561
|
};
|
|
485
562
|
|
|
486
|
-
export function
|
|
563
|
+
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
487
564
|
let result;
|
|
488
565
|
try {
|
|
489
566
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -494,7 +571,7 @@ export function __wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea(arg0) {
|
|
|
494
571
|
return ret;
|
|
495
572
|
};
|
|
496
573
|
|
|
497
|
-
export function
|
|
574
|
+
export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
|
|
498
575
|
let result;
|
|
499
576
|
try {
|
|
500
577
|
result = arg0 instanceof Map;
|
|
@@ -505,7 +582,7 @@ export function __wbg_instanceof_Map_dd89a82d76d1b25f(arg0) {
|
|
|
505
582
|
return ret;
|
|
506
583
|
};
|
|
507
584
|
|
|
508
|
-
export function
|
|
585
|
+
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
509
586
|
let result;
|
|
510
587
|
try {
|
|
511
588
|
result = arg0 instanceof Uint8Array;
|
|
@@ -516,99 +593,99 @@ export function __wbg_instanceof_Uint8Array_91f3c5adee7e6672(arg0) {
|
|
|
516
593
|
return ret;
|
|
517
594
|
};
|
|
518
595
|
|
|
519
|
-
export function
|
|
596
|
+
export function __wbg_isArray_96e0af9891d0945d(arg0) {
|
|
520
597
|
const ret = Array.isArray(arg0);
|
|
521
598
|
return ret;
|
|
522
599
|
};
|
|
523
600
|
|
|
524
|
-
export function
|
|
601
|
+
export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
|
|
525
602
|
const ret = Number.isSafeInteger(arg0);
|
|
526
603
|
return ret;
|
|
527
604
|
};
|
|
528
605
|
|
|
529
|
-
export function
|
|
606
|
+
export function __wbg_iterator_e5822695327a3c39() {
|
|
530
607
|
const ret = Symbol.iterator;
|
|
531
608
|
return ret;
|
|
532
609
|
};
|
|
533
610
|
|
|
534
|
-
export function
|
|
611
|
+
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
535
612
|
const ret = arg0.length;
|
|
536
613
|
return ret;
|
|
537
614
|
};
|
|
538
615
|
|
|
539
|
-
export function
|
|
616
|
+
export function __wbg_length_a95b69f903b746c4(arg0) {
|
|
540
617
|
const ret = arg0.length;
|
|
541
618
|
return ret;
|
|
542
619
|
};
|
|
543
620
|
|
|
544
|
-
export function
|
|
621
|
+
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
545
622
|
const ret = arg0.length;
|
|
546
623
|
return ret;
|
|
547
624
|
};
|
|
548
625
|
|
|
549
|
-
export function
|
|
626
|
+
export function __wbg_log_8cec76766b8c0e33(arg0) {
|
|
550
627
|
console.log(arg0);
|
|
551
628
|
};
|
|
552
629
|
|
|
553
|
-
export function
|
|
630
|
+
export function __wbg_new_1acc0b6eea89d040() {
|
|
554
631
|
const ret = new Object();
|
|
555
632
|
return ret;
|
|
556
633
|
};
|
|
557
634
|
|
|
558
|
-
export function
|
|
559
|
-
const ret = new
|
|
635
|
+
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
636
|
+
const ret = new Uint8Array(arg0);
|
|
560
637
|
return ret;
|
|
561
638
|
};
|
|
562
639
|
|
|
563
|
-
export function
|
|
564
|
-
const ret = new
|
|
640
|
+
export function __wbg_new_68651c719dcda04e() {
|
|
641
|
+
const ret = new Map();
|
|
565
642
|
return ret;
|
|
566
643
|
};
|
|
567
644
|
|
|
568
|
-
export function
|
|
569
|
-
const ret = new
|
|
645
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
646
|
+
const ret = new Error();
|
|
570
647
|
return ret;
|
|
571
648
|
};
|
|
572
649
|
|
|
573
|
-
export function
|
|
650
|
+
export function __wbg_new_a7442b4b19c1a356(arg0, arg1) {
|
|
574
651
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
575
652
|
return ret;
|
|
576
653
|
};
|
|
577
654
|
|
|
578
|
-
export function
|
|
655
|
+
export function __wbg_new_e17d9f43105b08be() {
|
|
579
656
|
const ret = new Array();
|
|
580
657
|
return ret;
|
|
581
658
|
};
|
|
582
659
|
|
|
583
|
-
export function
|
|
660
|
+
export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
|
|
584
661
|
const ret = arg0.next();
|
|
585
662
|
return ret;
|
|
586
663
|
}, arguments) };
|
|
587
664
|
|
|
588
|
-
export function
|
|
665
|
+
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
589
666
|
const ret = arg0.next;
|
|
590
667
|
return ret;
|
|
591
668
|
};
|
|
592
669
|
|
|
593
|
-
export function
|
|
670
|
+
export function __wbg_now_793306c526e2e3b6() {
|
|
594
671
|
const ret = Date.now();
|
|
595
672
|
return ret;
|
|
596
673
|
};
|
|
597
674
|
|
|
598
|
-
export function
|
|
675
|
+
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
599
676
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
600
677
|
};
|
|
601
678
|
|
|
602
|
-
export function __wbg_set_31197016f65a6a19(arg0, arg1, arg2) {
|
|
603
|
-
const ret = arg0.set(arg1, arg2);
|
|
604
|
-
return ret;
|
|
605
|
-
};
|
|
606
|
-
|
|
607
679
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
608
680
|
arg0[arg1] = arg2;
|
|
609
681
|
};
|
|
610
682
|
|
|
611
|
-
export function
|
|
683
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
684
|
+
const ret = arg0.set(arg1, arg2);
|
|
685
|
+
return ret;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
612
689
|
arg0[arg1 >>> 0] = arg2;
|
|
613
690
|
};
|
|
614
691
|
|
|
@@ -620,97 +697,15 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
620
697
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
621
698
|
};
|
|
622
699
|
|
|
623
|
-
export function
|
|
700
|
+
export function __wbg_value_692627309814bb8c(arg0) {
|
|
624
701
|
const ret = arg0.value;
|
|
625
702
|
return ret;
|
|
626
703
|
};
|
|
627
704
|
|
|
628
|
-
export function
|
|
705
|
+
export function __wbg_warn_1d74dddbe2fd1dbb(arg0) {
|
|
629
706
|
console.warn(arg0);
|
|
630
707
|
};
|
|
631
708
|
|
|
632
|
-
export function __wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e(arg0, arg1) {
|
|
633
|
-
const v = arg1;
|
|
634
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
635
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
636
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
export function __wbg_wbindgenbooleanget_59f830b1a70d2530(arg0) {
|
|
640
|
-
const v = arg0;
|
|
641
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
642
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
|
|
646
|
-
const ret = debugString(arg1);
|
|
647
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
648
|
-
const len1 = WASM_VECTOR_LEN;
|
|
649
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
650
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
export function __wbg_wbindgenin_192b210aa1c401e9(arg0, arg1) {
|
|
654
|
-
const ret = arg0 in arg1;
|
|
655
|
-
return ret;
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
export function __wbg_wbindgenisbigint_7d76a1ca6454e439(arg0) {
|
|
659
|
-
const ret = typeof(arg0) === 'bigint';
|
|
660
|
-
return ret;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
export function __wbg_wbindgenisfunction_ea72b9d66a0e1705(arg0) {
|
|
664
|
-
const ret = typeof(arg0) === 'function';
|
|
665
|
-
return ret;
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
export function __wbg_wbindgenisobject_dfe064a121d87553(arg0) {
|
|
669
|
-
const val = arg0;
|
|
670
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
671
|
-
return ret;
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
export function __wbg_wbindgenisstring_4b74e4111ba029e6(arg0) {
|
|
675
|
-
const ret = typeof(arg0) === 'string';
|
|
676
|
-
return ret;
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
export function __wbg_wbindgenisundefined_71f08a6ade4354e7(arg0) {
|
|
680
|
-
const ret = arg0 === undefined;
|
|
681
|
-
return ret;
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
export function __wbg_wbindgenjsvaleq_f27272c0a890df7f(arg0, arg1) {
|
|
685
|
-
const ret = arg0 === arg1;
|
|
686
|
-
return ret;
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
export function __wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c(arg0, arg1) {
|
|
690
|
-
const ret = arg0 == arg1;
|
|
691
|
-
return ret;
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
export function __wbg_wbindgennumberget_d855f947247a3fbc(arg0, arg1) {
|
|
695
|
-
const obj = arg1;
|
|
696
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
697
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
698
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
export function __wbg_wbindgenstringget_43fe05afe34b0cb1(arg0, arg1) {
|
|
702
|
-
const obj = arg1;
|
|
703
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
704
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
705
|
-
var len1 = WASM_VECTOR_LEN;
|
|
706
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
707
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
export function __wbg_wbindgenthrow_4c11a24fca429ccf(arg0, arg1) {
|
|
711
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
712
|
-
};
|
|
713
|
-
|
|
714
709
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
715
710
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
716
711
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -736,7 +731,7 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
736
731
|
};
|
|
737
732
|
|
|
738
733
|
export function __wbindgen_init_externref_table() {
|
|
739
|
-
const table = wasm.
|
|
734
|
+
const table = wasm.__wbindgen_externrefs;
|
|
740
735
|
const offset = table.grow(4);
|
|
741
736
|
table.set(0, undefined);
|
|
742
737
|
table.set(offset + 0, undefined);
|
package/ruff_wasm_bg.wasm
CHANGED
|
Binary file
|