New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/compare

Package Overview
Dependencies
Maintainers
1
Versions
136
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 7.6.1 to 7.7.0

24

lib/vars.js

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

const {template} = require('@putout/engine-parser');
const {replaceWith} = require('@putout/operate');
const {
isIdentifier,
isStringLiteral,
isTemplateElement,
isRegExpLiteral,
} = require('@babel/types');
const {replaceWith, extract} = require('@putout/operate');
const {isIdentifier} = require('@babel/types');

@@ -42,15 +37,2 @@ const {

const parseName = (node) => {
if (isStringLiteral(node))
return node.value;
if (isTemplateElement(node))
return node.value.raw;
if (isRegExpLiteral(node))
return node.pattern;
return node.name;
};
function findVarsWays(node) {

@@ -69,3 +51,3 @@ if (isIdentifier(node) && is(node.name))

const way = [];
const name = parseName(node);
const name = extract(node);

@@ -72,0 +54,0 @@ if (!is(name))

4

package.json
{
"name": "@putout/compare",
"version": "7.6.1",
"version": "7.7.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -29,3 +29,3 @@ "description": "compare ast-nodes",

"@putout/engine-parser": "^4.1.1",
"@putout/operate": "^6.0.0",
"@putout/operate": "^6.4.0",
"debug": "^4.1.1",

@@ -32,0 +32,0 @@ "jessy": "^3.0.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