@es-joy/jsdoccomment
Advanced tools
Comparing version 0.9.0-alpha.5 to 0.9.0-alpha.6
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.9.0-alpha.6 | ||
### User-impacting | ||
- Update: For `ocmment-parser` update, add `lineEnd` | ||
## 0.9.0-alpha.5 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.9.0-alpha.5", | ||
"version": "0.9.0-alpha.6", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -49,3 +49,3 @@ "contributors": [], | ||
"dependencies": { | ||
"comment-parser": "1.1.6-beta.2", | ||
"comment-parser": "1.1.6-beta.3", | ||
"esquery": "^1.4.0", | ||
@@ -52,0 +52,0 @@ "jsdoc-type-pratt-parser": "1.0.4" |
@@ -23,2 +23,3 @@ import {parse as jsdocTypePrattParse} from 'jsdoc-type-pratt-parser'; | ||
delimiter: delimiterRoot, | ||
lineEnd: lineEndRoot, | ||
postDelimiter: postDelimiterRoot, | ||
@@ -37,2 +38,3 @@ end: endRoot, | ||
postDelimiter: postDelimiterRoot, | ||
lineEnd: lineEndRoot, | ||
@@ -39,0 +41,0 @@ type: 'JsdocBlock' |
@@ -62,5 +62,5 @@ /* eslint-disable prefer-named-capture-group -- Temporary */ | ||
const extra = remainder.slice(pos + 1); | ||
let postName = '', description = ''; | ||
let postName = '', description = '', lineEnd = ''; | ||
if (pos > -1) { | ||
[, postName, description] = extra.match(/(\s*)(.*)/u); | ||
[, postName, description, lineEnd] = extra.match(/(\s*)([^\r]*)(\r)?/u); | ||
} | ||
@@ -74,2 +74,3 @@ | ||
tokens.description = description; | ||
tokens.lineEnd = lineEnd || ''; | ||
@@ -111,2 +112,3 @@ return spec; | ||
description: '', | ||
lineEnd: '', | ||
end: '', | ||
@@ -122,2 +124,3 @@ postDelimiter: '', | ||
description: '', | ||
lineEnd: '', | ||
end: '*/', | ||
@@ -124,0 +127,0 @@ postDelimiter: '', |
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
45046
1016
+ Addedcomment-parser@1.1.6-beta.3(transitive)
- Removedcomment-parser@1.1.6-beta.2(transitive)
Updatedcomment-parser@1.1.6-beta.3