hof 21.0.12-axios-beta → 21.0.14-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 +7 -1
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -133,7 +133,7 @@ module.exports = class Model extends EventEmitter {
|
|
133
133
|
const responseTime = timeDiff(startTime, endTime);
|
134
134
|
if (err) {
|
135
135
|
console.log("*****ERRR********")
|
136
|
-
console.log(
|
136
|
+
console.log(data)
|
137
137
|
console.log("*****ERRR********")
|
138
138
|
this.emit('fail', err, data, originalSettings, statusCode, responseTime);
|
139
139
|
reject(err);
|
@@ -154,9 +154,15 @@ module.exports = class Model extends EventEmitter {
|
|
154
154
|
this._request(settings)
|
155
155
|
.then(response => {
|
156
156
|
return this.handleResponse(response, (error, data, status) => {
|
157
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
158
|
+
console.log(response.headers)
|
159
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
157
160
|
if (error) {
|
158
161
|
error.headers = response.headers;
|
159
162
|
}
|
163
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
164
|
+
console.log(response.headers)
|
165
|
+
console.log("$$$$$$$$$$4RESPONSE")
|
160
166
|
_callback(error, data, status);
|
161
167
|
});
|
162
168
|
}).catch(err => {
|