escomplex-plugin-metrics-module
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -325,4 +325,4 @@ 'use strict'; | ||
_this._calculateCyclomaticDensity(classReport.methodReport); | ||
_this._calculateHalsteadMetrics(classReport.methodReport.halstead); | ||
_this._calculateCyclomaticDensity(classReport.aggregateMethodReport); | ||
_this._calculateHalsteadMetrics(classReport.aggregateMethodReport.halstead); | ||
@@ -333,3 +333,3 @@ // If there are no class methods use the class aggregate MethodReport. | ||
moduleMethodAverageKeys.forEach(function (averageKey) { | ||
var targetValue = _ObjectUtil2.default.safeAccess(classReport.methodReport, averageKey, 0); | ||
var targetValue = _ObjectUtil2.default.safeAccess(classReport.aggregateMethodReport, averageKey, 0); | ||
@@ -349,4 +349,4 @@ _ObjectUtil2.default.safeSet(classMethodAverages, averageKey, targetValue, 'add'); | ||
this._calculateCyclomaticDensity(report.methodReport); | ||
this._calculateHalsteadMetrics(report.methodReport.halstead); | ||
this._calculateCyclomaticDensity(report.aggregateMethodReport); | ||
this._calculateHalsteadMetrics(report.aggregateMethodReport.halstead); | ||
@@ -357,3 +357,3 @@ // If there are no module methods use the module aggregate MethodReport. | ||
moduleMethodAverageKeys.forEach(function (averageKey) { | ||
var targetValue = _ObjectUtil2.default.safeAccess(report.methodReport, averageKey, 0); | ||
var targetValue = _ObjectUtil2.default.safeAccess(report.aggregateMethodReport, averageKey, 0); | ||
@@ -360,0 +360,0 @@ _ObjectUtil2.default.safeSet(moduleMethodAverages, averageKey, targetValue, 'add'); |
{ | ||
"name": "escomplex-plugin-metrics-module", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"homepage": "https://github.com/typhonjs-node-escomplex/escomplex-plugin-metrics-module/", | ||
@@ -23,6 +23,6 @@ "description": "Provides the core module metric / report generation plugin for typhonjs-escomplex module processing.", | ||
"dependencies": { | ||
"typhonjs-escomplex-commons": "^0.0.12" | ||
"typhonjs-escomplex-commons": "^0.0.13" | ||
}, | ||
"devDependencies": { | ||
"escomplex-plugin-syntax-babylon": "^0.0.8", | ||
"escomplex-plugin-syntax-babylon": "^0.0.9", | ||
"typhonjs-ast-walker": "^0.1.0", | ||
@@ -29,0 +29,0 @@ "typhonjs-config-eslint": "^0.4.0", |
@@ -297,4 +297,4 @@ import HalsteadArray from 'typhonjs-escomplex-commons/src/module/traits/HalsteadArray'; | ||
this._calculateCyclomaticDensity(classReport.methodReport); | ||
this._calculateHalsteadMetrics(classReport.methodReport.halstead); | ||
this._calculateCyclomaticDensity(classReport.aggregateMethodReport); | ||
this._calculateHalsteadMetrics(classReport.aggregateMethodReport.halstead); | ||
@@ -307,3 +307,3 @@ // If there are no class methods use the class aggregate MethodReport. | ||
{ | ||
const targetValue = ObjectUtil.safeAccess(classReport.methodReport, averageKey, 0); | ||
const targetValue = ObjectUtil.safeAccess(classReport.aggregateMethodReport, averageKey, 0); | ||
@@ -325,4 +325,4 @@ ObjectUtil.safeSet(classMethodAverages, averageKey, targetValue, 'add'); | ||
this._calculateCyclomaticDensity(report.methodReport); | ||
this._calculateHalsteadMetrics(report.methodReport.halstead); | ||
this._calculateCyclomaticDensity(report.aggregateMethodReport); | ||
this._calculateHalsteadMetrics(report.aggregateMethodReport.halstead); | ||
@@ -335,3 +335,3 @@ // If there are no module methods use the module aggregate MethodReport. | ||
{ | ||
const targetValue = ObjectUtil.safeAccess(report.methodReport, averageKey, 0); | ||
const targetValue = ObjectUtil.safeAccess(report.aggregateMethodReport, averageKey, 0); | ||
@@ -338,0 +338,0 @@ ObjectUtil.safeSet(moduleMethodAverages, averageKey, targetValue, 'add'); |
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
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
50880
+ Addedtyphonjs-escomplex-commons@0.0.13(transitive)
- Removedtyphonjs-escomplex-commons@0.0.12(transitive)