quickblox 2.17.2-logger → 2.17.3-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 -2
- package/quickblox.js +36560 -38627
- package/quickblox.min.js +1 -1
- package/src/libs/strophe/strophe.common.js +6657 -0
- package/src/libs/strophe/strophe.esm.js +6649 -0
- package/src/libs/strophe/strophe.umd.js +6862 -0
- package/src/libs/strophe/strophe.umd.min.js +1 -0
- package/src/modules/chat/qbChat.js +9 -0
- package/src/modules/webrtc/qbWebRTCSignalingProcessor.js +2 -1
- package/src/modules/webrtc/qbWebRTCSignalingProvider.js +2 -2
- package/src/qbConfig.js +1 -1
- package/src/qbStrophe.js +2 -1
- package/strophejs-1.4.0/.eslintrc.json +264 -0
- package/strophejs-1.4.0/.gitattributes +1 -0
- package/strophejs-1.4.0/CHANGELOG.md +250 -0
- package/strophejs-1.4.0/LICENSE.txt +19 -0
- package/strophejs-1.4.0/Makefile +92 -0
- package/strophejs-1.4.0/README.md +45 -0
- package/strophejs-1.4.0/RELEASE_CHECKLIST.md +16 -0
- package/strophejs-1.4.0/contrib/discojs/README.txt +42 -0
- package/strophejs-1.4.0/contrib/discojs/css/disco.css +16 -0
- package/strophejs-1.4.0/contrib/discojs/index.html +47 -0
- package/strophejs-1.4.0/contrib/discojs/punjab.tac +18 -0
- package/strophejs-1.4.0/contrib/discojs/scripts/basic.js +102 -0
- package/strophejs-1.4.0/contrib/discojs/scripts/disco.js +60 -0
- package/strophejs-1.4.0/docs.css +797 -0
- package/strophejs-1.4.0/examples/amd.html +21 -0
- package/strophejs-1.4.0/examples/attach/README +37 -0
- package/strophejs-1.4.0/examples/attach/__init__.py +0 -0
- package/strophejs-1.4.0/examples/attach/attacher/__init__.py +0 -0
- package/strophejs-1.4.0/examples/attach/attacher/views.py +18 -0
- package/strophejs-1.4.0/examples/attach/boshclient.py +158 -0
- package/strophejs-1.4.0/examples/attach/manage.py +11 -0
- package/strophejs-1.4.0/examples/attach/settings.py +85 -0
- package/strophejs-1.4.0/examples/attach/templates/attacher/index.html +88 -0
- package/strophejs-1.4.0/examples/attach/urls.py +19 -0
- package/strophejs-1.4.0/examples/basic.html +23 -0
- package/strophejs-1.4.0/examples/basic.js +73 -0
- package/strophejs-1.4.0/examples/echobot.html +25 -0
- package/strophejs-1.4.0/examples/echobot.js +79 -0
- package/strophejs-1.4.0/examples/main.js +59 -0
- package/strophejs-1.4.0/examples/prebind.html +39 -0
- package/strophejs-1.4.0/examples/prebind.js +103 -0
- package/strophejs-1.4.0/examples/restore.html +24 -0
- package/strophejs-1.4.0/examples/restore.js +71 -0
- package/strophejs-1.4.0/package-lock.json +8631 -0
- package/strophejs-1.4.0/package.json +84 -0
- package/strophejs-1.4.0/rollup.config.js +76 -0
- package/strophejs-1.4.0/src/bosh.js +916 -0
- package/strophejs-1.4.0/src/core.js +3530 -0
- package/strophejs-1.4.0/src/md5.js +204 -0
- package/strophejs-1.4.0/src/sha1.js +172 -0
- package/strophejs-1.4.0/src/shared-connection-worker.js +114 -0
- package/strophejs-1.4.0/src/shims.js +123 -0
- package/strophejs-1.4.0/src/strophe.js +14 -0
- package/strophejs-1.4.0/src/utils.js +63 -0
- package/strophejs-1.4.0/src/websocket.js +557 -0
- package/strophejs-1.4.0/src/worker-websocket.js +150 -0
- package/strophejs-1.4.0/tests/index.html +21 -0
- package/strophejs-1.4.0/tests/main.js +49 -0
- package/strophejs-1.4.0/tests/tests.js +929 -0
- package/strophejs-1.6.1/.eslintrc.json +264 -0
- package/strophejs-1.6.1/.gitattributes +1 -0
- package/strophejs-1.6.1/.nvmrc +1 -0
- package/strophejs-1.6.1/CHANGELOG.md +288 -0
- package/strophejs-1.6.1/LICENSE.txt +19 -0
- package/strophejs-1.6.1/Makefile +92 -0
- package/strophejs-1.6.1/README.md +46 -0
- package/strophejs-1.6.1/RELEASE_CHECKLIST.md +18 -0
- package/strophejs-1.6.1/babel.config.json +10 -0
- package/strophejs-1.6.1/contrib/discojs/README.txt +42 -0
- package/strophejs-1.6.1/contrib/discojs/css/disco.css +16 -0
- package/strophejs-1.6.1/contrib/discojs/index.html +47 -0
- package/strophejs-1.6.1/contrib/discojs/punjab.tac +18 -0
- package/strophejs-1.6.1/contrib/discojs/scripts/basic.js +102 -0
- package/strophejs-1.6.1/contrib/discojs/scripts/disco.js +60 -0
- package/strophejs-1.6.1/docs.css +797 -0
- package/strophejs-1.6.1/examples/amd.html +21 -0
- package/strophejs-1.6.1/examples/attach/README +37 -0
- package/strophejs-1.6.1/examples/attach/__init__.py +0 -0
- package/strophejs-1.6.1/examples/attach/attacher/__init__.py +0 -0
- package/strophejs-1.6.1/examples/attach/attacher/views.py +18 -0
- package/strophejs-1.6.1/examples/attach/boshclient.py +158 -0
- package/strophejs-1.6.1/examples/attach/manage.py +11 -0
- package/strophejs-1.6.1/examples/attach/settings.py +85 -0
- package/strophejs-1.6.1/examples/attach/templates/attacher/index.html +88 -0
- package/strophejs-1.6.1/examples/attach/urls.py +19 -0
- package/strophejs-1.6.1/examples/basic.html +23 -0
- package/strophejs-1.6.1/examples/basic.js +73 -0
- package/strophejs-1.6.1/examples/echobot.html +25 -0
- package/strophejs-1.6.1/examples/echobot.js +79 -0
- package/strophejs-1.6.1/examples/main.js +59 -0
- package/strophejs-1.6.1/examples/prebind.html +39 -0
- package/strophejs-1.6.1/examples/prebind.js +103 -0
- package/strophejs-1.6.1/examples/restore.html +24 -0
- package/strophejs-1.6.1/examples/restore.js +71 -0
- package/strophejs-1.6.1/package-lock.json +18461 -0
- package/strophejs-1.6.1/package.json +87 -0
- package/strophejs-1.6.1/rollup.config.js +70 -0
- package/strophejs-1.6.1/src/bosh.js +916 -0
- package/strophejs-1.6.1/src/builder.js +239 -0
- package/strophejs-1.6.1/src/constants.js +155 -0
- package/strophejs-1.6.1/src/core.js +2377 -0
- package/strophejs-1.6.1/src/sasl-anon.js +17 -0
- package/strophejs-1.6.1/src/sasl-external.js +27 -0
- package/strophejs-1.6.1/src/sasl-oauthbearer.js +30 -0
- package/strophejs-1.6.1/src/sasl-plain.js +32 -0
- package/strophejs-1.6.1/src/sasl-sha1.js +24 -0
- package/strophejs-1.6.1/src/sasl-sha256.js +24 -0
- package/strophejs-1.6.1/src/sasl-sha384.js +24 -0
- package/strophejs-1.6.1/src/sasl-sha512.js +24 -0
- package/strophejs-1.6.1/src/sasl-xoauth2.js +27 -0
- package/strophejs-1.6.1/src/sasl.js +143 -0
- package/strophejs-1.6.1/src/scram.js +182 -0
- package/strophejs-1.6.1/src/shared-connection-worker.js +114 -0
- package/strophejs-1.6.1/src/shims.js +122 -0
- package/strophejs-1.6.1/src/strophe.js +15 -0
- package/strophejs-1.6.1/src/utils.js +626 -0
- package/strophejs-1.6.1/src/websocket.js +556 -0
- package/strophejs-1.6.1/src/worker-websocket.js +149 -0
- package/strophejs-1.6.1/tests.js +993 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This module provides uniform
|
|
3
|
+
* Shims APIs and globals that are not present in all JS environments,
|
|
4
|
+
* the most common example for Strophe being browser APIs like WebSocket
|
|
5
|
+
* and DOM that don't exist under nodejs.
|
|
6
|
+
*
|
|
7
|
+
* Usually these will be supplied in nodejs by conditionally requiring a
|
|
8
|
+
* NPM module that provides a compatible implementation.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* global global */
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* WHATWG WebSockets API
|
|
15
|
+
* https://www.w3.org/TR/websockets/
|
|
16
|
+
*
|
|
17
|
+
* Interface to use the web socket protocol
|
|
18
|
+
*
|
|
19
|
+
* Used implementations:
|
|
20
|
+
* - supported browsers: built-in in WebSocket global
|
|
21
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/WebSocket#Browser_compatibility
|
|
22
|
+
* - nodejs: use standard-compliant 'ws' module
|
|
23
|
+
* https://www.npmjs.com/package/ws
|
|
24
|
+
*/
|
|
25
|
+
function getWebSocketImplementation () {
|
|
26
|
+
let WebSocketImplementation = global.WebSocket;
|
|
27
|
+
if (typeof WebSocketImplementation === 'undefined') {
|
|
28
|
+
try {
|
|
29
|
+
WebSocketImplementation = require('ws');
|
|
30
|
+
} catch (err) {
|
|
31
|
+
throw new Error('You must install the "ws" package to use Strophe in nodejs.');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return WebSocketImplementation
|
|
35
|
+
}
|
|
36
|
+
export const WebSocket = getWebSocketImplementation()
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* DOMParser
|
|
40
|
+
* https://w3c.github.io/DOM-Parsing/#the-domparser-interface
|
|
41
|
+
*
|
|
42
|
+
* Interface to parse XML strings into Document objects
|
|
43
|
+
*
|
|
44
|
+
* Used implementations:
|
|
45
|
+
* - supported browsers: built-in in DOMParser global
|
|
46
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility
|
|
47
|
+
* - nodejs: use '@xmldom/xmldom' module
|
|
48
|
+
* https://www.npmjs.com/package/@xmldom/xmldom
|
|
49
|
+
*/
|
|
50
|
+
function getDOMParserImplementation () {
|
|
51
|
+
let DOMParserImplementation = global.DOMParser
|
|
52
|
+
if (typeof DOMParserImplementation === 'undefined') {
|
|
53
|
+
try {
|
|
54
|
+
DOMParserImplementation = require('@xmldom/xmldom').DOMParser;
|
|
55
|
+
} catch (err) {
|
|
56
|
+
throw new Error('You must install the "@xmldom/xmldom" package to use Strophe in nodejs.');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return DOMParserImplementation
|
|
60
|
+
}
|
|
61
|
+
export const DOMParser = getDOMParserImplementation()
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets IE xml doc object. Used by getDummyXMLDocument shim.
|
|
65
|
+
*
|
|
66
|
+
* Returns:
|
|
67
|
+
* A Microsoft XML DOM Object
|
|
68
|
+
* See Also:
|
|
69
|
+
* http://msdn.microsoft.com/en-us/library/ms757837%28VS.85%29.aspx
|
|
70
|
+
*/
|
|
71
|
+
function _getIEXmlDom () {
|
|
72
|
+
const docStrings = [
|
|
73
|
+
"Msxml2.DOMDocument.6.0",
|
|
74
|
+
"Msxml2.DOMDocument.5.0",
|
|
75
|
+
"Msxml2.DOMDocument.4.0",
|
|
76
|
+
"MSXML2.DOMDocument.3.0",
|
|
77
|
+
"MSXML2.DOMDocument",
|
|
78
|
+
"MSXML.DOMDocument",
|
|
79
|
+
"Microsoft.XMLDOM"
|
|
80
|
+
];
|
|
81
|
+
for (let d = 0; d < docStrings.length; d++) {
|
|
82
|
+
try {
|
|
83
|
+
// eslint-disable-next-line no-undef
|
|
84
|
+
const doc = new ActiveXObject(docStrings[d]);
|
|
85
|
+
return doc
|
|
86
|
+
} catch (e) {
|
|
87
|
+
// Try next one
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates a dummy XML DOM document to serve as an element and text node generator.
|
|
94
|
+
*
|
|
95
|
+
* Used implementations:
|
|
96
|
+
* - IE < 10: avoid using createDocument() due to a memory leak, use ie-specific
|
|
97
|
+
* workaround
|
|
98
|
+
* - other supported browsers: use document's createDocument
|
|
99
|
+
* - nodejs: use '@xmldom/xmldom'
|
|
100
|
+
*/
|
|
101
|
+
export function getDummyXMLDOMDocument () {
|
|
102
|
+
// nodejs
|
|
103
|
+
if (typeof document === 'undefined') {
|
|
104
|
+
try {
|
|
105
|
+
const DOMImplementation = require('@xmldom/xmldom').DOMImplementation;
|
|
106
|
+
return new DOMImplementation().createDocument('jabber:client', 'strophe', null);
|
|
107
|
+
} catch (err) {
|
|
108
|
+
throw new Error('You must install the "@xmldom/xmldom" package to use Strophe in nodejs.');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// IE < 10
|
|
112
|
+
if (
|
|
113
|
+
document.implementation.createDocument === undefined ||
|
|
114
|
+
document.implementation.createDocument && document.documentMode && document.documentMode < 10
|
|
115
|
+
) {
|
|
116
|
+
const doc = _getIEXmlDom();
|
|
117
|
+
doc.appendChild(doc.createElement('strophe'));
|
|
118
|
+
return doc
|
|
119
|
+
}
|
|
120
|
+
// All other supported browsers
|
|
121
|
+
return document.implementation.createDocument('jabber:client', 'strophe', null)
|
|
122
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*global global*/
|
|
2
|
+
|
|
3
|
+
import './bosh';
|
|
4
|
+
import './websocket';
|
|
5
|
+
import './worker-websocket';
|
|
6
|
+
import * as strophe from './core';
|
|
7
|
+
|
|
8
|
+
global.$build = strophe.default.$build;
|
|
9
|
+
global.$iq = strophe.default.$iq;
|
|
10
|
+
global.$msg = strophe.default.$msg;
|
|
11
|
+
global.$pres = strophe.default.$pres;
|
|
12
|
+
global.Strophe = strophe.default.Strophe;
|
|
13
|
+
|
|
14
|
+
export { Strophe, $build, $iq, $msg, $pres } from './core';
|
|
15
|
+
|