@dra2020/district-analytics 7.1.2 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +6 -1
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -103663,7 +103663,12 @@ function doFindCountiesSplitUnexpectedly(s, bLog = false) {
|
|
|
103663
103663
|
}
|
|
103664
103664
|
// ... and convert the FIPS codes to county names.
|
|
103665
103665
|
for (let fips of countiesSplitUnexpectedlyFIPS) {
|
|
103666
|
-
|
|
103666
|
+
const name = s.counties.nameFromFIPS(fips);
|
|
103667
|
+
// 07-06-20 - Guard in case the FIPS code isn't in the county name lookup
|
|
103668
|
+
if (name)
|
|
103669
|
+
countiesSplitUnexpectedly.push(name);
|
|
103670
|
+
else
|
|
103671
|
+
console.log("County is not in the FIPS-to-name lookup table: ", fips);
|
|
103667
103672
|
}
|
|
103668
103673
|
countiesSplitUnexpectedly = countiesSplitUnexpectedly.sort();
|
|
103669
103674
|
test['score'] = U.trim(unexpectedAffected);
|