Skip to content

Commit 38933e0

Browse files
version JS SDK 2.15.3 has created.
1 parent 698bf84 commit 38933e0

File tree

7 files changed

+698
-682
lines changed

7 files changed

+698
-682
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://unpkg.com/[email protected].2/quickblox.min.js"></script>
19+
<script src="https://unpkg.com/[email protected].3/quickblox.min.js"></script>
2020
```
2121

2222
## Bower and RequireJS

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.15.2",
4+
"version": "2.15.3",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "src/qbMain.js",
77
"license": "(Apache-2.0)",

quickblox.js

Lines changed: 348 additions & 340 deletions
Large diffs are not rendered by default.

src/modules/chat/qbChat.js

Lines changed: 337 additions & 336 deletions
Large diffs are not rendered by default.

src/qbConfig.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313

1414
var config = {
15-
version: '2.15.2',
16-
buildNumber: '1144',
15+
version: '2.15.3',
16+
buildNumber: '1149',
1717
creds: {
1818
'appId': 0,
1919
'authKey': '',
@@ -79,7 +79,6 @@ var config = {
7979
addISOTime: false,
8080
qbTokenExpirationDate: null,
8181
liveSessionInterval: 120,
82-
callBackInterval: 30,
8382
};
8483

8584
config.set = function(options) {

src/qbMain.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ QuickBlox.prototype = {
3636
* @param {Object} configMap - Settings object for QuickBlox SDK.
3737
*/
3838
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
39+
console.log('current platform: ', Utils.getEnv());
3940
if (typeof accountKey === 'string' && accountKey.length) {
4041
if (configMap && typeof configMap === 'object') {
4142
config.set(configMap);

src/qbProxy.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ServiceProxy.prototype = {
139139
qbFetch(qbUrl, qbRequest)
140140
.then(function(response) {
141141
qbResponse = response;
142-
142+
console.log('qbProxy fetch then 1');
143143
if (qbRequest.method === 'GET' || qbRequest.method === 'POST'){
144144
var qbTokenExpirationDate = qbResponse.headers.get('qb-token-expirationdate');
145145
var headerHasToken = !(qbTokenExpirationDate === null ||
@@ -163,9 +163,16 @@ ServiceProxy.prototype = {
163163

164164
return ' ';
165165
}).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);
166170
_requestCallback(null, qbResponse, body);
167171
}, function(error) {
168172
_requestCallback(error);
173+
}).catch((error) => {
174+
console.log('qbProxy fetch ... catch, error: ', error);
175+
_requestCallback(error);
169176
});
170177

171178
/*

0 commit comments

Comments
 (0)