Socket
Socket
Sign inDemoInstall

escomplex-ast-moz

Package Overview
Dependencies
2
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.6 to 0.2.1

.travis.yml

82

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc