nesquick 0.0.24 → 0.0.25

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.
@@ -48,8 +48,8 @@ const transformer = context => {
48
48
  return TS.visitEachChild(node, node => visitorExpression(node, { ...options, isJsxAttribute: false }), context);
49
49
  }
50
50
  else if (options.isJsxAttribute && TS.isStringLiteral(node)) {
51
- const returnNode = TS.visitNode(node, node => visitorExpression(node, { ...options, isJsxAttribute: false }));
52
- if (TS.isExpression(returnNode)) {
51
+ const returnNode = TS.visitNode(node, node => visitorExpression(node, { ...options, isJsxAttribute: false }), TS.isExpression);
52
+ if (!TS.isStringLiteral(returnNode)) {
53
53
  return TS.factory.createJsxExpression(undefined, returnNode);
54
54
  }
55
55
  return returnNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nesquick",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "React-like library with focus on drawing performance",
5
5
  "types": "./lib/types",
6
6
  "main": "./lib",