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
|
@@ -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
|
-
|
|
501
|
-
|
|
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') {
|