file-lane 2.0.6-beta.2 → 2.0.6-beta.3
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/lib/FileLane.js +10 -7
- package/package.json +3 -3
package/lib/FileLane.js
CHANGED
|
@@ -408,23 +408,26 @@ class FileLane {
|
|
|
408
408
|
afterCompile
|
|
409
409
|
} = this.config;
|
|
410
410
|
if (afterCompile) {
|
|
411
|
-
for (let item of afterCompile) {
|
|
411
|
+
for (let [index, item] of afterCompile.entries()) {
|
|
412
|
+
const message = item.workerDescribe || `work ${index + 1}`;
|
|
412
413
|
try {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
if (item.workerDescribe) {
|
|
415
|
+
this.handlerLogs([{
|
|
416
|
+
level: _sharedUtils.Loglevel.INFO,
|
|
417
|
+
message: `afterCompile: ${item.workerDescribe}`
|
|
418
|
+
}]);
|
|
419
|
+
}
|
|
417
420
|
await item.worker({
|
|
418
421
|
context: this.context,
|
|
419
422
|
config: this.config,
|
|
420
423
|
compilerOption: this.compilerOption,
|
|
421
424
|
compalition: this.compilation,
|
|
422
425
|
onLog: logs => this.handlerLogs(logs, () => {
|
|
423
|
-
throw new Error(`${
|
|
426
|
+
throw new Error(`${message} error}`);
|
|
424
427
|
})
|
|
425
428
|
});
|
|
426
429
|
} catch (error) {
|
|
427
|
-
throw new Error(`afterCompile: ${
|
|
430
|
+
throw new Error(`afterCompile: ${message} error: ${error}`);
|
|
428
431
|
}
|
|
429
432
|
}
|
|
430
433
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "file-lane",
|
|
3
|
-
"version": "2.0.6-beta.
|
|
3
|
+
"version": "2.0.6-beta.3",
|
|
4
4
|
"description": "File conversion tool, can be one-to-one, one to N, N to one",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"test": "node ./__tests__/file-lane.test.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aiot-toolkit/shared-utils": "2.0.6-beta.
|
|
23
|
+
"@aiot-toolkit/shared-utils": "2.0.6-beta.3",
|
|
24
24
|
"chokidar": "^3.6.0",
|
|
25
25
|
"fs-extra": "^11.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/fs-extra": "^11.0.4"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "2e2ba4b1d293218736343237d963fe93c5fb27a8"
|
|
31
31
|
}
|