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 8.18.0 to 8.19.0

22

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

@@ -10,2 +10,4 @@ 'use strict';

isSimpleAndEmptyObject,
isNext,
} = require('../../is');

@@ -41,2 +43,3 @@

const isNextSpread = (a) => a.getNextSibling().isSpreadElement();
const isNextSpreadBetweenObjects = (a) => {

@@ -49,3 +52,5 @@ const next = a.getNextSibling();

return next.getNextSibling().isObjectExpression();
return next
.getNextSibling()
.isObjectExpression();
};

@@ -102,3 +107,3 @@

if (index && isSpreadElement(element) && !isNextSpread(element) && !isNextObject(element))
if (isSpreadAfterObject(element))
print.newline();

@@ -167,1 +172,14 @@

};
function isSpreadAfterObject(path) {
if (!isSpreadElement(path))
return;
const prev = path.getPrevSibling();
const next = path.getNextSibling();
if (next.isObjectExpression())
return false;
return prev.isObjectExpression();
}

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

...down(path),
...up(path),

@@ -10,0 +11,0 @@ ];

2

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