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

simple-pdf-generator

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-pdf-generator - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

10

lib/PdfGenerator.js

@@ -72,3 +72,2 @@ "use strict";

static async _includeAssets(page, includes) {
const promises = [];
for (const include of includes) {

@@ -83,15 +82,14 @@ let type = '';

if (type === 'css') {
promises.push(page.addStyleTag({
await page.addStyleTag({
content: include.content,
path: include.path,
}));
});
}
else if (type === 'js') {
promises.push(page.addScriptTag({
await page.addScriptTag({
content: include.content,
path: include.path,
}));
});
}
}
await Promise.all(promises);
}

@@ -98,0 +96,0 @@ }

2

package.json
{
"name": "simple-pdf-generator",
"version": "3.2.0",
"version": "3.3.0",
"description": "Generator of PDF files from HTML templates using TS decorators",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -116,3 +116,3 @@ # Simple PDF Generator

```html
<inject-table :items="data" class="table">
<inject-table items="data" class="table">
<inject-column prop="index" label="#" />

@@ -175,3 +175,3 @@ <inject-column prop="name" label="Name" />

| `PdfField` | `%%propertyName%%` |
| `PdfTable` | `<inject-table :items="propertyName">`<br>&nbsp;&nbsp;&nbsp;&nbsp;`<inject-column prop="name" label="Name"/>`<br>&nbsp;&nbsp;&nbsp;&nbsp;`<inject-column prop="surname" label="Surname"/>`<br>`</inject-table>` |
| `PdfTable` | `<inject-table items="propertyName">`<br>&nbsp;&nbsp;&nbsp;&nbsp;`<inject-column prop="name" label="Name"/>`<br>&nbsp;&nbsp;&nbsp;&nbsp;`<inject-column prop="surname" label="Surname"/>`<br>`</inject-table>` |

@@ -178,0 +178,0 @@ ### `fill`

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