Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/compare

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/compare - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

4

lib/compare.js

@@ -31,2 +31,4 @@ 'use strict';

const isEmptyBlock = (a) => isBlock(a) && !a.body.length;
const compareType = (type) => (path) => path.type === type;

@@ -154,3 +156,3 @@ const extractExpression = (a) => isExpressionStatement(a) ? a.expression : a;

if (isClassBody(value) || isBlock(value))
if (isClassBody(value) || isEmptyBlock(value))
return true;

@@ -157,0 +159,0 @@

{
"name": "@putout/compare",
"version": "3.7.0",
"version": "3.8.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "compare ast-nodes",

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