Skip to content

Commit b23efee

Browse files
author
dustin deus
committed
Merge branch 'main' of github.com:StarpTech/apollo-datasource-http into main
2 parents e108569 + 459cb60 commit b23efee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apollo-datasource-http",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"author": "Dustin Deus <[email protected]>",
55
"license": "MIT",
66
"repository": {

src/http-data-source.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
167167
path: string,
168168
requestOptions?: RequestOptions,
169169
): Promise<Response<TResult>> {
170-
return await this.request<TResult>({
170+
return this.request<TResult>({
171171
headers: {},
172172
...requestOptions,
173173
method: 'GET',
@@ -180,7 +180,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
180180
path: string,
181181
requestOptions?: RequestOptions,
182182
): Promise<Response<TResult>> {
183-
return await this.request<TResult>({
183+
return this.request<TResult>({
184184
headers: {},
185185
...requestOptions,
186186
method: 'POST',
@@ -193,7 +193,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
193193
path: string,
194194
requestOptions?: RequestOptions,
195195
): Promise<Response<TResult>> {
196-
return await this.request<TResult>({
196+
return this.request<TResult>({
197197
headers: {},
198198
...requestOptions,
199199
method: 'DELETE',
@@ -206,7 +206,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
206206
path: string,
207207
requestOptions?: RequestOptions,
208208
): Promise<Response<TResult>> {
209-
return await this.request<TResult>({
209+
return this.request<TResult>({
210210
headers: {},
211211
...requestOptions,
212212
method: 'PUT',
@@ -291,7 +291,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
291291

292292
const cacheKey = this.onCacheKeyCalculation(request)
293293

294-
// check if we have any GET call in the cache and respond immediatly
294+
// check if we have any GET call in the cache to respond immediatly
295295
if (request.method === 'GET') {
296296
// Memoize GET calls for the same data source instance
297297
// a single instance of the data sources is scoped to one graphql request

0 commit comments

Comments
 (0)