@bbc/http-transport
Advanced tools
Comparing version 4.4.3 to 4.4.4
@@ -109,2 +109,6 @@ import * as fetch from 'node-fetch'; | ||
type AsResponse<ResponseType, BodyType> = ResponseType & { | ||
body: BodyType | ||
} | ||
export declare class HttpTransportClient< | ||
@@ -136,4 +140,8 @@ ContextCurrent extends Context = Context | ||
retryDelay(retryDelay: number): HttpTransportClient<ContextCurrent>; | ||
asBody(): Promise<ContextCurrent["res"]["body"]>; | ||
asResponse(): Promise<ContextCurrent["res"]>; | ||
asBody<ResponseBody = ContextCurrent["res"]["body"]>(): Promise< | ||
ResponseBody | ||
>; | ||
asResponse<ResponseBody = ContextCurrent["res"]["body"]>(): Promise< | ||
AsResponse<ContextCurrent["res"], ResponseBody> | ||
>; | ||
} | ||
@@ -140,0 +148,0 @@ |
{ | ||
"name": "@bbc/http-transport", | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"description": "A flexible, modular REST client built for ease-of-use and resilience.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
386893
6793
2