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 +1 -1
- package/quickblox.js +4 -7
- package/quickblox.min.js +1 -1
- package/src/qbConfig.js +1 -1
- package/src/qbStrophe.js +2 -5
package/package.json
CHANGED
package/quickblox.js
CHANGED
|
@@ -51499,7 +51499,7 @@ module.exports = StreamManagement;
|
|
|
51499
51499
|
*/
|
|
51500
51500
|
|
|
51501
51501
|
var config = {
|
|
51502
|
-
version: '2.17.
|
|
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
|
|
52229
|
-
var chatLogger = Utils.QBLog;
|
|
52227
|
+
var onLogListener = config.debug ? onLogListenerCallback : null;
|
|
52230
52228
|
var safeCallbackCall = function(message, data) {
|
|
52231
|
-
onLogListener =
|
|
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,"./
|
|
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
|
|