@astrojs/ts-plugin 1.9.1 → 1.9.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/dist/astro2tsx.js CHANGED
@@ -129,7 +129,7 @@ function getVirtualFileTSX(input, tsx, fileName) {
129
129
  function patchTSX(code, fileName) {
130
130
  const basename = node_path_1.default.basename(fileName, node_path_1.default.extname(fileName));
131
131
  const isDynamic = basename.startsWith('[') && basename.endsWith(']');
132
- return code.replace(/\b(\S*)__AstroComponent_/gm, (fullMatch, m1) => {
132
+ return code.replace(/\b(\S*)__AstroComponent_/g, (fullMatch, m1) => {
133
133
  // If we don't have a match here, it usually means the file has a weird name that couldn't be expressed with valid identifier characters
134
134
  if (!m1) {
135
135
  if (basename === '404')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/ts-plugin",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "A TypeScript Plugin providing Astro intellisense",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@volar/language-core": "~2.4.0-alpha.15",
26
26
  "@volar/typescript": "~2.4.0-alpha.15",
27
- "@astrojs/compiler": "^2.10.1",
27
+ "@astrojs/compiler": "^2.10.3",
28
28
  "@jridgewell/sourcemap-codec": "^1.4.15",
29
29
  "semver": "^7.3.8",
30
30
  "vscode-languageserver-textdocument": "^1.0.11"