@adonisjs/http-server
Advanced tools
Comparing version 7.0.0-3 to 7.0.0-4
@@ -9,3 +9,3 @@ import { | ||
defineConfig | ||
} from "../chunk-NC6OWANS.js"; | ||
} from "../chunk-5PZNIOSV.js"; | ||
@@ -12,0 +12,0 @@ // factories/http_context.ts |
@@ -20,3 +20,3 @@ import { | ||
parseRange | ||
} from "./chunk-NC6OWANS.js"; | ||
} from "./chunk-5PZNIOSV.js"; | ||
@@ -23,0 +23,0 @@ // src/exception_handler.ts |
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import type { Logger } from '@adonisjs/logger'; | ||
import type { Emitter } from '@adonisjs/events'; | ||
import type { Encryption } from '@adonisjs/encryption'; | ||
import type { Server as HttpsServer } from 'node:https'; | ||
import type { Application } from '@adonisjs/application'; | ||
import type { EmitterLike } from '@adonisjs/events/types'; | ||
import { ContainerResolver } from '@adonisjs/fold'; | ||
@@ -12,3 +12,3 @@ import type { ServerResponse, IncomingMessage, Server as HttpServer } from 'node:http'; | ||
import type { MiddlewareAsClass } from '../types/middleware.js'; | ||
import type { ServerConfig, ErrorHandlerAsAClass, TestingMiddlewarePipeline } from '../types/server.js'; | ||
import type { ServerConfig, HttpServerEvents, ErrorHandlerAsAClass, TestingMiddlewarePipeline } from '../types/server.js'; | ||
import { Request } from '../request.js'; | ||
@@ -28,3 +28,3 @@ import { Response } from '../response.js'; | ||
get usingAsyncLocalStorage(): boolean; | ||
constructor(app: Application<any>, encryption: Encryption, emitter: Emitter<any>, logger: Logger, config: ServerConfig); | ||
constructor(app: Application<any>, encryption: Encryption, emitter: EmitterLike<HttpServerEvents>, logger: Logger, config: ServerConfig); | ||
/** | ||
@@ -31,0 +31,0 @@ * Creates a pipeline of middleware. |
@@ -40,3 +40,3 @@ import type { ErrorHandler, FinalHandler } from '@poppinss/middleware/types'; | ||
/** | ||
* Data type for the "http:request_finished" event | ||
* Data type for the "http:request_completed" event | ||
*/ | ||
@@ -48,2 +48,8 @@ export type HttpRequestFinishedPayload = { | ||
/** | ||
* Events emitted by the HttpServer | ||
*/ | ||
export type HttpServerEvents = { | ||
'http:request_completed': HttpRequestFinishedPayload; | ||
}; | ||
/** | ||
* Error handler to handle HTTP errors | ||
@@ -50,0 +56,0 @@ */ |
{ | ||
"name": "@adonisjs/http-server", | ||
"version": "7.0.0-3", | ||
"version": "7.0.0-4", | ||
"description": "AdonisJS HTTP server with support packed with Routing and Cookies", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
517588
8108