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
599
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.8.7 to 1.8.8

11

lib/tokenize/statements/block-statement.js
'use strict';
const {isNext} = require('../is');
const {
isNext,
isProgramParent,
} = require('../is');
const isFirstStatement = (path) => path.get('body.0')?.isStatement();

@@ -38,2 +41,5 @@

if (!isNext(path) && !isNext(path.parentPath) && isProgramParent(path.parentPath))
return false;
if (parentPath.isStatement() && !path.node.body.length && !isNext(parentPath))

@@ -45,5 +51,2 @@ return false;

if (parentPath.isIfStatement() && parentPath.get('consequent').node === path.node && parentPath.node.alternate)
return false;
return true;

@@ -50,0 +53,0 @@ }

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