@7365admin1/module-hygiene 4.3.0 → 4.4.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @7365admin1/module-hygiene
2
2
 
3
+ ## 4.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Skip importing areas and units with names starting with "Sample:" in import functions
8
+
3
9
  ## 4.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1122,6 +1122,11 @@ function useAreaService() {
1122
1122
  skippedRows.push(i + 1);
1123
1123
  continue;
1124
1124
  }
1125
+ if (areaName.startsWith("Sample:")) {
1126
+ import_node_server_utils5.logger.warn(`Skipping row ${i + 1} with sample area: ${areaName}`);
1127
+ skippedRows.push(i + 1);
1128
+ continue;
1129
+ }
1125
1130
  try {
1126
1131
  const insertedId = await _createArea({
1127
1132
  type: areaType,
@@ -1653,6 +1658,11 @@ function useUnitService() {
1653
1658
  skippedRows.push(i + 1);
1654
1659
  continue;
1655
1660
  }
1661
+ if (unitName.startsWith("Sample:")) {
1662
+ import_node_server_utils9.logger.warn(`Skipping row ${i + 1} with sample unit: ${unitName}`);
1663
+ skippedRows.push(i + 1);
1664
+ continue;
1665
+ }
1656
1666
  try {
1657
1667
  const insertedId = await _createUnit({
1658
1668
  name: unitName,