@vue/compiler-ssr
Advanced tools
Comparing version 3.0.0-rc.5 to 3.0.0-rc.6
@@ -129,6 +129,6 @@ 'use strict'; | ||
const SSRErrorMessages = { | ||
[59 /* X_SSR_CUSTOM_DIRECTIVE_NO_TRANSFORM */]: `Custom directive is missing corresponding SSR transform and will be ignored.`, | ||
[60 /* X_SSR_UNSAFE_ATTR_NAME */]: `Unsafe attribute name for SSR.`, | ||
[61 /* X_SSR_NO_TELEPORT_TARGET */]: `No target prop on teleport element.`, | ||
[62 /* X_SSR_INVALID_AST_NODE */]: `Invalid AST node during SSR transform.` | ||
[60 /* X_SSR_CUSTOM_DIRECTIVE_NO_TRANSFORM */]: `Custom directive is missing corresponding SSR transform and will be ignored.`, | ||
[61 /* X_SSR_UNSAFE_ATTR_NAME */]: `Unsafe attribute name for SSR.`, | ||
[62 /* X_SSR_NO_TELEPORT_TARGET */]: `No target prop on teleport element.`, | ||
[63 /* X_SSR_INVALID_AST_NODE */]: `Invalid AST node during SSR transform.` | ||
}; | ||
@@ -140,3 +140,3 @@ | ||
if (!targetProp) { | ||
context.onError(createSSRCompilerError(61 /* X_SSR_NO_TELEPORT_TARGET */, node.loc)); | ||
context.onError(createSSRCompilerError(62 /* X_SSR_NO_TELEPORT_TARGET */, node.loc)); | ||
return; | ||
@@ -153,3 +153,3 @@ } | ||
if (!target) { | ||
context.onError(createSSRCompilerError(61 /* X_SSR_NO_TELEPORT_TARGET */, targetProp.loc)); | ||
context.onError(createSSRCompilerError(62 /* X_SSR_NO_TELEPORT_TARGET */, targetProp.loc)); | ||
return; | ||
@@ -509,3 +509,3 @@ } | ||
else if (prop.name === 'slot') { | ||
context.onError(compilerDom.createCompilerError(38 /* X_V_SLOT_MISPLACED */, prop.loc)); | ||
context.onError(compilerDom.createCompilerError(39 /* X_V_SLOT_MISPLACED */, prop.loc)); | ||
} | ||
@@ -522,3 +522,3 @@ else if (isTextareaWithValue(node, prop) && prop.exp) { | ||
// no corresponding ssr directive transform found. | ||
context.onError(createSSRCompilerError(59 /* X_SSR_CUSTOM_DIRECTIVE_NO_TRANSFORM */, prop.loc)); | ||
context.onError(createSSRCompilerError(60 /* X_SSR_CUSTOM_DIRECTIVE_NO_TRANSFORM */, prop.loc)); | ||
} | ||
@@ -562,3 +562,3 @@ else if (!hasDynamicVBind) { | ||
else { | ||
context.onError(createSSRCompilerError(60 /* X_SSR_UNSAFE_ATTR_NAME */, key.loc)); | ||
context.onError(createSSRCompilerError(61 /* X_SSR_UNSAFE_ATTR_NAME */, key.loc)); | ||
} | ||
@@ -751,3 +751,3 @@ } | ||
default: | ||
context.onError(createSSRCompilerError(62 /* X_SSR_INVALID_AST_NODE */, child.loc)); | ||
context.onError(createSSRCompilerError(63 /* X_SSR_INVALID_AST_NODE */, child.loc)); | ||
// make sure we exhaust all possible types | ||
@@ -784,3 +784,3 @@ const exhaustiveCheck = child; | ||
default: | ||
context.onError(createSSRCompilerError(62 /* X_SSR_INVALID_AST_NODE */, child.loc)); | ||
context.onError(createSSRCompilerError(63 /* X_SSR_INVALID_AST_NODE */, child.loc)); | ||
// make sure we exhaust all possible types | ||
@@ -806,3 +806,3 @@ const exhaustiveCheck = child; | ||
if (value) { | ||
context.onError(compilerDom.createDOMCompilerError(55 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc)); | ||
context.onError(compilerDom.createDOMCompilerError(56 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc)); | ||
} | ||
@@ -850,3 +850,3 @@ } | ||
case 'file': | ||
context.onError(compilerDom.createDOMCompilerError(54 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc)); | ||
context.onError(compilerDom.createDOMCompilerError(55 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc)); | ||
break; | ||
@@ -873,3 +873,3 @@ default: | ||
else { | ||
context.onError(compilerDom.createDOMCompilerError(52 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc)); | ||
context.onError(compilerDom.createDOMCompilerError(53 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc)); | ||
} | ||
@@ -894,3 +894,3 @@ return res; | ||
if (!dir.exp) { | ||
context.onError(compilerDom.createDOMCompilerError(56 /* X_V_SHOW_NO_EXPRESSION */)); | ||
context.onError(compilerDom.createDOMCompilerError(57 /* X_V_SHOW_NO_EXPRESSION */)); | ||
} | ||
@@ -897,0 +897,0 @@ return { |
{ | ||
"name": "@vue/compiler-ssr", | ||
"version": "3.0.0-rc.5", | ||
"version": "3.0.0-rc.6", | ||
"description": "@vue/compiler-ssr", | ||
@@ -30,5 +30,5 @@ "main": "dist/compiler-ssr.cjs.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-rc.5", | ||
"@vue/compiler-dom": "3.0.0-rc.5" | ||
"@vue/shared": "3.0.0-rc.6", | ||
"@vue/compiler-dom": "3.0.0-rc.6" | ||
} | ||
} |
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
+ Added@vue/compiler-core@3.0.0-rc.6(transitive)
+ Added@vue/compiler-dom@3.0.0-rc.6(transitive)
+ Added@vue/shared@3.0.0-rc.6(transitive)
- Removed@vue/compiler-core@3.0.0-rc.5(transitive)
- Removed@vue/compiler-dom@3.0.0-rc.5(transitive)
- Removed@vue/shared@3.0.0-rc.5(transitive)
Updated@vue/compiler-dom@3.0.0-rc.6
Updated@vue/shared@3.0.0-rc.6