@putout/plugin-cloudcmd 2.1.0 → 3.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.
package/README.md
CHANGED
|
@@ -75,7 +75,6 @@ await IO.copy(dirPath, mp3Dir, mp3Names);
|
|
|
75
75
|
|
|
76
76
|
```js
|
|
77
77
|
await IO.write(`${mp3Dir}?dir`);
|
|
78
|
-
|
|
79
78
|
```
|
|
80
79
|
|
|
81
80
|
## ✅ Example of correct code
|
|
@@ -95,13 +94,12 @@ await CloudCmd.loadDir({
|
|
|
95
94
|
path: '/',
|
|
96
95
|
panel,
|
|
97
96
|
});
|
|
98
|
-
|
|
99
97
|
```
|
|
100
98
|
|
|
101
99
|
## ✅ Example of correct code
|
|
102
100
|
|
|
103
101
|
```js
|
|
104
|
-
await CloudCmd.changeDir(
|
|
102
|
+
await CloudCmd.changeDir('/', {
|
|
105
103
|
panel,
|
|
106
104
|
});
|
|
107
105
|
```
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const {operator} = require('putout');
|
|
4
|
+
const {rename} = operator;
|
|
5
|
+
|
|
6
|
+
const renameAll = (path) => {
|
|
7
|
+
debugger;
|
|
8
|
+
rename(path, 'loadDir', 'changeDir');
|
|
9
|
+
};
|
|
4
10
|
|
|
5
11
|
module.exports.report = () => `Use 'CloudCmd.changeDir()' instead of 'CloudCmd.loadDir()'`;
|
|
6
12
|
|
|
@@ -14,16 +20,16 @@ module.exports.replace = () => ({
|
|
|
14
20
|
return path;
|
|
15
21
|
},
|
|
16
22
|
'loadDir({path: __a})': (vars, path) => {
|
|
17
|
-
|
|
23
|
+
renameAll(path);
|
|
18
24
|
return 'changeDir(__a)';
|
|
19
25
|
},
|
|
20
26
|
'loadDir({path})': (vars, path) => {
|
|
21
|
-
|
|
27
|
+
renameAll(path);
|
|
22
28
|
return 'changeDir(path)';
|
|
23
29
|
},
|
|
24
30
|
'loadDir(__object)': (vars, path) => {
|
|
25
31
|
convert(vars, path);
|
|
26
|
-
|
|
32
|
+
renameAll(path);
|
|
27
33
|
|
|
28
34
|
return path;
|
|
29
35
|
},
|
|
@@ -51,4 +57,3 @@ function convert(vars, path) {
|
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
}
|
|
54
|
-
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-cloudcmd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin adds ability to transform code to new API of Cloud Commander",
|
|
7
7
|
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-cloudcmd#readme",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
|
-
"commitType": "colon",
|
|
10
9
|
"release": false,
|
|
11
10
|
"tag": false,
|
|
12
11
|
"changelog": false,
|
|
@@ -34,17 +33,17 @@
|
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@putout/plugin-remove-unused-expressions": "*",
|
|
36
35
|
"@putout/plugin-strict-mode": "*",
|
|
37
|
-
"@putout/test": "^
|
|
36
|
+
"@putout/test": "^6.0.0",
|
|
38
37
|
"c8": "^7.5.0",
|
|
39
38
|
"eslint": "^8.0.1",
|
|
40
|
-
"eslint-plugin-n": "^
|
|
41
|
-
"eslint-plugin-putout": "^
|
|
39
|
+
"eslint-plugin-n": "^16.0.0",
|
|
40
|
+
"eslint-plugin-putout": "^17.0.0",
|
|
42
41
|
"lerna": "^6.0.1",
|
|
43
42
|
"madrun": "^9.0.0",
|
|
44
43
|
"nodemon": "^2.0.1"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"putout": ">=
|
|
46
|
+
"putout": ">=29"
|
|
48
47
|
},
|
|
49
48
|
"license": "MIT",
|
|
50
49
|
"engines": {
|