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.36.0 to 8.37.0

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

1

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

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

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

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

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

const {ReturnStatement} = require('./return-statement/return-statement');
const TryStatements = require('./try-statements');
const TryStatements = require('./try-statement/try-statements');
const {DebuggerStatement} = require('./debugger-statement');

@@ -12,0 +12,0 @@ const {ForStatement} = require('./for-statement');

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

const isParentTSModuleBlock = (path) => path.parentPath.isTSModuleBlock();
const isParentBlock = (path) => /Program|BlockStatement|Export/.test(path.parentPath.type);
const isParentBlock = (path) => /Program|BlockStatement|Export|LabeledStatement/.test(path.parentPath.type);
const isInsideBlock = (path) => /^(Program|BlockStatement|TSModuleBlock|SwitchCase)$/.test(path.parentPath.type);

@@ -23,0 +23,0 @@ const isParentSwitchCase = (path) => path.parentPath.isSwitchCase();

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