@carlosdiazz/lottodiz-shared 2.7.9 → 2.8.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.
@@ -48,11 +48,12 @@ const completeDefaultXpath = (dto) => {
48
48
  return Array.from({ length: total_item }, (_, i) => base.replace(/\{\d+\}/, String(start + i)));
49
49
  };
50
50
  // 🔹 Procesar campos
51
+ let newXpathVerify = [];
51
52
  const newXpathDate = normalizeArray(xpath_date);
52
53
  const newXpathItems = generateXpathItems(xpath_item);
53
- const newXpathVerify = xpath_verify
54
- ? normalizeArray(xpath_verify)
55
- : undefined;
54
+ if (xpath_verify && xpath_verify.length > 1) {
55
+ newXpathVerify = normalizeArray(xpath_verify);
56
+ }
56
57
  // 🔹 Retorno final
57
58
  return {
58
59
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "2.7.9",
3
+ "version": "2.8.0",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,