cross-platform-pdf-generator
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -101,6 +101,5 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField } from 'pdf-lib'; | ||
const name = field.getName(); | ||
const dataID = data?.id | ||
const value = data.find(v => v.title === name || v.title === dataID); | ||
const value = data.find(v => v.title === name || v.id === name); | ||
if (value?.value === undefined) continue; | ||
unhandeld = unhandeld.filter(e => name !== e.title && dataID !== e.title); | ||
unhandeld = unhandeld.filter(e => e.title !== name || e.id !== name); | ||
await drawTextInField(value, field, document); | ||
@@ -107,0 +106,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
66704
1562