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
602
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.22.0 to 1.23.0

13

lib/tokenize/expressions/object-expression.js

@@ -8,2 +8,3 @@ 'use strict';

const isIf = (path) => path.parentPath.parentPath.isIfStatement();
const isParentExpression = (path) => path.parentPath.isExpressionStatement();

@@ -22,3 +23,3 @@ const isForOf = (path) => {

const {length} = properties;
const parens = isBodyOfArrow(path);
const parens = isParens(path);
const manyLines = !isOneLine(path);

@@ -107,1 +108,11 @@

}
function isParens(path) {
if (isBodyOfArrow(path))
return true;
if (isParentExpression(path))
return true;
return false;
}

2

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