Socket
Socket
Sign inDemoInstall

@es-joy/jsdoccomment

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-joy/jsdoccomment - npm Package Compare versions

Comparing version 0.24.0 to 0.25.0

8

CHANGES.md
# 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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc