hof 21.0.11-axios-beta → 21.0.13-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/model/index.js +2 -1
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -113,6 +113,7 @@ module.exports = class Model extends EventEmitter {
|
|
113
113
|
if(authVal) {
|
114
114
|
settings.headers = Object.assign({}, settings.headers, {Authorization: `Bearer ${authVal.bearer}`});
|
115
115
|
}
|
116
|
+
settings.auth = undefined;
|
116
117
|
console.log("SETTINGS ************")
|
117
118
|
console.log(settings)
|
118
119
|
console.log("SETTINGS ************")
|
@@ -132,7 +133,7 @@ module.exports = class Model extends EventEmitter {
|
|
132
133
|
const responseTime = timeDiff(startTime, endTime);
|
133
134
|
if (err) {
|
134
135
|
console.log("*****ERRR********")
|
135
|
-
console.log(
|
136
|
+
console.log(data)
|
136
137
|
console.log("*****ERRR********")
|
137
138
|
this.emit('fail', err, data, originalSettings, statusCode, responseTime);
|
138
139
|
reject(err);
|