mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
chore: drop q module (#833)
* chore: drop q module * chore: fix & complete dropping q * Fix faulty transformation of Q.when * Simplify thenResolve transformation * Removes unnecesary Promise wrapping in onFulfilled callback. * Transform .done calls to .then or .catch * The important thing is that we always handle rejections. * Remove Q from specs Requires Jasmine 3.5 * Replace Q.timeout w/ Promise.race & custom function Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
This commit is contained in:
+4
-1
@@ -34,4 +34,7 @@ if (args.help || args.argv.remain.length === 0) {
|
||||
|
||||
require('./templates/cordova/loggingHelper').adjustLoggerLevel(args);
|
||||
|
||||
Api.updatePlatform(args.argv.remain[0], { link: (args.link || args.shared) }).done();
|
||||
Api.updatePlatform(args.argv.remain[0], { link: (args.link || args.shared) }).catch(err => {
|
||||
console.error(err);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user