vue-component-meta 1.2.2-alpha.2 → 1.3.1

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 +6 -4
  2. package/package.json +4 -4
package/out/index.js CHANGED
@@ -144,8 +144,7 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
144
144
  }
145
145
  });
146
146
  const tsLs = ts.createLanguageService(proxyHost);
147
- let globalPropNames = [];
148
- globalPropNames = getComponentMeta(globalComponentName).props.map(prop => prop.name);
147
+ let globalPropNames;
149
148
  return {
150
149
  getExportNames,
151
150
  getComponentMeta,
@@ -201,8 +200,11 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
201
200
  .filter((prop) => !prop.name.match(propEventRegex));
202
201
  }
203
202
  // fill global
204
- for (const prop of result) {
205
- prop.global = globalPropNames.includes(prop.name);
203
+ if (componentPath !== globalComponentName) {
204
+ globalPropNames ??= getComponentMeta(globalComponentName).props.map(prop => prop.name);
205
+ for (const prop of result) {
206
+ prop.global = globalPropNames.includes(prop.name);
207
+ }
206
208
  }
207
209
  // fill defaults
208
210
  const printer = ts.createPrinter(checkerOptions.printer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.2.2-alpha.2",
3
+ "version": "1.3.1",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,12 +13,12 @@
13
13
  "directory": "packages/vue-component-meta"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/language-core": "1.4.0-alpha.1",
17
- "@volar/vue-language-core": "1.2.2-alpha.2",
16
+ "@volar/language-core": "1.4.0-alpha.3",
17
+ "@volar/vue-language-core": "1.3.1",
18
18
  "typesafe-path": "^0.2.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "typescript": "*"
22
22
  },
23
- "gitHead": "2b2f0c453e04f9ada4a39154a3ef8edde664029c"
23
+ "gitHead": "f64e88b7fab0b20ed20d58f2890bfaf4b259b651"
24
24
  }