quickblox 2.17.17-logger → 2.17.18-logger

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickblox",
3
3
  "description": "QuickBlox JavaScript SDK",
4
- "version": "2.17.17-logger",
4
+ "version": "2.17.18-logger",
5
5
  "homepage": "https://quickblox.com/developers/Javascript",
6
6
  "main": "src/qbMain.js",
7
7
  "types": "quickblox.d.ts",
package/quickblox.js CHANGED
@@ -51499,7 +51499,7 @@ module.exports = StreamManagement;
51499
51499
  */
51500
51500
 
51501
51501
  var config = {
51502
- version: '2.17.17-logger',
51502
+ version: '2.17.18-logger',
51503
51503
  buildNumber: '1161',
51504
51504
  creds: {
51505
51505
  'appId': 0,
@@ -52220,16 +52220,13 @@ require('./libs/strophe/strophe.umd.js');
52220
52220
  var config = require('./qbConfig');
52221
52221
  var chatPRTCL = config.chatProtocol;
52222
52222
  var Utils = require('./qbUtils');
52223
- var QBModules = require('./qbMain');
52224
52223
 
52225
52224
  function Connection(onLogListenerCallback) {
52226
52225
  var protocol = chatPRTCL.active === 1 ? chatPRTCL.bosh : chatPRTCL.websocket;
52227
52226
  var conn = new Strophe.Connection(protocol);
52228
- var onLogListener = config.debug && (QBModules.getChat() || onLogListenerCallback)? onLogListenerCallback || QBModules.getChat().onLogListener : null;
52229
- var chatLogger = Utils.QBLog;
52227
+ var onLogListener = config.debug ? onLogListenerCallback : null;
52230
52228
  var safeCallbackCall = function(message, data) {
52231
- onLogListener = onLogListenerCallback || QBModules.getChat() ? QBModules.getChat().onLogListener : null;
52232
- chatLogger = QBModules.getLogger();
52229
+ onLogListener = config.debug ? onLogListenerCallback : null;
52233
52230
  if (onLogListener && typeof onLogListener === 'function') {
52234
52231
  Utils.safeCallbackCall(onLogListener,
52235
52232
  '[QBChat][QBStrophe]' + message + data);
@@ -52284,7 +52281,7 @@ function Connection(onLogListenerCallback) {
52284
52281
 
52285
52282
  module.exports = Connection;
52286
52283
 
52287
- },{"./libs/strophe/strophe.umd.js":227,"./qbConfig":247,"./qbMain":248,"./qbUtils":251}],251:[function(require,module,exports){
52284
+ },{"./libs/strophe/strophe.umd.js":227,"./qbConfig":247,"./qbUtils":251}],251:[function(require,module,exports){
52288
52285
  (function (global){(function (){
52289
52286
  /* eslint no-console: 2 */
52290
52287