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 9.3.0 to 9.4.0

3

lib/compare.js

@@ -36,2 +36,3 @@ 'use strict';

const noop = () => {};
const isEmptyArray = (a) => isArray(a) && !a.length;

@@ -169,3 +170,3 @@ const compareType = (type) => (path) => path.type === type;

if (!node)
if (!node || isEmptyArray(node) && !isEmptyArray(template))
return false;

@@ -172,0 +173,0 @@

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

const {isArray} = Array;
const parseName = (node) => {
node = node[0] || node;
const {name, value} = node;

@@ -33,4 +32,3 @@

if (!isArray(nodeValue))
add(templateStore[name], nodeValue);
add(templateStore[name], nodeValue);

@@ -37,0 +35,0 @@ return true;

{
"name": "@putout/compare",
"version": "9.3.0",
"version": "9.4.0",
"type": "commonjs",

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

@@ -96,3 +96,3 @@ # @putout/compare [![NPM version][NPMIMGURL]][NPMURL]

##### __args, __args_a
##### __args, __args__a

@@ -109,2 +109,14 @@ Any count of `arguments`:

Or linked `arguments`:
```js
compare('((a) => fn(a))(value)', '((__args__a) => __c(__args__a))(__args__b)');
// returns
true;
compare('((a) => fn(42))(value)', '((__args__a) => __c(__args__a))(__args__b)');
// returns
false;
```
##### __imports

@@ -111,0 +123,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