vue-component-meta 1.0.17 → 1.0.19

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.
Files changed (2) hide show
  1. package/out/index.js +3 -4
  2. package/package.json +4 -4
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 vueLanguageModule = vue.createLanguageModule(host.getTypeScriptModule(), host.getCurrentDirectory(), host.getCompilationSettings(), host.getVueCompilationSettings());
98
- const core = embedded.createLanguageContext(host, [vueLanguageModule]);
97
+ const vueLanguageModules = vue.createLanguageModules(host.getTypeScriptModule(), host.getCurrentDirectory(), 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: !Boolean((_c = (_b = (_a = prop.declarations) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.questionToken) !== null && _c !== void 0 ? _c : false),
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.17",
3
+ "version": "1.0.19",
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",
17
- "@volar/vue-language-core": "1.0.17",
16
+ "@volar/language-core": "1.0.19",
17
+ "@volar/vue-language-core": "1.0.19",
18
18
  "typesafe-path": "^0.2.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "typescript": "*"
22
22
  },
23
- "gitHead": "b66b64f579b5cafee9b8d70aa9f9303f39b6df49"
23
+ "gitHead": "02267fe83a5567b1cae7025e834cf084c8248546"
24
24
  }