@squared-functions/task
Advanced tools
Comparing version 0.13.3 to 0.14.0
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task/gulp 0.13.3 | ||
/* @squared-functions/task/gulp 0.14.0 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -112,3 +112,3 @@ | ||
if (tasks.length) { | ||
await index_1.default.allSettled(tasks, ['Execute tasks <finalize>', instance.moduleName], this.errors); | ||
await index_1.default.allSettled(tasks, ['Execute tasks', instance.moduleName], this.errors); | ||
} | ||
@@ -118,6 +118,6 @@ } | ||
const { task, origDir, data } = gulp; | ||
const errorHint = this.moduleName + ': ' + task; | ||
const tempDir = this.getTempDir(true); | ||
try { | ||
const tempDir = this.getTempDir(true); | ||
fs.mkdirpSync(tempDir); | ||
const errorHint = this.moduleName + ': ' + task; | ||
Promise.all(data.items.map(uri => fs.copyFile(uri, path.join(tempDir, path.basename(uri))))) | ||
@@ -141,14 +141,14 @@ .then(() => { | ||
}) | ||
.catch(error => { | ||
this.writeFail(['Unable to replace files <exec>', errorHint], error); | ||
.catch(err_1 => { | ||
this.writeFail(['Unable to replace files', errorHint], err_1, this.logType.FILE); | ||
callback(); | ||
}); | ||
}) | ||
.catch(error => { | ||
this.writeFail(['Unable to read directory <exec>', errorHint], error); | ||
.catch(err_1 => { | ||
this.writeFail(['Unable to read directory', errorHint], err_1); | ||
callback(); | ||
}); | ||
}) | ||
.catch(error => { | ||
this.writeFail(['Unable to delete files <exec>', errorHint], error); | ||
.catch(err_1 => { | ||
this.writeFail(['Unable to delete files', errorHint], err_1, this.logType.FILE); | ||
callback(); | ||
@@ -158,3 +158,3 @@ }); | ||
else { | ||
this.writeFail(['Unknown <exec>', errorHint], err); | ||
this.writeFail(['Unknown', errorHint], err); | ||
callback(); | ||
@@ -165,3 +165,3 @@ } | ||
.catch(err => { | ||
this.writeFail(['Unable to copy original files', errorHint], err); | ||
this.writeFail(['Unable to copy files', errorHint], err, this.logType.FILE); | ||
callback(); | ||
@@ -171,3 +171,3 @@ }); | ||
catch (err) { | ||
this.writeFail(['Unknown', errorHint], err); | ||
this.writeFail(['Unable to create directory', tempDir], err, this.logType.FILE); | ||
callback(); | ||
@@ -174,0 +174,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task 0.13.3 | ||
/* @squared-functions/task 0.14.0 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@squared-functions/task", | ||
"version": "0.13.3", | ||
"version": "0.14.0", | ||
"description": "Task functions for squared-functions", | ||
@@ -18,6 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/module": "^0.13.3", | ||
"@squared-functions/types": "^0.13.3", | ||
"@squared-functions/module": "^0.14.0", | ||
"@squared-functions/types": "^0.14.0", | ||
"fs-extra": "^9.1.0" | ||
} | ||
} |
10163
+ Added@squared-functions/module@0.14.4(transitive)
+ Added@squared-functions/types@0.14.4(transitive)
- Removed@squared-functions/module@0.13.3(transitive)
- Removed@squared-functions/types@0.13.3(transitive)