@squared-functions/task
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task/gulp 1.2.7 | ||
/* @squared-functions/task/gulp 1.2.8 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -131,8 +131,9 @@ | ||
const time = process.hrtime(); | ||
const writeError = (value, err, hint = taskName) => { | ||
const writeError = (value, err, hint) => { | ||
if (err) { | ||
this.writeFail([value, hint], err, this.logType.FILE); | ||
this.writeFail([value, hint || taskName], err, this.logType.FILE); | ||
} | ||
callback(); | ||
this.writeTimeProcess('gulp', task, time, { failed: true }); | ||
index_1.default.removeDir(tempDir); | ||
(global.queueMicrotask || process.nextTick)(() => index_1.default.removeDir(tempDir)); | ||
}; | ||
@@ -169,14 +170,12 @@ this.formatMessage(this.logType.PROCESS, 'gulp', ['Executing task...', task], data.gulpfile); | ||
} | ||
callback(); | ||
this.writeTimeProcess('gulp', task, time); | ||
index_1.default.removeDir(tempDir); | ||
callback(); | ||
(global.queueMicrotask || process.nextTick)(() => index_1.default.removeDir(tempDir)); | ||
} | ||
catch (err) { | ||
writeError("Unable to read directory" /* READ_DIRECTORY */, err); | ||
callback(); | ||
} | ||
} | ||
else { | ||
writeError(''); | ||
callback(); | ||
writeError("Unable to execute file" /* EXECUTE_FILE */, new Error('File not found (command)'), PATH_GULPBIN); | ||
} | ||
@@ -190,3 +189,2 @@ }) | ||
writeError("Unable to create directory" /* CREATE_DIRECTORY */, null, tempDir); | ||
callback(); | ||
} | ||
@@ -193,0 +191,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task 1.2.7 | ||
/* @squared-functions/task 1.2.8 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@squared-functions/task", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Task functions for squared-functions", | ||
@@ -18,6 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/module": "1.2.7", | ||
"@squared-functions/types": "1.2.7", | ||
"@squared-functions/module": "1.2.8", | ||
"@squared-functions/types": "1.2.8", | ||
"which": "^2.0.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11270
217
+ Added@squared-functions/module@1.2.8(transitive)
+ Added@squared-functions/types@1.2.8(transitive)
- Removed@squared-functions/module@1.2.7(transitive)
- Removed@squared-functions/types@1.2.7(transitive)