babel-plugin-vasille 4.1.0 → 4.1.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.
package/lib/expression.js CHANGED
@@ -278,7 +278,7 @@ function checkExpression(nodePath, search) {
278
278
  checkExpression(right, search);
279
279
  /* istanbul ignore else */
280
280
  if (!t.isPrivateName(property)) {
281
- path.replaceWith(search.external.set(left.node.object, property, right.node));
281
+ path.replaceWith(search.external.set(left.node.object, !left.node.computed && t.isIdentifier(property) ? t.stringLiteral(property.name) : property, right.node));
282
282
  }
283
283
  }
284
284
  else {
package/lib/mesh.js CHANGED
@@ -209,7 +209,7 @@ function meshExpression(nodePath, internal) {
209
209
  meshExpression(right, internal);
210
210
  /* istanbul ignore else */
211
211
  if (!t.isPrivateName(property)) {
212
- path.replaceWith(internal.set(left.node.object, property, right.node));
212
+ path.replaceWith(internal.set(left.node.object, !left.node.computed && t.isIdentifier(property) ? t.stringLiteral(property.name) : property, right.node));
213
213
  }
214
214
  }
215
215
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-vasille",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Convert Vasille Meta Language code to pure JavaScript",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",