flightdeck 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4350,7 +4350,7 @@ var FlightDeck = class {
|
|
|
4350
4350
|
let data = [];
|
|
4351
4351
|
req.on(`data`, (chunk) => {
|
|
4352
4352
|
data.push(chunk instanceof Buffer ? chunk : Buffer.from(chunk));
|
|
4353
|
-
}).on(`end`, () => {
|
|
4353
|
+
}).on(`end`, async () => {
|
|
4354
4354
|
const authHeader = req.headers.authorization;
|
|
4355
4355
|
try {
|
|
4356
4356
|
if (typeof req.url === `undefined`) throw 400;
|
|
@@ -4373,15 +4373,15 @@ var FlightDeck = class {
|
|
|
4373
4373
|
this.storage.setItem(`updateAwaitedVersion`, versionForeignInput);
|
|
4374
4374
|
const { checkAvailability } = options.scripts;
|
|
4375
4375
|
if (checkAvailability) {
|
|
4376
|
-
this.updateAvailabilityChecker?.stop();
|
|
4377
|
-
this.seekUpdate(versionForeignInput);
|
|
4376
|
+
await this.updateAvailabilityChecker?.stop();
|
|
4377
|
+
await this.seekUpdate(versionForeignInput);
|
|
4378
4378
|
const updatePhase = this.storage.getItem(`updatePhase`);
|
|
4379
4379
|
this.logger.info(`> storage("updatePhase") >`, updatePhase);
|
|
4380
4380
|
if (updatePhase === `notified`) {
|
|
4381
4381
|
this.updateAvailabilityChecker = new CronJob(
|
|
4382
4382
|
`30 * * * * *`,
|
|
4383
|
-
() => {
|
|
4384
|
-
this.seekUpdate(versionForeignInput);
|
|
4383
|
+
async () => {
|
|
4384
|
+
await this.seekUpdate(versionForeignInput);
|
|
4385
4385
|
}
|
|
4386
4386
|
);
|
|
4387
4387
|
this.updateAvailabilityChecker.start();
|
|
@@ -4411,7 +4411,7 @@ var FlightDeck = class {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
});
|
|
4413
4413
|
}
|
|
4414
|
-
seekUpdate(version) {
|
|
4414
|
+
async seekUpdate(version) {
|
|
4415
4415
|
this.logger.info(`Checking for updates...`);
|
|
4416
4416
|
const { checkAvailability } = this.options.scripts;
|
|
4417
4417
|
if (!checkAvailability) {
|
|
@@ -4421,7 +4421,7 @@ var FlightDeck = class {
|
|
|
4421
4421
|
try {
|
|
4422
4422
|
const out = execSync(`${checkAvailability} ${version}`);
|
|
4423
4423
|
this.logger.info(`Check stdout:`, out.toString());
|
|
4424
|
-
this.updateAvailabilityChecker?.stop();
|
|
4424
|
+
await this.updateAvailabilityChecker?.stop();
|
|
4425
4425
|
this.storage.setItem(`updatePhase`, `confirmed`);
|
|
4426
4426
|
this.downloadPackage();
|
|
4427
4427
|
this.announceUpdate();
|
|
@@ -4776,5 +4776,5 @@ var FlightDeckLogger = class {
|
|
|
4776
4776
|
};
|
|
4777
4777
|
|
|
4778
4778
|
export { FLIGHTDECK_ERROR, FLIGHTDECK_INFO, FLIGHTDECK_LNAV_FORMAT, FLIGHTDECK_SETUP_PHASES, FLIGHTDECK_UPDATE_PHASES, FLIGHTDECK_WARN, FlightDeck, FlightDeckLogger, flightDeckLogSchema, isVersionNumber };
|
|
4779
|
-
//# sourceMappingURL=chunk-
|
|
4780
|
-
//# sourceMappingURL=chunk-
|
|
4779
|
+
//# sourceMappingURL=chunk-FIIAJE2K.js.map
|
|
4780
|
+
//# sourceMappingURL=chunk-FIIAJE2K.js.map
|