@vue/typescript-plugin 2.2.6 → 2.2.8
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getComponentInfo = getComponentInfo;
|
|
4
|
+
const shared_1 = require("@vue/shared");
|
|
5
|
+
const getComponentEvents_1 = require("./getComponentEvents");
|
|
6
|
+
const getComponentProps_1 = require("./getComponentProps");
|
|
7
|
+
const globalProperties = [
|
|
8
|
+
'key',
|
|
9
|
+
'ref',
|
|
10
|
+
'ref_for',
|
|
11
|
+
'ref_key',
|
|
12
|
+
'class',
|
|
13
|
+
'style'
|
|
14
|
+
];
|
|
15
|
+
function getComponentInfo(fileName, tag) {
|
|
16
|
+
const props = getComponentProps_1.getComponentProps.call(this, fileName, tag, true)?.filter(({ name }) => !globalProperties.includes(name) && !(0, shared_1.hyphenate)(name).startsWith('on-vnode-'));
|
|
17
|
+
const events = getComponentEvents_1.getComponentEvents.call(this, fileName, tag);
|
|
18
|
+
return {
|
|
19
|
+
props,
|
|
20
|
+
events,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=getComponentInfo.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/typescript-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@volar/typescript": "~2.4.11",
|
|
17
|
-
"@vue/language-core": "2.2.
|
|
17
|
+
"@vue/language-core": "2.2.8",
|
|
18
18
|
"@vue/shared": "^3.5.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.10.4"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "cdf00e6f19971260607ea2347924b94126a254fc"
|
|
24
24
|
}
|