hof 21.0.13-axios-beta → 21.0.15-axios-beta
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/model/index.js +8 -4
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -105,15 +105,13 @@ module.exports = class Model extends EventEmitter {
|
|
105
105
|
if (typeof authVal === 'string') {
|
106
106
|
const auth = authVal.split(':');
|
107
107
|
authVal = {
|
108
|
-
|
109
|
-
|
110
|
-
sendImmediately: true
|
108
|
+
username: auth.shift(),
|
109
|
+
password: auth.join(':')
|
111
110
|
};
|
112
111
|
}
|
113
112
|
if(authVal) {
|
114
113
|
settings.headers = Object.assign({}, settings.headers, {Authorization: `Bearer ${authVal.bearer}`});
|
115
114
|
}
|
116
|
-
settings.auth = undefined;
|
117
115
|
console.log("SETTINGS ************")
|
118
116
|
console.log(settings)
|
119
117
|
console.log("SETTINGS ************")
|
@@ -154,9 +152,15 @@ module.exports = class Model extends EventEmitter {
|
|
154
152
|
this._request(settings)
|
155
153
|
.then(response => {
|
156
154
|
return this.handleResponse(response, (error, data, status) => {
|
155
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
156
|
+
console.log(response.headers)
|
157
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
157
158
|
if (error) {
|
158
159
|
error.headers = response.headers;
|
159
160
|
}
|
161
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
162
|
+
console.log(response.headers)
|
163
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
160
164
|
_callback(error, data, status);
|
161
165
|
});
|
162
166
|
}).catch(err => {
|