quickblox 2.17.17-logger → 2.17.19-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 +9 -9
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +5 -2
- package/src/qbConfig.js +1 -1
- package/src/qbStrophe.js +2 -5
package/package.json
CHANGED
package/quickblox.js
CHANGED
|
@@ -43635,8 +43635,11 @@ function ChatProxy(service) {
|
|
|
43635
43635
|
ChatProxy.prototype = {
|
|
43636
43636
|
|
|
43637
43637
|
_OnLogListener: function (message) {
|
|
43638
|
-
|
|
43639
|
-
|
|
43638
|
+
var self = this;
|
|
43639
|
+
Utils.QBLog('[QBChat][TEST]', self);
|
|
43640
|
+
Utils.QBLog('[QBChat][TEST]', typeof self.onLogListener);
|
|
43641
|
+
if (typeof self.onLogListener === 'function') {
|
|
43642
|
+
Utils.safeCallbackCall(self.onLogListener, message);
|
|
43640
43643
|
}
|
|
43641
43644
|
},
|
|
43642
43645
|
|
|
@@ -51499,7 +51502,7 @@ module.exports = StreamManagement;
|
|
|
51499
51502
|
*/
|
|
51500
51503
|
|
|
51501
51504
|
var config = {
|
|
51502
|
-
version: '2.17.
|
|
51505
|
+
version: '2.17.19-logger',
|
|
51503
51506
|
buildNumber: '1161',
|
|
51504
51507
|
creds: {
|
|
51505
51508
|
'appId': 0,
|
|
@@ -52220,16 +52223,13 @@ require('./libs/strophe/strophe.umd.js');
|
|
|
52220
52223
|
var config = require('./qbConfig');
|
|
52221
52224
|
var chatPRTCL = config.chatProtocol;
|
|
52222
52225
|
var Utils = require('./qbUtils');
|
|
52223
|
-
var QBModules = require('./qbMain');
|
|
52224
52226
|
|
|
52225
52227
|
function Connection(onLogListenerCallback) {
|
|
52226
52228
|
var protocol = chatPRTCL.active === 1 ? chatPRTCL.bosh : chatPRTCL.websocket;
|
|
52227
52229
|
var conn = new Strophe.Connection(protocol);
|
|
52228
|
-
var onLogListener = config.debug
|
|
52229
|
-
var chatLogger = Utils.QBLog;
|
|
52230
|
+
var onLogListener = config.debug ? onLogListenerCallback : null;
|
|
52230
52231
|
var safeCallbackCall = function(message, data) {
|
|
52231
|
-
onLogListener =
|
|
52232
|
-
chatLogger = QBModules.getLogger();
|
|
52232
|
+
onLogListener = config.debug ? onLogListenerCallback : null;
|
|
52233
52233
|
if (onLogListener && typeof onLogListener === 'function') {
|
|
52234
52234
|
Utils.safeCallbackCall(onLogListener,
|
|
52235
52235
|
'[QBChat][QBStrophe]' + message + data);
|
|
@@ -52284,7 +52284,7 @@ function Connection(onLogListenerCallback) {
|
|
|
52284
52284
|
|
|
52285
52285
|
module.exports = Connection;
|
|
52286
52286
|
|
|
52287
|
-
},{"./libs/strophe/strophe.umd.js":227,"./qbConfig":247,"./
|
|
52287
|
+
},{"./libs/strophe/strophe.umd.js":227,"./qbConfig":247,"./qbUtils":251}],251:[function(require,module,exports){
|
|
52288
52288
|
(function (global){(function (){
|
|
52289
52289
|
/* eslint no-console: 2 */
|
|
52290
52290
|
|