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.56.0 to 1.57.0

1

lib/tokenize/expressions/call-expression.js

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

}
module.exports.OptionalCallExpression = CallExpression;

@@ -56,0 +57,0 @@ module.exports.CallExpression = CallExpression;

6

lib/tokenize/expressions/class.js

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

module.exports.ClassDeclaration = (path, {print, indent}) => {
module.exports.ClassDeclaration = (path, {print, indent, maybe}) => {
indent();

@@ -13,6 +13,7 @@

indent,
maybe,
});
};
function classVisitor(path, {print, indent}) {
function classVisitor(path, {print, indent, maybe}) {
print('class ');

@@ -30,2 +31,3 @@ print('__id');

if (node.superClass) {
maybe.print.space(path.node.id);
print('extends ');

@@ -32,0 +34,0 @@ print('__superClass');

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

}
module.exports.ObjectProperty = (path, {print, maybe}) => {

@@ -67,0 +68,0 @@ const {

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

}
const isWord = (a) => /delete|typeof/.test(a);

@@ -35,0 +36,0 @@

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

}
module.exports.exists = (a) => a.node;

@@ -50,0 +51,0 @@ module.exports.isStringAndIdentifier = ([a, b]) => isStringLiteral(a) && isIdentifier(b);

@@ -25,2 +25,7 @@ 'use strict';

},
JSXMemberExpression(path, {print}) {
print('__object');
print('.');
print('__property');
},
JSXSpreadAttribute(path, {print, maybe}) {

@@ -27,0 +32,0 @@ const isNewline = isCoupleLines(path.parentPath);

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

}
module.exports.isMarkedAfter = isMarkedAfter;

@@ -23,4 +24,5 @@

}
module.exports.hasPrevNewline = (path) => {
return isMarkedAfter(path.getPrevSibling());
};

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

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

@@ -119,2 +120,3 @@

}
const isNextAssign = (path) => {

@@ -121,0 +123,0 @@ const nextPath = path.getNextSibling();

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

}
const createAddToken = (tokens) => {

@@ -241,2 +242,3 @@ const log = createLog();

}
const createPrint = (path, {traverse, write}) => (maybeLine) => {

@@ -243,0 +245,0 @@ if (maybeLine === path)

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