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.69.0 to 1.69.1

1

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

@@ -37,2 +37,1 @@ 'use strict';

};

@@ -14,2 +14,1 @@ 'use strict';

module.exports.ObjectMethod = ObjectMethod;

2

lib/tokenize/is.js

@@ -89,2 +89,2 @@ 'use strict';

module.exports.noTrailingComment = (path) => !path.node.trailingComments;
module.exports.noTrailingComment = (path) => !path.node.trailingComments?.length;

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

} = require('../is');
const {isObjectMethod} = require('@babel/types');
const {isArrowFunctionExpression} = require('@babel/types');
const isFirstStatement = (path) => path.get('body.0')?.isStatement();

@@ -53,3 +54,3 @@

if (path.find(isObjectMethod))
if (path.parentPath.isIfStatement() && path.find(isArrowFunctionExpression))
return true;

@@ -56,0 +57,0 @@

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