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

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 +1 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -774,7 +774,7 @@ function transformAttributes$2(path, results) {
774
774
  values.push(t__namespace.logicalExpression("||", attr.value.expression, t__namespace.stringLiteral("")));
775
775
  quasis.push(t__namespace.TemplateElement({ raw: isLast ? "" : " " }));
776
776
  }
777
- i && attributes.splice(classAttributes[i].key, 1);
777
+ i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
778
778
  }
779
779
  if (values.length) first.value = t__namespace.JSXExpressionContainer(t__namespace.TemplateLiteral(quasis, values));
780
780
  else first.value = t__namespace.stringLiteral(quasis[0].value.raw);
@@ -2510,9 +2510,6 @@ function transformThis(path) {
2510
2510
  ThisExpression(path) {
2511
2511
  thisId || (thisId = path.scope.generateUidIdentifier("self$"));
2512
2512
  path.replaceWith(thisId);
2513
- },
2514
- Function(p) {
2515
- p.skip();
2516
2513
  }
2517
2514
  });
2518
2515
  return node => {
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.9",
4
+ "version": "0.32.10",
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": "8a9b236619e0d18abee5da391cae33e25e82f92a"
26
+ "gitHead": "1da59f42123c3be08a4766389d10b27922ece4af"
27
27
  }