Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

escomplex-plugin-metrics-module

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escomplex-plugin-metrics-module - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

12

dist/PluginMetricsModule.js

@@ -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');

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