Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

comment-parser

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comment-parser - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# v0.5.3
- corrected TypeScript definitions
# v0.5.2

@@ -2,0 +5,0 @@ - added TypeScript definitions

40

index.d.ts

@@ -5,24 +5,26 @@ // Type definitions for comment-parser

interface Comment {
tags: Tag[];
line: number;
description: string;
source: string;
declare namespace CommentParser {
export interface Comment {
tags: Tag[];
line: number;
description: string;
source: string;
}
export interface Tag {
tag: string;
name: string;
optional: boolean;
type: string;
description: string;
line: number;
source: string;
}
export interface Options {
parsers?: [(str: string, data: any) => { source: string, data: any }];
dotted_names?: boolean;
}
}
interface Tag {
tag: string;
name: string;
optional: boolean;
type: string;
description: string;
line: number;
source: string;
}
interface Options {
parsers?: [(str: string, data: any) => { source: string, data: any }];
dotted_names?: boolean;
}
declare function parse(str: string, opts?: Options): [Comment];
declare function parse(str: string, opts?: CommentParser.Options): [CommentParser.Comment];
export = parse;
{
"name": "comment-parser",
"version": "0.5.2",
"version": "0.5.3",
"description": "Generic JSDoc-like comment parser. ",
"main": "index.js",
"types": "index.d.ts",
"directories": {

@@ -7,0 +8,0 @@ "test": "tests"

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