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
134
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.6.0 to 9.6.1

4

lib/comparators.js

@@ -13,3 +13,3 @@ 'use strict';

isArgs,
isChildren,
isJSXChildren,
isLinkedArgs,

@@ -51,3 +51,3 @@ isLinkedId,

second(isArgs),
second(isChildren),
second(isJSXChildren),
addObject,

@@ -54,0 +54,0 @@ compareArrays,

@@ -23,3 +23,3 @@ 'use strict';

const BODY = '__body';
const CHILDREN = '__children';
const JSX_CHILDREN = '__jsx_children';
const NOP = '__nop';

@@ -115,7 +115,7 @@ const ANY = '__';

module.exports.isChildren = (a) => {
module.exports.isJSXChildren = (a) => {
const b = !isArray(a) ? a : a[0];
return isJSXText(b, {
value: CHILDREN,
value: JSX_CHILDREN,
});

@@ -122,0 +122,0 @@ };

{
"name": "@putout/compare",
"version": "9.6.0",
"version": "9.6.1",
"type": "commonjs",

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

@@ -176,12 +176,12 @@ # @putout/compare [![NPM version][NPMIMGURL]][NPMURL]

##### __children
##### __jsx_children
Any `JSXElement`:
Any count of children of `JSXElement`:
```js
compare('<div hello="world"></div>', '<div hello="world">__children</div>');
compare('<div hello="world"></div>', '<div hello="world">__jsx_children</div>');
// returns
true;
compare('<div hello="world"><span>hi</span></div>', '<div hello="world">__children</div>');
compare('<div hello="world"><span>hi</span></div>', '<div hello="world">__jsx_children</div>');
// returns

@@ -188,0 +188,0 @@ true;

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