ripple 0.2.130 → 0.2.131

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is an elegant TypeScript UI framework",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.130",
6
+ "version": "0.2.131",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -81,6 +81,6 @@
81
81
  "typescript": "^5.9.2"
82
82
  },
83
83
  "peerDependencies": {
84
- "ripple": "0.2.130"
84
+ "ripple": "0.2.131"
85
85
  }
86
86
  }
@@ -366,9 +366,13 @@ export function convert_source_map_to_mappings(ast, source, generated_code, sour
366
366
  }
367
367
  return;
368
368
  } else if (node.type === 'VariableDeclarator') {
369
- // Visit in source order: id, init
369
+ // Visit in source order: id, typeAnnotation, init
370
370
  if (node.id) {
371
371
  visit(node.id);
372
+ // Visit type annotation if present
373
+ if (node.id.typeAnnotation) {
374
+ visit(node.id.typeAnnotation);
375
+ }
372
376
  }
373
377
  if (node.init) {
374
378
  visit(node.init);
@@ -486,9 +490,13 @@ export function convert_source_map_to_mappings(ast, source, generated_code, sour
486
490
  }
487
491
  return;
488
492
  } else if (node.type === 'AssignmentExpression' || node.type === 'AssignmentPattern') {
489
- // Visit in source order: left, right
493
+ // Visit in source order: left, typeAnnotation, right
490
494
  if (node.left) {
491
495
  visit(node.left);
496
+ // Visit type annotation if present (for AssignmentPattern)
497
+ if (node.left.typeAnnotation) {
498
+ visit(node.left.typeAnnotation);
499
+ }
492
500
  }
493
501
  if (node.right) {
494
502
  visit(node.right);
@@ -647,6 +655,14 @@ export function convert_source_map_to_mappings(ast, source, generated_code, sour
647
655
  // Visit the argument
648
656
  if (node.argument) {
649
657
  visit(node.argument);
658
+ // Visit type annotation if present (for RestElement)
659
+ if (node.argument.typeAnnotation) {
660
+ visit(node.argument.typeAnnotation);
661
+ }
662
+ }
663
+ // RestElement itself can have typeAnnotation
664
+ if (node.typeAnnotation) {
665
+ visit(node.typeAnnotation);
650
666
  }
651
667
  return;
652
668
  } else if (node.type === 'YieldExpression' || node.type === 'AwaitExpression') {