Socket
Socket
Sign inDemoInstall

jsdoctypeparser

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdoctypeparser - npm Package Compare versions

Comparing version 2.0.0-alpha-8 to 3.0.0

24

package.json
{
"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

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