Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@testring/plugin-api

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testring/plugin-api - npm Package Compare versions

Comparing version
0.5.16
to
0.5.17
+4
-4
package.json
{
"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);
}
}