ripple 0.2.95 → 0.2.96

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.95",
6
+ "version": "0.2.96",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -140,6 +140,12 @@ const visitors = {
140
140
  },
141
141
 
142
142
  CallExpression(node, context) {
143
+ // bug in our acorn pasrer: it uses typeParameters instead of typeArguments
144
+ if (node.typeParameters) {
145
+ node.typeArguments = node.typeParameters;
146
+ delete node.typeParameters;
147
+ }
148
+
143
149
  const callee = node.callee;
144
150
 
145
151
  if (context.state.function_depth === 0 && is_ripple_track_call(callee, context)) {
@@ -497,9 +503,9 @@ const visitors = {
497
503
  if (attr.name.type === 'Identifier') {
498
504
  attribute_names.add(attr.name);
499
505
  }
500
- if (attr.value !== null) {
501
- visit(attr.value, state);
502
- }
506
+ if (attr.value !== null) {
507
+ visit(attr.value, state);
508
+ }
503
509
  } else if (attr.type === 'SpreadAttribute') {
504
510
  visit(attr.argument, state);
505
511
  } else if (attr.type === 'RefAttribute') {