apollo-datasource-http
Advanced tools
Comparing version 0.9.8 to 0.9.9
@@ -18,2 +18,3 @@ /// <reference types="node" /> | ||
export declare type RequestOptions = { | ||
context?: Dictionary<string>; | ||
query?: Dictionary<string | number>; | ||
@@ -25,2 +26,3 @@ body?: string | Buffer | Uint8Array | Readable | null; | ||
export declare type Request = UndiciRequestOptions & CacheTTLOptions & { | ||
context?: Dictionary<string>; | ||
headers: Dictionary<string>; | ||
@@ -27,0 +29,0 @@ query?: Dictionary<string | number>; |
@@ -97,3 +97,10 @@ "use strict"; | ||
try { | ||
const responseData = await this.pool.request(options); | ||
const responseData = await this.pool.request({ | ||
method: options.method, | ||
origin: options.origin, | ||
path: options.path, | ||
body: options.body, | ||
headers: options.headers, | ||
signal: options.signal, | ||
}); | ||
responseData.body.setEncoding('utf8'); | ||
@@ -100,0 +107,0 @@ let data = ''; |
{ | ||
"name": "apollo-datasource-http", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"author": "Dustin Deus <deusdustin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26553
263