@putout/printer 18.44.0 → 18.44.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
+ 2026.09.12, v18.44.1
2
+
3
+ fix:
4
+ - 4b4e5037 comments: parse-trailing-comments: no loc
5
+
1
6
  2026.09.10, v18.44.0
2
7
 
3
8
  feature:
@@ -76,6 +76,9 @@ function isCommentOnNextLine(path) {
76
76
  if (next.node && line < next.node.loc?.start.line)
77
77
  return false;
78
78
 
79
+ if (!loc)
80
+ return true;
81
+
79
82
  const startLine = loc.start.line;
80
83
  const endLine = loc.end.line;
81
84
  const isNextLine = line === startLine + 1 && line === endLine + 1;
@@ -4,7 +4,9 @@ import {
4
4
  } from '#is';
5
5
  import {createTypeChecker} from '#type-checker';
6
6
 
7
- const callWithLastDecorator = (fn) => (path) => fn(path.get('decorators').at(-1));
7
+ const callWithLastDecorator = (fn) => (path) => fn(
8
+ path.get('decorators').at(-1),
9
+ );
8
10
 
9
11
  const isIndent = createTypeChecker([
10
12
  ['-', hasLeadingComment],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "18.44.0",
3
+ "version": "18.44.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",