babel-plugin-jsx-dom-expressions 0.35.0 → 0.35.2

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1461,7 +1461,7 @@ function processSpreads$1(path, attributes, { elem, isSVG, hasChildren, wrapCond
1461
1461
  wrapConditionals &&
1462
1462
  (t__namespace.isLogicalExpression(node.value.expression) ||
1463
1463
  t__namespace.isConditionalExpression(node.value.expression))
1464
- ? transformCondition(attribute.get("value").get("expression"), true)
1464
+ ? transformCondition$1(attribute.get("value").get("expression"), true)
1465
1465
  : t__namespace.arrowFunctionExpression([], node.value.expression);
1466
1466
  runningObject.push(
1467
1467
  t__namespace.objectMethod(
@@ -1476,7 +1476,7 @@ function processSpreads$1(path, attributes, { elem, isSVG, hasChildren, wrapCond
1476
1476
  runningObject.push(
1477
1477
  t__namespace.objectProperty(
1478
1478
  t__namespace.stringLiteral(key),
1479
- isContainer ? node.value.expression : node.value || t__namespace.stringLiteral("")
1479
+ isContainer ? node.value.expression : node.value || Properties.has(key) ? t__namespace.booleanLiteral(true) : t__namespace.stringLiteral("")
1480
1480
  )
1481
1481
  );
1482
1482
  }
@@ -2616,7 +2616,7 @@ function processSpreads(path, attributes, { elem, hasChildren, wrapConditionals
2616
2616
  runningObject.push(
2617
2617
  t__namespace.objectProperty(
2618
2618
  t__namespace.stringLiteral(key),
2619
- isContainer ? node.value.expression : node.value || t__namespace.stringLiteral("")
2619
+ isContainer ? node.value.expression : node.value || t__namespace.booleanLiteral(true)
2620
2620
  )
2621
2621
  );
2622
2622
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "babel-plugin-jsx-dom-expressions",
3
3
  "description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
4
- "version": "0.35.0",
4
+ "version": "0.35.2",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,5 +27,5 @@
27
27
  "peerDependencies": {
28
28
  "@babel/core": "^7.0.0"
29
29
  },
30
- "gitHead": "e391a71c39e2e6b53ac2ba3b883888b9dbba44e7"
30
+ "gitHead": "e0300cedae86061bcbde47e80a8007fdf28facd4"
31
31
  }