@putout/plugin-putout 18.0.0 → 18.1.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.
|
@@ -84,6 +84,7 @@ module.exports.traverse = ({push}) => ({
|
|
|
84
84
|
path,
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
|
+
'__.map(push)'() {},
|
|
87
88
|
'push(__a)'(path) {
|
|
88
89
|
const __aPath = path.get('arguments.0');
|
|
89
90
|
|
|
@@ -121,7 +122,7 @@ function isFilesystemPath(path) {
|
|
|
121
122
|
if (!computed)
|
|
122
123
|
return false;
|
|
123
124
|
|
|
124
|
-
if (path.node.key.name !== '__filesystem')
|
|
125
|
+
if (path.node.key.name !== '__filesystem' && path.node.key.name !== 'FS')
|
|
125
126
|
return false;
|
|
126
127
|
|
|
127
128
|
return !path.parentPath.parentPath.isReturnStatement();
|
package/package.json
CHANGED