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.
Files changed (121) hide show
  1. package/package.json +1 -2
  2. package/quickblox.js +36560 -38627
  3. package/quickblox.min.js +1 -1
  4. package/src/libs/strophe/strophe.common.js +6657 -0
  5. package/src/libs/strophe/strophe.esm.js +6649 -0
  6. package/src/libs/strophe/strophe.umd.js +6862 -0
  7. package/src/libs/strophe/strophe.umd.min.js +1 -0
  8. package/src/modules/chat/qbChat.js +9 -0
  9. package/src/modules/webrtc/qbWebRTCSignalingProcessor.js +2 -1
  10. package/src/modules/webrtc/qbWebRTCSignalingProvider.js +2 -2
  11. package/src/qbConfig.js +1 -1
  12. package/src/qbStrophe.js +2 -1
  13. package/strophejs-1.4.0/.eslintrc.json +264 -0
  14. package/strophejs-1.4.0/.gitattributes +1 -0
  15. package/strophejs-1.4.0/CHANGELOG.md +250 -0
  16. package/strophejs-1.4.0/LICENSE.txt +19 -0
  17. package/strophejs-1.4.0/Makefile +92 -0
  18. package/strophejs-1.4.0/README.md +45 -0
  19. package/strophejs-1.4.0/RELEASE_CHECKLIST.md +16 -0
  20. package/strophejs-1.4.0/contrib/discojs/README.txt +42 -0
  21. package/strophejs-1.4.0/contrib/discojs/css/disco.css +16 -0
  22. package/strophejs-1.4.0/contrib/discojs/index.html +47 -0
  23. package/strophejs-1.4.0/contrib/discojs/punjab.tac +18 -0
  24. package/strophejs-1.4.0/contrib/discojs/scripts/basic.js +102 -0
  25. package/strophejs-1.4.0/contrib/discojs/scripts/disco.js +60 -0
  26. package/strophejs-1.4.0/docs.css +797 -0
  27. package/strophejs-1.4.0/examples/amd.html +21 -0
  28. package/strophejs-1.4.0/examples/attach/README +37 -0
  29. package/strophejs-1.4.0/examples/attach/__init__.py +0 -0
  30. package/strophejs-1.4.0/examples/attach/attacher/__init__.py +0 -0
  31. package/strophejs-1.4.0/examples/attach/attacher/views.py +18 -0
  32. package/strophejs-1.4.0/examples/attach/boshclient.py +158 -0
  33. package/strophejs-1.4.0/examples/attach/manage.py +11 -0
  34. package/strophejs-1.4.0/examples/attach/settings.py +85 -0
  35. package/strophejs-1.4.0/examples/attach/templates/attacher/index.html +88 -0
  36. package/strophejs-1.4.0/examples/attach/urls.py +19 -0
  37. package/strophejs-1.4.0/examples/basic.html +23 -0
  38. package/strophejs-1.4.0/examples/basic.js +73 -0
  39. package/strophejs-1.4.0/examples/echobot.html +25 -0
  40. package/strophejs-1.4.0/examples/echobot.js +79 -0
  41. package/strophejs-1.4.0/examples/main.js +59 -0
  42. package/strophejs-1.4.0/examples/prebind.html +39 -0
  43. package/strophejs-1.4.0/examples/prebind.js +103 -0
  44. package/strophejs-1.4.0/examples/restore.html +24 -0
  45. package/strophejs-1.4.0/examples/restore.js +71 -0
  46. package/strophejs-1.4.0/package-lock.json +8631 -0
  47. package/strophejs-1.4.0/package.json +84 -0
  48. package/strophejs-1.4.0/rollup.config.js +76 -0
  49. package/strophejs-1.4.0/src/bosh.js +916 -0
  50. package/strophejs-1.4.0/src/core.js +3530 -0
  51. package/strophejs-1.4.0/src/md5.js +204 -0
  52. package/strophejs-1.4.0/src/sha1.js +172 -0
  53. package/strophejs-1.4.0/src/shared-connection-worker.js +114 -0
  54. package/strophejs-1.4.0/src/shims.js +123 -0
  55. package/strophejs-1.4.0/src/strophe.js +14 -0
  56. package/strophejs-1.4.0/src/utils.js +63 -0
  57. package/strophejs-1.4.0/src/websocket.js +557 -0
  58. package/strophejs-1.4.0/src/worker-websocket.js +150 -0
  59. package/strophejs-1.4.0/tests/index.html +21 -0
  60. package/strophejs-1.4.0/tests/main.js +49 -0
  61. package/strophejs-1.4.0/tests/tests.js +929 -0
  62. package/strophejs-1.6.1/.eslintrc.json +264 -0
  63. package/strophejs-1.6.1/.gitattributes +1 -0
  64. package/strophejs-1.6.1/.nvmrc +1 -0
  65. package/strophejs-1.6.1/CHANGELOG.md +288 -0
  66. package/strophejs-1.6.1/LICENSE.txt +19 -0
  67. package/strophejs-1.6.1/Makefile +92 -0
  68. package/strophejs-1.6.1/README.md +46 -0
  69. package/strophejs-1.6.1/RELEASE_CHECKLIST.md +18 -0
  70. package/strophejs-1.6.1/babel.config.json +10 -0
  71. package/strophejs-1.6.1/contrib/discojs/README.txt +42 -0
  72. package/strophejs-1.6.1/contrib/discojs/css/disco.css +16 -0
  73. package/strophejs-1.6.1/contrib/discojs/index.html +47 -0
  74. package/strophejs-1.6.1/contrib/discojs/punjab.tac +18 -0
  75. package/strophejs-1.6.1/contrib/discojs/scripts/basic.js +102 -0
  76. package/strophejs-1.6.1/contrib/discojs/scripts/disco.js +60 -0
  77. package/strophejs-1.6.1/docs.css +797 -0
  78. package/strophejs-1.6.1/examples/amd.html +21 -0
  79. package/strophejs-1.6.1/examples/attach/README +37 -0
  80. package/strophejs-1.6.1/examples/attach/__init__.py +0 -0
  81. package/strophejs-1.6.1/examples/attach/attacher/__init__.py +0 -0
  82. package/strophejs-1.6.1/examples/attach/attacher/views.py +18 -0
  83. package/strophejs-1.6.1/examples/attach/boshclient.py +158 -0
  84. package/strophejs-1.6.1/examples/attach/manage.py +11 -0
  85. package/strophejs-1.6.1/examples/attach/settings.py +85 -0
  86. package/strophejs-1.6.1/examples/attach/templates/attacher/index.html +88 -0
  87. package/strophejs-1.6.1/examples/attach/urls.py +19 -0
  88. package/strophejs-1.6.1/examples/basic.html +23 -0
  89. package/strophejs-1.6.1/examples/basic.js +73 -0
  90. package/strophejs-1.6.1/examples/echobot.html +25 -0
  91. package/strophejs-1.6.1/examples/echobot.js +79 -0
  92. package/strophejs-1.6.1/examples/main.js +59 -0
  93. package/strophejs-1.6.1/examples/prebind.html +39 -0
  94. package/strophejs-1.6.1/examples/prebind.js +103 -0
  95. package/strophejs-1.6.1/examples/restore.html +24 -0
  96. package/strophejs-1.6.1/examples/restore.js +71 -0
  97. package/strophejs-1.6.1/package-lock.json +18461 -0
  98. package/strophejs-1.6.1/package.json +87 -0
  99. package/strophejs-1.6.1/rollup.config.js +70 -0
  100. package/strophejs-1.6.1/src/bosh.js +916 -0
  101. package/strophejs-1.6.1/src/builder.js +239 -0
  102. package/strophejs-1.6.1/src/constants.js +155 -0
  103. package/strophejs-1.6.1/src/core.js +2377 -0
  104. package/strophejs-1.6.1/src/sasl-anon.js +17 -0
  105. package/strophejs-1.6.1/src/sasl-external.js +27 -0
  106. package/strophejs-1.6.1/src/sasl-oauthbearer.js +30 -0
  107. package/strophejs-1.6.1/src/sasl-plain.js +32 -0
  108. package/strophejs-1.6.1/src/sasl-sha1.js +24 -0
  109. package/strophejs-1.6.1/src/sasl-sha256.js +24 -0
  110. package/strophejs-1.6.1/src/sasl-sha384.js +24 -0
  111. package/strophejs-1.6.1/src/sasl-sha512.js +24 -0
  112. package/strophejs-1.6.1/src/sasl-xoauth2.js +27 -0
  113. package/strophejs-1.6.1/src/sasl.js +143 -0
  114. package/strophejs-1.6.1/src/scram.js +182 -0
  115. package/strophejs-1.6.1/src/shared-connection-worker.js +114 -0
  116. package/strophejs-1.6.1/src/shims.js +122 -0
  117. package/strophejs-1.6.1/src/strophe.js +15 -0
  118. package/strophejs-1.6.1/src/utils.js +626 -0
  119. package/strophejs-1.6.1/src/websocket.js +556 -0
  120. package/strophejs-1.6.1/src/worker-websocket.js +149 -0
  121. 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
+