Changes of Linux canary v0.0.103

This commit is contained in:
root 2020-03-31 22:20:47 +02:00
parent 62a8479f97
commit 512a017553
3 changed files with 8 additions and 10 deletions

View file

@ -25,7 +25,7 @@ let electronRequest = (() => {
}
if (body != null) {
yield (0, _util.promisify)(req.write)(body, 'utf-8');
req.write(body, 'utf-8');
}
return new Promise(function (resolve, reject) {
@ -34,7 +34,7 @@ let electronRequest = (() => {
reject(new Error(`network timeout: ${url}`));
}, timeout != null ? timeout : DEFAULT_REQUEST_TIMEOUT);
req.on('login', function (callback) {
req.on('login', function (authInfo, callback) {
return callback();
});
@ -94,8 +94,6 @@ var _request = require('request');
var _request2 = _interopRequireDefault(_request);
var _util = require('util');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

File diff suppressed because one or more lines are too long

View file

@ -136,7 +136,7 @@ let processDownloadQueue = (() => {
finishModuleDownload(queuedModule.name, queuedModule.version, moduleZipPath, receivedBytes, response.statusCode === 200);
} catch (err) {
logger.log(`Failed fetching module ${queuedModule.name}@${queuedModule.version}: ${String(err)}`);
finishModuleDownload(queuedModule.name, queuedModule.version, null, false);
finishModuleDownload(queuedModule.name, queuedModule.version, null, receivedBytes, false);
}
});