redput 2.8.0 → 2.9.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/ChangeLog
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
2025.03.15, v2.9.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 582bd8c redput: @putout/test v12.1.0
|
|
5
|
+
- c01a6ce redput: @putout/plugin-declare-before-reference v6.2.0
|
|
6
|
+
- 6f873ff redput: eslint-plugin-putout v25.2.0
|
|
7
|
+
- 95c939b redput: @putout/plugin-declare v5.0.0
|
|
8
|
+
|
|
1
9
|
2025.02.13, v2.8.0
|
|
2
10
|
|
|
3
11
|
feature:
|
package/lib/redput.js
CHANGED
|
@@ -28,7 +28,9 @@ export const redput = async (link, {token}) => {
|
|
|
28
28
|
} = parsePlugin(raw);
|
|
29
29
|
|
|
30
30
|
if (name.startsWith('http'))
|
|
31
|
-
return [
|
|
31
|
+
return [
|
|
32
|
+
Error(`Wrong name: '${name}'`),
|
|
33
|
+
];
|
|
32
34
|
|
|
33
35
|
const rule = lines.join('\n');
|
|
34
36
|
const report = getReport(rule);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
template,
|
|
5
5
|
} from 'putout';
|
|
6
6
|
|
|
7
|
-
const {
|
|
7
|
+
const {spreadElement, stringLiteral} = types;
|
|
8
8
|
const {traverse} = operator;
|
|
9
9
|
|
|
10
10
|
export const report = () => `Insert 'getRule()'`;
|
|
@@ -35,16 +35,16 @@ export const replace = ({options}) => ({
|
|
|
35
35
|
const {name, ruleOptions} = options;
|
|
36
36
|
|
|
37
37
|
if (ruleOptions) {
|
|
38
|
-
const node =
|
|
39
|
-
name:
|
|
38
|
+
const node = spreadElement(createRuleWithOptions({
|
|
39
|
+
name: stringLiteral(name),
|
|
40
40
|
}));
|
|
41
41
|
|
|
42
42
|
__object.properties.push(node);
|
|
43
43
|
return path;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const node =
|
|
47
|
-
name:
|
|
46
|
+
const node = spreadElement(createRule({
|
|
47
|
+
name: stringLiteral(name),
|
|
48
48
|
}));
|
|
49
49
|
|
|
50
50
|
__object.properties.push(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redput",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "CLI tool to convert source from 🐊Putout Editor to files",
|
|
5
5
|
"main": "lib/redput.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@putout/plugin-convert-esm-to-commonjs": "^6.0.0",
|
|
59
|
-
"@putout/plugin-declare": "^
|
|
60
|
-
"@putout/plugin-declare-before-reference": "^
|
|
59
|
+
"@putout/plugin-declare": "^5.0.0",
|
|
60
|
+
"@putout/plugin-declare-before-reference": "^6.2.0",
|
|
61
61
|
"@putout/plugin-nodejs": "^14.0.1",
|
|
62
62
|
"@putout/plugin-putout": "^23.4.1",
|
|
63
63
|
"@putout/plugin-remove-unused-variables": "^12.0.0",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"try-to-catch": "^3.0.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@putout/test": "^
|
|
72
|
+
"@putout/test": "^12.1.0",
|
|
73
73
|
"c8": "^10.1.2",
|
|
74
74
|
"escover": "^4.0.1",
|
|
75
75
|
"eslint": "^9.0.0",
|
|
76
|
-
"eslint-plugin-putout": "^
|
|
76
|
+
"eslint-plugin-putout": "^25.2.0",
|
|
77
77
|
"madrun": "^10.0.0",
|
|
78
78
|
"montag": "^1.2.1",
|
|
79
79
|
"nodemon": "^3.0.1",
|