quickblox 2.15.2 → 2.15.3

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/src/qbConfig.js CHANGED
@@ -12,8 +12,8 @@
12
12
  */
13
13
 
14
14
  var config = {
15
- version: '2.15.2',
16
- buildNumber: '1144',
15
+ version: '2.15.3',
16
+ buildNumber: '1149',
17
17
  creds: {
18
18
  'appId': 0,
19
19
  'authKey': '',
@@ -79,7 +79,6 @@ var config = {
79
79
  addISOTime: false,
80
80
  qbTokenExpirationDate: null,
81
81
  liveSessionInterval: 120,
82
- callBackInterval: 30,
83
82
  };
84
83
 
85
84
  config.set = function(options) {
package/src/qbMain.js CHANGED
@@ -36,6 +36,7 @@ QuickBlox.prototype = {
36
36
  * @param {Object} configMap - Settings object for QuickBlox SDK.
37
37
  */
38
38
  init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
39
+ console.log('current platform: ', Utils.getEnv());
39
40
  if (typeof accountKey === 'string' && accountKey.length) {
40
41
  if (configMap && typeof configMap === 'object') {
41
42
  config.set(configMap);
package/src/qbProxy.js CHANGED
@@ -139,7 +139,7 @@ ServiceProxy.prototype = {
139
139
  qbFetch(qbUrl, qbRequest)
140
140
  .then(function(response) {
141
141
  qbResponse = response;
142
-
142
+ console.log('qbProxy fetch then 1');
143
143
  if (qbRequest.method === 'GET' || qbRequest.method === 'POST'){
144
144
  var qbTokenExpirationDate = qbResponse.headers.get('qb-token-expirationdate');
145
145
  var headerHasToken = !(qbTokenExpirationDate === null ||
@@ -163,9 +163,16 @@ ServiceProxy.prototype = {
163
163
 
164
164
  return ' ';
165
165
  }).then(function(body) {
166
+ //console.log('HTTP status code: ', qbResponse.headers.status);
167
+ //console.log('HTTP response: ', qbResponse);
168
+ console.log('qbProxy fetch then 2');
169
+ console.log('HTTP body: ', qbResponse);
166
170
  _requestCallback(null, qbResponse, body);
167
171
  }, function(error) {
168
172
  _requestCallback(error);
173
+ }).catch((error) => {
174
+ console.log('qbProxy fetch ... catch, error: ', error);
175
+ _requestCallback(error);
169
176
  });
170
177
 
171
178
  /*