@squared-functions/task
Advanced tools
Comparing version 1.2.10 to 1.2.11
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task/gulp 1.2.10 | ||
/* @squared-functions/task/gulp 1.2.11 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -141,14 +141,3 @@ | ||
if (index_1.default.createDir(tempDir)) { | ||
Promise.all(data.items.map(uri => { | ||
return new Promise((resolve, reject) => { | ||
fs.copyFile(uri, path.join(tempDir, path.basename(uri)), err => { | ||
if (!err) { | ||
resolve(); | ||
} | ||
else { | ||
reject(err); | ||
} | ||
}); | ||
}); | ||
})) | ||
Promise.all(data.items.map(uri => fs.promises.copyFile(uri, path.join(tempDir, path.basename(uri))))) | ||
.then(() => { | ||
@@ -171,3 +160,3 @@ (PATH_GULPBIN ? child_process.execFile(PATH_GULPBIN, [task, '--gulpfile', `"${normalizePath(data.gulpfile)}"`, '--cwd', `"${normalizePath(tempDir)}"`], { cwd: process.cwd(), shell: true }) : child_process.exec(`gulp ${task} --gulpfile "${normalizePath(data.gulpfile)}" --cwd "${normalizePath(tempDir)}"`, { cwd: process.cwd() })) | ||
callback(); | ||
this.writeTimeProcess('gulp', task, time); | ||
this.writeTimeProcess('gulp', task + ' -> ' + path.basename(data.items[0]), time); | ||
(global.queueMicrotask || process.nextTick)(() => index_1.default.removeDir(tempDir)); | ||
@@ -174,0 +163,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task 1.2.10 | ||
/* @squared-functions/task 1.2.11 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@squared-functions/task", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "Task functions for squared-functions", | ||
@@ -18,6 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/module": "1.2.10", | ||
"@squared-functions/types": "1.2.10", | ||
"@squared-functions/module": "1.2.11", | ||
"@squared-functions/types": "1.2.11", | ||
"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
10967
206
+ Added@squared-functions/module@1.2.11(transitive)
+ Added@squared-functions/types@1.2.11(transitive)
- Removed@squared-functions/module@1.2.10(transitive)
- Removed@squared-functions/types@1.2.10(transitive)