@muil/templates-renderer
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "@muil/templates-renderer", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"license": "MIT", | ||
@@ -17,2 +17,3 @@ "main": "src/index.js", | ||
"@nestjs/common": "^7.5.3", | ||
"he": "^1.2.0", | ||
"html-minifier": "^4.0.0", | ||
@@ -33,2 +34,3 @@ "juice": "^7.0.0", | ||
"devDependencies": { | ||
"@types/he": "^1.1.2", | ||
"@types/html-minifier": "^4.0.0", | ||
@@ -38,3 +40,3 @@ "@types/puppeteer-core": "^5.4.0", | ||
}, | ||
"gitHead": "984b2bb64d92bfa78594b5608075ce9d82f7ec68" | ||
"gitHead": "ccfc0067205b3a0e4a14125cb2f22c77765751ba" | ||
} |
@@ -30,2 +30,3 @@ "use strict"; | ||
const fs = __importStar(require("fs")); | ||
const he_1 = __importDefault(require("he")); | ||
const html_minifier_1 = require("html-minifier"); | ||
@@ -96,2 +97,5 @@ const juice_1 = __importDefault(require("juice")); | ||
} | ||
html = he_1.default.encode(html.toString(), { | ||
allowUnsafeSymbols: true, | ||
}); | ||
if (minifyHtml) { | ||
@@ -98,0 +102,0 @@ html = (0, html_minifier_1.minify)(html, { |
Sorry, the diff of this file is not supported yet
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
79656
385
13
4
+ Addedhe@^1.2.0