vue-component-meta 3.2.6 → 3.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.
- package/lib/checker.js +5 -1
- package/lib/componentMeta.js +2 -2
- package/package.json +4 -4
package/lib/checker.js
CHANGED
|
@@ -82,7 +82,11 @@ function createCheckerBase(ts, getConfigAndFiles, checkerOptions, rootPath) {
|
|
|
82
82
|
});
|
|
83
83
|
const { languageServiceHost } = (0, typescript_1.createLanguageServiceHost)(ts, ts.sys, language, s => s, projectHost);
|
|
84
84
|
const tsLs = ts.createLanguageService(languageServiceHost);
|
|
85
|
-
const printer = ts.createPrinter(
|
|
85
|
+
const printer = ts.createPrinter({
|
|
86
|
+
...checkerOptions.printer,
|
|
87
|
+
// @ts-expect-error internal option to prevent unicode-escaping non-ASCII characters
|
|
88
|
+
neverAsciiEscape: true,
|
|
89
|
+
});
|
|
86
90
|
const getScriptKind = languageServiceHost.getScriptKind?.bind(languageServiceHost);
|
|
87
91
|
if (checkerOptions.forceUseTs ?? true) {
|
|
88
92
|
languageServiceHost.getScriptKind = fileName => {
|
package/lib/componentMeta.js
CHANGED
|
@@ -154,11 +154,11 @@ function getComponentMeta(ts, typeChecker, printer, language, getSourceScript, c
|
|
|
154
154
|
let decl = componentNode;
|
|
155
155
|
// const __VLS_export = ...
|
|
156
156
|
const text = componentFile.text.slice(decl.pos, decl.end);
|
|
157
|
-
if (text.includes(core.names.
|
|
157
|
+
if (text.includes(core.names.export)) {
|
|
158
158
|
ts.forEachChild(componentFile, child2 => {
|
|
159
159
|
if (ts.isVariableStatement(child2)) {
|
|
160
160
|
for (const { name, initializer } of child2.declarationList.declarations) {
|
|
161
|
-
if (name.getText() === core.names.
|
|
161
|
+
if (name.getText() === core.names.export && initializer) {
|
|
162
162
|
decl = initializer;
|
|
163
163
|
}
|
|
164
164
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@volar/typescript": "2.4.28",
|
|
17
|
-
"@vue/language-core": "3.2.
|
|
17
|
+
"@vue/language-core": "3.2.8",
|
|
18
18
|
"path-browserify": "^1.0.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.10.4",
|
|
22
|
-
"@types/path-browserify": "^1.0.
|
|
22
|
+
"@types/path-browserify": "^1.0.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"typescript": "*"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"optional": true
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "618bd6bfb19729726787df7b52fccda72c888c95"
|
|
33
33
|
}
|