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
630
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 12.13.0 to 12.14.0

12

lib/tokenize/expressions/function/function-declaration.js

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

isExpressionStatement,
isFunctionDeclaration,
} = types;

@@ -53,4 +54,6 @@

afterSatisfy: () => [isNext, isNextParent, isInsideBlockStatement],
after(path, {write, maybe}) {
maybe.indent(isNextAssign(path));
after(path, {write, indent}) {
if (isNextAssign(path) || isNextFunction(path))
indent();
write.newline();

@@ -61,2 +64,7 @@ markAfter(path);

const isNextFunction = (path) => {
const next = path.getNextSibling();
return isFunctionDeclaration(next);
};
const isNextAssign = (path) => {

@@ -63,0 +71,0 @@ const next = path.getNextSibling();

2

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