@vue/compiler-ssr
Advanced tools
Comparing version 3.5.6 to 3.5.7
/** | ||
* @vue/compiler-ssr v3.5.6 | ||
* @vue/compiler-ssr v3.5.7 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -65,3 +65,3 @@ * @license MIT | ||
); | ||
function ssrProcessIf(node, context, disableNestedFragments = false, disableCommentAsIfAlternate = false) { | ||
function ssrProcessIf(node, context, disableNestedFragments = false, disableComment = false) { | ||
const [rootBranch] = node.branches; | ||
@@ -90,3 +90,3 @@ const ifStatement = compilerDom.createIfStatement( | ||
} | ||
if (!currentIf.alternate && !disableCommentAsIfAlternate) { | ||
if (!currentIf.alternate && !disableComment) { | ||
currentIf.alternate = compilerDom.createBlockStatement([ | ||
@@ -996,3 +996,3 @@ compilerDom.createCallExpression(`_push`, ["`<!---->`"]) | ||
} | ||
function processChildren(parent, context, asFragment = false, disableNestedFragments = false, disableCommentAsIfAlternate = false) { | ||
function processChildren(parent, context, asFragment = false, disableNestedFragments = false, disableComment = false) { | ||
if (asFragment) { | ||
@@ -1033,3 +1033,5 @@ context.pushStringPart(`<!--[-->`); | ||
case 3: | ||
context.pushStringPart(`<!--${child.content}-->`); | ||
if (!disableComment) { | ||
context.pushStringPart(`<!--${child.content}-->`); | ||
} | ||
break; | ||
@@ -1044,8 +1046,3 @@ case 5: | ||
case 9: | ||
ssrProcessIf( | ||
child, | ||
context, | ||
disableNestedFragments, | ||
disableCommentAsIfAlternate | ||
); | ||
ssrProcessIf(child, context, disableNestedFragments, disableComment); | ||
break; | ||
@@ -1052,0 +1049,0 @@ case 11: |
{ | ||
"name": "@vue/compiler-ssr", | ||
"version": "3.5.6", | ||
"version": "3.5.7", | ||
"description": "@vue/compiler-ssr", | ||
@@ -31,5 +31,5 @@ "main": "dist/compiler-ssr.cjs.js", | ||
"dependencies": { | ||
"@vue/shared": "3.5.6", | ||
"@vue/compiler-dom": "3.5.6" | ||
"@vue/shared": "3.5.7", | ||
"@vue/compiler-dom": "3.5.7" | ||
} | ||
} |
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
47315
1376
+ Added@vue/compiler-core@3.5.7(transitive)
+ Added@vue/compiler-dom@3.5.7(transitive)
+ Added@vue/shared@3.5.7(transitive)
- Removed@vue/compiler-core@3.5.6(transitive)
- Removed@vue/compiler-dom@3.5.6(transitive)
- Removed@vue/shared@3.5.6(transitive)
Updated@vue/compiler-dom@3.5.7
Updated@vue/shared@3.5.7