hof 21.0.15-axios-beta → 21.0.16-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.
Files changed (2) hide show
  1. package/model/index.js +9 -7
  2. package/package.json +1 -1
package/model/index.js CHANGED
@@ -101,14 +101,16 @@ module.exports = class Model extends EventEmitter {
101
101
  this.emit('sync', originalSettings);
102
102
 
103
103
  const promise = Promise.resolve().then(() => this.auth()).then(authData => {
104
+ console.log("@@@@@@@@@@@@@@@@")
105
+ console.log(authData)
106
+ console.log(typeof authData)
107
+ console.log("@@@@@@@@@@@@@@@@")
104
108
  let authVal = authData;
105
- if (typeof authVal === 'string') {
106
- const auth = authVal.split(':');
107
- authVal = {
108
- username: auth.shift(),
109
- password: auth.join(':')
110
- };
111
- }
109
+ const auth = authVal.split(':');
110
+ authVal = {
111
+ username: auth.shift(),
112
+ password: auth.join(':')
113
+ };
112
114
  if(authVal) {
113
115
  settings.headers = Object.assign({}, settings.headers, {Authorization: `Bearer ${authVal.bearer}`});
114
116
  }
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.15-axios-beta",
4
+ "version": "21.0.16-axios-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",