@teleporthq/teleport-plugin-common
Advanced tools
Comparing version 0.38.10 to 0.38.11
@@ -179,6 +179,6 @@ "use strict"; | ||
(_a = root.openingElement) === null || _a === void 0 ? void 0 : _a.attributes.forEach(function (attribute) { | ||
var _a; | ||
if (attribute.value.type === 'StringLiteral' && | ||
((_a = attribute.value) === null || _a === void 0 ? void 0 : _a.value) && | ||
attribute.name.name === attr) { | ||
var _a, _b, _c; | ||
if (((_a = attribute.value) === null || _a === void 0 ? void 0 : _a.type) === 'StringLiteral' && | ||
((_b = attribute.value) === null || _b === void 0 ? void 0 : _b.value) && | ||
((_c = attribute.name) === null || _c === void 0 ? void 0 : _c.name) === attr) { | ||
attribute.value.value = getClassName(attribute.value.value); | ||
@@ -185,0 +185,0 @@ } |
@@ -143,6 +143,6 @@ var __assign = (this && this.__assign) || function () { | ||
(_a = root.openingElement) === null || _a === void 0 ? void 0 : _a.attributes.forEach(function (attribute) { | ||
var _a; | ||
if (attribute.value.type === 'StringLiteral' && | ||
((_a = attribute.value) === null || _a === void 0 ? void 0 : _a.value) && | ||
attribute.name.name === attr) { | ||
var _a, _b, _c; | ||
if (((_a = attribute.value) === null || _a === void 0 ? void 0 : _a.type) === 'StringLiteral' && | ||
((_b = attribute.value) === null || _b === void 0 ? void 0 : _b.value) && | ||
((_c = attribute.name) === null || _c === void 0 ? void 0 : _c.name) === attr) { | ||
attribute.value.value = getClassName(attribute.value.value); | ||
@@ -149,0 +149,0 @@ } |
{ | ||
"name": "@teleporthq/teleport-plugin-common", | ||
"version": "0.38.10", | ||
"version": "0.38.11", | ||
"description": "Common building and modelating functions for ASTs and HASTs", | ||
@@ -35,3 +35,3 @@ "author": "teleportHQ", | ||
}, | ||
"gitHead": "31ed850a98ba6eed7ca309c082a4d0a0c9101360" | ||
"gitHead": "0456f0804e1c3521487b58ee39fb4460709359f5" | ||
} |
@@ -221,5 +221,5 @@ import jss from 'jss' | ||
if ( | ||
attribute.value.type === 'StringLiteral' && | ||
attribute.value?.type === 'StringLiteral' && | ||
attribute.value?.value && | ||
attribute.name.name === attr | ||
attribute.name?.name === attr | ||
) { | ||
@@ -226,0 +226,0 @@ attribute.value.value = getClassName(attribute.value.value) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
679348