Comparing version 3.1.0 to 3.1.1
@@ -0,1 +1,4 @@ | ||
# 3.1.1 | ||
* Fixed: white-space-only content for custom element is considered empty and the default placeholder is used | ||
# 3.1.0 | ||
@@ -2,0 +5,0 @@ * Added: `compile.both(source[, option])` |
@@ -103,3 +103,3 @@ 'use strict' | ||
end: element.end, | ||
content: `"${escapedName}" in __contents ? __contents["${escapedName}"] : (function () {\n${content}})()` | ||
content: `__contents["${escapedName}"] && /\\S/.test(__contents["${escapedName}"]) ? __contents["${escapedName}"] : (function () {\n${content}})()` | ||
} | ||
@@ -106,0 +106,0 @@ } |
{ | ||
"name": "ejs-html", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Sitegui <sitegui@sitegui.com.br>", | ||
@@ -5,0 +5,0 @@ "description": "Embedded JavaScript HTML templates. An implementation of EJS focused on run-time performance, HTML syntax checking, minified HTML output and custom HTML elements.", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
46183
2