@putout/printer 8.39.0 → 8.39.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
@@ -1,3 +1,8 @@
1
+ 2024.05.27, v8.39.1
2
+
3
+ fix:
4
+ - 3248f64 @putout/printer: VariableDeclaration: loc
5
+
1
6
  2024.05.26, v8.39.0
2
7
 
3
8
  feature:
@@ -156,7 +156,7 @@ function isNextCoupleLines(path) {
156
156
  if (!exists(prev.getPrevSibling()) && next.isVariableDeclaration())
157
157
  return false;
158
158
 
159
- if (path.node.loc?.start.line === prev.node?.loc?.start.line + 2)
159
+ if (path.node.loc?.start.line === prev.node?.loc?.start?.line + 2)
160
160
  return false;
161
161
 
162
162
  return isCoupleLines(next);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "8.39.0",
3
+ "version": "8.39.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",
@@ -64,6 +64,7 @@
64
64
  "montag": "^1.0.0",
65
65
  "nodemon": "^3.0.1",
66
66
  "putout": "^35.0.0",
67
+ "samadhi": "^1.1.1",
67
68
  "supertape": "^10.0.0",
68
69
  "try-catch": "^3.0.0",
69
70
  "typescript": "^5.3.3"