@putout/plugin-putout 12.3.0 → 12.5.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @putout/plugin-putout [![NPM version][NPMIMGURL]][NPMURL]
|
|
2
2
|
|
|
3
3
|
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-putout.svg?style=flat&longCache=true
|
|
4
|
-
[NPMURL]: https://npmjs.org/package/@putout/plugin-putout"npm"
|
|
4
|
+
[NPMURL]: https://npmjs.org/package/@putout/plugin-putout "npm"
|
|
5
5
|
|
|
6
6
|
🐊[**Putout**](https://github.com/coderaiser/putout) plugin helps with plugins development.
|
|
7
7
|
|
|
@@ -9,11 +9,9 @@ const {
|
|
|
9
9
|
const {StringLiteral} = types;
|
|
10
10
|
const {compare} = operator;
|
|
11
11
|
|
|
12
|
-
const isPush = (path) => path
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name: 'push',
|
|
16
|
-
});
|
|
12
|
+
const isPush = (path) => path.get('value').isIdentifier({
|
|
13
|
+
name: 'push',
|
|
14
|
+
});
|
|
17
15
|
|
|
18
16
|
module.exports.report = () => 'Includer should be used instead of Traverser';
|
|
19
17
|
|
package/lib/create-test/index.js
CHANGED
|
@@ -19,12 +19,11 @@ const {
|
|
|
19
19
|
getProperty,
|
|
20
20
|
} = operator;
|
|
21
21
|
|
|
22
|
-
const selector = 'createTest(__dirname, __object)';
|
|
23
|
-
|
|
24
22
|
module.exports.report = () => `Apply modifications to 'createTest()' options`;
|
|
25
23
|
|
|
26
24
|
module.exports.include = () => [
|
|
27
|
-
|
|
25
|
+
'createTest(__dirname, __object)',
|
|
26
|
+
'createTest(import.meta.url, __object)',
|
|
28
27
|
];
|
|
29
28
|
|
|
30
29
|
module.exports.fix = (path, {options}) => {
|
package/lib/declare/operator.js
CHANGED
package/package.json
CHANGED