@putout/bundle 1.10.1 → 1.10.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/bundle/putout-iife.js +7 -7
- package/bundle/putout.js +37 -35
- package/package.json +1 -1
package/bundle/putout.js
CHANGED
|
@@ -68322,12 +68322,17 @@ comment.parseComments = parseComments$5;
|
|
|
68322
68322
|
const {parseComments: parseComments$4} = comment;
|
|
68323
68323
|
|
|
68324
68324
|
params.printParams = (path, printer, semantics, customization = {}) => {
|
|
68325
|
-
const {
|
|
68325
|
+
const {
|
|
68326
|
+
params = path.get('params'),
|
|
68327
|
+
braceOpen = '(',
|
|
68328
|
+
braceClose = ')',
|
|
68329
|
+
} = customization;
|
|
68326
68330
|
|
|
68327
68331
|
const {print, traverse} = printer;
|
|
68328
68332
|
|
|
68329
68333
|
printBraceOpen(path, {
|
|
68330
68334
|
print,
|
|
68335
|
+
braceOpen,
|
|
68331
68336
|
});
|
|
68332
68337
|
|
|
68333
68338
|
parseComments$4(path, printer, semantics);
|
|
@@ -68347,21 +68352,22 @@ params.printParams = (path, printer, semantics, customization = {}) => {
|
|
|
68347
68352
|
|
|
68348
68353
|
printBraceClose(path, {
|
|
68349
68354
|
print,
|
|
68355
|
+
braceClose,
|
|
68350
68356
|
});
|
|
68351
68357
|
};
|
|
68352
68358
|
|
|
68353
|
-
function printBraceOpen(path, {print}) {
|
|
68359
|
+
function printBraceOpen(path, {print, braceOpen}) {
|
|
68354
68360
|
if (isOneArgArrow(path))
|
|
68355
68361
|
return print.roundBraceOpen();
|
|
68356
68362
|
|
|
68357
|
-
return print(
|
|
68363
|
+
return print(braceOpen);
|
|
68358
68364
|
}
|
|
68359
68365
|
|
|
68360
|
-
function printBraceClose(path, {print}) {
|
|
68366
|
+
function printBraceClose(path, {print, braceClose}) {
|
|
68361
68367
|
if (isOneArgArrow(path))
|
|
68362
68368
|
return print.roundBraceClose();
|
|
68363
68369
|
|
|
68364
|
-
print(
|
|
68370
|
+
print(braceClose);
|
|
68365
68371
|
}
|
|
68366
68372
|
|
|
68367
68373
|
function isOneArgArrow(path) {
|
|
@@ -68378,7 +68384,7 @@ function isOneArgArrow(path) {
|
|
|
68378
68384
|
}
|
|
68379
68385
|
|
|
68380
68386
|
const {exists: exists$h} = is$3;
|
|
68381
|
-
const {printParams: printParams$
|
|
68387
|
+
const {printParams: printParams$7} = params;
|
|
68382
68388
|
|
|
68383
68389
|
arrowFunctionExpression.ArrowFunctionExpression = {
|
|
68384
68390
|
condition({parentPath}) {
|
|
@@ -68399,7 +68405,7 @@ arrowFunctionExpression.ArrowFunctionExpression = {
|
|
|
68399
68405
|
|
|
68400
68406
|
maybe.print(async, 'async ');
|
|
68401
68407
|
|
|
68402
|
-
printParams$
|
|
68408
|
+
printParams$7(path, printer, semantics);
|
|
68403
68409
|
|
|
68404
68410
|
const returnType = path.get('returnType');
|
|
68405
68411
|
|
|
@@ -68432,7 +68438,7 @@ const {markAfter: markAfter$9} = mark;
|
|
|
68432
68438
|
|
|
68433
68439
|
const {isNext: isNext$j, isNextParent: isNextParent$1} = is$3;
|
|
68434
68440
|
|
|
68435
|
-
const {printParams: printParams$
|
|
68441
|
+
const {printParams: printParams$6} = params;
|
|
68436
68442
|
|
|
68437
68443
|
functionDeclaration.FunctionDeclaration = {
|
|
68438
68444
|
print(path, printer, semantics) {
|
|
@@ -68448,7 +68454,7 @@ functionDeclaration.FunctionDeclaration = {
|
|
|
68448
68454
|
print('__id');
|
|
68449
68455
|
print('__typeParameters');
|
|
68450
68456
|
|
|
68451
|
-
printParams$
|
|
68457
|
+
printParams$6(path, printer, semantics);
|
|
68452
68458
|
|
|
68453
68459
|
print.space();
|
|
68454
68460
|
|
|
@@ -68464,7 +68470,7 @@ functionDeclaration.FunctionDeclaration = {
|
|
|
68464
68470
|
var classMethod$1 = {};
|
|
68465
68471
|
|
|
68466
68472
|
const {isNext: isNext$i} = is$3;
|
|
68467
|
-
const {printParams: printParams$
|
|
68473
|
+
const {printParams: printParams$5} = params;
|
|
68468
68474
|
|
|
68469
68475
|
const ClassMethod$1 = {
|
|
68470
68476
|
print(path, printer, semantics) {
|
|
@@ -68489,7 +68495,7 @@ const ClassMethod$1 = {
|
|
|
68489
68495
|
print('__key');
|
|
68490
68496
|
}
|
|
68491
68497
|
|
|
68492
|
-
printParams$
|
|
68498
|
+
printParams$5(path, printer, semantics);
|
|
68493
68499
|
|
|
68494
68500
|
print.space();
|
|
68495
68501
|
print('__body');
|
|
@@ -68506,7 +68512,7 @@ classMethod$1.ClassMethod = ClassMethod$1;
|
|
|
68506
68512
|
var objectMethod = {};
|
|
68507
68513
|
|
|
68508
68514
|
const {isNewlineBetweenSiblings: isNewlineBetweenSiblings$4} = is$3;
|
|
68509
|
-
const {printParams: printParams$
|
|
68515
|
+
const {printParams: printParams$4} = params;
|
|
68510
68516
|
|
|
68511
68517
|
objectMethod.ObjectMethod = {
|
|
68512
68518
|
beforeIf(path) {
|
|
@@ -68533,7 +68539,7 @@ objectMethod.ObjectMethod = {
|
|
|
68533
68539
|
print('__key');
|
|
68534
68540
|
maybe.print(computed, ']');
|
|
68535
68541
|
|
|
68536
|
-
printParams$
|
|
68542
|
+
printParams$4(path, printer, semantics);
|
|
68537
68543
|
|
|
68538
68544
|
print.space();
|
|
68539
68545
|
print('__body');
|
|
@@ -68549,7 +68555,7 @@ objectMethod.ObjectMethod = {
|
|
|
68549
68555
|
var functionExpression = {};
|
|
68550
68556
|
|
|
68551
68557
|
const {exists: exists$g} = is$3;
|
|
68552
|
-
const {printParams: printParams$
|
|
68558
|
+
const {printParams: printParams$3} = params;
|
|
68553
68559
|
|
|
68554
68560
|
functionExpression.FunctionExpression = (path, printer, semantics) => {
|
|
68555
68561
|
const {
|
|
@@ -68573,7 +68579,7 @@ functionExpression.FunctionExpression = (path, printer, semantics) => {
|
|
|
68573
68579
|
traverse(id);
|
|
68574
68580
|
}
|
|
68575
68581
|
|
|
68576
|
-
printParams$
|
|
68582
|
+
printParams$3(path, printer, semantics);
|
|
68577
68583
|
|
|
68578
68584
|
print.space();
|
|
68579
68585
|
print('__body');
|
|
@@ -72528,7 +72534,7 @@ tsTypeParameter.TSTypeParameter = (path, {write, traverse}) => {
|
|
|
72528
72534
|
|
|
72529
72535
|
var tsDeclareFunction = {};
|
|
72530
72536
|
|
|
72531
|
-
const {printParams: printParams$
|
|
72537
|
+
const {printParams: printParams$2} = params;
|
|
72532
72538
|
const {isNext: isNext$3} = is$3;
|
|
72533
72539
|
|
|
72534
72540
|
const isInsideExport = (path) => {
|
|
@@ -72543,7 +72549,7 @@ tsDeclareFunction.TSDeclareFunction = (path, printer, semantics) => {
|
|
|
72543
72549
|
print('function ');
|
|
72544
72550
|
print('__id');
|
|
72545
72551
|
|
|
72546
|
-
printParams$
|
|
72552
|
+
printParams$2(path, printer, semantics);
|
|
72547
72553
|
|
|
72548
72554
|
print(':');
|
|
72549
72555
|
print.space();
|
|
@@ -72680,12 +72686,12 @@ tsPropertySignature.TSPropertySignature = (path, {print, maybe, traverse}) => {
|
|
|
72680
72686
|
|
|
72681
72687
|
var tsFunctionType = {};
|
|
72682
72688
|
|
|
72683
|
-
const {printParams} = params;
|
|
72689
|
+
const {printParams: printParams$1} = params;
|
|
72684
72690
|
|
|
72685
72691
|
tsFunctionType.TSFunctionType = (path, printer, semantics) => {
|
|
72686
72692
|
const {print} = printer;
|
|
72687
72693
|
|
|
72688
|
-
printParams(path, printer, semantics, {
|
|
72694
|
+
printParams$1(path, printer, semantics, {
|
|
72689
72695
|
params: path.get('parameters'),
|
|
72690
72696
|
});
|
|
72691
72697
|
print.space();
|
|
@@ -72713,6 +72719,7 @@ const {TSInterfaceBody} = tsInterfaceBody;
|
|
|
72713
72719
|
const {TSIntersectionType} = tsIntersectionType;
|
|
72714
72720
|
const {TSPropertySignature} = tsPropertySignature;
|
|
72715
72721
|
const {TSFunctionType} = tsFunctionType;
|
|
72722
|
+
const {printParams} = params;
|
|
72716
72723
|
|
|
72717
72724
|
var typescript$1 = {
|
|
72718
72725
|
TSAsExpression,
|
|
@@ -72771,23 +72778,17 @@ var typescript$1 = {
|
|
|
72771
72778
|
print('...');
|
|
72772
72779
|
print('__typeAnnotation');
|
|
72773
72780
|
},
|
|
72774
|
-
TSTypeParameterDeclaration(path,
|
|
72775
|
-
|
|
72776
|
-
|
|
72777
|
-
|
|
72778
|
-
|
|
72779
|
-
.forEach(print);
|
|
72780
|
-
|
|
72781
|
-
print('>');
|
|
72781
|
+
TSTypeParameterDeclaration(path, printer, semantics) {
|
|
72782
|
+
printParams(path, printer, semantics, {
|
|
72783
|
+
braceOpen: '<',
|
|
72784
|
+
braceClose: '>',
|
|
72785
|
+
});
|
|
72782
72786
|
},
|
|
72783
|
-
TSTypeParameterInstantiation(path,
|
|
72784
|
-
|
|
72785
|
-
|
|
72786
|
-
|
|
72787
|
-
|
|
72788
|
-
.forEach(print);
|
|
72789
|
-
|
|
72790
|
-
print('>');
|
|
72787
|
+
TSTypeParameterInstantiation(path, printer, semantics) {
|
|
72788
|
+
printParams(path, printer, semantics, {
|
|
72789
|
+
braceOpen: '<',
|
|
72790
|
+
braceClose: '>',
|
|
72791
|
+
});
|
|
72791
72792
|
},
|
|
72792
72793
|
TSTypeReference(path, {print}) {
|
|
72793
72794
|
print('__typeName');
|
|
@@ -109597,6 +109598,7 @@ function requireVersions () {
|
|
|
109597
109598
|
"25.0": "114",
|
|
109598
109599
|
"25.1": "114",
|
|
109599
109600
|
"25.2": "114",
|
|
109601
|
+
"25.3": "114",
|
|
109600
109602
|
"26.0": "116"
|
|
109601
109603
|
};
|
|
109602
109604
|
return versions;
|
package/package.json
CHANGED