@bonniernews/local-esi
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -377,6 +377,10 @@ "use strict"; | ||
return Object.keys(attr).reduce((attributes, key) => { | ||
const value = attr[key]; | ||
let value = attr[key]; | ||
if (value === "") { | ||
return `${attributes} ${key}`; | ||
} | ||
const [current = {}] = context.tags.slice(-1); | ||
if (context.inEsiStatementProcessingContext && !current.plainText) { | ||
value = handleProcessingInstructions(value); | ||
} | ||
attributes += ` ${key}="${value}"`; | ||
@@ -383,0 +387,0 @@ return attributes; |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
25356
732
1