@buildingsblock/core
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -22,2 +22,3 @@ "use strict"; | ||
}); | ||
if (!stratasWithBudget.length) return null; | ||
var metrics = stratasWithBudget.map(function (x) { | ||
@@ -43,2 +44,3 @@ var _$orderBy = _lodash.default.orderBy(x.repairAndMaintenanceBudget, ['at'], ['desc']), | ||
}); | ||
if (!stratasWithBudget.length) return null; | ||
var metrics = stratasWithBudget.map(function (x) { | ||
@@ -63,2 +65,3 @@ var value = _lodash.default.orderBy(x.budget, ['at'], ['desc'])[0].value; | ||
}); | ||
if (!stratasWithContingencyReserveFund.length) return null; | ||
var metrics = stratasWithContingencyReserveFund.map(function (x) { | ||
@@ -81,2 +84,3 @@ var contingencyReserveFund = _lodash.default.orderBy(x.contingencyReserveFund, ['at'], ['desc'])[0].value; | ||
}); | ||
if (!stratasWithContingencyReserveFund.length) return null; | ||
var metrics = stratasWithContingencyReserveFund.map(function (x) { | ||
@@ -83,0 +87,0 @@ var contingencyReserveFund = _lodash.default.orderBy(x.contingencyReserveFund, ['at'], ['desc'])[0].value; |
{ | ||
"name": "@buildingsblock/core", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Core code base for Buildingsblock", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -110,7 +110,3 @@ import test from 'ava' | ||
const emptyStrata = [ | ||
{ | ||
budget: [], | ||
}, | ||
] | ||
const emptyStrata = [] | ||
@@ -159,7 +155,3 @@ const result = calcAverageBudgetPerSquareFoot(stratas) | ||
const emptyStrata = [ | ||
{ | ||
contingencyReserveFund: [], | ||
}, | ||
] | ||
const emptyStrata = [] | ||
@@ -209,7 +201,3 @@ const result = calcAverageRepairAndMaintenanceBudgetPerSquareFoot(stratas) | ||
const emptyStrata = [ | ||
{ | ||
repairAndMaintenanceBudget: [], | ||
}, | ||
] | ||
const emptyStrata = [] | ||
@@ -216,0 +204,0 @@ const result = calcAverageContingencyReserveFundPerBudget(stratas) |
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
371825
400