@volar/vue-code-gen
Advanced tools
Comparing version 0.39.0 to 0.39.2
@@ -9,8 +9,13 @@ "use strict"; | ||
options.onError = (error) => { | ||
if (error.code === 33 /* CompilerCore.ErrorCodes.X_V_FOR_TEMPLATE_KEY_PLACEMENT */) | ||
return; // :key binding allowed in v-for template child in vue 2 | ||
if (onError) | ||
if (error.code === 33 /* CompilerCore.ErrorCodes.X_V_FOR_TEMPLATE_KEY_PLACEMENT */ // :key binding allowed in v-for template child in vue 2 | ||
|| error.code === 29 /* CompilerCore.ErrorCodes.X_V_IF_SAME_KEY */ // fix https://github.com/johnsoncodehk/volar/issues/1638 | ||
) { | ||
return; | ||
} | ||
if (onError) { | ||
onError(error); | ||
else | ||
} | ||
else { | ||
throw error; | ||
} | ||
}; | ||
@@ -17,0 +22,0 @@ return baseCompile(template, Object.assign({}, CompilerDom.parserOptions, options, { |
{ | ||
"name": "@volar/vue-code-gen", | ||
"version": "0.39.0", | ||
"version": "0.39.2", | ||
"main": "out/index.js", | ||
@@ -19,4 +19,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/code-gen": "0.39.0", | ||
"@volar/source-map": "0.39.0", | ||
"@volar/code-gen": "0.39.2", | ||
"@volar/source-map": "0.39.2", | ||
"@vue/compiler-core": "^3.2.37", | ||
@@ -26,3 +26,3 @@ "@vue/compiler-dom": "^3.2.37", | ||
}, | ||
"gitHead": "569487a290141032b48d570c85df2a3601c8ed1c" | ||
"gitHead": "eac2dca4206dfa3f92ad50dd53650f924a9e6f94" | ||
} |
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
156592
3341
+ Added@volar/code-gen@0.39.2(transitive)
+ Added@volar/source-map@0.39.2(transitive)
- Removed@volar/code-gen@0.39.0(transitive)
- Removed@volar/source-map@0.39.0(transitive)
Updated@volar/code-gen@0.39.2
Updated@volar/source-map@0.39.2