@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/dist/index.mjs CHANGED
@@ -1051,12 +1051,12 @@ function useAreaService() {
1051
1051
  skippedRows.push(i + 1);
1052
1052
  continue;
1053
1053
  }
1054
- if (!row?.NAME) {
1055
- logger5.warn(`Skipping row ${i + 1} with missing NAME:`, row);
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.NAME).trim();
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?.NAME) {
1599
- logger9.warn(`Skipping row ${i + 1} with missing NAME:`, row);
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.NAME).trim();
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);