hof 21.0.9-axios-beta → 21.0.10-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 +12 -10
  2. package/package.json +1 -1
package/model/index.js CHANGED
@@ -128,22 +128,24 @@ module.exports = class Model extends EventEmitter {
128
128
  const endTime = process.hrtime();
129
129
  const responseTime = timeDiff(startTime, endTime);
130
130
  if (err) {
131
+ console.log("*****ERRR********")
132
+ console.log(err)
133
+ console.log("*****ERRR********")
131
134
  this.emit('fail', err, data, originalSettings, statusCode, responseTime);
135
+ reject(err);
132
136
  } else {
133
137
  console.log("SUCCESS>>>>>>>>>>>>>>>")
134
138
  this.emit('success', data, originalSettings, statusCode, responseTime);
135
- }
136
- console.log("*****ERRR********")
137
- console.log(err)
138
- console.log("*****ERRR********")
139
- if (err) {
140
- console.log("err11")
141
- console.log(err)
142
- console.log("err11")
143
- reject(err);
144
- } else {
145
139
  resolve(data);
146
140
  }
141
+ // if (err) {
142
+ // console.log("err11")
143
+ // console.log(err)
144
+ // console.log("err11")
145
+ // reject(err);
146
+ // } else {
147
+ // resolve(data);
148
+ // }
147
149
  };
148
150
  this._request(settings)
149
151
  .then(response => {
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.9-axios-beta",
4
+ "version": "21.0.10-axios-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",