sbx-client-request
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -22,4 +22,4 @@ import * as Cookie from 'sbx-client-cookie'; | ||
storage: 'localStorage', // cookie | ||
response: props.hasOwnProperty('response') | ||
? props.response | ||
responseType: props.hasOwnProperty('responseType') | ||
? props.responseType | ||
: 'body', // full | ||
@@ -38,2 +38,3 @@ }; | ||
middlewares = [], | ||
responseType, | ||
} = this.config, | ||
@@ -174,5 +175,5 @@ self = this; | ||
else { | ||
if(this.config.response === 'body'){ | ||
if(responseType === 'body'){ | ||
resolve(response); | ||
}else if(this.config.response === 'full'){ | ||
}else if(responseType === 'full'){ | ||
resolve({ | ||
@@ -179,0 +180,0 @@ headers:responseHeaders, |
{ | ||
"name": "sbx-client-request", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "sbx-client-request", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
10586
282