html-pdf-node
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -46,4 +46,4 @@ const puppeteer = require('puppeteer'); | ||
let pdfs = []; | ||
await Promise.map(files, async(file) => { | ||
const page = await browser.newPage(); | ||
const page = await browser.newPage(); | ||
for(let file of files) { | ||
if(file.content) { | ||
@@ -64,4 +64,3 @@ console.log("Compiling the template with handlebars") | ||
pdfs.push(pdfObj); | ||
await page.close(); | ||
},{concurrency:20}) | ||
} | ||
@@ -68,0 +67,0 @@ return Promise.resolve(pdfs) |
{ | ||
"name": "html-pdf-node", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Convert any html content or html page to PDF", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
47515
96