@plyaz/core 1.23.2 → 1.23.3

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.
@@ -59246,14 +59246,6 @@ async function configureNestApp(app, options) {
59246
59246
  result.enabled.push("cors");
59247
59247
  logger10.debug("CORS configured", { ...corsConfig });
59248
59248
  }
59249
- const prefix = config$1.globalPrefix !== false ? config$1.globalPrefix ?? "api" : void 0;
59250
- if (prefix) {
59251
- const exclude = config$1.excludeFromPrefix ?? ["health"];
59252
- app.setGlobalPrefix(prefix, { exclude });
59253
- result.enabled.push("globalPrefix");
59254
- result.paths.prefix = prefix;
59255
- logger10.debug("Global prefix set", { prefix, exclude });
59256
- }
59257
59249
  if (config$1.versioning) {
59258
59250
  try {
59259
59251
  const versionConfig = config$1.versioning;
@@ -59294,6 +59286,14 @@ async function configureNestApp(app, options) {
59294
59286
  result.warnings.push("Failed to enable versioning");
59295
59287
  }
59296
59288
  }
59289
+ const prefix = config$1.globalPrefix !== false ? config$1.globalPrefix ?? "api" : void 0;
59290
+ if (prefix) {
59291
+ const exclude = config$1.excludeFromPrefix ?? ["health"];
59292
+ app.setGlobalPrefix(prefix, { exclude });
59293
+ result.enabled.push("globalPrefix");
59294
+ result.paths.prefix = prefix;
59295
+ logger10.debug("Global prefix set", { prefix, exclude });
59296
+ }
59297
59297
  const swaggerEnabled = isProduction ? typeof config$1.swagger === "object" && config$1.swagger.enabled === true || config$1.swagger === true : config$1.swagger !== false;
59298
59298
  if (swaggerEnabled) {
59299
59299
  try {