dowwntime 1.5.0 → 1.5.1

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/cli.mjs CHANGED
@@ -28332,7 +28332,11 @@ const run = async (options) => {
28332
28332
  const multipleServers = servers.length > 1;
28333
28333
  const fetchConfigurations = /* @__PURE__ */ new Map();
28334
28334
  for (const server of servers) {
28335
- const baseUrl = server.url;
28335
+ let baseUrl = server.url;
28336
+ if (server.variables) for (const [name, variable] of Object.entries(server.variables)) {
28337
+ const v = variable;
28338
+ if (v.default != null) baseUrl = baseUrl.replaceAll(`{${name}}`, v.default);
28339
+ }
28336
28340
  const serverLabel = server.description ?? new URL(baseUrl).host;
28337
28341
  if (schema$6.paths) for (const path$4 of Object.keys(schema$6.paths)) {
28338
28342
  const pathItem = schema$6.paths[path$4];