babel-plugin-jsx-dom-expressions 0.32.8 → 0.32.9

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 +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1642,7 +1642,7 @@ function transformAttributes$1(path, results) {
1642
1642
  if (attr.name.name === "classList") {
1643
1643
  if (t__namespace.isObjectExpression(expr) && !expr.properties.some(p => t__namespace.isSpreadElement(p))) {
1644
1644
  transformClasslistObject(path, expr, values, quasis);
1645
- i && attributes.splice(attributes.indexOf(classAttributes[i].node), 1);
1645
+ i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
1646
1646
  continue;
1647
1647
  }
1648
1648
  expr = t__namespace.callExpression(registerImportMethod(path, "ssrClassList"), [expr]);
@@ -1650,7 +1650,7 @@ function transformAttributes$1(path, results) {
1650
1650
  values.push(t__namespace.logicalExpression("||", expr, t__namespace.stringLiteral("")));
1651
1651
  quasis.push(t__namespace.TemplateElement({ raw: isLast ? "" : " " }));
1652
1652
  }
1653
- i && attributes.splice(attributes.indexOf(classAttributes[i].node), 1);
1653
+ i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
1654
1654
  }
1655
1655
  first.value = t__namespace.JSXExpressionContainer(t__namespace.TemplateLiteral(quasis, values));
1656
1656
  }
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.32.8",
4
+ "version": "0.32.9",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "@babel/types": "^7.16.0",
24
24
  "html-entities": "2.3.2"
25
25
  },
26
- "gitHead": "eb04f05afe9f5509132b9734b19d804aed55562f"
26
+ "gitHead": "8a9b236619e0d18abee5da391cae33e25e82f92a"
27
27
  }