Socket
Socket
Sign inDemoInstall

@es-joy/jsdoccomment

Package Overview
Dependencies
Maintainers
2
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.39.2 to 0.39.3

4

CHANGES.md
# CHANGES for `@es-joy/jsdoccomment`
## 0.39.3
- fix: add type details for Node range and settings
## 0.39.2

@@ -4,0 +8,0 @@

7

dist/jsdoccomment.d.ts
export type Token = import('eslint').AST.Token | import('estree').Comment | {
type: import('eslint').AST.TokenType | "Line" | "Block" | "Shebang";
range: [number, number];
value: string;

@@ -23,3 +24,3 @@ };

* the comment for.
* @param {{maxLines: int, minLines: int}} settings The
* @param {{maxLines: int, minLines: int, [name: string]: any}} settings The
* settings in context

@@ -32,2 +33,3 @@ * @returns {Token|null} The Block comment

export function getJSDocComment(sourceCode: import('eslint').SourceCode, node: import('eslint').Rule.Node, settings: {
[name: string]: any;
maxLines: int;

@@ -59,3 +61,3 @@ minLines: int;

* @param {import('eslint').SourceCode} sourceCode
* @param {{maxLines: int, minLines: int}} settings
* @param {{maxLines: int, minLines: int, [name: string]: any}} settings
* @returns {Token|null} The Block comment token containing the JSDoc comment

@@ -66,2 +68,3 @@ * for the given node or null if not found.

export function findJSDocComment(astNode: import('eslint').Rule.Node, sourceCode: import('eslint').SourceCode, settings: {
[name: string]: any;
maxLines: int;

@@ -68,0 +71,0 @@ minLines: int;

{
"name": "@es-joy/jsdoccomment",
"version": "0.39.2",
"version": "0.39.3",
"author": "Brett Zamir <brettz9@yahoo.com>",

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

@@ -10,2 +10,3 @@ /**

* type: import('eslint').AST.TokenType|"Line"|"Block"|"Shebang",
* range: [number, number],
* value: string

@@ -277,3 +278,3 @@ * }} Token

* @param {import('eslint').SourceCode} sourceCode
* @param {{maxLines: int, minLines: int}} settings
* @param {{maxLines: int, minLines: int, [name: string]: any}} settings
* @returns {Token|null} The Block comment token containing the JSDoc comment

@@ -341,3 +342,3 @@ * for the given node or null if not found.

* the comment for.
* @param {{maxLines: int, minLines: int}} settings The
* @param {{maxLines: int, minLines: int, [name: string]: any}} settings The
* settings in context

@@ -344,0 +345,0 @@ * @returns {Token|null} The Block comment

Sorry, the diff of this file is not supported yet

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