vue-component-meta 1.0.18 → 1.0.20
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/out/index.d.ts +1 -1
- package/out/index.js +3 -4
- package/package.json +4 -4
package/out/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function createComponentMetaChecker(tsconfigPath: string, checker
|
|
|
25
25
|
tsLs: ts.LanguageService;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare function baseCreate(_host: vue.
|
|
28
|
+
export declare function baseCreate(_host: vue.VueLanguageServiceHost, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
|
|
29
29
|
getExportNames: (componentPath: string) => string[];
|
|
30
30
|
getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
|
|
31
31
|
__internal__: {
|
package/out/index.js
CHANGED
|
@@ -94,8 +94,8 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
94
94
|
return _host[prop];
|
|
95
95
|
},
|
|
96
96
|
});
|
|
97
|
-
const
|
|
98
|
-
const core = embedded.createLanguageContext(host,
|
|
97
|
+
const vueLanguageModules = ts ? vue.createLanguageModules(ts, host.getCompilationSettings(), host.getVueCompilationSettings()) : [];
|
|
98
|
+
const core = embedded.createLanguageContext(host, vueLanguageModules);
|
|
99
99
|
const proxyApis = checkerOptions.forceUseTs ? {
|
|
100
100
|
getScriptKind: (fileName) => {
|
|
101
101
|
if (fileName.endsWith('.vue.js')) {
|
|
@@ -304,7 +304,6 @@ function createSchemaResolvers(typeChecker, symbolNode, { rawType, schema: optio
|
|
|
304
304
|
return acc;
|
|
305
305
|
}
|
|
306
306
|
function resolveNestedProperties(prop) {
|
|
307
|
-
var _a, _b, _c;
|
|
308
307
|
const subtype = typeChecker.getTypeOfSymbolAtLocation(prop, symbolNode);
|
|
309
308
|
const schema = enabled ? resolveSchema(subtype) : undefined;
|
|
310
309
|
return {
|
|
@@ -318,7 +317,7 @@ function createSchemaResolvers(typeChecker, symbolNode, { rawType, schema: optio
|
|
|
318
317
|
text: (_a = tag.text) === null || _a === void 0 ? void 0 : _a.map(part => part.text).join(''),
|
|
319
318
|
});
|
|
320
319
|
}),
|
|
321
|
-
required: !
|
|
320
|
+
required: !(prop.flags & ts.SymbolFlags.Optional),
|
|
322
321
|
type: typeChecker.typeToString(subtype),
|
|
323
322
|
rawType: rawType ? subtype : undefined,
|
|
324
323
|
schema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"directory": "vue-language-tools/vue-component-meta"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.0.
|
|
17
|
-
"@volar/vue-language-core": "1.0.
|
|
16
|
+
"@volar/language-core": "1.0.20",
|
|
17
|
+
"@volar/vue-language-core": "1.0.20",
|
|
18
18
|
"typesafe-path": "^0.2.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"typescript": "*"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "e00f068e812677791c93efe9cf20995764350ec6"
|
|
24
24
|
}
|