New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
0
Versions
650
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/printer - npm Package Compare versions

Comparing version

to
12.2.0

15

lib/tokenize/jsx/jsx-opening-element.js

@@ -6,15 +6,20 @@ 'use strict';

const isNotJSX = ({parentPath}) => {
if (parentPath.parentPath.isCallExpression())
const grandPath = parentPath.parentPath;
if (grandPath.isObjectProperty())
return false;
if (parentPath.parentPath.isJSXElement())
if (grandPath.isCallExpression())
return false;
if (parentPath.parentPath.isJSXExpressionContainer())
if (grandPath.isJSXElement())
return false;
if (parentPath.parentPath.isJSXFragment())
if (grandPath.isJSXExpressionContainer())
return false;
return !parentPath.parentPath.isLogicalExpression();
if (grandPath.isJSXFragment())
return false;
return !grandPath.isLogicalExpression();
};

@@ -21,0 +26,0 @@

{
"name": "@putout/printer",
"version": "12.1.1",
"version": "12.2.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

Sorry, the diff of this file is not supported yet