@putout/printer 14.0.1 → 14.1.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/ChangeLog
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const {types} = require('@putout/babel');
|
|
4
4
|
|
|
5
|
+
const {isParentBlock} = require('#is');
|
|
5
6
|
const {markAfter, isMarkedAfter} = require('../../mark');
|
|
6
7
|
|
|
7
8
|
const {
|
|
@@ -115,7 +116,10 @@ module.exports.ExportNamedDeclaration = {
|
|
|
115
116
|
if (isDeclarationNewline(path))
|
|
116
117
|
return false;
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
if (isNewlineBetweenSiblings(path))
|
|
120
|
+
return true;
|
|
121
|
+
|
|
122
|
+
return isParentBlock(path);
|
|
119
123
|
},
|
|
120
124
|
after(path, {print}) {
|
|
121
125
|
print.newline();
|
package/package.json
CHANGED