@ekhein/http-request 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare class HttpRequestHeaders extends AxiosHeaders {
|
|
|
4
4
|
}
|
|
5
5
|
export declare class HttpRequest {
|
|
6
6
|
readonly instance: AxiosInstance;
|
|
7
|
-
constructor(options
|
|
7
|
+
constructor(options?: HttpRequestConfig);
|
|
8
8
|
execute<R = any>(options: HttpRequestConfig): Promise<R>;
|
|
9
9
|
post<R = any>(url: string, data?: any, opts?: HttpRequestConfig): Promise<R>;
|
|
10
10
|
call<R = any>(path: string, data: object, opts?: HttpRequestConfig): Promise<R>;
|
package/dist/main.js
CHANGED
|
@@ -66,7 +66,7 @@ class HttpRequestHeaders extends axios_1.AxiosHeaders {
|
|
|
66
66
|
}
|
|
67
67
|
exports.HttpRequestHeaders = HttpRequestHeaders;
|
|
68
68
|
class HttpRequest {
|
|
69
|
-
constructor(options) {
|
|
69
|
+
constructor(options = {}) {
|
|
70
70
|
var _a, _b, _c, _d;
|
|
71
71
|
/* Axios */
|
|
72
72
|
this.instance = axios_1.default.create(Object.assign({}, Object.assign({
|