idea-html2pdf
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -76,4 +76,4 @@ "use strict"; | ||
matches.forEach(attr => { | ||
if (data[attr] !== undefined) | ||
str = str.replace(attr, data[attr] === null ? '' : data[attr]); | ||
const isDefined = data[attr] !== null && data[attr] !== undefined; | ||
str = str.replace(attr, isDefined ? data[attr] : ''); | ||
}); | ||
@@ -80,0 +80,0 @@ return str; |
{ | ||
"name": "idea-html2pdf", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "IDEA helper for generating a PDF from HTML contents", | ||
@@ -35,3 +35,3 @@ "engines": { | ||
"handlebars": "^4.7.7", | ||
"idea-toolbox": "^6.5.19" | ||
"idea-toolbox": "^6.6.5" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
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
26415
Updatedidea-toolbox@^6.6.5