Comparing version
@@ -29,3 +29,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.4", | ||
"version": "1.0.5-beta0.1", | ||
"engines": { | ||
@@ -32,0 +32,0 @@ "node": ">= 0.6" |
@@ -174,3 +174,3 @@ /** | ||
if (!delegate) return; | ||
globalOtherParas = {...jgetGlobalValue(key, delegate.globalParas)} | ||
globalOtherParas = {...globalOtherParas, ...jgetGlobalValue(key, delegate.globalParas)} | ||
}); | ||
@@ -184,3 +184,3 @@ let globalOtherHeaders = {}; | ||
if (!delegate) return; | ||
globalOtherHeaders = {...jgetGlobalValue(key, delegate.globalHeaders)} | ||
globalOtherHeaders = {...globalOtherParas, ...jgetGlobalValue(key, delegate.globalHeaders)} | ||
}); | ||
@@ -218,4 +218,4 @@ let request: JRequester = JRequester.create( | ||
*/ | ||
static freedomPOST(baseUrl: string, url?: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse> { | ||
return this.instance().freedomPOST.apply(this._instance, Array.from(arguments)) | ||
static freedomPOST(baseUrl: string, url?: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse|JNetworkError> { | ||
return this.instance().freedomPOST(baseUrl, url, parameters, headers, otherObject) | ||
} | ||
@@ -232,4 +232,4 @@ | ||
*/ | ||
static freedomGET(baseUrl: string, url?: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse> { | ||
return this.instance().freedomGET.apply(this._instance, Array.from(arguments)) | ||
static freedomGET(baseUrl: string, url?: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse|JNetworkError> { | ||
return this.instance().freedomGET(baseUrl, url, parameters, headers, otherObject) | ||
} | ||
@@ -245,4 +245,4 @@ | ||
*/ | ||
static POST(url: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse> { | ||
return this.instance().POST.apply(this._instance, Array.from(arguments)) | ||
static POST(url: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse|JNetworkError> { | ||
return this.instance().POST(url, parameters, headers, otherObject) | ||
} | ||
@@ -258,4 +258,4 @@ | ||
*/ | ||
static GET(url: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse> { | ||
return this.instance().GET.apply(this._instance, Array.from(arguments)) | ||
static GET(url: string, parameters?: object, headers?: object, otherObject?: object): JPromise<AxiosResponse|JNetworkError> { | ||
return this.instance().GET(url, parameters, headers, otherObject) | ||
} | ||
@@ -262,0 +262,0 @@ |
@@ -80,3 +80,3 @@ import {AxiosRequestConfig, AxiosResponse} from "axios"; | ||
if (!delegate) return; | ||
globalOtherParas = {...jgetGlobalValue(key, delegate.globalParas)} | ||
globalOtherParas = {...globalOtherParas, ...jgetGlobalValue(key, delegate.globalParas)} | ||
}); | ||
@@ -90,3 +90,3 @@ let globalOtherHeaders = {}; | ||
if (!delegate) return; | ||
globalOtherHeaders = {...jgetGlobalValue(key, delegate.globalHeaders)} | ||
globalOtherHeaders = {...globalOtherParas, ...jgetGlobalValue(key, delegate.globalHeaders)} | ||
}); | ||
@@ -93,0 +93,0 @@ let request: JRequester = JRequester.create( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
223853
0.15%3
50%