redput 4.8.1 → 4.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,8 @@
1
+ 2026.09.13, v4.9.0
2
+
3
+ feature:
4
+ - 4ede7d0 redput: run-rule: putout
5
+
1
6
  2026.09.10, v4.8.1
2
7
 
3
8
  fix:
@@ -9,7 +9,9 @@ export const replace = () => ({
9
9
  const [__aPath, __bPath] = path.get('elements');
10
10
  const status = isStringLiteral(__a) ? __a.value : __aPath.toString();
11
11
 
12
- const name = isStringLiteral(__b) ? __b.value
12
+ const name = isStringLiteral(__b)
13
+ ? __b.value
14
+
13
15
  : __bPath
14
16
  .toString()
15
17
  .replace(/\s/g, '') +
@@ -2,6 +2,8 @@ import path from 'node:path';
2
2
  import {putout} from 'putout';
3
3
  import {compileRule} from '../compile-rule/compile-rule.js';
4
4
 
5
+ const {assign} = Object;
6
+
5
7
  const noop = () => '';
6
8
 
7
9
  export const runRule = (ruleSource, source) => {
@@ -10,7 +12,9 @@ export const runRule = (ruleSource, source) => {
10
12
  if (name === 'path' || name === 'node:path')
11
13
  return path;
12
14
 
13
- return putout;
15
+ return assign(putout, {
16
+ putout,
17
+ });
14
18
  },
15
19
  });
16
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redput",
3
- "version": "4.8.1",
3
+ "version": "4.9.0",
4
4
  "description": "CLI tool to convert source from 🐊Putout Editor to files",
5
5
  "main": "lib/redput.js",
6
6
  "bin": {