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
|
@@ -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)
|
|
12
|
+
const name = isStringLiteral(__b)
|
|
13
|
+
? __b.value
|
|
14
|
+
|
|
13
15
|
: __bPath
|
|
14
16
|
.toString()
|
|
15
17
|
.replace(/\s/g, '') +
|
package/lib/run-rule/run-rule.js
CHANGED
|
@@ -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
|
|