@es-joy/jsdoccomment
Advanced tools
Comparing version 0.23.5 to 0.23.6
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.23.6 | ||
- fix(`commentParserToESTree`): ensure `postType` added after multi-line type | ||
- fix(`estreeToString`): ensure `JsdocTypeLine` stringified with `initial` and | ||
that they are joined together with newlines | ||
## 0.23.5 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.23.5", | ||
"version": "0.23.6", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
@@ -203,2 +203,3 @@ import {parse as jsdocTypePrattParse} from 'jsdoc-type-pratt-parser'; | ||
postName, | ||
postType, | ||
tag: tg | ||
@@ -210,2 +211,3 @@ }} = source[idx + i]; | ||
if (name) { | ||
tkns.postType = postType; | ||
tkns.name = name; | ||
@@ -212,0 +214,0 @@ tkns.postName = postName; |
@@ -41,3 +41,3 @@ import { | ||
}) { | ||
return `${delimiter}${postDelimiter}{${rawType}}`; | ||
return `${initial}${delimiter}${postDelimiter}${rawType}`; | ||
}, | ||
@@ -58,3 +58,3 @@ JsdocTag (node, parsedType, typeLines, descriptionLines) { | ||
// We can't use raw `typeLines` as first argument has delimiter on it | ||
typeLines | ||
typeLines.length ? `{${typeLines.join('\n')}}` : '' | ||
}${postType}${ | ||
@@ -61,0 +61,0 @@ name ? `${name}${postName || (description ? '\n' : '')}` : '' |
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
71810
1466