puppeteer-render-text
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -38,2 +38,3 @@ import fs from 'node:fs' | ||
* @param {boolean} [opts.loadGoogleFont=false] - Whether or not to load and wait for `opts.style.fontFamily` as one or more google fonts | ||
* @param {boolean} [opts.verbose=false] - Optional whether to log browser console messages | ||
* @param {object} [opts.style={}] - JS [CSS styles](https://www.w3schools.com/jsref/dom_obj_style.asp) to apply to the text's container div | ||
@@ -55,2 +56,3 @@ * @param {object} [opts.inject={}] - Optionally injects arbitrary string content into the head, style, or body elements. | ||
loadGoogleFont = false, | ||
verbose = false, | ||
style = {}, | ||
@@ -157,4 +159,6 @@ inject = {} | ||
page.on('console', console.log) | ||
page.on('error', console.error) | ||
if (verbose) { | ||
page.on('console', console.log) | ||
page.on('error', console.error) | ||
} | ||
@@ -161,0 +165,0 @@ await page.setViewport({ |
{ | ||
"name": "puppeteer-render-text", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Robust text renderer using headless chrome.", | ||
@@ -5,0 +5,0 @@ "repository": "transitive-bullshit/puppeteer-render-text", |
Sorry, the diff of this file is not supported yet
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
37158
296