hof 21.0.12-axios-beta → 21.0.14-axios-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/model/index.js +7 -1
  2. 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(err)
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 => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "21.0.12-axios-beta",
4
+ "version": "21.0.14-axios-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",