@es-joy/jsdoccomment
Advanced tools
Comparing version 0.34.0 to 0.35.0
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.35.0 | ||
- fix: allow newline even for 1st line (after 0th) | ||
- feat: add `hasPreterminalDescription` property | ||
## 0.34.0 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.34.0", | ||
"version": "0.35.0", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
@@ -111,2 +111,4 @@ # @es-joy/jsdoccomment | ||
ends | ||
5. `hasPreterminalDescription` - Set to 0 or 1. On if has a description on the | ||
same line as the terminal `*/`. | ||
@@ -113,0 +115,0 @@ May also have the following non-visitable properties from `comment-parser`: |
@@ -146,2 +146,3 @@ import {parse as jsdocTypePrattParse} from 'jsdoc-type-pratt-parser'; | ||
terminal: endRoot, | ||
hasPreterminalDescription: 0, | ||
endLine, | ||
@@ -195,2 +196,3 @@ postDelimiter: postDelimiterRoot, | ||
if (description) { | ||
ast.hasPreterminalDescription = 1; | ||
ast.description += (ast.description ? '\n' : '') + description; | ||
@@ -306,3 +308,3 @@ ast.descriptionLines.push({ | ||
if (!tag) { | ||
holder.description += idx <= 1 && !lastTag | ||
holder.description += (!holder.description && !lastTag) | ||
? description | ||
@@ -309,0 +311,0 @@ : '\n' + description; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70336
1572
219