@adonisjs/http-server 7.0.0-3 → 7.0.0-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.
- package/build/{chunk-NC6OWANS.js → chunk-5PZNIOSV.js} +3 -3
- package/build/{chunk-NC6OWANS.js.map → chunk-5PZNIOSV.js.map} +1 -1
- package/build/factories/main.js +1 -1
- package/build/index.js +1 -1
- package/build/src/server/main.d.ts +3 -3
- package/build/src/types/server.d.ts +7 -1
- package/package.json +1 -1
|
@@ -4340,7 +4340,7 @@ var Server = class {
|
|
|
4340
4340
|
* Handle request
|
|
4341
4341
|
*/
|
|
4342
4342
|
handle(req, res) {
|
|
4343
|
-
const hasRequestListener = this.#emitter.hasListeners("http:
|
|
4343
|
+
const hasRequestListener = this.#emitter.hasListeners("http:request_completed");
|
|
4344
4344
|
const startTime = hasRequestListener ? process.hrtime() : null;
|
|
4345
4345
|
const resolver = this.#app.container.createResolver();
|
|
4346
4346
|
const ctx = this.createHttpContext(
|
|
@@ -4350,7 +4350,7 @@ var Server = class {
|
|
|
4350
4350
|
);
|
|
4351
4351
|
if (startTime) {
|
|
4352
4352
|
onFinished2(res, () => {
|
|
4353
|
-
this.#emitter.emit("http:
|
|
4353
|
+
this.#emitter.emit("http:request_completed", {
|
|
4354
4354
|
ctx,
|
|
4355
4355
|
duration: process.hrtime(startTime)
|
|
4356
4356
|
});
|
|
@@ -4434,4 +4434,4 @@ export {
|
|
|
4434
4434
|
Server,
|
|
4435
4435
|
defineConfig
|
|
4436
4436
|
};
|
|
4437
|
-
//# sourceMappingURL=chunk-
|
|
4437
|
+
//# sourceMappingURL=chunk-5PZNIOSV.js.map
|