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
596
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.35.2 to 8.36.0

1

lib/tokenize/statements/if-statement/if-statement.js

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

const isVar = consequent.isVariableDeclaration();
const isRet = consequent.isReturnStatement();

@@ -38,0 +39,0 @@ if (isConsequentBlock) {

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

const isInsideIfWithElse = ({parentPath}) => parentPath.isIfStatement() && parentPath.node.alternate;
module.exports.ReturnStatement = {

@@ -44,2 +46,5 @@ beforeIf(path) {

afterIf: (path) => {
if (isInsideIfWithElse(path))
return true;
if (isLast(path))

@@ -46,0 +51,0 @@ return false;

2

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