@como/como-client 0.7.64 → 0.7.65

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
@@ -2130,9 +2130,13 @@ var Como = function () {
2130
2130
  switch (_context38.prev = _context38.next) {
2131
2131
  case 0:
2132
2132
  _comoData36 = this.comoData, api = _comoData36.api, locationId = _comoData36.locationId, env = _comoData36.env_params;
2133
+ _context38.next = 3;
2134
+ return this.refreshTokenIfNeeded();
2135
+
2136
+ case 3:
2133
2137
  return _context38.abrupt('return', api.getMemberMessages(env.services_root, locationId, tag, limit, offset));
2134
2138
 
2135
- case 2:
2139
+ case 4:
2136
2140
  case 'end':
2137
2141
  return _context38.stop();
2138
2142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.64",
3
+ "version": "0.7.65",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -877,6 +877,7 @@ class Como {
877
877
  const {
878
878
  api, locationId, env_params: env,
879
879
  } = this.comoData;
880
+ await this.refreshTokenIfNeeded();
880
881
  return api.getMemberMessages(env.services_root, locationId, tag, limit, offset);
881
882
  }
882
883