cross-platform-pdf-generator
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -189,6 +189,6 @@ import { GenericStorage } from "./utils/GenericUtils/GenericStorage.js"; | ||
const value = findValueforStorage(r.row_id, data); | ||
if (!value) return; | ||
if (value === undefined) return; | ||
if (value.isRemoved === 1) return | ||
if (r?.is_not_printable ?? false) return; //do not print value | ||
let valueToPrint = value?.humanReadableDescription ?? "Ungültiger Wert im Druck" | ||
const valueToPrint = value?.humanReadableDescription ?? "Ungültiger Wert im Druck" | ||
/* | ||
@@ -198,29 +198,11 @@ const rawValue = getValueFromStorage(value); //ToDo load human readable string instead of value | ||
*/ | ||
if (r.row_type === "signatur") { | ||
valueToPrint = getValueFromStorage(value); | ||
if (!(valueToPrint instanceof ByteBuffer)) return; | ||
valueToPrint = JSON.stringify(valueToPrint); | ||
valueToPrint = valueToPrint?.signImage | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "image", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
}else { | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "text", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
} | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "text", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
} | ||
@@ -227,0 +209,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67094
1570