quickblox 2.21.0-alpha.2 → 2.21.1

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/README.md CHANGED
@@ -54,8 +54,12 @@ var QB2 = new QuickBlox();
54
54
  # Browsers support
55
55
 
56
56
  | Edge | Firefox | Chrome | Safari | Opera | Node.js |
57
- | :--: | :-----: | :----: | :----: | :---: | :-----: |
58
- | 14+ | 52+ | 50+ | 11.1+ | 36+ | 6+ |
57
+ | :--: | :-----: | :----: | :----: | :---: |:-------:|
58
+ | 14+ | 52+ | 50+ | 11.1+ | 36+ | 10+ |
59
+
60
+ ## Node.js
61
+ - **Minimum:** v10.0.0
62
+ - **Recommended:** v12.20.0+
59
63
 
60
64
  # Documentation
61
65
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickblox",
3
3
  "description": "QuickBlox JavaScript SDK",
4
- "version": "2.21.0-alpha.2",
4
+ "version": "2.21.1",
5
5
  "homepage": "https://quickblox.com/developers/Javascript",
6
6
  "main": "src/qbMain.js",
7
7
  "types": "quickblox.d.ts",
@@ -38,6 +38,7 @@
38
38
  "email": "web@quickblox.com"
39
39
  },
40
40
  "dependencies": {
41
+ "cordova-custom-config": "^5.1.1",
41
42
  "crypto-js": "3.1.2-2",
42
43
  "form-data": "^2.3.1",
43
44
  "nativescript-xmpp-client": "^1.2.0",
package/quickblox.js CHANGED
@@ -15129,8 +15129,10 @@ function isUndefined(arg) {
15129
15129
  }
15130
15130
 
15131
15131
  },{}],80:[function(require,module,exports){
15132
+ 'use strict';
15133
+
15132
15134
  /* eslint-env browser */
15133
- module.exports = typeof self == 'object' ? self.FormData : window.FormData;
15135
+ module.exports = typeof self === 'object' ? self.FormData : window.FormData;
15134
15136
 
15135
15137
  },{}],81:[function(require,module,exports){
15136
15138
  'use strict';
@@ -54569,7 +54571,26 @@ module.exports = WebRTCSignalingConstants;
54569
54571
  * WebRTC Module (WebRTC signaling provider)
54570
54572
  */
54571
54573
 
54572
- require('strophe.js');
54574
+ // require('strophe.js');
54575
+ // Try to load the UMD build that works with Node/CommonJS
54576
+ var __stropheMod;
54577
+ try {
54578
+ __stropheMod = require('strophe.js/dist/strophe.umd.js');
54579
+ } catch (e) {
54580
+ // Fallback: load default entry if the path above is not available
54581
+ __stropheMod = require('strophe.js');
54582
+ }
54583
+
54584
+ // Normalize possible export shapes
54585
+ // Strophe can be exported as { Strophe }, default, or the module itself
54586
+ var Strophe =
54587
+ (__stropheMod && (__stropheMod.Strophe || __stropheMod.default || __stropheMod)) || undefined;
54588
+
54589
+ // Basic guard: make sure the Connection class exists
54590
+ if (!Strophe || !Strophe.Connection) {
54591
+ throw new Error('[QBChat] Strophe import failed: Connection class not found');
54592
+ }
54593
+ // ---------------------------------------------------------------------------
54573
54594
 
54574
54595
  var SignalingConstants = require('./qbWebRTCSignalingConstants');
54575
54596
 
@@ -54719,7 +54740,7 @@ function WebRTCSignalingProcessor(service, delegate) {
54719
54740
 
54720
54741
  module.exports = WebRTCSignalingProcessor;
54721
54742
 
54722
- },{"./qbWebRTCSignalingConstants":251,"strophe.js":211}],253:[function(require,module,exports){
54743
+ },{"./qbWebRTCSignalingConstants":251,"strophe.js":211,"strophe.js/dist/strophe.umd.js":211}],253:[function(require,module,exports){
54723
54744
  'use strict';
54724
54745
 
54725
54746
  /** JSHint inline rules */
@@ -54730,7 +54751,26 @@ module.exports = WebRTCSignalingProcessor;
54730
54751
  * WebRTC Module (WebRTC signaling processor)
54731
54752
  */
54732
54753
 
54733
- require('strophe.js');
54754
+ // require('strophe.js');
54755
+ // Try to load the UMD build that works with Node/CommonJS
54756
+ var __stropheMod;
54757
+ try {
54758
+ __stropheMod = require('strophe.js/dist/strophe.umd.js');
54759
+ } catch (e) {
54760
+ // Fallback: load default entry if the path above is not available
54761
+ __stropheMod = require('strophe.js');
54762
+ }
54763
+
54764
+ // Normalize possible export shapes
54765
+ // Strophe can be exported as { Strophe }, default, or the module itself
54766
+ var Strophe =
54767
+ (__stropheMod && (__stropheMod.Strophe || __stropheMod.default || __stropheMod)) || undefined;
54768
+
54769
+ // Basic guard: make sure the Connection class exists
54770
+ if (!Strophe || !Strophe.Connection) {
54771
+ throw new Error('[QBChat] Strophe import failed: Connection class not found');
54772
+ }
54773
+ // ---------------------------------------------------------------------------
54734
54774
 
54735
54775
  var Helpers = require('./qbWebRTCHelpers');
54736
54776
  var SignalingConstants = require('./qbWebRTCSignalingConstants');
@@ -54826,7 +54866,7 @@ WebRTCSignalingProvider.prototype._JStoXML = function (title, obj, msg) {
54826
54866
 
54827
54867
  module.exports = WebRTCSignalingProvider;
54828
54868
 
54829
- },{"../../qbConfig":255,"../../qbUtils":259,"./qbWebRTCHelpers":249,"./qbWebRTCSignalingConstants":251,"strophe.js":211}],254:[function(require,module,exports){
54869
+ },{"../../qbConfig":255,"../../qbUtils":259,"./qbWebRTCHelpers":249,"./qbWebRTCSignalingConstants":251,"strophe.js":211,"strophe.js/dist/strophe.umd.js":211}],254:[function(require,module,exports){
54830
54870
  'use strict';
54831
54871
 
54832
54872
  /**
@@ -55078,8 +55118,8 @@ module.exports = StreamManagement;
55078
55118
  */
55079
55119
 
55080
55120
  var config = {
55081
- version: '2.21.0',
55082
- buildNumber: '1167',
55121
+ version: '2.21.1-alpha.1',
55122
+ buildNumber: '1168',
55083
55123
  creds: {
55084
55124
  'appId': 0,
55085
55125
  'authKey': '',
@@ -55208,11 +55248,11 @@ module.exports = config;
55208
55248
  */
55209
55249
  var config = require('./qbConfig');
55210
55250
  var Utils = require('./qbUtils');
55211
- const MessageProxy = require("./modules/chat/qbMessage");
55212
- const Chat = require("./modules/chat/qbChat");
55213
- const DialogProxy = require("./modules/chat/qbDialog");
55214
- const WebRTCClient = require("./modules/webrtc/qbWebRTCClient");
55215
- const PushNotifications = require("./modules/qbPushNotifications");
55251
+ // const MessageProxy = require("./modules/chat/qbMessage");
55252
+ // const Chat = require("./modules/chat/qbChat");
55253
+ // const DialogProxy = require("./modules/chat/qbDialog");
55254
+ // const WebRTCClient = require("./modules/webrtc/qbWebRTCClient");
55255
+ // const PushNotifications = require("./modules/qbPushNotifications");
55216
55256
 
55217
55257
  // Actual QuickBlox API starts here
55218
55258
  function QuickBlox() {}
@@ -55968,12 +56008,36 @@ module.exports = ServiceProxy;
55968
56008
  * Strophe Connection Object
55969
56009
  */
55970
56010
 
55971
- require('strophe.js');
56011
+ // require('strophe.js');
56012
+
56013
+ // ---- Strophe import (UMD-first with safe fallback) -------------------------
56014
+ // Try to load the UMD build that works with Node/CommonJS
56015
+ var __stropheMod;
56016
+ try {
56017
+ __stropheMod = require('strophe.js/dist/strophe.umd.js');
56018
+ } catch (e) {
56019
+ // Fallback: load default entry if the path above is not available
56020
+ __stropheMod = require('strophe.js');
56021
+ }
56022
+
56023
+ // Normalize possible export shapes
56024
+ // Strophe can be exported as { Strophe }, default, or the module itself
56025
+ var Strophe =
56026
+ (__stropheMod && (__stropheMod.Strophe || __stropheMod.default || __stropheMod)) || undefined;
56027
+
56028
+ // Basic guard: make sure the Connection class exists
56029
+ if (!Strophe || !Strophe.Connection) {
56030
+ throw new Error('[QBChat] Strophe import failed: Connection class not found');
56031
+ }
56032
+ // ---------------------------------------------------------------------------
55972
56033
 
55973
56034
  var config = require('./qbConfig');
55974
56035
  var chatPRTCL = config.chatProtocol;
55975
56036
  var Utils = require('./qbUtils');
55976
56037
 
56038
+
56039
+
56040
+
55977
56041
  function Connection(onLogListenerCallback) {
55978
56042
  var protocol = chatPRTCL.active === 1 ? chatPRTCL.bosh : chatPRTCL.websocket;
55979
56043
  var conn = new Strophe.Connection(protocol);
@@ -56037,7 +56101,7 @@ function Connection(onLogListenerCallback) {
56037
56101
 
56038
56102
  module.exports = Connection;
56039
56103
 
56040
- },{"./qbConfig":255,"./qbUtils":259,"strophe.js":211}],259:[function(require,module,exports){
56104
+ },{"./qbConfig":255,"./qbUtils":259,"strophe.js":211,"strophe.js/dist/strophe.umd.js":211}],259:[function(require,module,exports){
56041
56105
  (function (global){(function (){
56042
56106
  /* eslint no-console: 2 */
56043
56107