ripple 0.2.201 → 0.2.202

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.201",
6
+ "version": "0.2.202",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -97,6 +97,6 @@
97
97
  "vscode-languageserver-types": "^3.17.5"
98
98
  },
99
99
  "peerDependencies": {
100
- "ripple": "0.2.201"
100
+ "ripple": "0.2.202"
101
101
  }
102
102
  }
@@ -413,9 +413,9 @@ const visitors = {
413
413
  is_capitalized: true,
414
414
  },
415
415
  };
416
- return b.member(capitalized_node, b.literal('#v'), true);
416
+ return b.member(capitalized_node, b.literal('#v'), true, true);
417
417
  }
418
- return b.member(node, b.literal('#v'), true);
418
+ return b.member(node, b.literal('#v'), true, true);
419
419
  }
420
420
  } else {
421
421
  const binding = context.state.scope.get(node.name);
@@ -758,7 +758,10 @@ const visitors = {
758
758
  member,
759
759
  b.literal('#v'),
760
760
  true,
761
- undefined,
761
+ // Always set optional just in case as we don't know if the user's
762
+ // ts declaration had it as optional
763
+ // It's safe to set it as ts won't report it as such unless the user's ts had it
764
+ true,
762
765
  /** @type {AST.NodeWithLocation} */ (node),
763
766
  );
764
767
  } else {