Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-platform-pdf-generator

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-platform-pdf-generator - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "cross-platform-pdf-generator",
"version": "2.0.1",
"version": "2.0.2",
"description": "pulsation PDF generator for web and ios",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -128,3 +128,7 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField, PDFImage } from 'pdf-lib';

const name = field.getName();
const value = data.find(v => v.title === name || v.id === name);
let value = data.find(v => (v.title === name || v.id === name) && v.type === "text");
if (value?.component === "signature") {
const imageValue = data.find(v => (v.title === name || v.id === name) && v.type === "image")
await drawTextInField(imageValue, field, document);
}
if (value?.value === undefined) continue;

@@ -131,0 +135,0 @@ unhandeld = unhandeld.filter(e => e.title !== name && e.id !== name);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc