@marko/language-tools 2.5.2 → 2.5.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/index.js CHANGED
@@ -1204,8 +1204,8 @@ function crawlProgramScope(parsed, scriptParser) {
1204
1204
  checkForMutations(
1205
1205
  parentScope,
1206
1206
  scriptParser.expressionAt(
1207
- child.body[0].start - "()=>{\n".length,
1208
- `()=>{
1207
+ child.body[0].start - "async ()=>{\n".length,
1208
+ `async ()=>{
1209
1209
  ${read({
1210
1210
  start: child.body[0].start,
1211
1211
  end: child.body[child.body.length - 1].end
@@ -2692,7 +2692,7 @@ const attrTags = ${varShared(
2692
2692
  let hasRenderBody = false;
2693
2693
  let body;
2694
2694
  if (isScript) {
2695
- this.#extractor.write("value(){");
2695
+ this.#extractor.write("async value(){");
2696
2696
  this.#copyWithMutationsReplaced({
2697
2697
  start: tag.body[0].start,
2698
2698
  end: tag.body[tag.body.length - 1].end
package/dist/index.mjs CHANGED
@@ -1165,8 +1165,8 @@ function crawlProgramScope(parsed, scriptParser) {
1165
1165
  checkForMutations(
1166
1166
  parentScope,
1167
1167
  scriptParser.expressionAt(
1168
- child.body[0].start - "()=>{\n".length,
1169
- `()=>{
1168
+ child.body[0].start - "async ()=>{\n".length,
1169
+ `async ()=>{
1170
1170
  ${read({
1171
1171
  start: child.body[0].start,
1172
1172
  end: child.body[child.body.length - 1].end
@@ -2656,7 +2656,7 @@ const attrTags = ${varShared(
2656
2656
  let hasRenderBody = false;
2657
2657
  let body;
2658
2658
  if (isScript) {
2659
- this.#extractor.write("value(){");
2659
+ this.#extractor.write("async value(){");
2660
2660
  this.#copyWithMutationsReplaced({
2661
2661
  start: tag.body[0].start,
2662
2662
  end: tag.body[tag.body.length - 1].end
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/language-tools",
3
3
  "description": "Marko Language Tools",
4
- "version": "2.5.2",
4
+ "version": "2.5.3",
5
5
  "bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
6
6
  "peerDependencies": {
7
7
  "@marko/compiler": "^5.28.4"
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@babel/code-frame": "^7.26.2",
17
- "@marko/compiler": "^5.38.3",
17
+ "@marko/compiler": "^5.38.4",
18
18
  "@marko/translator-default": "^6.1.2",
19
19
  "@types/babel__code-frame": "^7.0.6",
20
20
  "@typescript/vfs": "^1.6.0",