Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-object-prop-persist

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-object-prop-persist - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc