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

doctrine

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doctrine - npm Package Compare versions

Comparing version

to
1.1.0

19

lib/doctrine.js

@@ -585,2 +585,19 @@ /*

TagParser.prototype.parseThis = function parseAccess() {
// this name may be a name expression (e.g. {foo.bar})
// or a name path (e.g. foo.bar)
var value = trim(sliceSource(source, index, this._last));
if (value && value.charAt(0) === '{') {
var gotType = this.parseType();
if (gotType && this._tag.type.type === 'NameExpression') {
this._tag.name = this._tag.type.name;
return true;
} else {
return this.addError('Invalid name for this');
}
} else {
return this.parseNamePath();
}
};
TagParser.prototype.parseVariation = function parseVariation() {

@@ -692,3 +709,3 @@ var variation, text;

// http://usejsdoc.org/tags-this.html
'this': ['parseNamePath', 'ensureEnd'],
'this': ['parseThis', 'ensureEnd'],
// http://usejsdoc.org/tags-todo.html

@@ -695,0 +712,0 @@ 'todo': ['parseDescription'],

2

lib/typed.js

@@ -1003,3 +1003,3 @@ /*

elements = [ expr ];
elements = [expr];
consume(Token.PIPE);

@@ -1006,0 +1006,0 @@ while (true) {

@@ -6,3 +6,3 @@ {

"main": "lib/doctrine.js",
"version": "1.0.0",
"version": "1.1.0",
"engines": {

@@ -23,5 +23,10 @@ "node": ">=0.10.0"

{
"name": "Nicholas C. Zakas",
"email": "nicholas+npm@nczconsulting.com",
"web": "https://www.nczonline.net"
},
{
"name": "Yusuke Suzuki",
"email": "utatane.tea@gmail.com",
"web": "http://github.com/Constellation"
"web": "https://github.com/Constellation"
}

@@ -36,13 +41,4 @@ ],

"dateformat": "^1.0.11",
"eslint": "^1.9.0",
"gulp": "^3.8.10",
"gulp-bump": "^0.1.13",
"gulp-eslint": "^0.5.0",
"gulp-filter": "^2.0.2",
"gulp-git": "^1.0.0",
"gulp-istanbul": "^0.6.0",
"gulp-jshint": "^1.9.0",
"gulp-mocha": "^2.0.0",
"gulp-tag-version": "^1.2.1",
"jshint-stylish": "^1.0.0",
"eslint": "^1.10.3",
"istanbul": "^0.4.1",
"linefix": "^0.1.1",

@@ -63,6 +59,4 @@ "mocha": "^2.3.3",

"scripts": {
"test": "gulp",
"unit-test": "gulp test",
"lint": "gulp lint",
"coveralls": "cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
"test": "node Makefile.js test",
"lint": "node Makefile.js lint"
},

@@ -69,0 +63,0 @@ "dependencies": {