@putout/compare
Advanced tools
Comparing version 9.6.0 to 9.6.1
@@ -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; |
23353