@putout/plugin-putout 11.13.0 → 11.14.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
|
@@ -406,7 +406,7 @@ module.exports.merge = (processedSource, list) => '';
|
|
|
406
406
|
## convert-method-to-property
|
|
407
407
|
|
|
408
408
|
- property simpler to work with;
|
|
409
|
-
- support of `convert-destructuring-to-identifier` which is `Replacer`, while `convert-method-to-property` is `Includer` (searches for `ObjectMethod` node);
|
|
409
|
+
- support of [`convert-destructuring-to-identifier`](#convert-destructuring-to-identifier) which is `Replacer`, while `convert-method-to-property` is `Includer` (searches for `ObjectMethod` node);
|
|
410
410
|
|
|
411
411
|
### ❌ Example of incorrect code
|
|
412
412
|
|
|
@@ -443,8 +443,8 @@ This is additional tests, if you forget to test some case (from a big list of ru
|
|
|
443
443
|
|
|
444
444
|
## declare
|
|
445
445
|
|
|
446
|
-
|
|
447
|
-
[@putout/declare-undefined-variables](https://github.com/coderaiser/putout/tree/master/packages/plugin-declare-undefined-variables)
|
|
446
|
+
Depends on [@putout/convert-esm-to-commonjs](https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-esm-to-commonjs#readme) and
|
|
447
|
+
[@putout/declare-undefined-variables](https://github.com/coderaiser/putout/tree/master/packages/plugin-declare-undefined-variables#readme).
|
|
448
448
|
|
|
449
449
|
### ❌ Example of incorrect code
|
|
450
450
|
|
|
@@ -33,7 +33,12 @@ module.exports = (rootPath, key) => {
|
|
|
33
33
|
} = node;
|
|
34
34
|
|
|
35
35
|
if (path.isStringLiteral() && /^__[a-z]$/.test(value)) {
|
|
36
|
-
path.node.value = getVar(
|
|
36
|
+
path.node.value = getVar(name);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (/^__identifier__[a-z]$/.test(name)) {
|
|
41
|
+
path.node.name = getVar(name);
|
|
37
42
|
return;
|
|
38
43
|
}
|
|
39
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin helps with plugins development",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint": "^8.0.1",
|
|
43
43
|
"eslint-plugin-n": "^15.2.4",
|
|
44
44
|
"eslint-plugin-putout": "^16.0.0",
|
|
45
|
-
"lerna": "^
|
|
45
|
+
"lerna": "^6.0.1",
|
|
46
46
|
"madrun": "^9.0.0",
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"nodemon": "^2.0.1"
|