@squared-functions/task
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task/gulp 2.1.0 | ||
/* @squared-functions/task/gulp 2.1.1 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -139,14 +139,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(() => { | ||
@@ -169,3 +158,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)); | ||
@@ -172,0 +161,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/task 2.1.0 | ||
/* @squared-functions/task 2.1.1 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@squared-functions/task", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Task constructor for squared-functions", | ||
@@ -18,6 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/module": "2.1.0", | ||
"@squared-functions/types": "2.1.0", | ||
"@squared-functions/module": "2.1.1", | ||
"@squared-functions/types": "2.1.1", | ||
"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
10920
204
+ Added@squared-functions/module@2.1.1(transitive)
+ Added@squared-functions/types@2.1.1(transitive)
- Removed@squared-functions/module@2.1.0(transitive)
- Removed@squared-functions/types@2.1.0(transitive)