@milaboratories/pl-middle-layer 1.25.3 → 1.25.5

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.
package/dist/index.mjs CHANGED
@@ -4314,15 +4314,18 @@ class nl extends Ms {
4314
4314
  const { versionLock: i, skipVersion: c } = t.settings;
4315
4315
  if (i === "patch") return { suggestions: [] };
4316
4316
  const a = this.registryProvider.getRegistry(n.registryUrl);
4317
- let l, u;
4318
- if (n.channel === void 0)
4319
- if (await a.getLatestOverview(n.id, ie)) u = ie;
4320
- else {
4321
- if (await a.getLatestOverview(n.id, we) === void 0)
4322
- return this.logger.error(`No "any" channel record for ${Es(n.id)}`), { suggestions: [] };
4323
- u = we;
4324
- }
4325
- else u = n.channel;
4317
+ let l, u = this.preferredUpdateChannel;
4318
+ if (u === void 0)
4319
+ if (n.channel === void 0)
4320
+ if (await a.getLatestOverview(n.id, ie)) u = ie;
4321
+ else {
4322
+ if (await a.getLatestOverview(n.id, we) === void 0)
4323
+ return this.logger.error(
4324
+ `No "any" channel record for ${Es(n.id)}`
4325
+ ), { suggestions: [] };
4326
+ u = we;
4327
+ }
4328
+ else u = n.channel;
4326
4329
  const d = await a.getUpdateSuggestions(n.id, u);
4327
4330
  if (d === void 0 || d.length === 0) return { suggestions: [] };
4328
4331
  d.reverse();