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 CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.04.12, v10.3.1
2
+
3
+ feature:
4
+ - 08bb6d0 copymitter: superc8 v12.3.1
5
+
6
+ 2026.02.27, v10.3.0
7
+
8
+ feature:
9
+ - f940ad4 copymitter: pop -> shift (coderaiser/cloudcmd#458)
10
+
1
11
  2026.02.25, v10.2.0
2
12
 
3
13
  feature:
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
- else
61
- cp.continue();
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.pop();
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.2.0",
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
  },