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
604
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.58.0 to 1.59.0

lib/tokenize/expressions/functions/class-method.js

25

lib/tokenize/expressions/functions/functions.js

@@ -5,5 +5,7 @@ 'use strict';

const {FunctionDeclaration} = require('./function-declaration');
const {ClassMethod} = require('./class-method');
module.exports.ArrowFunctionExpression = ArrowFunctionExpression;
module.exports.FunctionDeclaration = FunctionDeclaration;
module.exports.ClassMethod = ClassMethod;

@@ -67,24 +69,1 @@ module.exports.FunctionExpression = (path, {print, maybe, write, traverse}) => {

};
module.exports.ClassMethod = (path, {print, maybe}) => {
const {kind} = path.node;
const notMethod = kind !== 'method';
const notConstructor = kind !== 'constructor';
maybe.print(notMethod, `${kind} `);
maybe.print(notConstructor, '__key');
print('(');
const params = path.get('params');
const n = params.length;
for (let i = 0; i < n; i++) {
print(params[i]);
if (i < n - 1)
print(', ');
}
print(') ');
print('__body');
};

@@ -45,2 +45,6 @@ 'use strict';

},
Super(path, {write}) {
write('super');
},
};
{
"name": "@putout/printer",
"version": "1.58.0",
"version": "1.59.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