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 14.3.1 to 14.4.0

6

lib/vars.js

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

const BODY_AND_CLASS_REG = /\.body\.0(\.key)?$/;
module.exports.getTemplateValues = (node, str) => {

@@ -113,3 +115,3 @@ if (!isString(str))

if (isBodyStr(name))
way = way.replace(/\.body\.0$/, '');
way = way.replace(BODY_AND_CLASS_REG, '');

@@ -155,3 +157,3 @@ result[name] = result[name] || extractExpression(jessy(way, node));

if (isBodyStr(name))
way = way.replace(/\.body\.0$/, '');
way = way.replace(BODY_AND_CLASS_REG, '');

@@ -158,0 +160,0 @@ const {extra} = jessy(way, node);

{
"name": "@putout/compare",
"version": "14.3.1",
"version": "14.4.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -190,2 +190,6 @@ # @putout/compare [![NPM version][NPMIMGURL]][NPMURL]

true;
compare(`class a {hello: 'world'}`, 'class __a {__body}');
// returns
true;
```

@@ -192,0 +196,0 @@

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