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
596
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 8.25.0 to 8.26.0

4

lib/tokenize/expressions/array-expression/newline.js

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

const isBooleanAndSimple = ([a, b]) => isBooleanLiteral(a) && isSimple(b);
const isBooleanAndObject = ([a, b]) => isBooleanLiteral(a) && isObjectExpression(b);
const isNullAndSimple = ([a, b]) => isNullLiteral(a) && isSimple(b);

@@ -262,2 +263,5 @@ const isSimpleAndObject = ([a, b]) => isSimple(a) && isObjectExpression(b);

if (isBooleanAndObject(elements))
return true;
if (isInsideCallLoop(path))

@@ -264,0 +268,0 @@ return false;

5

lib/tokenize/expressions/object-expression/object-expression.js

@@ -56,3 +56,4 @@ 'use strict';

maybe.indent.inc(isMemberExpressionCallee(path));
const memberCallee = isMemberExpressionCallee(path);
maybe.indent.inc(memberCallee);

@@ -98,3 +99,3 @@ for (const [index, property] of properties.entries()) {

maybe.indent.dec(isMemberExpressionCallee(path));
maybe.indent.dec(memberCallee);
};

@@ -101,0 +102,0 @@

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

});
const moreCount = moreThenMaxPropertiesInOneLine(path, {

@@ -173,0 +174,0 @@ maxPropertiesInOneLine,

{
"name": "@putout/printer",
"version": "8.25.0",
"version": "8.26.0",
"type": "commonjs",

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

@@ -299,3 +299,3 @@ # Printer [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

```js
const {readFileSync} = require('fs');
const {readFileSync} = require('node:fs');

@@ -302,0 +302,0 @@ const putout = require('putout');

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