Comparing version 7.0.0-rc.0 to 7.0.0-rc.1
@@ -9,4 +9,4 @@ /** | ||
/// <reference types="node" /> | ||
import { ClientRequest, IncomingMessage } from "http"; | ||
import { Headers } from "../connection"; | ||
import { AgentOptions, ClientRequest, IncomingMessage } from "http"; | ||
import { Headers, RequestInterceptors } from "../connection"; | ||
import { Errback } from "./errback"; | ||
@@ -67,3 +67,3 @@ /** | ||
*/ | ||
export declare function createRequest(baseUrl: string, agentOptions: any, agent?: any): RequestFunction; | ||
export declare function createRequest(baseUrl: string, agentOptions: AgentOptions & RequestInterceptors, agent?: any): RequestFunction; | ||
//# sourceMappingURL=request.node.d.ts.map |
@@ -124,5 +124,5 @@ "use strict"; | ||
if (agentOptions.after) { | ||
agentOptions.after(err); | ||
agentOptions.after(error); | ||
} | ||
callback(err); | ||
callback(error); | ||
}); | ||
@@ -129,0 +129,0 @@ if (body) |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RequestInterceptors, XhrOptions } from "../connection"; | ||
import { Errback } from "./errback"; | ||
@@ -24,3 +25,3 @@ import { ArangojsResponse, RequestOptions } from "./request.node"; | ||
*/ | ||
export declare function createRequest(baseUrl: string, agentOptions: any): ({ method, url, headers, body, timeout, expectBinary }: RequestOptions, cb: Errback<ArangojsResponse>) => void; | ||
export declare function createRequest(baseUrl: string, agentOptions: XhrOptions & RequestInterceptors): ({ method, url, headers, body, timeout, expectBinary }: RequestOptions, cb: Errback<ArangojsResponse>) => void; | ||
//# sourceMappingURL=request.web.d.ts.map |
@@ -69,3 +69,5 @@ "use strict"; | ||
response.body = ""; | ||
options.after(null, response); | ||
if (options.after) { | ||
options.after(null, response); | ||
} | ||
callback(null, response); | ||
@@ -76,3 +78,5 @@ } | ||
error.request = req; | ||
options.after(error); | ||
if (options.after) { | ||
options.after(error); | ||
} | ||
callback(error); | ||
@@ -79,0 +83,0 @@ } |
{ | ||
"name": "arangojs", | ||
"version": "7.0.0-rc.0", | ||
"version": "7.0.0-rc.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=10" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17009
1923306