@como/como-client 0.7.4 → 0.7.5

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/lib/como.js CHANGED
@@ -272,16 +272,16 @@ var Como = function () {
272
272
  case 51:
273
273
  _context2.prev = 51;
274
274
 
275
- console.error('signOn with, installationId:' + installationId + ', locationId:' + locationId + ', source:' + source + ',accessToken:' + accessToken);
275
+ console.log('signOn with installationId:' + installationId + ', locationId:' + locationId + ', source:' + source + ',accessToken:' + accessToken);
276
276
  _context2.next = 55;
277
277
  return this.comoData.initApi.signOn(installationId, locationId, source, accessToken);
278
278
 
279
279
  case 55:
280
280
  _data2 = _context2.sent;
281
281
 
282
- console.error('signOn with result " ' + (0, _stringify2.default)(_data2));
282
+ console.log('signOn with result " ' + (0, _stringify2.default)(_data2));
283
283
  if (_data2 && _data2.accessToken) {
284
- console.error('signOn entered update credentials');
284
+ console.log('signOn- updating credentials');
285
285
  updateCredentials(_data2, true);
286
286
  }
287
287
  _context2.next = 63;
@@ -40,18 +40,15 @@ exports.signOn = function (service) {
40
40
  if (accessToken) {
41
41
  headers['Authorization'] = "Bearer " + accessToken;
42
42
  }
43
- console.error("signOn(auth) with deviceId:" + deviceId + ", locationId:" + locationId + ", source:" + source + ",accessToken:" + accessToken + ", headers: " + headers);
44
- _context.next = 6;
43
+ _context.next = 5;
45
44
  return service.post('/auth/v2/auth/signOn', params, { headers: headers });
46
45
 
47
- case 6:
46
+ case 5:
48
47
  _ref2 = _context.sent;
49
48
  data = _ref2.data;
50
-
51
- console.error("signOn(auth) result with data:" + data);
52
49
  return _context.abrupt("return", data);
53
50
 
54
- case 10:
51
+ case 8:
55
52
  case "end":
56
53
  return _context.stop();
57
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -132,11 +132,11 @@ class Como {
132
132
  }
133
133
  else{
134
134
  try{
135
- console.error(`signOn with, installationId:${installationId}, locationId:${locationId}, source:${source},accessToken:${accessToken}`);
135
+ console.log(`signOn with installationId:${installationId}, locationId:${locationId}, source:${source},accessToken:${accessToken}`);
136
136
  const data = await this.comoData.initApi.signOn(installationId, locationId, source, accessToken);
137
- console.error(`signOn with result " ${JSON.stringify(data)}`);
137
+ console.log(`signOn with result " ${JSON.stringify(data)}`);
138
138
  if(data && data.accessToken){
139
- console.error(`signOn entered update credentials`);
139
+ console.log(`signOn- updating credentials`);
140
140
  updateCredentials(data, true);
141
141
  }
142
142
  }catch(e){