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
604
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.70.2 to 1.70.3

3

lib/tokenize/expressions/object-expression.js

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

noTrailingComment,
isNewlineBetweenSiblings,
} = require('../is');

@@ -54,2 +56,3 @@

maybe.print.newline(manyLines && noTrailingComment(property));
maybe.print.linebreak(isNewlineBetweenSiblings(property));
}

@@ -56,0 +59,0 @@

2

lib/tokenize/is.js

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

module.exports.isNewlineBetweenStatements = (path) => {
module.exports.isNewlineBetweenSiblings = (path) => {
const endCurrent = path.node?.loc?.end?.line;

@@ -74,0 +74,0 @@ const startNext = path.getNextSibling().node?.loc?.start?.line;

'use strict';
const {isNewlineBetweenStatements} = require('../is');
const {isNewlineBetweenSiblings} = require('../is');
const {

@@ -69,3 +69,3 @@ markAfter,

return isNewlineBetweenStatements(path);
return isNewlineBetweenSiblings(path);
},

@@ -72,0 +72,0 @@ after(path, {print}) {

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

isParentLast,
isNewlineBetweenStatements,
isNewlineBetweenSiblings,
satisfy,

@@ -14,3 +14,3 @@ } = require('../is');

const shouldBreakline = satisfy([
isNewlineBetweenStatements,
isNewlineBetweenSiblings,
isNotLastBody,

@@ -17,0 +17,0 @@ isStrictMode,

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

isCoupleLines,
isNewlineBetweenStatements,
isNewlineBetweenSiblings,
} = require('../is');

@@ -46,3 +46,3 @@

notLastPrevVarNotNextVar,
isNewlineBetweenStatements,
isNewlineBetweenSiblings,
notLastParentExport,

@@ -49,0 +49,0 @@ ],

{
"name": "@putout/printer",
"version": "1.70.2",
"version": "1.70.3",
"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