New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
623
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.53.0 to 1.54.0

26

lib/tokenize/expressions/assignment-expression.js
'use strict';
module.exports.AssignmentExpression = (path, {print}) => {
const {operator} = path.node;
print('__left');
print(' ');
print(operator);
print(' ');
print('__right');
const {isObjectPattern} = require('@babel/types');
module.exports.AssignmentExpression = {
condition: (path) => isObjectPattern(path.node.left),
before(path, {write}) {
write('(');
},
print(path, {print}) {
const {operator} = path.node;
print('__left');
print(' ');
print(operator);
print(' ');
print('__right');
},
after(path, {write}) {
write(')');
},
};

@@ -42,2 +42,5 @@ 'use strict';

},
Import(path, {write}) {
write('import');
},
};

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

function noNextParentBlock(path) {
return !isNext(path) && path.parentPath.isBlockStatement();
if (isNext(path))
return false;
return path.parentPath.isBlockStatement();
}

@@ -72,3 +75,6 @@

function notLastCoupleLines(path) {
return !isLast(path) && isCoupleLines(path);
if (isLast(path))
return false;
return isCoupleLines(path);
}

@@ -88,3 +94,2 @@

}
const isLast = (path) => path.parentPath?.isProgram() && !isNext(path);

@@ -91,0 +96,0 @@

{
"name": "@putout/printer",
"version": "1.53.0",
"version": "1.54.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