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

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
599
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.15.0 to 1.15.1

20

lib/tokenize/expressions/array-expression.js

@@ -36,3 +36,3 @@ 'use strict';

maybe.print(isNewLine && elements.length, '\n');
maybe.print.newline(isNewLine && elements.length);

@@ -42,3 +42,4 @@ for (const [index, element] of elements.entries()) {

print(element);
maybe.print(isNewLine, ',\n');
maybe.print(isNewLine, ',');
maybe.print.newline(isNewLine);
maybe.print(!isNewLine && index < n, ', ');

@@ -92,2 +93,5 @@ }

if (isInsideCallLoop(path))
return false;
if (elements[0].isObjectExpression())

@@ -117,2 +121,5 @@ return true;

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

@@ -143,1 +150,10 @@ return false;

function isInsideCallLoop(path) {
if (!path.parentPath.isCallExpression())
return false;
if (!path.parentPath.parentPath.isForOfStatement())
return false;
return true;
}

2

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