@7365admin1/module-hygiene 3.0.0 → 4.0.0
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/CHANGELOG.md +6 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1051,12 +1051,12 @@ function useAreaService() {
|
|
|
1051
1051
|
skippedRows.push(i + 1);
|
|
1052
1052
|
continue;
|
|
1053
1053
|
}
|
|
1054
|
-
if (!row?.
|
|
1055
|
-
logger5.warn(`Skipping row ${i + 1} with missing
|
|
1054
|
+
if (!row?.AREA) {
|
|
1055
|
+
logger5.warn(`Skipping row ${i + 1} with missing AREA:`, row);
|
|
1056
1056
|
skippedRows.push(i + 1);
|
|
1057
1057
|
continue;
|
|
1058
1058
|
}
|
|
1059
|
-
const areaName = String(row.
|
|
1059
|
+
const areaName = String(row.AREA).trim();
|
|
1060
1060
|
if (!areaName) {
|
|
1061
1061
|
logger5.warn(`Skipping row ${i + 1} with empty ${areaType} area name`);
|
|
1062
1062
|
skippedRows.push(i + 1);
|
|
@@ -1595,12 +1595,12 @@ function useUnitService() {
|
|
|
1595
1595
|
try {
|
|
1596
1596
|
for (let i = 0; i < dataArray.length; i++) {
|
|
1597
1597
|
const row = dataArray[i];
|
|
1598
|
-
if (!row?.
|
|
1599
|
-
logger9.warn(`Skipping row ${i + 1} with missing
|
|
1598
|
+
if (!row?.UNIT) {
|
|
1599
|
+
logger9.warn(`Skipping row ${i + 1} with missing UNIT:`, row);
|
|
1600
1600
|
skippedRows.push(i + 1);
|
|
1601
1601
|
continue;
|
|
1602
1602
|
}
|
|
1603
|
-
const unitName = String(row.
|
|
1603
|
+
const unitName = String(row.UNIT).trim();
|
|
1604
1604
|
if (!unitName) {
|
|
1605
1605
|
logger9.warn(`Skipping row ${i + 1} with empty unit name`);
|
|
1606
1606
|
skippedRows.push(i + 1);
|