redput 4.1.4 → 4.2.1

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,15 @@
1
+ 2026.03.04, v4.2.1
2
+
3
+ feature:
4
+ - 21f2980 redput: @putout/plugin-variables v2.2.0
5
+ - 5c15fee redput: @putout/plugin-declare-before-reference v10.1.0
6
+ - c0a784e redput: superc8 v12.2.4
7
+
8
+ 2026.02.20, v4.2.0
9
+
10
+ feature:
11
+ - d6d55ea redput: get-report: get-report-from-add-args: add
12
+
1
13
  2026.02.19, v4.1.4
2
14
 
3
15
  feature:
@@ -0,0 +1,3 @@
1
+ # Plugins
2
+
3
+ - ✅[`get-report-from-add-args`](https://putout.cloudcmd.io/#/gist/1f04ad94e170bbc9ac412d7ff20b4e1f/8a4d42e4f23ecfb87fe350c7eb161334437b49d7).
@@ -1,11 +1,13 @@
1
1
  import putout from 'putout';
2
2
  import * as getReportPlugin from './plugin-get-report/index.js';
3
+ import * as getReportFromAddArgsPlugin from './plugin-get-report-from-add-args/index.js';
3
4
 
4
5
  export const getReport = (rule) => {
5
6
  const {places} = putout(rule, {
6
7
  fix: false,
7
8
  plugins: [
8
9
  ['get-report', getReportPlugin],
10
+ ['get-report-from-add-args', getReportFromAddArgsPlugin],
9
11
  ],
10
12
  });
11
13
 
@@ -0,0 +1,19 @@
1
+ import {operator} from 'putout';
2
+
3
+ const {
4
+ extract,
5
+ getTemplateValues,
6
+ } = operator;
7
+
8
+ export const report = (path) => {
9
+ const {__object} = getTemplateValues(path, 'addArgs(__object)');
10
+
11
+ const name = extract(__object.properties[0].key);
12
+
13
+ return `Argument '${name}' is missing`;
14
+ };
15
+
16
+ export const fix = () => {};
17
+ export const include = () => [
18
+ 'addArgs(__object)',
19
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redput",
3
- "version": "4.1.4",
3
+ "version": "4.2.1",
4
4
  "description": "CLI tool to convert source from 🐊Putout Editor to files",
5
5
  "main": "lib/redput.js",
6
6
  "bin": {
@@ -56,11 +56,11 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@putout/plugin-declare": "^8.0.0",
59
- "@putout/plugin-declare-before-reference": "^9.0.0",
59
+ "@putout/plugin-declare-before-reference": "^10.1.0",
60
60
  "@putout/plugin-esm": "^10.0.0",
61
61
  "@putout/plugin-nodejs": "^21.0.0",
62
62
  "@putout/plugin-putout": "^29.0.0",
63
- "@putout/plugin-variables": "^1.3.1",
63
+ "@putout/plugin-variables": "^2.2.0",
64
64
  "node-fetch": "^3.3.2",
65
65
  "octokit": "^5.0.3",
66
66
  "putout": "^42.0.5",
@@ -70,13 +70,13 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@putout/test": "^15.0.0",
73
- "c8": "^10.1.2",
74
73
  "eslint": "^10.0.0",
75
74
  "eslint-plugin-putout": "^31.0.0",
76
75
  "madrun": "^13.0.0",
77
76
  "montag": "^1.2.1",
78
77
  "nodemon": "^3.0.1",
79
78
  "redlint": "^6.0.0",
79
+ "superc8": "^12.2.4",
80
80
  "supertape": "^12.0.0"
81
81
  },
82
82
  "publishConfig": {