vue-component-meta 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.js +2 -7
- package/lib/types.d.ts +1 -0
- package/package.json +5 -5
package/lib/base.js
CHANGED
|
@@ -57,12 +57,6 @@ function createCheckerWorker(ts, loadParsedCommandLine, checkerOptions, rootPath
|
|
|
57
57
|
}
|
|
58
58
|
return scriptSnapshots.get(fileName);
|
|
59
59
|
},
|
|
60
|
-
getLanguageId: fileName => {
|
|
61
|
-
if (parsedCommandLine.vueOptions.extensions.some(ext => fileName.endsWith(ext))) {
|
|
62
|
-
return 'vue';
|
|
63
|
-
}
|
|
64
|
-
return vue.resolveCommonLanguageId(fileName);
|
|
65
|
-
},
|
|
66
60
|
scriptIdToFileName: id => id,
|
|
67
61
|
fileNameToScriptId: id => id,
|
|
68
62
|
};
|
|
@@ -235,7 +229,7 @@ ${vueCompilerOptions.target < 3 ? vue2_1.code : vue_component_type_helpers_1.cod
|
|
|
235
229
|
const snapshot = host.getScriptSnapshot(componentPath);
|
|
236
230
|
const vueFile = language.scripts.get(componentPath)?.generated?.root;
|
|
237
231
|
const vueDefaults = vueFile && exportName === 'default'
|
|
238
|
-
? (vueFile instanceof vue.
|
|
232
|
+
? (vueFile instanceof vue.VueVirtualCode ? readVueComponentDefaultProps(vueFile, printer, ts, vueCompilerOptions) : {})
|
|
239
233
|
: {};
|
|
240
234
|
const tsDefaults = !vueFile ? readTsComponentDefaultProps(componentPath.substring(componentPath.lastIndexOf('.') + 1), // ts | js | tsx | jsx
|
|
241
235
|
snapshot.getText(0, snapshot.getLength()), exportName, printer, ts) : {};
|
|
@@ -419,6 +413,7 @@ function createSchemaResolvers(typeChecker, symbolNode, { rawType, schema: optio
|
|
|
419
413
|
let declarations;
|
|
420
414
|
return {
|
|
421
415
|
name: typeChecker.getTypeOfSymbolAtLocation(call.parameters[0], symbolNode).value,
|
|
416
|
+
description: ts.displayPartsToString(call.getDocumentationComment(typeChecker)),
|
|
422
417
|
type: typeChecker.typeToString(subtype),
|
|
423
418
|
rawType: rawType ? subtype : undefined,
|
|
424
419
|
signature: typeChecker.signatureToString(call),
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"directory": "packages/component-meta"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/typescript": "2.2.0-alpha.
|
|
16
|
-
"@vue/language-core": "2.0.
|
|
15
|
+
"@volar/typescript": "2.2.0-alpha.12",
|
|
16
|
+
"@vue/language-core": "2.0.15",
|
|
17
17
|
"path-browserify": "^1.0.1",
|
|
18
|
-
"vue-component-type-helpers": "2.0.
|
|
18
|
+
"vue-component-type-helpers": "2.0.15"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"typescript": "*"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@types/node": "latest",
|
|
30
30
|
"@types/path-browserify": "latest"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "095f44449d71cd5a4730306c9c8c40df4d44dce3"
|
|
33
33
|
}
|