@como/como-client 0.1.98 → 0.1.991

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
@@ -250,11 +250,12 @@ var Como = function () {
250
250
  _context2.t1 = _context2['catch'](32);
251
251
 
252
252
  console.log('Failed to signOn, installationId:' + installationId + ', locationId:' + locationId + ', source:' + source);
253
- initService.logError({ method: 'signOn', installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken });
253
+ initService.logError({ method: 'signOn', installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken, interval: interval });
254
254
 
255
255
  interval += 1000;
256
256
  setTimeout(function () {
257
257
  console.log('waking for another try of signOn, interval: ' + interval + ', installationId:' + installationId + ', locationId:' + locationId + ', source:' + source);
258
+ initService.logError({ method: 'signOn', installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken, interval: interval });
258
259
  }, interval);
259
260
 
260
261
  case 46:
@@ -17,13 +17,14 @@ exports.logError = function (service) {
17
17
  while (1) {
18
18
  switch (_context.prev = _context.next) {
19
19
  case 0:
20
- _context.next = 2;
21
- return service.post('/', data);
20
+ data.logError = 'comoJS';
21
+ _context.next = 3;
22
+ return service.post('/v1/bundle/log', data);
22
23
 
23
- case 2:
24
+ case 3:
24
25
  return _context.abrupt('return', _context.sent);
25
26
 
26
- case 3:
27
+ case 4:
27
28
  case 'end':
28
29
  return _context.stop();
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.1.98",
3
+ "version": "0.1.991",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -124,11 +124,12 @@ class Como {
124
124
  credExist = true;
125
125
  }catch(e){
126
126
  console.log(`Failed to signOn, installationId:${installationId}, locationId:${locationId}, source:${source}`);
127
- initService.logError({method: 'signOn', installationId, locationId, source, refreshToken});
127
+ initService.logError({method: 'signOn', installationId, locationId, source, refreshToken, interval});
128
128
 
129
129
  interval += 1000;
130
130
  setTimeout(() => {
131
131
  console.log(`waking for another try of signOn, interval: ${interval}, installationId:${installationId}, locationId:${locationId}, source:${source}`);
132
+ initService.logError({method: 'signOn', installationId, locationId, source, refreshToken, interval});
132
133
  }, interval);
133
134
  }
134
135
  }