vue-component-meta 1.3.2 → 1.3.3
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.js +19 -6
- package/out/types.js +1 -0
- package/package.json +3 -3
package/out/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
3
|
if (k2 === undefined) k2 = k;
|
|
3
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -179,11 +180,23 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
179
180
|
}
|
|
180
181
|
const componentType = typeChecker.getTypeOfSymbolAtLocation(_export, symbolNode);
|
|
181
182
|
const symbolProperties = componentType.getProperties() ?? [];
|
|
183
|
+
let _props;
|
|
184
|
+
let _events;
|
|
185
|
+
let _slots;
|
|
186
|
+
let _exposed;
|
|
182
187
|
return {
|
|
183
|
-
props
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
get props() {
|
|
189
|
+
return _props ?? (_props = getProps());
|
|
190
|
+
},
|
|
191
|
+
get events() {
|
|
192
|
+
return _events ?? (_events = getEvents());
|
|
193
|
+
},
|
|
194
|
+
get slots() {
|
|
195
|
+
return _slots ?? (_slots = getSlots());
|
|
196
|
+
},
|
|
197
|
+
get exposed() {
|
|
198
|
+
return _exposed ?? (_exposed = getExposed());
|
|
199
|
+
},
|
|
187
200
|
};
|
|
188
201
|
function getProps() {
|
|
189
202
|
const $props = symbolProperties.find(prop => prop.escapedName === '$props');
|
|
@@ -259,8 +272,8 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
259
272
|
}
|
|
260
273
|
function getExposed() {
|
|
261
274
|
const exposed = symbolProperties.filter(prop =>
|
|
262
|
-
// only exposed props will have a
|
|
263
|
-
|
|
275
|
+
// only exposed props will not have a valueDeclaration
|
|
276
|
+
!prop.valueDeclaration);
|
|
264
277
|
if (exposed.length) {
|
|
265
278
|
return exposed.map((prop) => {
|
|
266
279
|
const { resolveExposedProperties, } = createSchemaResolvers(typeChecker, symbolNode, checkerOptions, ts);
|
package/out/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@volar/language-core": "1.4.0-alpha.3",
|
|
17
|
-
"@volar/vue-language-core": "1.3.
|
|
17
|
+
"@volar/vue-language-core": "1.3.3",
|
|
18
18
|
"typesafe-path": "^0.2.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"typescript": "*"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "c189f8663d123629a864cf9878acca5ded37f903"
|
|
24
24
|
}
|