Socket
Socket
Sign inDemoInstall

@es-joy/jsdoccomment

Package Overview
Dependencies
4
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.25.0 to 0.26.0

6

CHANGES.md
# CHANGES for `@es-joy/jsdoccomment`
## 0.26.0
- feat(`getJSDocComment`): allow function to detect comments just preceding a
parenthesized expression (these have no special AST but their tokens
have to be overpassed)
## 0.25.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@es-joy/jsdoccomment",
"version": "0.25.0",
"version": "0.26.0",
"author": "Brett Zamir <brettz9@yahoo.com>",

@@ -5,0 +5,0 @@ "contributors": [],

@@ -163,2 +163,14 @@ /**

) {
let token = node;
do {
token = sourceCode.getTokenBefore(token, {includeComments: true});
} while (token.type === 'Punctuator' && token.value === '(');
if (token.type === 'Block') {
return node;
}
if (sourceCode.getCommentsBefore(node).length) {
return node;
}
while (

@@ -165,0 +177,0 @@ !sourceCode.getCommentsBefore(parent).length &&

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc