@astral-sh/ruff-wasm-bundler 0.12.12 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ruff_wasm_bg.js +71 -59
- package/ruff_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/ruff_wasm_bg.js
CHANGED
|
@@ -4,8 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
let WASM_VECTOR_LEN = 0;
|
|
8
|
-
|
|
9
7
|
let cachedUint8ArrayMemory0 = null;
|
|
10
8
|
|
|
11
9
|
function getUint8ArrayMemory0() {
|
|
@@ -15,9 +13,34 @@ function getUint8ArrayMemory0() {
|
|
|
15
13
|
return cachedUint8ArrayMemory0;
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
17
|
+
|
|
18
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
19
|
+
|
|
20
|
+
cachedTextDecoder.decode();
|
|
21
|
+
|
|
22
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
23
|
+
let numBytesDecoded = 0;
|
|
24
|
+
function decodeText(ptr, len) {
|
|
25
|
+
numBytesDecoded += len;
|
|
26
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
27
|
+
cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
|
+
cachedTextDecoder.decode();
|
|
29
|
+
numBytesDecoded = len;
|
|
30
|
+
}
|
|
31
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function getStringFromWasm0(ptr, len) {
|
|
35
|
+
ptr = ptr >>> 0;
|
|
36
|
+
return decodeText(ptr, len);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let WASM_VECTOR_LEN = 0;
|
|
40
|
+
|
|
18
41
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
19
42
|
|
|
20
|
-
|
|
43
|
+
const cachedTextEncoder = new lTextEncoder('utf-8');
|
|
21
44
|
|
|
22
45
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
23
46
|
? function (arg, view) {
|
|
@@ -95,17 +118,6 @@ function handleError(f, args) {
|
|
|
95
118
|
}
|
|
96
119
|
}
|
|
97
120
|
|
|
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
121
|
function isLikeNone(x) {
|
|
110
122
|
return x === undefined || x === null;
|
|
111
123
|
}
|
|
@@ -375,6 +387,11 @@ export class Workspace {
|
|
|
375
387
|
}
|
|
376
388
|
}
|
|
377
389
|
|
|
390
|
+
export function __wbg_Error_0497d5bdba9362e5(arg0, arg1) {
|
|
391
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
392
|
+
return ret;
|
|
393
|
+
};
|
|
394
|
+
|
|
378
395
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
379
396
|
const ret = String(arg1);
|
|
380
397
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -383,36 +400,36 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
383
400
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
384
401
|
};
|
|
385
402
|
|
|
386
|
-
export function
|
|
403
|
+
export function __wbg_buffer_a1a27a0dfa70165d(arg0) {
|
|
387
404
|
const ret = arg0.buffer;
|
|
388
405
|
return ret;
|
|
389
406
|
};
|
|
390
407
|
|
|
391
|
-
export function
|
|
408
|
+
export function __wbg_call_fbe8be8bf6436ce5() { return handleError(function (arg0, arg1) {
|
|
392
409
|
const ret = arg0.call(arg1);
|
|
393
410
|
return ret;
|
|
394
411
|
}, arguments) };
|
|
395
412
|
|
|
396
|
-
export function
|
|
413
|
+
export function __wbg_codePointAt_d9b87d53dffc810a(arg0, arg1) {
|
|
397
414
|
const ret = arg0.codePointAt(arg1 >>> 0);
|
|
398
415
|
return ret;
|
|
399
416
|
};
|
|
400
417
|
|
|
401
|
-
export function
|
|
418
|
+
export function __wbg_debug_58d16ea352cfbca1(arg0) {
|
|
402
419
|
console.debug(arg0);
|
|
403
420
|
};
|
|
404
421
|
|
|
405
|
-
export function
|
|
422
|
+
export function __wbg_done_4d01f352bade43b7(arg0) {
|
|
406
423
|
const ret = arg0.done;
|
|
407
424
|
return ret;
|
|
408
425
|
};
|
|
409
426
|
|
|
410
|
-
export function
|
|
427
|
+
export function __wbg_entries_41651c850143b957(arg0) {
|
|
411
428
|
const ret = Object.entries(arg0);
|
|
412
429
|
return ret;
|
|
413
430
|
};
|
|
414
431
|
|
|
415
|
-
export function
|
|
432
|
+
export function __wbg_error_51ecdd39ec054205(arg0) {
|
|
416
433
|
console.error(arg0);
|
|
417
434
|
};
|
|
418
435
|
|
|
@@ -428,17 +445,17 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
428
445
|
}
|
|
429
446
|
};
|
|
430
447
|
|
|
431
|
-
export function
|
|
448
|
+
export function __wbg_fromCodePoint_429ae2379fd10205() { return handleError(function (arg0) {
|
|
432
449
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
433
450
|
return ret;
|
|
434
451
|
}, arguments) };
|
|
435
452
|
|
|
436
|
-
export function
|
|
453
|
+
export function __wbg_get_92470be87867c2e5() { return handleError(function (arg0, arg1) {
|
|
437
454
|
const ret = Reflect.get(arg0, arg1);
|
|
438
455
|
return ret;
|
|
439
456
|
}, arguments) };
|
|
440
457
|
|
|
441
|
-
export function
|
|
458
|
+
export function __wbg_get_a131a44bd1eb6979(arg0, arg1) {
|
|
442
459
|
const ret = arg0[arg1 >>> 0];
|
|
443
460
|
return ret;
|
|
444
461
|
};
|
|
@@ -448,11 +465,11 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
|
448
465
|
return ret;
|
|
449
466
|
};
|
|
450
467
|
|
|
451
|
-
export function
|
|
468
|
+
export function __wbg_info_e56933705c348038(arg0) {
|
|
452
469
|
console.info(arg0);
|
|
453
470
|
};
|
|
454
471
|
|
|
455
|
-
export function
|
|
472
|
+
export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
|
|
456
473
|
let result;
|
|
457
474
|
try {
|
|
458
475
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -463,7 +480,7 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
|
463
480
|
return ret;
|
|
464
481
|
};
|
|
465
482
|
|
|
466
|
-
export function
|
|
483
|
+
export function __wbg_instanceof_Map_80cc65041c96417a(arg0) {
|
|
467
484
|
let result;
|
|
468
485
|
try {
|
|
469
486
|
result = arg0 instanceof Map;
|
|
@@ -474,7 +491,7 @@ export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
|
474
491
|
return ret;
|
|
475
492
|
};
|
|
476
493
|
|
|
477
|
-
export function
|
|
494
|
+
export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
|
|
478
495
|
let result;
|
|
479
496
|
try {
|
|
480
497
|
result = arg0 instanceof Uint8Array;
|
|
@@ -485,51 +502,51 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
|
485
502
|
return ret;
|
|
486
503
|
};
|
|
487
504
|
|
|
488
|
-
export function
|
|
505
|
+
export function __wbg_isArray_5f090bed72bd4f89(arg0) {
|
|
489
506
|
const ret = Array.isArray(arg0);
|
|
490
507
|
return ret;
|
|
491
508
|
};
|
|
492
509
|
|
|
493
|
-
export function
|
|
510
|
+
export function __wbg_isSafeInteger_90d7c4674047d684(arg0) {
|
|
494
511
|
const ret = Number.isSafeInteger(arg0);
|
|
495
512
|
return ret;
|
|
496
513
|
};
|
|
497
514
|
|
|
498
|
-
export function
|
|
515
|
+
export function __wbg_iterator_4068add5b2aef7a6() {
|
|
499
516
|
const ret = Symbol.iterator;
|
|
500
517
|
return ret;
|
|
501
518
|
};
|
|
502
519
|
|
|
503
|
-
export function
|
|
520
|
+
export function __wbg_length_0ca5b4c83d5d9721(arg0) {
|
|
504
521
|
const ret = arg0.length;
|
|
505
522
|
return ret;
|
|
506
523
|
};
|
|
507
524
|
|
|
508
|
-
export function
|
|
525
|
+
export function __wbg_length_ab6d22b5ead75c72(arg0) {
|
|
509
526
|
const ret = arg0.length;
|
|
510
527
|
return ret;
|
|
511
528
|
};
|
|
512
529
|
|
|
513
|
-
export function
|
|
530
|
+
export function __wbg_length_f00ec12454a5d9fd(arg0) {
|
|
514
531
|
const ret = arg0.length;
|
|
515
532
|
return ret;
|
|
516
533
|
};
|
|
517
534
|
|
|
518
|
-
export function
|
|
535
|
+
export function __wbg_log_ea240990d83e374e(arg0) {
|
|
519
536
|
console.log(arg0);
|
|
520
537
|
};
|
|
521
538
|
|
|
522
|
-
export function
|
|
539
|
+
export function __wbg_new_07b483f72211fd66() {
|
|
523
540
|
const ret = new Object();
|
|
524
541
|
return ret;
|
|
525
542
|
};
|
|
526
543
|
|
|
527
|
-
export function
|
|
528
|
-
const ret = new
|
|
544
|
+
export function __wbg_new_476169e6d59f23ae(arg0, arg1) {
|
|
545
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
529
546
|
return ret;
|
|
530
547
|
};
|
|
531
548
|
|
|
532
|
-
export function
|
|
549
|
+
export function __wbg_new_58353953ad2097cc() {
|
|
533
550
|
const ret = new Array();
|
|
534
551
|
return ret;
|
|
535
552
|
};
|
|
@@ -539,43 +556,43 @@ export function __wbg_new_8a6f238a6ece86ea() {
|
|
|
539
556
|
return ret;
|
|
540
557
|
};
|
|
541
558
|
|
|
542
|
-
export function
|
|
543
|
-
const ret = new
|
|
559
|
+
export function __wbg_new_a979b4b45bd55c7f() {
|
|
560
|
+
const ret = new Map();
|
|
544
561
|
return ret;
|
|
545
562
|
};
|
|
546
563
|
|
|
547
|
-
export function
|
|
548
|
-
const ret = new
|
|
564
|
+
export function __wbg_new_e52b3efaaa774f96(arg0) {
|
|
565
|
+
const ret = new Uint8Array(arg0);
|
|
549
566
|
return ret;
|
|
550
567
|
};
|
|
551
568
|
|
|
552
|
-
export function
|
|
569
|
+
export function __wbg_next_8bb824d217961b5d(arg0) {
|
|
553
570
|
const ret = arg0.next;
|
|
554
571
|
return ret;
|
|
555
572
|
};
|
|
556
573
|
|
|
557
|
-
export function
|
|
574
|
+
export function __wbg_next_e2da48d8fff7439a() { return handleError(function (arg0) {
|
|
558
575
|
const ret = arg0.next();
|
|
559
576
|
return ret;
|
|
560
577
|
}, arguments) };
|
|
561
578
|
|
|
562
|
-
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
563
|
-
arg0[arg1 >>> 0] = arg2;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
579
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
567
580
|
arg0[arg1] = arg2;
|
|
568
581
|
};
|
|
569
582
|
|
|
570
|
-
export function
|
|
571
|
-
arg0
|
|
583
|
+
export function __wbg_set_7422acbe992d64ab(arg0, arg1, arg2) {
|
|
584
|
+
arg0[arg1 >>> 0] = arg2;
|
|
572
585
|
};
|
|
573
586
|
|
|
574
|
-
export function
|
|
587
|
+
export function __wbg_set_d6bdfd275fb8a4ce(arg0, arg1, arg2) {
|
|
575
588
|
const ret = arg0.set(arg1, arg2);
|
|
576
589
|
return ret;
|
|
577
590
|
};
|
|
578
591
|
|
|
592
|
+
export function __wbg_set_fe4e79d1ed3b0e9b(arg0, arg1, arg2) {
|
|
593
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
594
|
+
};
|
|
595
|
+
|
|
579
596
|
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
580
597
|
const ret = arg1.stack;
|
|
581
598
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -584,12 +601,12 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
584
601
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
585
602
|
};
|
|
586
603
|
|
|
587
|
-
export function
|
|
604
|
+
export function __wbg_value_17b896954e14f896(arg0) {
|
|
588
605
|
const ret = arg0.value;
|
|
589
606
|
return ret;
|
|
590
607
|
};
|
|
591
608
|
|
|
592
|
-
export function
|
|
609
|
+
export function __wbg_warn_d89f6637da554c8d(arg0) {
|
|
593
610
|
console.warn(arg0);
|
|
594
611
|
};
|
|
595
612
|
|
|
@@ -629,11 +646,6 @@ export function __wbindgen_debug_string(arg0, arg1) {
|
|
|
629
646
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
630
647
|
};
|
|
631
648
|
|
|
632
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
633
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
634
|
-
return ret;
|
|
635
|
-
};
|
|
636
|
-
|
|
637
649
|
export function __wbindgen_in(arg0, arg1) {
|
|
638
650
|
const ret = arg0 in arg1;
|
|
639
651
|
return ret;
|
package/ruff_wasm_bg.wasm
CHANGED
|
Binary file
|