🚀 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.4.0

test/literal.js

2

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

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

@@ -87,2 +87,4 @@ # Getdocs

* A string literal, enclosed by double quotes.
Here are some examples of types:

@@ -100,2 +102,4 @@

* An array of `CommandSpec`s or the string "schema": `union<[CommandSpec], "schema">`
## Tags

@@ -102,0 +106,0 @@

@@ -92,3 +92,3 @@ module.exports = function(string, start, loc) {

} else {
var name = input.match(/^[\w$]+(?:\.[\w$]+)*/)
var name = input.match(/^(?:[\w$]+(?:\.[\w$]+)*|"(?:[^"]|\.)*")/)
if (!name) input.error("Unexpected syntax: " + input.str.slice(input.pos, input.pos + 5))

@@ -95,0 +95,0 @@ type.type = name[0]