@cloudflare/util-http
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -6,3 +6,11 @@ # Change Log | ||
<a name="1.0.12"></a> | ||
<a name="1.0.13"></a> | ||
## [1.0.13](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.12...@cloudflare/util-http@1.0.13) (2018-09-25) | ||
**Note:** Version bump only for package @cloudflare/util-http | ||
<a name="1.0.12"></a> | ||
## [1.0.12](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.11...@cloudflare/util-http@1.0.12) (2018-09-21) | ||
@@ -15,3 +23,3 @@ | ||
<a name="1.0.11"></a> | ||
<a name="1.0.11"></a> | ||
## [1.0.11](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.10...@cloudflare/util-http@1.0.11) (2018-08-24) | ||
@@ -18,0 +26,0 @@ |
{ | ||
"name": "@cloudflare/util-http", | ||
"description": "Cloudflare HTTP Util", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "es/index.js", |
@@ -9,7 +9,7 @@ import 'isomorphic-fetch'; | ||
interface IKVPairs { | ||
export interface IKVPairs { | ||
[key: string]: string; | ||
} | ||
type TCallback = (error?: any, response?: IWrappedResponse) => void; | ||
type TBeforeSendCallback = (options: THttpUtilOptions | TCallback) => void; | ||
type TBeforeSendCallback = (options?: THttpUtilOptions | TCallback) => void; | ||
@@ -25,6 +25,6 @@ interface THttpUtilHeaders extends Headers { | ||
} | ||
interface IWrappedResponse { | ||
export interface IWrappedResponse { | ||
headers: IKVPairs; | ||
status: number; | ||
body: string; | ||
body: string | object; | ||
text: string; | ||
@@ -155,4 +155,4 @@ response: Response; | ||
url: string, | ||
opts: THttpUtilOptions | TCallback, | ||
callback: TCallback | ||
opts?: THttpUtilOptions | TCallback, | ||
callback?: TCallback | ||
): Promise<IWrappedResponse> { | ||
@@ -159,0 +159,0 @@ if (typeof opts === 'function') { |
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
37147