jsdoctypeparser
Advanced tools
Comparing version 5.1.1 to 6.0.0
{ | ||
"extends": "eslint:recommended", | ||
"env": { | ||
@@ -3,0 +4,0 @@ "node": true, |
'use strict'; | ||
const {OPTIONAL} = require('./NodeType'); | ||
const {OptionalTypeSyntax} = require('./SyntaxType'); | ||
const {OptionalTypeSyntax, VariadicTypeSyntax} = require('./SyntaxType'); | ||
const {format} = require('util'); | ||
@@ -65,3 +65,3 @@ | ||
VARIADIC (variadicNode, concretePublish) { | ||
if (!variadicNode.value) { | ||
if (variadicNode.meta.syntax === VariadicTypeSyntax.ONLY_DOTS) { | ||
return '...'; | ||
@@ -173,3 +173,3 @@ } | ||
}, | ||
EXTERNAL (externalNode, concretePublish) { | ||
EXTERNAL (externalNode /* , concretePublish */) { | ||
const {name, quoteStyle} = externalNode; | ||
@@ -176,0 +176,0 @@ return format('external:%s', addQuotesForName(name, quoteStyle)); |
{ | ||
"name": "jsdoctypeparser", | ||
"description": "Strict JsDoc type expression parser.", | ||
"version": "5.1.1", | ||
"version": "6.0.0", | ||
"author": "Kuniwak <orga.chem.job@gmail.com>", | ||
@@ -37,3 +37,3 @@ "contributors": [ | ||
"lint": "eslint .", | ||
"mocha": "mocha tests", | ||
"mocha": "mocha tests/test_*", | ||
"typecheck": "tsc", | ||
@@ -52,8 +52,8 @@ "clean": "rimraf ./peg_lib", | ||
"devDependencies": { | ||
"@types/node": "^12.7.10", | ||
"@types/node": "^12.12.7", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.5.1", | ||
"husky": "^3.0.8", | ||
"eslint": "^6.6.0", | ||
"husky": "^3.0.9", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^6.2.1", | ||
"mocha": "^6.2.2", | ||
"npm-run-all": "^4.1.5", | ||
@@ -63,5 +63,5 @@ "object.entries-ponyfill": "^1.0.1", | ||
"rimraf": "^3.0.0", | ||
"typescript": "^3.6.3" | ||
"typescript": "^3.7.2" | ||
}, | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
278325
38
7685