@vue/compiler-ssr
Advanced tools
Comparing version 3.4.35 to 3.4.36
/** | ||
* @vue/compiler-ssr v3.4.35 | ||
* @vue/compiler-ssr v3.4.36 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -362,2 +362,21 @@ * @license MIT | ||
} | ||
} else if (directives.length && !node.children.length) { | ||
const tempId = `_temp${context.temps++}`; | ||
propsExp.arguments = [ | ||
compilerDom.createAssignmentExpression( | ||
compilerDom.createSimpleExpression(tempId, false), | ||
mergedProps | ||
) | ||
]; | ||
rawChildrenMap.set( | ||
node, | ||
compilerDom.createConditionalExpression( | ||
compilerDom.createSimpleExpression(`"textContent" in ${tempId}`, false), | ||
compilerDom.createCallExpression(context.helper(SSR_INTERPOLATE), [ | ||
compilerDom.createSimpleExpression(`${tempId}.textContent`, false) | ||
]), | ||
compilerDom.createSimpleExpression(`${tempId}.innerHTML ?? ''`, false), | ||
false | ||
) | ||
); | ||
} | ||
@@ -651,3 +670,3 @@ if (needTagForRuntime) { | ||
context.pushStringPart(`>`); | ||
processChildren(node, context, false, true); | ||
processChildren(node, context, false, true, true); | ||
context.pushStringPart(`</${tag.value.content}>`); | ||
@@ -654,0 +673,0 @@ } |
{ | ||
"name": "@vue/compiler-ssr", | ||
"version": "3.4.35", | ||
"version": "3.4.36", | ||
"description": "@vue/compiler-ssr", | ||
@@ -31,5 +31,5 @@ "main": "dist/compiler-ssr.cjs.js", | ||
"dependencies": { | ||
"@vue/shared": "3.4.35", | ||
"@vue/compiler-dom": "3.4.35" | ||
"@vue/compiler-dom": "3.4.36", | ||
"@vue/shared": "3.4.36" | ||
} | ||
} |
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
47371
1376
1
+ Added@vue/compiler-core@3.4.36(transitive)
+ Added@vue/compiler-dom@3.4.36(transitive)
+ Added@vue/shared@3.4.36(transitive)
+ Addedentities@5.0.0(transitive)
- Removed@vue/compiler-core@3.4.35(transitive)
- Removed@vue/compiler-dom@3.4.35(transitive)
- Removed@vue/shared@3.4.35(transitive)
- Removedentities@4.5.0(transitive)
Updated@vue/compiler-dom@3.4.36
Updated@vue/shared@3.4.36