@putout/bundle 3.18.2 → 3.18.3
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.js +15 -12
- package/bundle/putout.min.js +1 -1
- package/package.json +3 -2
package/bundle/putout.js
CHANGED
|
@@ -47186,7 +47186,7 @@ function Identifier$1$1(node, parent, tokenContext, _inForInit, getRawIdentifier
|
|
|
47186
47186
|
await: false
|
|
47187
47187
|
});
|
|
47188
47188
|
}
|
|
47189
|
-
var parens$
|
|
47189
|
+
var parens$1 = /* @__PURE__ */ Object.freeze({
|
|
47190
47190
|
__proto__: null,
|
|
47191
47191
|
ArrowFunctionExpression: ConditionalExpression$1,
|
|
47192
47192
|
AssignmentExpression: AssignmentExpression$1,
|
|
@@ -47284,7 +47284,7 @@ function expandAliases(obj) {
|
|
|
47284
47284
|
}
|
|
47285
47285
|
return map;
|
|
47286
47286
|
}
|
|
47287
|
-
var expandedParens = expandAliases(parens$
|
|
47287
|
+
var expandedParens = expandAliases(parens$1);
|
|
47288
47288
|
var expandedWhitespaceNodes = expandAliases(nodes);
|
|
47289
47289
|
function isOrHasCallExpression(node) {
|
|
47290
47290
|
if (isCallExpression$1$1(node)) {
|
|
@@ -79240,9 +79240,9 @@ function isOneArgArrow(path) {
|
|
|
79240
79240
|
return param.type === 'Identifier';
|
|
79241
79241
|
}
|
|
79242
79242
|
|
|
79243
|
-
var
|
|
79243
|
+
var maybeParens$8 = {};
|
|
79244
79244
|
|
|
79245
|
-
|
|
79245
|
+
maybeParens$8.maybeParens = (print) => ({
|
|
79246
79246
|
condition(path) {
|
|
79247
79247
|
return path.node.extra?.parenthesized;
|
|
79248
79248
|
},
|
|
@@ -79257,7 +79257,7 @@ parens$1.maybeParens = (print) => ({
|
|
|
79257
79257
|
|
|
79258
79258
|
const {exists: exists$e} = is$3;
|
|
79259
79259
|
const {printParams: printParams$c} = params;
|
|
79260
|
-
const {maybeParens: maybeParens$7} =
|
|
79260
|
+
const {maybeParens: maybeParens$7} = maybeParens$8;
|
|
79261
79261
|
|
|
79262
79262
|
arrowFunctionExpression.ArrowFunctionExpression = maybeParens$7((path, printer, semantics) => {
|
|
79263
79263
|
const {
|
|
@@ -79515,7 +79515,7 @@ var functionExpression = {};
|
|
|
79515
79515
|
|
|
79516
79516
|
const {exists: exists$d} = is$3;
|
|
79517
79517
|
const {printParams: printParams$8} = params;
|
|
79518
|
-
const {maybeParens: maybeParens$6} =
|
|
79518
|
+
const {maybeParens: maybeParens$6} = maybeParens$8;
|
|
79519
79519
|
|
|
79520
79520
|
functionExpression.FunctionExpression = maybeParens$6((path, printer, semantics) => {
|
|
79521
79521
|
const {
|
|
@@ -79567,7 +79567,7 @@ var unaryExpressions$1 = {};
|
|
|
79567
79567
|
|
|
79568
79568
|
const {isLast: isLast$b, isNext: isNext$m} = is$3;
|
|
79569
79569
|
|
|
79570
|
-
const {maybeParens: maybeParens$5} =
|
|
79570
|
+
const {maybeParens: maybeParens$5} = maybeParens$8;
|
|
79571
79571
|
|
|
79572
79572
|
const isWord = (a) => /^(delete|typeof|void|throw)$/.test(a);
|
|
79573
79573
|
|
|
@@ -79919,7 +79919,7 @@ _class.ClassDeclaration = {
|
|
|
79919
79919
|
var callExpression = {};
|
|
79920
79920
|
|
|
79921
79921
|
const {exists: exists$c} = is$3;
|
|
79922
|
-
const {maybeParens: maybeParens$4} =
|
|
79922
|
+
const {maybeParens: maybeParens$4} = maybeParens$8;
|
|
79923
79923
|
const {isArray: isArray$h} = Array;
|
|
79924
79924
|
|
|
79925
79925
|
const parseArgs = (path) => {
|
|
@@ -84327,7 +84327,7 @@ maybeGet.maybeDecorators = (path) => {
|
|
|
84327
84327
|
};
|
|
84328
84328
|
|
|
84329
84329
|
const {maybeDecorators} = maybeGet;
|
|
84330
|
-
const {maybeParens: maybeParens$3} =
|
|
84330
|
+
const {maybeParens: maybeParens$3} = maybeParens$8;
|
|
84331
84331
|
const {maybeTypeAnnotation} = maybeTypeAnnotation$4;
|
|
84332
84332
|
|
|
84333
84333
|
identifier.Identifier = maybeParens$3(maybeTypeAnnotation((path, printer) => {
|
|
@@ -84479,6 +84479,9 @@ tsTypeLiteral.TSTypeLiteral = (path, {indent, traverse, write}) => {
|
|
|
84479
84479
|
function isNewline(path) {
|
|
84480
84480
|
const members = path.get('members');
|
|
84481
84481
|
|
|
84482
|
+
if (members.length === 1 && path.parentPath.isTSTypeParameterInstantiation())
|
|
84483
|
+
return false;
|
|
84484
|
+
|
|
84482
84485
|
return members.length && members[0].node.typeAnnotation;
|
|
84483
84486
|
}
|
|
84484
84487
|
|
|
@@ -84804,7 +84807,7 @@ tsInterfaceDeclaration.TSInterfaceDeclaration = {
|
|
|
84804
84807
|
|
|
84805
84808
|
var tsAsExpression = {};
|
|
84806
84809
|
|
|
84807
|
-
const {maybeParens: maybeParens$2} =
|
|
84810
|
+
const {maybeParens: maybeParens$2} = maybeParens$8;
|
|
84808
84811
|
const {
|
|
84809
84812
|
isVariableDeclarator,
|
|
84810
84813
|
isObjectExpression: isObjectExpression$1,
|
|
@@ -84938,7 +84941,7 @@ printReturnType$5.printReturnType = (path, {traverse}) => {
|
|
|
84938
84941
|
const {printParams: printParams$5} = params;
|
|
84939
84942
|
const {printReturnType: printReturnType$4} = printReturnType$5;
|
|
84940
84943
|
|
|
84941
|
-
const {maybeParens: maybeParens$1} =
|
|
84944
|
+
const {maybeParens: maybeParens$1} = maybeParens$8;
|
|
84942
84945
|
|
|
84943
84946
|
tsFunctionType.TSFunctionType = maybeParens$1((path, printer, semantics) => {
|
|
84944
84947
|
const {print} = printer;
|
|
@@ -85151,7 +85154,7 @@ tsTypeReference.TSTypeReference = (path, {print}) => {
|
|
|
85151
85154
|
|
|
85152
85155
|
var tsInfertType = {};
|
|
85153
85156
|
|
|
85154
|
-
const {maybeParens} =
|
|
85157
|
+
const {maybeParens} = maybeParens$8;
|
|
85155
85158
|
|
|
85156
85159
|
tsInfertType.TSInferType = maybeParens((path, {print}) => {
|
|
85157
85160
|
print('infer ');
|