@putout/plugin-putout 15.3.0 → 15.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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
findFile: 'const {findFile} = operator',
|
|
5
|
+
renameFile: 'const {renameFile} = operator',
|
|
6
|
+
removeFile: 'const {removeFile} = operator',
|
|
7
|
+
moveFile: 'const {moveFile} = operator',
|
|
8
|
+
createDirectory: 'const {createDirectory} = operator',
|
|
9
|
+
getParentDirectory: 'const {getParentDirectory} = operator',
|
|
10
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const filesystem = require('./filesystem');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
...filesystem,
|
|
7
|
+
operator: `import {operator} from 'putout'`,
|
|
8
|
+
compare: 'const {compare} = operator',
|
|
9
|
+
compareAll: 'const {compareAll} = operator',
|
|
10
|
+
compareAny: 'const {compareAny} = operator',
|
|
11
|
+
compute: 'const {compute} = operator',
|
|
12
|
+
contains: 'const {contains} = operator',
|
|
13
|
+
declare: 'const {declare} = operator',
|
|
14
|
+
rename: 'const {rename} = operator',
|
|
15
|
+
renameProperty: 'const {renameProperty} = operator',
|
|
16
|
+
extract: 'const {extract} = operator',
|
|
17
|
+
getPathAfterImports: 'const {getPathAfterImports} = operator',
|
|
18
|
+
getBinding: 'const {getBinding} = operator',
|
|
19
|
+
getBindingPath: 'const {getBindingPath} = operator',
|
|
20
|
+
traverse: 'const {traverse} = operator',
|
|
21
|
+
isSimpleRegExp: 'const {isSimpleRegExp} = operator',
|
|
22
|
+
getTemplateValues: 'const {getTemplateValues} = operator',
|
|
23
|
+
addArgs: 'const {addArgs} = operator',
|
|
24
|
+
insertBefore: 'const {insertBefore} = operator',
|
|
25
|
+
insertAfter: 'const {insertAfter} = operator',
|
|
26
|
+
replaceWith: 'const {replaceWith} = operator',
|
|
27
|
+
replaceWithMultiple: 'const {replaceWithMultiple} = operator',
|
|
28
|
+
remove: 'const {remove} = operator',
|
|
29
|
+
isESM: 'const {isESM} = operator',
|
|
30
|
+
getProperty: 'const {getProperty} = operator',
|
|
31
|
+
getProperties: 'const {getProperties} = operator',
|
|
32
|
+
traverseProperties: 'const {traverseProperties} = operator',
|
|
33
|
+
isSimple: 'const {isSimple} = operator',
|
|
34
|
+
setLiteralValue: 'const {setLiteralValue} = operator',
|
|
35
|
+
};
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"operator": "import {operator} from 'putout'",
|
|
3
|
-
"compare": "const {compare} = operator",
|
|
4
|
-
"compareAll": "const {compareAll} = operator",
|
|
5
|
-
"compareAny": "const {compareAny} = operator",
|
|
6
|
-
"compute": "const {compute} = operator",
|
|
7
|
-
"contains": "const {contains} = operator",
|
|
8
|
-
"declare": "const {declare} = operator",
|
|
9
|
-
"rename": "const {rename} = operator",
|
|
10
|
-
"renameProperty": "const {renameProperty} = operator",
|
|
11
|
-
"extract": "const {extract} = operator",
|
|
12
|
-
"getPathAfterImports": "const {getPathAfterImports} = operator",
|
|
13
|
-
"getBinding": "const {getBinding} = operator",
|
|
14
|
-
"getBindingPath": "const {getBindingPath} = operator",
|
|
15
|
-
"traverse": "const {traverse} = operator",
|
|
16
|
-
"isSimpleRegExp": "const {isSimpleRegExp} = operator",
|
|
17
|
-
"getTemplateValues": "const {getTemplateValues} = operator",
|
|
18
|
-
"addArgs": "const {addArgs} = operator",
|
|
19
|
-
"insertBefore": "const {insertBefore} = operator",
|
|
20
|
-
"insertAfter": "const {insertAfter} = operator",
|
|
21
|
-
"replaceWith": "const {replaceWith} = operator",
|
|
22
|
-
"replaceWithMultiple": "const {replaceWithMultiple} = operator",
|
|
23
|
-
"remove": "const {remove} = operator",
|
|
24
|
-
"isESM": "const {isESM} = operator",
|
|
25
|
-
"getProperty": "const {getProperty} = operator",
|
|
26
|
-
"getProperties": "const {getProperties} = operator",
|
|
27
|
-
"traverseProperties": "const {traverseProperties} = operator",
|
|
28
|
-
"isSimple": "const {isSimple} = operator",
|
|
29
|
-
"setLiteralValue": "const {setLiteralValue} = operator",
|
|
30
|
-
"findFile": "const {findFile} = operator",
|
|
31
|
-
"renameFile": "const {renameFile} = operator",
|
|
32
|
-
"removeFile": "const {removeFile} = operator"
|
|
33
|
-
}
|