jsdoctypeparser
Advanced tools
Comparing version 2.0.0-alpha-8 to 3.0.0
{ | ||
"name": "jsdoctypeparser", | ||
"description": "Strict JsDoc type expression parser.", | ||
"version": "2.0.0-alpha-8", | ||
"version": "3.0.0", | ||
"author": "Kuniwak <orga.chem.job@gmail.com>", | ||
"contributors": [ | ||
"Brett Zamir", | ||
"Nathan Shively-Sanders" | ||
], | ||
"keywords": [ | ||
@@ -15,2 +19,6 @@ "jsdoc", | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"homepage": "http://kuniwak.github.io/jsdoctypeparser/", | ||
"bugs": { | ||
@@ -25,3 +33,3 @@ "mail": "orga.chem.job@gmail.com", | ||
"scripts": { | ||
"prepublidh": "npm-run-all build", | ||
"prepare": "npm-run-all build", | ||
"pretest": "npm-run-all lint build", | ||
@@ -33,12 +41,12 @@ "test": "mocha tests", | ||
"prebuild": "npm-run-all clean", | ||
"build": "pegjs --cache ./peg_src/jsdoctype.pegjs ./peg_lib/jsdoctype.js" | ||
"build": "pegjs --cache -o ./peg_lib/jsdoctype.js ./peg_src/jsdoctype.pegjs" | ||
}, | ||
"readmeFilename": "README.md", | ||
"devDependencies": { | ||
"chai": "^2.2.0", | ||
"eslint": "^0.20.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^5.8.0", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^2.2.4", | ||
"npm-run-all": "^2.1.0", | ||
"pegjs": "^0.9.0", | ||
"mocha": "^5.2.0", | ||
"npm-run-all": "^4.1.3", | ||
"pegjs": "^0.10.0", | ||
"rimraf": "^2.5.2" | ||
@@ -45,0 +53,0 @@ }, |
@@ -18,3 +18,3 @@ 'use strict'; | ||
describe('Parser', function() { | ||
it('should not throw any errors when parsing tests/fixutures/*', function() { | ||
it('should not throw any errors when parsing tests/fixtures/*', function() { | ||
Object.keys(Fixtures).forEach(function(fixtureName) { | ||
@@ -21,0 +21,0 @@ Fixtures[fixtureName].forEach(function(fixture) { |
@@ -387,15 +387,2 @@ 'use strict'; | ||
it('should return a variadic type node when "...variadicType" arrived', function() { | ||
var typeExprStr = '...variadicType'; | ||
var node = Parser.parse(typeExprStr); | ||
var expectedNode = createVariadicTypeNode( | ||
createTypeNameNode('variadicType'), | ||
VariadicTypeSyntax.PREFIX_DOTS | ||
); | ||
expect(node).to.deep.equal(expectedNode); | ||
}); | ||
it('should return a record type node when "{}" arrived', function() { | ||
@@ -816,2 +803,15 @@ var typeExprStr = '{}'; | ||
it('should return a variadic type node when "..." arrived', function() { | ||
var typeExprStr = '...'; | ||
var node = Parser.parse(typeExprStr); | ||
var expectedNode = createVariadicTypeNode( | ||
null, | ||
VariadicTypeSyntax.ONLY_DOTS | ||
); | ||
expect(node).to.deep.equal(expectedNode); | ||
}); | ||
it('should return a variadic type node when "...!Object" arrived', function() { | ||
@@ -1220,11 +1220,2 @@ var typeExprStr = '...!Object'; | ||
it('should throw a syntax error when "..." arrived', function() { | ||
var typeExprStr = '...'; | ||
expect(function() { | ||
Parser.parse(typeExprStr); | ||
}).to.throw(Parser.SyntaxError); | ||
}); | ||
describe('operator precedence', function() { | ||
@@ -1231,0 +1222,0 @@ context('when "Foo|function():Returned?" arrived', function() { |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6875
1
330603
47
1