simple-pdf-generator
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -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 @@ } |
{ | ||
"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> `<inject-column prop="name" label="Name"/>`<br> `<inject-column prop="surname" label="Surname"/>`<br>`</inject-table>` | | ||
| `PdfTable` | `<inject-table items="propertyName">`<br> `<inject-column prop="name" label="Name"/>`<br> `<inject-column prop="surname" label="Surname"/>`<br>`</inject-table>` | | ||
@@ -178,0 +178,0 @@ ### `fill` |
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
29698
426