vue-component-meta 1.0.19 → 1.0.21

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 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.LanguageServiceHost, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
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,7 +94,7 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
94
94
  return _host[prop];
95
95
  },
96
96
  });
97
- const vueLanguageModules = vue.createLanguageModules(host.getTypeScriptModule(), host.getCurrentDirectory(), host.getCompilationSettings(), host.getVueCompilationSettings());
97
+ const vueLanguageModules = ts ? vue.createLanguageModules(ts, host.getCompilationSettings(), host.getVueCompilationSettings()) : [];
98
98
  const core = embedded.createLanguageContext(host, vueLanguageModules);
99
99
  const proxyApis = checkerOptions.forceUseTs ? {
100
100
  getScriptKind: (fileName) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
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.19",
17
- "@volar/vue-language-core": "1.0.19",
16
+ "@volar/language-core": "1.0.21",
17
+ "@volar/vue-language-core": "1.0.21",
18
18
  "typesafe-path": "^0.2.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "typescript": "*"
22
22
  },
23
- "gitHead": "02267fe83a5567b1cae7025e834cf084c8248546"
23
+ "gitHead": "72332760759e06eed18e62026185cbad70250367"
24
24
  }