@putout/plugin-conditions 6.3.0 β 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -440,6 +440,8 @@ for (const [i, el] of entries(elements)) {
|
|
|
440
440
|
>
|
|
441
441
|
> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements#difference_between_statements_and_declarations)
|
|
442
442
|
|
|
443
|
+
Checkout in π[**Putout Editor**](https://putout.cloudcmd.io/#/gist/256b1b6a904b0352c3a2716d365185ca/fac1c6365c01539392c674e2ca7468ee062e73e8).
|
|
444
|
+
|
|
443
445
|
### β Example of incorrect code
|
|
444
446
|
|
|
445
447
|
```js
|
|
@@ -102,7 +102,7 @@ module.exports.filter = (path) => {
|
|
|
102
102
|
if (coupleCount === paths.length)
|
|
103
103
|
return false;
|
|
104
104
|
|
|
105
|
-
return
|
|
105
|
+
return count === 1 || count !== paths.length;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
function getAllNodes(path, nodes = []) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-conditions",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "πPutout plugin adds support of conditions transformations",
|