@astral-sh/ruff-wasm-nodejs 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.js +62 -58
- package/ruff_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/ruff_wasm.js
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
4
|
let wasm;
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
let WASM_VECTOR_LEN = 0;
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
8
6
|
|
|
9
7
|
let cachedUint8ArrayMemory0 = null;
|
|
10
8
|
|
|
@@ -15,7 +13,22 @@ function getUint8ArrayMemory0() {
|
|
|
15
13
|
return cachedUint8ArrayMemory0;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
let
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
+
|
|
18
|
+
cachedTextDecoder.decode();
|
|
19
|
+
|
|
20
|
+
function decodeText(ptr, len) {
|
|
21
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function getStringFromWasm0(ptr, len) {
|
|
25
|
+
ptr = ptr >>> 0;
|
|
26
|
+
return decodeText(ptr, len);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
let WASM_VECTOR_LEN = 0;
|
|
30
|
+
|
|
31
|
+
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
19
32
|
|
|
20
33
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
21
34
|
? function (arg, view) {
|
|
@@ -93,15 +106,6 @@ function handleError(f, args) {
|
|
|
93
106
|
}
|
|
94
107
|
}
|
|
95
108
|
|
|
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
109
|
function isLikeNone(x) {
|
|
106
110
|
return x === undefined || x === null;
|
|
107
111
|
}
|
|
@@ -372,6 +376,11 @@ class Workspace {
|
|
|
372
376
|
}
|
|
373
377
|
module.exports.Workspace = Workspace;
|
|
374
378
|
|
|
379
|
+
module.exports.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
|
|
380
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
381
|
+
return ret;
|
|
382
|
+
};
|
|
383
|
+
|
|
375
384
|
module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
376
385
|
const ret = String(arg1);
|
|
377
386
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -380,36 +389,36 @@ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
|
380
389
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
381
390
|
};
|
|
382
391
|
|
|
383
|
-
module.exports.
|
|
392
|
+
module.exports.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
|
|
384
393
|
const ret = arg0.buffer;
|
|
385
394
|
return ret;
|
|
386
395
|
};
|
|
387
396
|
|
|
388
|
-
module.exports.
|
|
397
|
+
module.exports.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
|
|
389
398
|
const ret = arg0.call(arg1);
|
|
390
399
|
return ret;
|
|
391
400
|
}, arguments) };
|
|
392
401
|
|
|
393
|
-
module.exports.
|
|
402
|
+
module.exports.__wbg_codePointAt_d9b87d53dffc810a = function(arg0, arg1) {
|
|
394
403
|
const ret = arg0.codePointAt(arg1 >>> 0);
|
|
395
404
|
return ret;
|
|
396
405
|
};
|
|
397
406
|
|
|
398
|
-
module.exports.
|
|
407
|
+
module.exports.__wbg_debug_58d16ea352cfbca1 = function(arg0) {
|
|
399
408
|
console.debug(arg0);
|
|
400
409
|
};
|
|
401
410
|
|
|
402
|
-
module.exports.
|
|
411
|
+
module.exports.__wbg_done_4d01f352bade43b7 = function(arg0) {
|
|
403
412
|
const ret = arg0.done;
|
|
404
413
|
return ret;
|
|
405
414
|
};
|
|
406
415
|
|
|
407
|
-
module.exports.
|
|
416
|
+
module.exports.__wbg_entries_41651c850143b957 = function(arg0) {
|
|
408
417
|
const ret = Object.entries(arg0);
|
|
409
418
|
return ret;
|
|
410
419
|
};
|
|
411
420
|
|
|
412
|
-
module.exports.
|
|
421
|
+
module.exports.__wbg_error_51ecdd39ec054205 = function(arg0) {
|
|
413
422
|
console.error(arg0);
|
|
414
423
|
};
|
|
415
424
|
|
|
@@ -425,17 +434,17 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
425
434
|
}
|
|
426
435
|
};
|
|
427
436
|
|
|
428
|
-
module.exports.
|
|
437
|
+
module.exports.__wbg_fromCodePoint_429ae2379fd10205 = function() { return handleError(function (arg0) {
|
|
429
438
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
430
439
|
return ret;
|
|
431
440
|
}, arguments) };
|
|
432
441
|
|
|
433
|
-
module.exports.
|
|
442
|
+
module.exports.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
|
|
434
443
|
const ret = Reflect.get(arg0, arg1);
|
|
435
444
|
return ret;
|
|
436
445
|
}, arguments) };
|
|
437
446
|
|
|
438
|
-
module.exports.
|
|
447
|
+
module.exports.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
|
|
439
448
|
const ret = arg0[arg1 >>> 0];
|
|
440
449
|
return ret;
|
|
441
450
|
};
|
|
@@ -445,11 +454,11 @@ module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
|
445
454
|
return ret;
|
|
446
455
|
};
|
|
447
456
|
|
|
448
|
-
module.exports.
|
|
457
|
+
module.exports.__wbg_info_e56933705c348038 = function(arg0) {
|
|
449
458
|
console.info(arg0);
|
|
450
459
|
};
|
|
451
460
|
|
|
452
|
-
module.exports.
|
|
461
|
+
module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
|
|
453
462
|
let result;
|
|
454
463
|
try {
|
|
455
464
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -460,7 +469,7 @@ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
|
460
469
|
return ret;
|
|
461
470
|
};
|
|
462
471
|
|
|
463
|
-
module.exports.
|
|
472
|
+
module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
|
|
464
473
|
let result;
|
|
465
474
|
try {
|
|
466
475
|
result = arg0 instanceof Map;
|
|
@@ -471,7 +480,7 @@ module.exports.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
|
471
480
|
return ret;
|
|
472
481
|
};
|
|
473
482
|
|
|
474
|
-
module.exports.
|
|
483
|
+
module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
|
|
475
484
|
let result;
|
|
476
485
|
try {
|
|
477
486
|
result = arg0 instanceof Uint8Array;
|
|
@@ -482,51 +491,51 @@ module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
|
482
491
|
return ret;
|
|
483
492
|
};
|
|
484
493
|
|
|
485
|
-
module.exports.
|
|
494
|
+
module.exports.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
|
|
486
495
|
const ret = Array.isArray(arg0);
|
|
487
496
|
return ret;
|
|
488
497
|
};
|
|
489
498
|
|
|
490
|
-
module.exports.
|
|
499
|
+
module.exports.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
|
|
491
500
|
const ret = Number.isSafeInteger(arg0);
|
|
492
501
|
return ret;
|
|
493
502
|
};
|
|
494
503
|
|
|
495
|
-
module.exports.
|
|
504
|
+
module.exports.__wbg_iterator_4068add5b2aef7a6 = function() {
|
|
496
505
|
const ret = Symbol.iterator;
|
|
497
506
|
return ret;
|
|
498
507
|
};
|
|
499
508
|
|
|
500
|
-
module.exports.
|
|
509
|
+
module.exports.__wbg_length_0ca5b4c83d5d9721 = function(arg0) {
|
|
501
510
|
const ret = arg0.length;
|
|
502
511
|
return ret;
|
|
503
512
|
};
|
|
504
513
|
|
|
505
|
-
module.exports.
|
|
514
|
+
module.exports.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
|
|
506
515
|
const ret = arg0.length;
|
|
507
516
|
return ret;
|
|
508
517
|
};
|
|
509
518
|
|
|
510
|
-
module.exports.
|
|
519
|
+
module.exports.__wbg_length_f00ec12454a5d9fd = function(arg0) {
|
|
511
520
|
const ret = arg0.length;
|
|
512
521
|
return ret;
|
|
513
522
|
};
|
|
514
523
|
|
|
515
|
-
module.exports.
|
|
524
|
+
module.exports.__wbg_log_ea240990d83e374e = function(arg0) {
|
|
516
525
|
console.log(arg0);
|
|
517
526
|
};
|
|
518
527
|
|
|
519
|
-
module.exports.
|
|
528
|
+
module.exports.__wbg_new_07b483f72211fd66 = function() {
|
|
520
529
|
const ret = new Object();
|
|
521
530
|
return ret;
|
|
522
531
|
};
|
|
523
532
|
|
|
524
|
-
module.exports.
|
|
525
|
-
const ret = new
|
|
533
|
+
module.exports.__wbg_new_476169e6d59f23ae = function(arg0, arg1) {
|
|
534
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
526
535
|
return ret;
|
|
527
536
|
};
|
|
528
537
|
|
|
529
|
-
module.exports.
|
|
538
|
+
module.exports.__wbg_new_58353953ad2097cc = function() {
|
|
530
539
|
const ret = new Array();
|
|
531
540
|
return ret;
|
|
532
541
|
};
|
|
@@ -536,43 +545,43 @@ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
|
536
545
|
return ret;
|
|
537
546
|
};
|
|
538
547
|
|
|
539
|
-
module.exports.
|
|
540
|
-
const ret = new
|
|
548
|
+
module.exports.__wbg_new_a979b4b45bd55c7f = function() {
|
|
549
|
+
const ret = new Map();
|
|
541
550
|
return ret;
|
|
542
551
|
};
|
|
543
552
|
|
|
544
|
-
module.exports.
|
|
545
|
-
const ret = new
|
|
553
|
+
module.exports.__wbg_new_e52b3efaaa774f96 = function(arg0) {
|
|
554
|
+
const ret = new Uint8Array(arg0);
|
|
546
555
|
return ret;
|
|
547
556
|
};
|
|
548
557
|
|
|
549
|
-
module.exports.
|
|
558
|
+
module.exports.__wbg_next_8bb824d217961b5d = function(arg0) {
|
|
550
559
|
const ret = arg0.next;
|
|
551
560
|
return ret;
|
|
552
561
|
};
|
|
553
562
|
|
|
554
|
-
module.exports.
|
|
563
|
+
module.exports.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
|
|
555
564
|
const ret = arg0.next();
|
|
556
565
|
return ret;
|
|
557
566
|
}, arguments) };
|
|
558
567
|
|
|
559
|
-
module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
560
|
-
arg0[arg1 >>> 0] = arg2;
|
|
561
|
-
};
|
|
562
|
-
|
|
563
568
|
module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
564
569
|
arg0[arg1] = arg2;
|
|
565
570
|
};
|
|
566
571
|
|
|
567
|
-
module.exports.
|
|
568
|
-
arg0
|
|
572
|
+
module.exports.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
|
|
573
|
+
arg0[arg1 >>> 0] = arg2;
|
|
569
574
|
};
|
|
570
575
|
|
|
571
|
-
module.exports.
|
|
576
|
+
module.exports.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
|
|
572
577
|
const ret = arg0.set(arg1, arg2);
|
|
573
578
|
return ret;
|
|
574
579
|
};
|
|
575
580
|
|
|
581
|
+
module.exports.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
|
|
582
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
583
|
+
};
|
|
584
|
+
|
|
576
585
|
module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
577
586
|
const ret = arg1.stack;
|
|
578
587
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -581,12 +590,12 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
581
590
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
582
591
|
};
|
|
583
592
|
|
|
584
|
-
module.exports.
|
|
593
|
+
module.exports.__wbg_value_17b896954e14f896 = function(arg0) {
|
|
585
594
|
const ret = arg0.value;
|
|
586
595
|
return ret;
|
|
587
596
|
};
|
|
588
597
|
|
|
589
|
-
module.exports.
|
|
598
|
+
module.exports.__wbg_warn_d89f6637da554c8d = function(arg0) {
|
|
590
599
|
console.warn(arg0);
|
|
591
600
|
};
|
|
592
601
|
|
|
@@ -626,11 +635,6 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
626
635
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
627
636
|
};
|
|
628
637
|
|
|
629
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
630
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
631
|
-
return ret;
|
|
632
|
-
};
|
|
633
|
-
|
|
634
638
|
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
635
639
|
const ret = arg0 in arg1;
|
|
636
640
|
return ret;
|
package/ruff_wasm_bg.wasm
CHANGED
|
Binary file
|