vue-component-meta
Advanced tools
Comparing version 2.1.6 to 2.1.8
@@ -410,3 +410,3 @@ "use strict"; | ||
const signatures = propType.getCallSignatures(); | ||
const paramType = signatures[0].parameters[0]; | ||
const paramType = signatures[0]?.parameters[0]; | ||
const subtype = paramType ? typeChecker.getTypeOfSymbolAtLocation(paramType, symbolNode) : typeChecker.getAnyType(); | ||
@@ -568,3 +568,3 @@ let schema; | ||
function scriptSetupWorker() { | ||
const descriptor = vueSourceFile.sfc; | ||
const descriptor = vueSourceFile._sfc; | ||
const scriptSetupRanges = descriptor.scriptSetup ? vue.parseScriptSetupRanges(ts, descriptor.scriptSetup.ast, vueCompilerOptions) : undefined; | ||
@@ -613,3 +613,3 @@ if (descriptor.scriptSetup && scriptSetupRanges?.props.withDefaults?.arg) { | ||
function scriptWorker() { | ||
const descriptor = vueSourceFile.sfc; | ||
const descriptor = vueSourceFile._sfc; | ||
if (descriptor.script) { | ||
@@ -616,0 +616,0 @@ const scriptResult = readTsComponentDefaultProps(descriptor.script.lang, descriptor.script.content, 'default', printer, ts); |
{ | ||
"name": "vue-component-meta", | ||
"version": "2.1.6", | ||
"version": "2.1.8", | ||
"license": "MIT", | ||
@@ -9,2 +9,3 @@ "files": [ | ||
], | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -16,6 +17,6 @@ "type": "git", | ||
"dependencies": { | ||
"@volar/typescript": "~2.4.1", | ||
"@vue/language-core": "2.1.6", | ||
"@volar/typescript": "~2.4.8", | ||
"@vue/language-core": "2.1.8", | ||
"path-browserify": "^1.0.1", | ||
"vue-component-type-helpers": "2.1.6" | ||
"vue-component-type-helpers": "2.1.8" | ||
}, | ||
@@ -34,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "fd61953ce9eb924eeaf4df0bf8d2237267321194" | ||
"gitHead": "25cccedc53e7361ed4e34296d6ecd43d7de2a095" | ||
} |
43887
+ Added@vue/language-core@2.1.8(transitive)
+ Addedalien-signals@0.2.2(transitive)
+ Addedvue-component-type-helpers@2.1.8(transitive)
- Removed@vue/language-core@2.1.6(transitive)
- Removedcomputeds@0.0.1(transitive)
- Removedvue-component-type-helpers@2.1.6(transitive)
Updated@volar/typescript@~2.4.8
Updated@vue/language-core@2.1.8