@squared-functions/task
Advanced tools
Comparing version 4.9.7 to 4.9.8
@@ -84,3 +84,3 @@ "use strict"; | ||
} | ||
this.writeFail(["Unable to perform task" /* ERR_MESSAGE.PERFORM_TASK */, task ? "gulp" /* STRINGS.MODULE_NAME */ + ': ' + task : ''], (0, types_1.errorMessage)(task || "gulp" /* STRINGS.MODULE_NAME */, "Unknown" /* ERR_MESSAGE.UNKNOWN */, username), 4 /* LOG_VALUE.PROCESS */); | ||
this.writeFail(["Unable to perform task" /* ERR_MESSAGE.PERFORM_TASK */, task ? "gulp" /* STRINGS.MODULE_NAME */ + ': ' + task : ''], (0, types_1.errorMessage)(task || "gulp" /* STRINGS.MODULE_NAME */, "Unknown" /* ERR_MESSAGE.UNKNOWN */, username), 4 /* LOG_TYPE.PROCESS */); | ||
} | ||
@@ -185,3 +185,3 @@ } | ||
const tempDir = this.getTempDir({ uuidDir: true, createDir: true }); | ||
const writeError = (value, err, hint, type = 32 /* LOG_VALUE.FILE */) => { | ||
const writeError = (value, err, hint, type = 32 /* LOG_TYPE.FILE */) => { | ||
if (err) { | ||
@@ -241,3 +241,3 @@ this.writeFail([value, hint || (this.moduleName + ': ' + task)], err, { type, startTime }); | ||
const broadcastId = this.broadcastId; | ||
this.formatMessage(4 /* LOG_VALUE.PROCESS */, "gulp" /* STRINGS.MODULE_NAME */, ['Executing task...', task], gulpfile); | ||
this.formatMessage(4 /* LOG_TYPE.PROCESS */, "gulp" /* STRINGS.MODULE_NAME */, ['Executing task...', task], gulpfile); | ||
Promise.all(items.map(src => fs.promises.copyFile(src, path.join(tempDir, path.basename(src))))) | ||
@@ -260,3 +260,3 @@ .then(() => { | ||
}; | ||
const { stdout, stderr } = child_process.spawn(BIN_GULP || BIN_NPX, args, { cwd: process.cwd(), shell: true, stdio: index_1.default.hasLogType(32768 /* LOG_VALUE.STDOUT */) && !broadcastId ? 'inherit' : undefined, signal: this.signal }) | ||
const { stdout, stderr } = child_process.spawn(BIN_GULP || BIN_NPX, args, { cwd: process.cwd(), shell: true, stdio: index_1.default.hasLogType(32768 /* LOG_TYPE.STDOUT */) && !broadcastId ? 'inherit' : undefined, signal: this.signal }) | ||
.on('exit', code => { | ||
@@ -290,3 +290,3 @@ if (!code) { | ||
else { | ||
this.writeFail(["Unable to rename file" /* ERR_MESSAGE.RENAME_FILE */, filename], err, 32 /* LOG_VALUE.FILE */); | ||
this.writeFail(["Unable to rename file" /* ERR_MESSAGE.RENAME_FILE */, filename], err, 32 /* LOG_TYPE.FILE */); | ||
} | ||
@@ -306,6 +306,6 @@ } | ||
else { | ||
writeError("Unable to execute file" /* ERR_MESSAGE.EXECUTE_FILE */, new Error(message || "Unknown" /* ERR_MESSAGE.UNKNOWN */), '', 4 /* LOG_VALUE.PROCESS */); | ||
writeError("Unable to execute file" /* ERR_MESSAGE.EXECUTE_FILE */, new Error(message || "Unknown" /* ERR_MESSAGE.UNKNOWN */), '', 4 /* LOG_TYPE.PROCESS */); | ||
} | ||
}) | ||
.on('error', err => writeError("Unknown" /* ERR_MESSAGE.UNKNOWN */, err, false, 4 /* LOG_VALUE.PROCESS */)); | ||
.on('error', err => writeError("Unknown" /* ERR_MESSAGE.UNKNOWN */, err, false, 4 /* LOG_TYPE.PROCESS */)); | ||
if (stdout) { | ||
@@ -312,0 +312,0 @@ stdout.setEncoding('utf-8').on('data', (value) => { |
{ | ||
"name": "@squared-functions/task", | ||
"version": "4.9.7", | ||
"version": "4.9.8", | ||
"description": "Task constructor for squared-functions.", | ||
@@ -21,3 +21,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/core": "4.9.7", | ||
"@squared-functions/core": "4.9.8", | ||
"@squared-functions/types": "4.9.8", | ||
"strip-ansi": "6.0.1", | ||
@@ -24,0 +25,0 @@ "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
17483
4
+ Added@squared-functions/core@4.9.8(transitive)
+ Added@squared-functions/module@4.9.8(transitive)
+ Added@squared-functions/types@4.9.8(transitive)
- Removed@squared-functions/core@4.9.7(transitive)
- Removed@squared-functions/module@4.9.7(transitive)
- Removed@squared-functions/types@4.9.7(transitive)