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
1
Versions
623
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 1.49.1 to 1.50.0

10

lib/tokenize/expressions/array-expression.js

@@ -24,2 +24,5 @@ 'use strict';

const isOneElementCall = (path, {elements}) => path.parentPath.isCallExpression() && elements.length === 1;
const isTwoElementReturn = (path, {elements}) => path.parentPath.isReturnStatement() && elements.length === 2;
const isTwoLongStrings = ([a, b]) => {

@@ -176,8 +179,11 @@ const LONG_STRING = 20;

function isNewlineBetweenElements(path, {elements}) {
if (isIncreaseIndent(path))
if (isTwoElementReturn(path, {elements}))
return false;
if (isInsideCallLoop(path))
if (isOneElementCall(path, {elements}))
return false;
if (isIncreaseIndent(path))
return false;
if (isInsideLoop(path))

@@ -184,0 +190,0 @@ return false;

2

package.json
{
"name": "@putout/printer",
"version": "1.49.1",
"version": "1.50.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

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