astro-vscode 2.0.14 → 2.0.15
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/dist/node/client.js +8 -1
- package/dist/node/server.js +9 -2
- package/package.json +2 -2
package/dist/node/client.js
CHANGED
|
@@ -220559,7 +220559,14 @@ var require_utils6 = __commonJS({
|
|
|
220559
220559
|
function patchTSX(code, fileName) {
|
|
220560
220560
|
const basename = path2.basename(fileName, path2.extname(fileName));
|
|
220561
220561
|
const isDynamic = basename.startsWith("[") && basename.endsWith("]");
|
|
220562
|
-
return code.replace(/\b(\S*)__AstroComponent_
|
|
220562
|
+
return code.replace(/\b(\S*)__AstroComponent_/gm, (fullMatch, m1) => {
|
|
220563
|
+
if (!m1) {
|
|
220564
|
+
if (basename === "404")
|
|
220565
|
+
return "FourOhFour";
|
|
220566
|
+
return fullMatch;
|
|
220567
|
+
}
|
|
220568
|
+
return isDynamic ? `_${m1}_` : m1[0].toUpperCase() + m1.slice(1);
|
|
220569
|
+
});
|
|
220563
220570
|
}
|
|
220564
220571
|
exports.patchTSX = patchTSX;
|
|
220565
220572
|
}
|
package/dist/node/server.js
CHANGED
|
@@ -65,7 +65,7 @@ var require_package = __commonJS({
|
|
|
65
65
|
"../language-server/package.json"(exports2, module2) {
|
|
66
66
|
module2.exports = {
|
|
67
67
|
name: "@astrojs/language-server",
|
|
68
|
-
version: "2.0.
|
|
68
|
+
version: "2.0.15",
|
|
69
69
|
author: "withastro",
|
|
70
70
|
license: "MIT",
|
|
71
71
|
repository: {
|
|
@@ -239858,7 +239858,14 @@ var require_utils = __commonJS({
|
|
|
239858
239858
|
function patchTSX(code, fileName) {
|
|
239859
239859
|
const basename = path.basename(fileName, path.extname(fileName));
|
|
239860
239860
|
const isDynamic = basename.startsWith("[") && basename.endsWith("]");
|
|
239861
|
-
return code.replace(/\b(\S*)__AstroComponent_
|
|
239861
|
+
return code.replace(/\b(\S*)__AstroComponent_/gm, (fullMatch, m1) => {
|
|
239862
|
+
if (!m1) {
|
|
239863
|
+
if (basename === "404")
|
|
239864
|
+
return "FourOhFour";
|
|
239865
|
+
return fullMatch;
|
|
239866
|
+
}
|
|
239867
|
+
return isDynamic ? `_${m1}_` : m1[0].toUpperCase() + m1.slice(1);
|
|
239868
|
+
});
|
|
239862
239869
|
}
|
|
239863
239870
|
exports2.patchTSX = patchTSX;
|
|
239864
239871
|
}
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.0.
|
|
27
|
+
"version": "2.0.15",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
]
|
|
209
209
|
},
|
|
210
210
|
"devDependencies": {
|
|
211
|
-
"@astrojs/language-server": "^2.0.
|
|
211
|
+
"@astrojs/language-server": "^2.0.15",
|
|
212
212
|
"@types/glob": "^8.1.0",
|
|
213
213
|
"@types/mocha": "^10.0.1",
|
|
214
214
|
"@types/node": "^16.18.26",
|