aziendasanitaria-utils 1.2.13 → 1.2.14

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=14.0.0"
5
5
  },
6
- "version": "1.2.13",
6
+ "version": "1.2.14",
7
7
  "repository": "deduzzo/aziendasanitaria-utils",
8
8
  "description": "Un utility per gestire i flussi sanitari Siciliani e non solo..",
9
9
  "main": "index.js",
@@ -212,7 +212,7 @@ export class Assistito {
212
212
  const getValue = (data) => {
213
213
  const value = data[campo];
214
214
  // Controlla se il valore è una stringa vuota o null/undefined
215
- return value === '' || value === null || value === undefined || (typeof value === 'number' && isNaN(value)) ? null : value;
215
+ return value === '' || value === null || value === undefined || (typeof value === 'number' && isNaN(value)) || (tipoDati[campo] === "date" && typeof value === "string" && value.toLowerCase().includes("illimi")) ? null : value;
216
216
  };
217
217
 
218
218
  return getValue(this.#dataFromTs) ??