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.61.0 to 1.61.1

3

lib/tokenize/expressions/class.js
'use strict';
const {isNext} = require('../is');
const {markAfter} = require('../mark');

@@ -19,2 +20,4 @@ module.exports.ClassExpression = classVisitor;

write.newline();
write.newline();
markAfter(path);
}

@@ -21,0 +24,0 @@ };

12

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

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

const {isNext} = require('../../is');
const isFirst = (path) => !path.getPrevSibling().node;
module.exports.FunctionDeclaration = {
beforeIf(path) {
if (isFirst(path))
return false;
const prev = path.getPrevSibling();
return prev.isClassDeclaration();
},
before(path, {write}) {
write.newline();
},
print(path, {print, maybe}) {

@@ -21,0 +9,0 @@ const {async} = path.node;

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