redlint 4.4.2 → 5.0.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
package/lib/dialog.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {basename, dirname} from 'node:path';
|
|
2
2
|
import {operator} from 'putout';
|
|
3
|
-
import map from 'es-iterator-helpers/Iterator.prototype.map';
|
|
4
3
|
|
|
5
4
|
const {
|
|
6
5
|
createNestedDirectory,
|
|
@@ -57,7 +56,7 @@ export const scan = (path, {push, trackFile, options}) => {
|
|
|
57
56
|
|
|
58
57
|
const [fullNames, fromNames, toNames] = getRenamedFiles(from, to);
|
|
59
58
|
const convertToTuple = addFromTo(fromNames, toNames);
|
|
60
|
-
const trackFileIterator =
|
|
59
|
+
const trackFileIterator = trackFile(path, fullNames).map(convertToTuple);
|
|
61
60
|
|
|
62
61
|
for (const [from, to, currentFile] of trackFileIterator) {
|
|
63
62
|
push(currentFile, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {join} from 'node:path';
|
|
2
2
|
import {operator} from 'putout';
|
|
3
|
-
import map from 'es-iterator-helpers/Iterator.prototype.map';
|
|
4
3
|
|
|
5
4
|
const {renameFile} = operator;
|
|
6
5
|
|
|
@@ -29,7 +28,7 @@ export const scan = (path, {push, trackFile, options}) => {
|
|
|
29
28
|
const [fullNames, fromNames, toNames] = getRenamedFiles(dir, from, to);
|
|
30
29
|
const convertToTuple = addFromTo(fromNames, toNames);
|
|
31
30
|
|
|
32
|
-
const trackFileIterator =
|
|
31
|
+
const trackFileIterator = trackFile(path, fullNames).map(convertToTuple);
|
|
33
32
|
|
|
34
33
|
for (const [from, to, currentFile] of trackFileIterator) {
|
|
35
34
|
push(currentFile, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redlint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Lint Filesystem with 🐊Putout",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"chalk": "^5.3.0",
|
|
47
47
|
"ci-info": "^4.0.0",
|
|
48
48
|
"enquirer": "^2.4.1",
|
|
49
|
-
"es-iterator-helpers": "^1.2.1",
|
|
50
49
|
"fullstore": "^3.0.0",
|
|
51
50
|
"ignore": "^7.0.0",
|
|
52
51
|
"obligator": "^3.0.0",
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
],
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@putout/eslint-flat": "^3.0.0",
|
|
69
|
-
"@putout/test": "^
|
|
68
|
+
"@putout/test": "^15.0.0",
|
|
70
69
|
"c8": "^10.1.2",
|
|
71
70
|
"eslint": "^9.0.0",
|
|
72
71
|
"eslint-plugin-putout": "^29.0.2",
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
},
|
|
80
79
|
"license": "MIT",
|
|
81
80
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
81
|
+
"node": ">=22"
|
|
83
82
|
},
|
|
84
83
|
"publishConfig": {
|
|
85
84
|
"access": "public"
|