escomplex-ast-moz
Advanced tools
Comparing version 0.1.6 to 0.2.1
{ | ||
"name": "escomplex-ast-moz", | ||
"version": "0.1.6", | ||
"description": "Mozilla-format AST walker for escomplex.", | ||
"homepage": "https://github.com/philbooth/escomplex-ast-moz", | ||
"bugs": "https://github.com/philbooth/escomplex-ast-moz/issues", | ||
"license": "MIT", | ||
"author": "Phil Booth <pmbooth@gmail.com> (https://github.com/philbooth)", | ||
"main": "./src", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/philbooth/escomplex-ast-moz.git" | ||
}, | ||
"keywords": [ | ||
"escomplex", | ||
"complexity", | ||
"simplicity", | ||
"cyclomatic", | ||
"halstead", | ||
"maintainability", | ||
"dependencies", | ||
"static", | ||
"analysis", | ||
"metrics", | ||
"ast", | ||
"walker" | ||
], | ||
"dependencies": { | ||
"check-types": "2.1.x", | ||
"escomplex-traits": "0.2.x" | ||
}, | ||
"devDependencies": { | ||
"jshint": "2.1.x", | ||
"mocha": "1.13.x", | ||
"chai": "1.8.x", | ||
"esprima": "1.0.x" | ||
}, | ||
"scripts": { | ||
"lint": "./node_modules/jshint/bin/jshint src --config config/jshint.json", | ||
"test": "./node_modules/mocha/bin/mocha --ui tdd --reporter spec --colors test" | ||
} | ||
"name": "escomplex-ast-moz", | ||
"version": "0.2.1", | ||
"description": "Mozilla-format AST walker for escomplex.", | ||
"homepage": "https://github.com/jared-stilwell/escomplex-ast-moz", | ||
"bugs": "https://github.com/jared-stilwell/escomplex-ast-moz/issues", | ||
"license": "MIT", | ||
"author": "Jared Stilwell <jared.k.stilwell@gmail.com> (https://github.com/jared-stilwell)", | ||
"main": "./src", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jared-stilwell/escomplex-ast-moz.git" | ||
}, | ||
"keywords": [ | ||
"escomplex", | ||
"complexity", | ||
"simplicity", | ||
"cyclomatic", | ||
"halstead", | ||
"maintainability", | ||
"dependencies", | ||
"static", | ||
"analysis", | ||
"metrics", | ||
"ast", | ||
"walker" | ||
], | ||
"dependencies": { | ||
"check-types": "~4", | ||
"escomplex-traits": "0.2.x" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.3.0", | ||
"esprima": "2.6.x", | ||
"jshint": "2.8.x", | ||
"mocha": "2.3.x", | ||
"sinon": "^1.16.1" | ||
}, | ||
"scripts": { | ||
"lint": "./node_modules/jshint/bin/jshint src --config config/jshint.json", | ||
"test": "./node_modules/mocha/bin/mocha --ui tdd --reporter spec --colors test" | ||
} | ||
} | ||
# escomplex-ast-moz | ||
[![Build status][ci-image]][ci-status] | ||
[![Dependencies][dep-image]][dep-status] | ||
[![Dev Dependencies][devdep-image]][devdep-status] | ||
@@ -12,7 +14,11 @@ [Mozilla-format AST][parserapi] walker | ||
[ci-image]: https://secure.travis-ci.org/philbooth/escomplex-ast-moz.png?branch=master | ||
[ci-status]: http://travis-ci.org/#!/philbooth/escomplex-ast-moz | ||
[ci-image]: https://secure.travis-ci.org/jared-stilwell/escomplex-ast-moz.png?branch=master | ||
[ci-status]: http://travis-ci.org/#!/jared-stilwell/escomplex-ast-moz | ||
[dep-image]: https://david-dm.org/jared-stilwell/escomplex-ast-moz.svg | ||
[dep-status]: https://david-dm.org/jared-stilwell/escomplex-ast-moz | ||
[devdep-image]:https://david-dm.org/jared-stilwell/escomplex-ast-moz/dev-status.svg | ||
[devdep-status]: https://david-dm.org/jared-stilwell/escomplex-ast-moz#info=devDependencies&view=table | ||
[parserapi]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API | ||
[escomplex]: https://github.com/philbooth/escomplex | ||
[license]: https://github.com/philbooth/escomplex-ast-moz/blob/master/COPYING | ||
[escomplex]: https://github.com/jared-stilwell/escomplex | ||
[license]: https://github.com/jared-stilwell/escomplex-ast-moz/blob/master/COPYING | ||
@@ -13,2 +13,8 @@ /*globals exports, require */ | ||
// Settings | ||
// - trycatch (Boolean) | ||
// - forin (Boolean) | ||
// - logicalor (Boolean) | ||
// - switchcase (Boolean) | ||
// | ||
function walk (tree, settings, callbacks) { | ||
@@ -15,0 +21,0 @@ var syntaxes; |
@@ -8,7 +8,7 @@ /*globals require, module */ | ||
module.exports = function (object, defaultName) { | ||
if (check.object(object) && check.unemptyString(object.name)) { | ||
if (check.object(object) && check.nonEmptyString(object.name)) { | ||
return object.name; | ||
} | ||
if (check.unemptyString(defaultName)) { | ||
if (check.nonEmptyString(defaultName)) { | ||
return defaultName; | ||
@@ -15,0 +15,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
34484
48
911
24
5
2
1
+ Addedcheck-types@4.3.0(transitive)
- Removedcheck-types@2.1.1(transitive)
Updatedcheck-types@~4