testcafe-hammerhead
Advanced tools
Comparing version 25.0.2 to 25.0.3
@@ -43,4 +43,8 @@ "use strict"; | ||
} | ||
async handleMockError(eventProvider) { | ||
const targetRule = this.requestFilterRules[0]; | ||
await eventProvider.callRequestHookErrorHandler(targetRule, this.mock.error); | ||
} | ||
} | ||
exports.default = BaseRequestPipelineContext;module.exports = exports.default; | ||
@@ -363,5 +363,4 @@ "use strict"; | ||
return; | ||
const targetRule = this.requestFilterRules[0]; | ||
await eventProvider.callRequestHookErrorHandler(targetRule, this.mock.error); | ||
logger_1.default.proxy.onMockResponseError(targetRule, this.mock.error); | ||
await this.handleMockError(eventProvider); | ||
logger_1.default.proxy.onMockResponseError(this.requestFilterRules[0], this.mock.error); | ||
} | ||
@@ -368,0 +367,0 @@ getOnResponseEventData({ includeBody }) { |
{ | ||
"name": "testcafe-hammerhead", | ||
"description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", | ||
"version": "25.0.2", | ||
"version": "25.0.3", | ||
"homepage": "https://github.com/DevExpress/testcafe-hammerhead", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -475,2 +475,8 @@ interface StaticContent { | ||
body:string | Function; | ||
/** Determine whether an error occurs on calculation response **/ | ||
hasError: boolean; | ||
/** An error occurs on calculation response **/ | ||
error: Error | null; | ||
} | ||
@@ -498,2 +504,5 @@ | ||
/** Determines whether the request is xhr or fetch request **/ | ||
isAjax: boolean; | ||
/** Creates a RequestOptions instance **/ | ||
@@ -584,2 +593,5 @@ constructor (params: RequestOptionsParams); | ||
/** Returns request options associated with the current context **/ | ||
reqOpts: RequestOptions; | ||
protected constructor (requestId: string); | ||
@@ -601,3 +613,6 @@ | ||
getMockResponse (): Promise<IncomingMessageLike>; | ||
/** Handle mock error **/ | ||
handleMockError (eventProvider: RequestHookEventProvider): Promise<void>; | ||
} | ||
} |
2431618
40837