flightdeck 0.2.23 → 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.
|
@@ -1685,7 +1685,7 @@ var buildTransaction = (store, key, params, id) => {
|
|
|
1685
1685
|
setIntoStore(child, ...ps);
|
|
1686
1686
|
},
|
|
1687
1687
|
run: (token, identifier = arbitrary()) => actUponStore(child, token, identifier),
|
|
1688
|
-
find: (
|
|
1688
|
+
find: (...ps) => findInStore(store, ...ps),
|
|
1689
1689
|
json: (token) => getJsonToken(child, token),
|
|
1690
1690
|
dispose: (...ps) => {
|
|
1691
1691
|
disposeFromStore(child, ...ps);
|
|
@@ -2182,7 +2182,7 @@ var registerSelector = (selectorKey, covered, store) => ({
|
|
|
2182
2182
|
const state = withdraw(target, token);
|
|
2183
2183
|
setAtomOrSelector(target, state, value);
|
|
2184
2184
|
},
|
|
2185
|
-
find: (
|
|
2185
|
+
find: (...args) => findInStore(store, ...args),
|
|
2186
2186
|
json: (token) => getJsonToken(store, token)
|
|
2187
2187
|
});
|
|
2188
2188
|
|
|
@@ -2403,8 +2403,8 @@ function createWritableSelectorFamily(store, options, internalRoles) {
|
|
|
2403
2403
|
default: (key) => {
|
|
2404
2404
|
const getFn = options.get(key);
|
|
2405
2405
|
return getFn({
|
|
2406
|
-
get: (...
|
|
2407
|
-
find: (
|
|
2406
|
+
get: (...args) => getFromStore(store, ...args),
|
|
2407
|
+
find: (...args) => findInStore(store, ...args),
|
|
2408
2408
|
json: (token) => getJsonToken(store, token)
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
@@ -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
|