@putout/printer 1.132.0 → 1.133.1
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/ChangeLog
CHANGED
|
@@ -9,6 +9,7 @@ const {
|
|
|
9
9
|
isIdentifier,
|
|
10
10
|
isCallExpression,
|
|
11
11
|
isBooleanLiteral,
|
|
12
|
+
isObjectExpression,
|
|
12
13
|
} = require('@babel/types');
|
|
13
14
|
|
|
14
15
|
const {isSimple} = require('@putout/operate');
|
|
@@ -211,7 +212,7 @@ function isOneSimple(path) {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
function isNewlineBetweenElements(path, {elements}) {
|
|
214
|
-
if (elements.length > 3)
|
|
215
|
+
if (elements.length > 3 && !isObjectExpression(elements[0]))
|
|
215
216
|
return true;
|
|
216
217
|
|
|
217
218
|
if (isOneSimple(path))
|
package/package.json
CHANGED