redput 1.12.0 → 1.13.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,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
operator,
|
|
3
3
|
types,
|
|
4
|
+
print,
|
|
4
5
|
} from 'putout';
|
|
5
6
|
|
|
6
7
|
const {isStringLiteral} = types;
|
|
7
8
|
const {getTemplateValues} = operator;
|
|
8
9
|
|
|
9
|
-
const REPORT = 'export const report = () => __a';
|
|
10
|
-
const REPORT_COMMONJS = 'module.exports.report = () => __a';
|
|
10
|
+
const REPORT = 'export const report = (__args) => __a';
|
|
11
|
+
const REPORT_COMMONJS = 'module.exports.report = (__args) => __a';
|
|
11
12
|
const ASSIGN = 'export const report = __a';
|
|
12
13
|
|
|
13
14
|
const templates = [
|
|
@@ -47,5 +48,9 @@ function parseValue(a) {
|
|
|
47
48
|
if (isStringLiteral(a))
|
|
48
49
|
return a.value;
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
const value = print(a);
|
|
52
|
+
|
|
53
|
+
return value
|
|
54
|
+
.slice(1, -3)
|
|
55
|
+
.replaceAll('${', '{');
|
|
51
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redput",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "CLI tool to convert source from 🐊Putout Editor to files",
|
|
5
5
|
"main": "lib/redput.js",
|
|
6
6
|
"bin": {
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@putout/plugin-convert-esm-to-commonjs": "^6.0.0",
|
|
61
61
|
"@putout/plugin-declare": "^2.0.1",
|
|
62
|
-
"@putout/plugin-putout": "^
|
|
62
|
+
"@putout/plugin-putout": "^16.7.0",
|
|
63
63
|
"@putout/plugin-remove-unused-variables": "^7.0.0",
|
|
64
64
|
"node-fetch": "^3.3.2",
|
|
65
65
|
"octokit": "^3.1.0",
|
|
66
|
-
"putout": "^
|
|
66
|
+
"putout": "^33.9.1",
|
|
67
67
|
"rendy": "^4.1.3",
|
|
68
68
|
"try-to-catch": "^3.0.1"
|
|
69
69
|
},
|