@adonisjs/http-server 8.0.0-next.3 → 8.0.0-next.4

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.
@@ -986,7 +986,7 @@ var Route = class extends Macroable4 {
986
986
  importExpression: String(controller),
987
987
  ...moduleImporter(controller, method).toHandleMethod()
988
988
  },
989
- routeName: `${new StringBuilder(controller.name).removeSuffix("controller").snakeCase()}.${string2.snakeCase(method)}`
989
+ routeName: controller.name ? `${new StringBuilder(controller.name).removeSuffix("controller").snakeCase()}.${string2.snakeCase(method)}` : void 0
990
990
  };
991
991
  }
992
992
  return { handler };
@@ -4296,7 +4296,7 @@ var Router = class {
4296
4296
  });
4297
4297
  }
4298
4298
  const domains = Object.keys(this.routes).filter((domain) => domain !== "root");
4299
- this.routes["root"].forEach((route) => trackRoute.bind(this)(route));
4299
+ this.routes["root"]?.forEach((route) => trackRoute.bind(this)(route));
4300
4300
  domains.forEach(
4301
4301
  (domain) => this.routes[domain].forEach((route) => trackRoute.bind(this)(route, domain))
4302
4302
  );
@@ -6,7 +6,7 @@ import {
6
6
  Router,
7
7
  Server,
8
8
  defineConfig
9
- } from "../chunk-GX5AWCSU.js";
9
+ } from "../chunk-BFGF3A5X.js";
10
10
  import "../chunk-ASX56VAK.js";
11
11
 
12
12
  // factories/router.ts
package/build/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  errors_exports,
21
21
  parseRange,
22
22
  tracing_channels_exports
23
- } from "./chunk-GX5AWCSU.js";
23
+ } from "./chunk-BFGF3A5X.js";
24
24
  import "./chunk-ASX56VAK.js";
25
25
 
26
26
  // src/exception_handler.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "8.0.0-next.3",
3
+ "version": "8.0.0-next.4",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",