@testring/plugin-api
Advanced tools
+4
-4
| { | ||
| "name": "@testring/plugin-api", | ||
| "version": "0.5.16", | ||
| "version": "0.5.17", | ||
| "main": "./dist/index.js", | ||
@@ -13,5 +13,5 @@ "types": "./src/index.ts", | ||
| "dependencies": { | ||
| "@testring/logger": "0.5.16", | ||
| "@testring/types": "0.5.16", | ||
| "@testring/utils": "0.5.16" | ||
| "@testring/logger": "0.5.17", | ||
| "@testring/types": "0.5.17", | ||
| "@testring/utils": "0.5.17" | ||
| }, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
@@ -10,3 +10,3 @@ import { AbstractAPI } from './abstract'; | ||
| beforeResponse( | ||
| handler: (request: IHttpRequest, response: IHttpResponse, data: IHttpRequestMessage) => Promise<IHttpResponse> | ||
| handler: (response: IHttpResponse, data: IHttpRequestMessage, request: IHttpRequest) => Promise<IHttpResponse>, | ||
| ) { | ||
@@ -16,5 +16,5 @@ this.registryWritePlugin(HttpServerPlugins.beforeResponse, handler); | ||
| beforeError<T>(handler: (error: T, data: IHttpRequestMessage) => Promise<T>) { | ||
| beforeError<T>(handler: (error: T, data: IHttpRequestMessage, request: IHttpRequest) => Promise<T>) { | ||
| this.registryWritePlugin(HttpServerPlugins.beforeError, handler); | ||
| } | ||
| } |
19172
0.13%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated