babel-plugin-react-object-prop-persist
Advanced tools
Comparing version 1.2.2 to 1.2.3
14
index.js
@@ -32,8 +32,10 @@ const t = require("@babel/types"); | ||
if ( | ||
ObjectPropertyPath.node?.value?.type === | ||
"Identifier" || | ||
ObjectPropertyPath.node?.value?.type === | ||
"TemplateLiteral" || | ||
ObjectPropertyPath.node?.value?.type === | ||
"BinaryExpression" | ||
[ | ||
"ConditionalExpression", | ||
"Identifier", | ||
"TemplateLiteral", | ||
"BinaryExpression", | ||
].includes( | ||
ObjectPropertyPath.node?.value?.type | ||
) | ||
) { | ||
@@ -40,0 +42,0 @@ flag = false; |
@@ -28,4 +28,4 @@ "use strict"; | ||
enter: function enter(ObjectPropertyPath) { | ||
var _ObjectPropertyPath$n, _ObjectPropertyPath$n2, _ObjectPropertyPath$n3, _ObjectPropertyPath$n4, _ObjectPropertyPath$n5, _ObjectPropertyPath$n6; | ||
if (((_ObjectPropertyPath$n = ObjectPropertyPath.node) === null || _ObjectPropertyPath$n === void 0 ? void 0 : (_ObjectPropertyPath$n2 = _ObjectPropertyPath$n.value) === null || _ObjectPropertyPath$n2 === void 0 ? void 0 : _ObjectPropertyPath$n2.type) === "Identifier" || ((_ObjectPropertyPath$n3 = ObjectPropertyPath.node) === null || _ObjectPropertyPath$n3 === void 0 ? void 0 : (_ObjectPropertyPath$n4 = _ObjectPropertyPath$n3.value) === null || _ObjectPropertyPath$n4 === void 0 ? void 0 : _ObjectPropertyPath$n4.type) === "TemplateLiteral" || ((_ObjectPropertyPath$n5 = ObjectPropertyPath.node) === null || _ObjectPropertyPath$n5 === void 0 ? void 0 : (_ObjectPropertyPath$n6 = _ObjectPropertyPath$n5.value) === null || _ObjectPropertyPath$n6 === void 0 ? void 0 : _ObjectPropertyPath$n6.type) === "BinaryExpression") { | ||
var _ObjectPropertyPath$n, _ObjectPropertyPath$n2; | ||
if (["ConditionalExpression", "Identifier", "TemplateLiteral", "BinaryExpression"].includes((_ObjectPropertyPath$n = ObjectPropertyPath.node) === null || _ObjectPropertyPath$n === void 0 ? void 0 : (_ObjectPropertyPath$n2 = _ObjectPropertyPath$n.value) === null || _ObjectPropertyPath$n2 === void 0 ? void 0 : _ObjectPropertyPath$n2.type)) { | ||
flag = false; | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "babel-plugin-react-object-prop-persist", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129
7775