@es-joy/jsdoccomment
Advanced tools
Comparing version 0.24.0 to 0.25.0
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.25.0 | ||
- feat(`parseComment`): properly support whitespace | ||
- fix(`estreeToString`): carriage return placement for ending of JSDoc block | ||
- fix(`commentParserToESTree`): avoid adding initial space before a tag if on | ||
a single line | ||
- test: make tests more accurate to jsdoc semantically | ||
## 0.24.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
@@ -221,3 +221,3 @@ import {parse as jsdocTypePrattParse} from 'jsdoc-type-pratt-parser'; | ||
...tkns, | ||
initial: init, | ||
initial: endLine ? init : '', | ||
postDelimiter: lastDescriptionLine ? pd : '', | ||
@@ -224,0 +224,0 @@ delimiter: lastDescriptionLine ? de : '', |
@@ -30,4 +30,4 @@ import { | ||
}${endLine && !alreadyHasLine | ||
? ` | ||
${initial}${lineEnd}` | ||
? `${lineEnd} | ||
${initial}` | ||
: endLine ? ` ${initial}` : ''}${terminal}`; | ||
@@ -34,0 +34,0 @@ }, |
@@ -102,3 +102,3 @@ /* eslint-disable prefer-named-capture-group -- Temporary */ | ||
// Preserve JSDoc block start/end indentation. | ||
return commentParser(`/*${commentNode.value}*/`, { | ||
return commentParser(`${indent}/*${commentNode.value}*/`, { | ||
// @see https://github.com/yavorskiy/comment-parser/issues/21 | ||
@@ -105,0 +105,0 @@ tokenizers: getTokenizers() |
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
73478