lib/grover/js/processor.cjs in grover-1.1.9 vs lib/grover/js/processor.cjs in grover-1.1.10
- old
+ new
@@ -280,10 +280,10 @@
delete options.convertTimeout;
}
// If we're running puppeteer in headless mode, return the converted PDF
if (debug === undefined || (typeof debug === 'object' && (debug.headless === undefined || debug.headless))) {
- return await page[convertAction](options);
+ return Buffer.from(await page[convertAction](options));
}
} finally {
if (browser) {
if (wsConnection) {
if (page) await page.close();