copymitter 10.2.0 → 10.3.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 +10 -0
- package/README.md +5 -3
- package/lib/copymitter.js +5 -1
- package/package.json +2 -2
- package/bun.lock +0 -1836
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -55,10 +55,12 @@ cp.on('pause', () => {
|
|
|
55
55
|
cp.on('error', (error) => {
|
|
56
56
|
console.error(error.message);
|
|
57
57
|
|
|
58
|
-
if (abortOnError)
|
|
58
|
+
if (abortOnError) {
|
|
59
59
|
cp.abort();
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
cp.continue();
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
cp.on('abort', () => {
|
package/lib/copymitter.js
CHANGED
|
@@ -94,10 +94,14 @@ Copymitter.prototype.abort = function() {
|
|
|
94
94
|
this.emit('abort');
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
export const _nextFile = (files) => {
|
|
98
|
+
return files.shift();
|
|
99
|
+
};
|
|
100
|
+
|
|
97
101
|
Copymitter.prototype._cpAll = function() {
|
|
98
102
|
const from = this._from;
|
|
99
103
|
const to = this._to;
|
|
100
|
-
const name = this._files
|
|
104
|
+
const name = _nextFile(this._files);
|
|
101
105
|
|
|
102
106
|
if (!name)
|
|
103
107
|
return this.emit('end', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copymitter",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "copy files with emitter",
|
|
6
6
|
"main": "lib/copymitter.js",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@iocmd/wait": "^2.1.0",
|
|
32
|
-
"c8": "^11.0.0",
|
|
33
32
|
"eslint": "^10.0.0",
|
|
34
33
|
"eslint-plugin-putout": "^31.0.1",
|
|
35
34
|
"madrun": "^13.0.0",
|
|
@@ -38,6 +37,7 @@
|
|
|
38
37
|
"putout": "^42.0.12",
|
|
39
38
|
"redlint": "^6.1.1",
|
|
40
39
|
"rimraf": "^6.1.2",
|
|
40
|
+
"superc8": "^12.3.1",
|
|
41
41
|
"supertape": "^12.5.0",
|
|
42
42
|
"try-catch": "^4.0.9"
|
|
43
43
|
},
|