🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

getdocs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getdocs - npm Package Compare versions

Comparing version

to
0.3.0

2

package.json
{
"name": "getdocs",
"version": "0.2.0",
"version": "0.3.0",
"description": "An extractor for succinct documentation comments in JavaScript code",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -66,5 +66,7 @@ # Getdocs

properties, which are a dot character followed by a JavaScript
identifier.
identifier. A type name can be followed by a list of content types,
between angle brackets, as in `Object<string>`.
* An array type, which is a type wrapped in `[` and `]`.
* An array type, which is a type wrapped in `[` and `]`. `[x]` is
equivalent to `Array<x>`.

@@ -147,6 +149,4 @@ * A function type, which is written as a parenthesized list of

* **file**: The filename where the item was found.
* **loc**: A `{line, column, file}` object pointing at the start of the item.
* **loc**: A `{line, column}` object pointing at the start of the item.
* **exported**: Set if the item is exported.

@@ -186,5 +186,5 @@

* **content**: For array types, this holds the type of the array's
elements.
* **content**: For array types or named types with content (angle
brackets) specification, this holds an array of content types.
* **optional**: Set for nullable types.

@@ -370,3 +370,3 @@ var docComments = require("./doccomments")

var m, parts = [], rest = path, pound = ""
while (rest && (m = /^(\[.*?\]|[\w$]+)(\.|#)?/.exec(rest))) {
while (rest && (m = /^(\[.*?\]|[^\s\.#]+)(\.|#)?/.exec(rest))) {
parts.push(pound + m[1])

@@ -373,0 +373,0 @@ rest = rest.slice(m[0].length)