babel-plugin-jsx-dom-expressions 0.35.0-beta.2 → 0.35.1

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 +13 -12
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -76,17 +76,18 @@ const ChildProperties = /*#__PURE__*/ new Set([
76
76
  ]);
77
77
 
78
78
  // React Compat
79
- const Aliases = Object.create(null);
80
- Aliases.className = "class";
81
- Aliases.htmlFor = "for";
82
-
83
- const PropAliases = Object.create(null);
84
- PropAliases.class = "className";
85
- PropAliases.formnovalidate = "formNoValidate";
86
- PropAliases.ismap = "isMap";
87
- PropAliases.nomodule = "noModule";
88
- PropAliases.playsinline = "playsInline";
89
- PropAliases.readonly = "readOnly";
79
+ const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
80
+ className: "class",
81
+ htmlFor: "for"
82
+ });
83
+ const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
84
+ class: "className",
85
+ formnovalidate: "formNoValidate",
86
+ ismap: "isMap",
87
+ nomodule: "noModule",
88
+ playsinline: "playsInline",
89
+ readonly: "readOnly"
90
+ });
90
91
 
91
92
  // list of Element events that will be delegated
92
93
  const DelegatedEvents = /*#__PURE__*/ new Set([
@@ -1460,7 +1461,7 @@ function processSpreads$1(path, attributes, { elem, isSVG, hasChildren, wrapCond
1460
1461
  wrapConditionals &&
1461
1462
  (t__namespace.isLogicalExpression(node.value.expression) ||
1462
1463
  t__namespace.isConditionalExpression(node.value.expression))
1463
- ? transformCondition(attribute.get("value").get("expression"), true)
1464
+ ? transformCondition$1(attribute.get("value").get("expression"), true)
1464
1465
  : t__namespace.arrowFunctionExpression([], node.value.expression);
1465
1466
  runningObject.push(
1466
1467
  t__namespace.objectMethod(
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-beta.2",
4
+ "version": "0.35.1",
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": "b059481668f4ec2e47b01bd7ab421102b0ff18b0"
30
+ "gitHead": "b2f42641eb3eef5c0455719e15bd729e14e1a778"
31
31
  }