hof 21.0.17-axios-beta → 21.0.18-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 +5 -8
  2. package/package.json +1 -1
package/model/index.js CHANGED
@@ -143,14 +143,11 @@ module.exports = class Model extends EventEmitter {
143
143
  this.emit('success', data, originalSettings, statusCode, responseTime);
144
144
  resolve(data);
145
145
  }
146
- // if (err) {
147
- // console.log("err11")
148
- // console.log(err)
149
- // console.log("err11")
150
- // reject(err);
151
- // } else {
152
- // resolve(data);
153
- // }
146
+ if (err) {
147
+ reject(err);
148
+ } else {
149
+ resolve(data);
150
+ }
154
151
  };
155
152
  this._request(settings)
156
153
  .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.17-axios-beta",
4
+ "version": "21.0.18-axios-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",