quickblox 2.17.2-beta.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 (124) hide show
  1. package/LICENSE +330 -201
  2. package/README.md +2 -2
  3. package/package.json +1 -2
  4. package/quickblox.js +19389 -21772
  5. package/quickblox.min.js +1 -1
  6. package/src/libs/strophe/strophe.common.js +6657 -0
  7. package/src/libs/strophe/strophe.esm.js +6649 -0
  8. package/src/libs/strophe/strophe.umd.js +6862 -0
  9. package/src/libs/strophe/strophe.umd.min.js +1 -0
  10. package/src/modules/chat/qbChat.js +131 -11
  11. package/src/modules/webrtc/qbWebRTCSignalingProcessor.js +2 -1
  12. package/src/modules/webrtc/qbWebRTCSignalingProvider.js +2 -1
  13. package/src/qbConfig.js +2 -2
  14. package/src/qbProxy.js +1 -1
  15. package/src/qbStrophe.js +2 -6
  16. package/strophejs-1.4.0/.eslintrc.json +264 -0
  17. package/strophejs-1.4.0/.gitattributes +1 -0
  18. package/strophejs-1.4.0/CHANGELOG.md +250 -0
  19. package/strophejs-1.4.0/LICENSE.txt +19 -0
  20. package/strophejs-1.4.0/Makefile +92 -0
  21. package/strophejs-1.4.0/README.md +45 -0
  22. package/strophejs-1.4.0/RELEASE_CHECKLIST.md +16 -0
  23. package/strophejs-1.4.0/contrib/discojs/README.txt +42 -0
  24. package/strophejs-1.4.0/contrib/discojs/css/disco.css +16 -0
  25. package/strophejs-1.4.0/contrib/discojs/index.html +47 -0
  26. package/strophejs-1.4.0/contrib/discojs/punjab.tac +18 -0
  27. package/strophejs-1.4.0/contrib/discojs/scripts/basic.js +102 -0
  28. package/strophejs-1.4.0/contrib/discojs/scripts/disco.js +60 -0
  29. package/strophejs-1.4.0/docs.css +797 -0
  30. package/strophejs-1.4.0/examples/amd.html +21 -0
  31. package/strophejs-1.4.0/examples/attach/README +37 -0
  32. package/strophejs-1.4.0/examples/attach/__init__.py +0 -0
  33. package/strophejs-1.4.0/examples/attach/attacher/__init__.py +0 -0
  34. package/strophejs-1.4.0/examples/attach/attacher/views.py +18 -0
  35. package/strophejs-1.4.0/examples/attach/boshclient.py +158 -0
  36. package/strophejs-1.4.0/examples/attach/manage.py +11 -0
  37. package/strophejs-1.4.0/examples/attach/settings.py +85 -0
  38. package/strophejs-1.4.0/examples/attach/templates/attacher/index.html +88 -0
  39. package/strophejs-1.4.0/examples/attach/urls.py +19 -0
  40. package/strophejs-1.4.0/examples/basic.html +23 -0
  41. package/strophejs-1.4.0/examples/basic.js +73 -0
  42. package/strophejs-1.4.0/examples/echobot.html +25 -0
  43. package/strophejs-1.4.0/examples/echobot.js +79 -0
  44. package/strophejs-1.4.0/examples/main.js +59 -0
  45. package/strophejs-1.4.0/examples/prebind.html +39 -0
  46. package/strophejs-1.4.0/examples/prebind.js +103 -0
  47. package/strophejs-1.4.0/examples/restore.html +24 -0
  48. package/strophejs-1.4.0/examples/restore.js +71 -0
  49. package/strophejs-1.4.0/package-lock.json +8631 -0
  50. package/strophejs-1.4.0/package.json +84 -0
  51. package/strophejs-1.4.0/rollup.config.js +76 -0
  52. package/strophejs-1.4.0/src/bosh.js +916 -0
  53. package/strophejs-1.4.0/src/core.js +3530 -0
  54. package/strophejs-1.4.0/src/md5.js +204 -0
  55. package/strophejs-1.4.0/src/sha1.js +172 -0
  56. package/strophejs-1.4.0/src/shared-connection-worker.js +114 -0
  57. package/strophejs-1.4.0/src/shims.js +123 -0
  58. package/strophejs-1.4.0/src/strophe.js +14 -0
  59. package/strophejs-1.4.0/src/utils.js +63 -0
  60. package/strophejs-1.4.0/src/websocket.js +557 -0
  61. package/strophejs-1.4.0/src/worker-websocket.js +150 -0
  62. package/strophejs-1.4.0/tests/index.html +21 -0
  63. package/strophejs-1.4.0/tests/main.js +49 -0
  64. package/strophejs-1.4.0/tests/tests.js +929 -0
  65. package/strophejs-1.6.1/.eslintrc.json +264 -0
  66. package/strophejs-1.6.1/.gitattributes +1 -0
  67. package/strophejs-1.6.1/.nvmrc +1 -0
  68. package/strophejs-1.6.1/CHANGELOG.md +288 -0
  69. package/strophejs-1.6.1/LICENSE.txt +19 -0
  70. package/strophejs-1.6.1/Makefile +92 -0
  71. package/strophejs-1.6.1/README.md +46 -0
  72. package/strophejs-1.6.1/RELEASE_CHECKLIST.md +18 -0
  73. package/strophejs-1.6.1/babel.config.json +10 -0
  74. package/strophejs-1.6.1/contrib/discojs/README.txt +42 -0
  75. package/strophejs-1.6.1/contrib/discojs/css/disco.css +16 -0
  76. package/strophejs-1.6.1/contrib/discojs/index.html +47 -0
  77. package/strophejs-1.6.1/contrib/discojs/punjab.tac +18 -0
  78. package/strophejs-1.6.1/contrib/discojs/scripts/basic.js +102 -0
  79. package/strophejs-1.6.1/contrib/discojs/scripts/disco.js +60 -0
  80. package/strophejs-1.6.1/docs.css +797 -0
  81. package/strophejs-1.6.1/examples/amd.html +21 -0
  82. package/strophejs-1.6.1/examples/attach/README +37 -0
  83. package/strophejs-1.6.1/examples/attach/__init__.py +0 -0
  84. package/strophejs-1.6.1/examples/attach/attacher/__init__.py +0 -0
  85. package/strophejs-1.6.1/examples/attach/attacher/views.py +18 -0
  86. package/strophejs-1.6.1/examples/attach/boshclient.py +158 -0
  87. package/strophejs-1.6.1/examples/attach/manage.py +11 -0
  88. package/strophejs-1.6.1/examples/attach/settings.py +85 -0
  89. package/strophejs-1.6.1/examples/attach/templates/attacher/index.html +88 -0
  90. package/strophejs-1.6.1/examples/attach/urls.py +19 -0
  91. package/strophejs-1.6.1/examples/basic.html +23 -0
  92. package/strophejs-1.6.1/examples/basic.js +73 -0
  93. package/strophejs-1.6.1/examples/echobot.html +25 -0
  94. package/strophejs-1.6.1/examples/echobot.js +79 -0
  95. package/strophejs-1.6.1/examples/main.js +59 -0
  96. package/strophejs-1.6.1/examples/prebind.html +39 -0
  97. package/strophejs-1.6.1/examples/prebind.js +103 -0
  98. package/strophejs-1.6.1/examples/restore.html +24 -0
  99. package/strophejs-1.6.1/examples/restore.js +71 -0
  100. package/strophejs-1.6.1/package-lock.json +18461 -0
  101. package/strophejs-1.6.1/package.json +87 -0
  102. package/strophejs-1.6.1/rollup.config.js +70 -0
  103. package/strophejs-1.6.1/src/bosh.js +916 -0
  104. package/strophejs-1.6.1/src/builder.js +239 -0
  105. package/strophejs-1.6.1/src/constants.js +155 -0
  106. package/strophejs-1.6.1/src/core.js +2377 -0
  107. package/strophejs-1.6.1/src/sasl-anon.js +17 -0
  108. package/strophejs-1.6.1/src/sasl-external.js +27 -0
  109. package/strophejs-1.6.1/src/sasl-oauthbearer.js +30 -0
  110. package/strophejs-1.6.1/src/sasl-plain.js +32 -0
  111. package/strophejs-1.6.1/src/sasl-sha1.js +24 -0
  112. package/strophejs-1.6.1/src/sasl-sha256.js +24 -0
  113. package/strophejs-1.6.1/src/sasl-sha384.js +24 -0
  114. package/strophejs-1.6.1/src/sasl-sha512.js +24 -0
  115. package/strophejs-1.6.1/src/sasl-xoauth2.js +27 -0
  116. package/strophejs-1.6.1/src/sasl.js +143 -0
  117. package/strophejs-1.6.1/src/scram.js +182 -0
  118. package/strophejs-1.6.1/src/shared-connection-worker.js +114 -0
  119. package/strophejs-1.6.1/src/shims.js +122 -0
  120. package/strophejs-1.6.1/src/strophe.js +15 -0
  121. package/strophejs-1.6.1/src/utils.js +626 -0
  122. package/strophejs-1.6.1/src/websocket.js +556 -0
  123. package/strophejs-1.6.1/src/worker-websocket.js +149 -0
  124. package/strophejs-1.6.1/tests.js +993 -0
@@ -0,0 +1,264 @@
1
+ {
2
+ "parser": "babel-eslint",
3
+ "parserOptions": {
4
+ "ecmaVersion": 2017,
5
+ "sourceType": "module",
6
+ "allowImportExportEverywhere": true
7
+ },
8
+ "env": {
9
+ "browser": true,
10
+ "es6": true
11
+ },
12
+ "extends": ["eslint:recommended"],
13
+ "globals": {
14
+ "Uint8Array": true,
15
+ "Promise": true,
16
+ "define": true,
17
+ "require": true,
18
+ "sinon": true,
19
+ "window": true
20
+ },
21
+ "rules": {
22
+ "accessor-pairs": "error",
23
+ "array-bracket-spacing": "off",
24
+ "array-callback-return": "error",
25
+ "arrow-body-style": "off",
26
+ "arrow-parens": "off",
27
+ "arrow-spacing": "error",
28
+ "block-scoped-var": "off",
29
+ "block-spacing": "off",
30
+ "brace-style": "off",
31
+ "callback-return": "off",
32
+ "camelcase": "off",
33
+ "capitalized-comments": "off",
34
+ "class-methods-use-this": "error",
35
+ "comma-dangle": "off",
36
+ "comma-spacing": "off",
37
+ "comma-style": "off",
38
+ "complexity": "off",
39
+ "computed-property-spacing": [
40
+ "error",
41
+ "never"
42
+ ],
43
+ "consistent-return": "off",
44
+ "consistent-this": "off",
45
+ "curly": "off",
46
+ "default-case": "off",
47
+ "dot-location": [
48
+ "error",
49
+ "property"
50
+ ],
51
+ "dot-notation": [
52
+ "off",
53
+ {
54
+ "allowKeywords": true
55
+ }
56
+ ],
57
+ "eol-last": "error",
58
+ "eqeqeq": "off",
59
+ "func-call-spacing": "off",
60
+ "no-spaced-func": "off",
61
+ "no-redeclare": "off",
62
+ "func-name-matching": "error",
63
+ "func-names": "off",
64
+ "func-style": "off",
65
+ "generator-star-spacing": "error",
66
+ "global-require": "off",
67
+ "guard-for-in": "error",
68
+ "handle-callback-err": "error",
69
+ "id-blacklist": "error",
70
+ "id-length": "off",
71
+ "id-match": "error",
72
+ "indent": "off",
73
+ "init-declarations": "off",
74
+ "jsx-quotes": "error",
75
+ "key-spacing": "off",
76
+ "keyword-spacing": "off",
77
+ "line-comment-position": "off",
78
+ "linebreak-style": [
79
+ "error",
80
+ "unix"
81
+ ],
82
+ "lines-around-comment": "off",
83
+ "lines-around-directive": "off",
84
+ "max-depth": "off",
85
+ "max-len": "off",
86
+ "max-lines": "off",
87
+ "max-nested-callbacks": "off",
88
+ "max-params": "off",
89
+ "max-statements": "off",
90
+ "max-statements-per-line": "off",
91
+ "multiline-ternary": "off",
92
+ "new-parens": "error",
93
+ "newline-after-var": "off",
94
+ "newline-before-return": "off",
95
+ "newline-per-chained-call": "off",
96
+ "no-alert": "off",
97
+ "no-array-constructor": "error",
98
+ "no-await-in-loop": "off",
99
+ "no-bitwise": "off",
100
+ "no-caller": "error",
101
+ "no-console": "off",
102
+ "no-catch-shadow": "off",
103
+ "no-cond-assign": [
104
+ "off",
105
+ "except-parens"
106
+ ],
107
+ "no-confusing-arrow": "off",
108
+ "no-continue": "off",
109
+ "no-div-regex": "error",
110
+ "no-duplicate-imports": "error",
111
+ "no-else-return": "off",
112
+ "no-empty-function": "off",
113
+ "no-eq-null": "error",
114
+ "no-eval": "error",
115
+ "no-extend-native": "off",
116
+ "no-extra-bind": "off",
117
+ "no-extra-label": "error",
118
+ "no-extra-parens": "off",
119
+ "no-floating-decimal": "error",
120
+ "no-implicit-globals": "off",
121
+ "no-implied-eval": "error",
122
+ "no-inline-comments": "off",
123
+ "no-inner-declarations": [
124
+ "error",
125
+ "functions"
126
+ ],
127
+ "no-invalid-this": "off",
128
+ "no-iterator": "error",
129
+ "no-label-var": "error",
130
+ "no-labels": "error",
131
+ "no-lone-blocks": "error",
132
+ "no-lonely-if": "off",
133
+ "no-loop-func": "error",
134
+ "no-magic-numbers": "off",
135
+ "no-mixed-operators": "off",
136
+ "no-mixed-requires": "error",
137
+ "no-multi-assign": "off",
138
+ "no-multi-spaces": "off",
139
+ "no-multi-str": "error",
140
+ "no-multiple-empty-lines": "error",
141
+ "no-native-reassign": "error",
142
+ "no-negated-condition": "off",
143
+ "no-negated-in-lhs": "error",
144
+ "no-nested-ternary": "off",
145
+ "no-new": "off",
146
+ "no-new-func": "error",
147
+ "no-new-object": "error",
148
+ "no-new-require": "error",
149
+ "no-new-wrappers": "error",
150
+ "no-octal-escape": "error",
151
+ "no-param-reassign": "off",
152
+ "no-path-concat": "error",
153
+ "no-plusplus": "off",
154
+ "no-process-env": "off",
155
+ "no-process-exit": "error",
156
+ "no-proto": "error",
157
+ "no-prototype-builtins": "error",
158
+ "no-restricted-globals": "error",
159
+ "no-restricted-imports": "error",
160
+ "no-restricted-modules": "error",
161
+ "no-restricted-properties": "error",
162
+ "no-restricted-syntax": "error",
163
+ "no-return-assign": "error",
164
+ "no-return-await": "error",
165
+ "no-script-url": "error",
166
+ "no-self-compare": "error",
167
+ "no-sequences": "error",
168
+ "no-shadow": "off",
169
+ "no-shadow-restricted-names": "error",
170
+ "no-sync": "error",
171
+ "no-tabs": "error",
172
+ "no-template-curly-in-string": "error",
173
+ "no-ternary": "off",
174
+ "no-throw-literal": "error",
175
+ "no-trailing-spaces": "off",
176
+ "no-undef-init": "error",
177
+ "no-undefined": "off",
178
+ "no-underscore-dangle": "off",
179
+ "no-unmodified-loop-condition": "error",
180
+ "no-unneeded-ternary": "off",
181
+ "no-unused-vars": "error",
182
+ "no-unused-expressions": "off",
183
+ "no-use-before-define": "off",
184
+ "no-useless-call": "error",
185
+ "no-useless-catch": "off",
186
+ "no-useless-computed-key": "error",
187
+ "no-useless-concat": "off",
188
+ "no-useless-constructor": "error",
189
+ "no-useless-escape": "off",
190
+ "no-useless-rename": "error",
191
+ "no-useless-return": "off",
192
+ "no-var": "off",
193
+ "no-void": "error",
194
+ "no-warning-comments": "off",
195
+ "no-whitespace-before-property": "error",
196
+ "no-with": "error",
197
+ "object-curly-newline": "off",
198
+ "object-curly-spacing": "off",
199
+ "object-property-newline": [
200
+ "off",
201
+ {
202
+ "allowMultiplePropertiesPerLine": true
203
+ }
204
+ ],
205
+ "object-shorthand": "off",
206
+ "one-var": "off",
207
+ "one-var-declaration-per-line": "off",
208
+ "operator-assignment": "off",
209
+ "operator-linebreak": "off",
210
+ "padded-blocks": "off",
211
+ "prefer-arrow-callback": "off",
212
+ "prefer-const": "error",
213
+ "prefer-destructuring": [
214
+ "error",
215
+ {
216
+ "array": false,
217
+ "object": false
218
+ }
219
+ ],
220
+ "prefer-numeric-literals": "error",
221
+ "prefer-promise-reject-errors": "off",
222
+ "prefer-reflect": "off",
223
+ "prefer-rest-params": "off",
224
+ "prefer-spread": "off",
225
+ "prefer-template": "off",
226
+ "quote-props": "off",
227
+ "quotes": "off",
228
+ "radix": [
229
+ "error",
230
+ "always"
231
+ ],
232
+ "require-atomic-updates": "off",
233
+ "require-await": "error",
234
+ "require-jsdoc": "off",
235
+ "rest-spread-spacing": "error",
236
+ "semi": "off",
237
+ "semi-spacing": "off",
238
+ "sort-imports": "off",
239
+ "sort-keys": "off",
240
+ "sort-vars": "off",
241
+ "space-before-blocks": "off",
242
+ "space-before-function-paren": "off",
243
+ "space-in-parens": "off",
244
+ "space-infix-ops": "off",
245
+ "space-unary-ops": "off",
246
+ "spaced-comment": "off",
247
+ "strict": "off",
248
+ "symbol-description": "error",
249
+ "template-curly-spacing": "off",
250
+ "unicode-bom": [
251
+ "error",
252
+ "never"
253
+ ],
254
+ "valid-jsdoc": "off",
255
+ "vars-on-top": "off",
256
+ "wrap-iife": [
257
+ "error",
258
+ "any"
259
+ ],
260
+ "wrap-regex": "error",
261
+ "yield-star-spacing": "error",
262
+ "yoda": "off"
263
+ }
264
+ }
@@ -0,0 +1 @@
1
+ *.min.js binary
@@ -0,0 +1,250 @@
1
+ # Strophe.js Change Log
2
+
3
+ ## Version 1.4.0 - (2020-09-10)
4
+
5
+ * #347: Bugfix. Reconnection fails when SessionResultIQ arrives too late
6
+ * #354: Strophe.js sends an authzid during PLAIN when not acting on behalf of another entity
7
+ * #359: Bugfix: WebSocket connection failed: Data frame received after close
8
+ * Add support for running a websocket connection inside a shared worker
9
+
10
+ ## Version 1.3.6 - (2020-06-15)
11
+
12
+ - #250 Bugfix: OAuth's SASL priority being higher causes problems
13
+ - #352 Bugfix: Referencing undefined property
14
+
15
+ ## Version 1.3.5 - (2020-04-29)
16
+
17
+ * Remove support for obselete SASL DIGEST-MD5 auth
18
+ * #329 Varous compatibility fixes to make Strophe.js work in NodeJS
19
+ * #344 Properly set Strophe.VERSION
20
+
21
+ ## Version 1.3.4 - (2019-08-08)
22
+
23
+ * Replace webpack with rollup
24
+ * `TypeError: this._changeConnectStatus is not a function`
25
+ * Bugfix. Remove handlers on closed socket
26
+ * Add new Strophe.Connection option `explicitResourceBinding`.
27
+ If is set to true the XMPP client needs to explicitly
28
+ call `Strophe.Connection.prototype.bind` once the XMPP
29
+ server has advertised the "urn:ietf:params:xml:ns:xmpp-bind" feature.
30
+
31
+ ## Version 1.3.3 - (2019-05-13)
32
+
33
+ * The dist files are no longer included in the repo, but generated by NPM/Yarn
34
+ * Moved some log statements from INFO to DEBUG level
35
+ * Don't break when a falsy value is passed to `getResourceFromJid`
36
+
37
+ ## Version 1.3.2 - (2019-03-21)
38
+
39
+ * #320 Fix error on SCRAM-SHA-1 client nonce generation
40
+
41
+ ## Version 1.3.1 - (2018-11-15)
42
+
43
+ * #311 Expose `Strophe`, `$build`, `$msg` and `$iq` as globals
44
+
45
+ ## Version 1.3.0 - (2018-10-21)
46
+
47
+ * Use ES2015 modules
48
+ * Drop support for Internet Explorer < 11
49
+
50
+ ## Version 1.2.16 - (2018-09-16)
51
+ * #299 'no-auth-mech' error. Server did not offer a supported authentication mechanism
52
+ * #306 Fix websocket close handler exception and reporting
53
+
54
+ ## Version 1.2.15 - (2018-05-21)
55
+ * #259 XML element should be sent to xmlOutput
56
+ * #266 Support Browserify/CommonJS. `require('strophe.js/src/wrapper')`
57
+ * #296 Remove error handler from old websocket before closing
58
+ * #271 SASL X-OAUTH2 authentication mechanism implemented
59
+ * #288 Strophe now logs fatal errors by default.
60
+ * Run tests with headless Chromium instead of Phantomjs
61
+
62
+ ## Version 1.2.14 - 2017-06-15
63
+ * #231 SASL OAuth Bearer authentication should not require a JID node, when a user identifer
64
+ can be retreived from the bearer token.
65
+ * #250 Show XHR error message
66
+ * #254 Set connection status to CONNFAIL after max retries
67
+ * #255 Set CONNFAIL error status when connection fails on Safari 10
68
+
69
+ ## Version 1.2.13 - 2017-02-25
70
+
71
+ * Use almond to create the build. This means that the build itself is an AMD
72
+ module and can be loaded via `require`.
73
+ * Remove Grunt as a build tool.
74
+
75
+ ## Version 1.2.12 - 2017-01-15
76
+
77
+ * Reduce the priority of the SASL-EXTERNAL auth mechanism. OpenFire 4.1.1
78
+ advertises support for SASL-EXTERNAL and the vast majority of Strophe.js
79
+ installs are not set up to support SASL-EXTERNAl, causing them to fail
80
+ logging users in.
81
+
82
+ ## Version 1.2.11 - 2016-12-13
83
+ * 189 Strophe never reaches DISCONNECTED status after .connect(..) and
84
+ .disconnect(..) calls while offline.
85
+ * Add `sendPresence` method, similar to `sendIQ`, i.e. for cases where you expect a
86
+ responding presence (e.g. when leaving a MUC room).
87
+
88
+ ## Version 1.2.10 - 2016-11-30
89
+ * #172 and #215: Strophe shouldn't require `from` attribute in iq response
90
+ * #216 Get inactivity attribute from session creation response
91
+ * Enable session restoration for anonymous logins
92
+
93
+ ## Version 1.2.9 - 2016-10-24
94
+ * Allow SASL mechanisms to be supported to be passed in as option to `Strophe.Connection` constructor.
95
+ * Add new matching option to `Strophe.Handler`, namely `ignoreNamespaceFragment`.
96
+ * The `matchBare` matching option for `Strophe.Handler` has been renamed to
97
+ `matchBareFromJid`. The old name will still work in this release but is
98
+ deprecated and will be removed in a future release.
99
+ * #114 Add an error handler for HTTP calls
100
+ * #213 "XHR open failed." in BOSH in IE9
101
+ * #214 Add function to move Strophe.Builder pointer back to the root node
102
+ * #172, #215 Don't compare `to` and `to` values of sent and received IQ stanzas
103
+ to determine correctness (we rely on UUIDs for that).
104
+
105
+ ## Version 1.2.8 - 2016-09-16
106
+ * #200 Fix for webpack
107
+ * #203 Allow custom Content-Type header for requests
108
+ * #206 XML stanza attributes: there is no 'quot' escape inside 'serialize' method
109
+ * The files in `./src` are now also included in the NPM distribution.
110
+ * Add support for SASL-EXTERNAL
111
+
112
+ ## Version 1.2.7 - 2016-06-17
113
+ * #193 Move phantomjs dependencies to devDependencies
114
+
115
+ ## Version 1.2.6 - 2016-06-06
116
+ * #178 Added new value (CONNTIMEOUT) to Strophe.Status
117
+ * #180 bosh: check sessionStorage support before using it
118
+ * #182 Adding SASL OAuth Bearer authentication
119
+ * #190 Fix .c() to accept both text and numbers as text for the child element
120
+ * #192 User requirejs instead of require for node compat
121
+
122
+ ## Version 1.2.5 - 2016-02-09
123
+ * Add a new Strophe.Connection option to add cookies
124
+ * Add new Strophe.Connection option "withCredentials"
125
+
126
+ ## Version 1.2.4 - 2016-01-28
127
+ * #147 Support for UTF-16 encoded usernames (e.g. Chinese)
128
+ * #162 allow empty expectedFrom according to W3C DOM 3 Specification
129
+ * #171 Improve invalid BOSH URL handling
130
+
131
+ ## Version 1.2.3 - 2015-09-01
132
+ * Bugfix. Check if JID is null when restoring a session.
133
+ * #127 IE-Fix: error on setting null value with setAttributes
134
+ * #138 New stub method nextValidRid
135
+ * #144 Change ID generator to generate UUIDs
136
+
137
+ ## Version 1.2.2 - 2015-06-20
138
+ * #109 Explicitly define AMD modules to prevent errors with AlmondJS and AngularJS.
139
+ * #111 Fixed IE9 compatibility.
140
+ * #113 Permit connecting with an alternative authcid.
141
+ * #116 tree.attrs() now removes Elements when they are set to undefined
142
+ * #119 Provide the 'keepalive' option to keep a BOSH session alive across page loads.
143
+ * #121 Ensure that the node names of HTML elements copied into XHTML are lower case.
144
+ * #124 Strophe's Builder will swallow elements if given a blank string as a 'text' parameter.
145
+
146
+ ## Version 1.2.1 - 2015-02-22
147
+ * Rerelease of 1.2.0 but with a semver tag and proper formatting of bower.json
148
+ for usage with Bower.io.
149
+
150
+ ## Version 1.2.0 - 2015-02-21
151
+ * Add bower package manager support.
152
+ * Add commandline testing support via qunit-phantomjs-runner
153
+ * Add integrated testing via TravisCI.
154
+ * Fix Websocket connections now use the current XMPP-over-WebSockets RFC
155
+ * #25 Item-not-found-error caused by long term request.
156
+ * #29 Add support for the Asynchronous Module Definition (AMD) and require.js
157
+ * #30 Base64 encoding problem in some older browsers.
158
+ * #45 Move xhlr plugin to strophejs-plugins repo.
159
+ * #60 Fixed deletion of handlers in websocket connections
160
+ * #62 Add `xmlunescape` method.
161
+ * #67 Use correct Content-Type in BOSH
162
+ * #70 `_onDisconnectTimeout` never tiggers because maxRetries is undefined.
163
+ * #71 switched to case sensitive handling of XML elements
164
+ * #73 `getElementsByTagName` problem with namespaced elements.
165
+ * #76 respect "Invalid SID" message
166
+ * #79 connect.pause work correctly again
167
+ * #90 The queue data was not reset in .reset() method.
168
+ * #104 Websocket connections with MongooseIM work now
169
+
170
+ ## Version 1.1.3 - 2014-01-20
171
+ * Fix SCRAM-SHA1 auth now works for multiple connections at the same time
172
+ * Fix Connecting to a different server with the same connection after disconnect
173
+ * Add Gruntfile so StropheJS can now also be built using grunt
174
+ * Fix change in sha1.js that broke the caps plugin
175
+ * Fix all warnings from jshint.
176
+
177
+ ## Version 1.1.2 - 2014-01-04
178
+ * Add option for synchronous BOSH connections
179
+ * moved bower.json to other repository
180
+ * Remove unused code in sha1 and md5 modules
181
+
182
+ ## Version 1.1.1 - 2013-12-16
183
+ * Fix BOSH attach is working again
184
+
185
+ ## Version 1.1.0 - 2013-12-11
186
+ * Add Support for XMPP-over-WebSocket
187
+ * Authentication mechanisms are now modular and can be toggled
188
+ * Transport protocols are now modular and will be chosen based on the
189
+ connection URL. Currently supported protocols are BOSH and WebSocket
190
+ * Add Strings to some disconnects that indicate the reason
191
+ * Add option to strip <body> tags before passing to xmlInput/xmlOutput
192
+ * Fix Connection status staying at CONNFAIL or CONNECTING in certain
193
+ error scenarios
194
+ * Add package.json for use with npm
195
+ * Add bower.json for use with bower
196
+ * Fix handlers not being removed after disconnect
197
+ * Fix legacy non-sasl authentication
198
+ * Add better tests for BOSH bind
199
+ * Fix use of deprecated functions in tests
200
+ * Remove some dead code
201
+ * Remove deprecated documentation
202
+ * Fix Memory leak in IE9
203
+ * Add An options object can be passed to a Connection constructor now
204
+ * Add "Route" Parameter for BOSH Connections
205
+ * Add Maximum number of connection attempts before disconnecting
206
+ * Add conflict condition for AUTHFAIL
207
+ * Add XHTML message support
208
+ * Fix parsing chat messages in IE
209
+ * Add SCRAM-SHA-1 SASL mechanism
210
+ * Fix escaping of messages
211
+
212
+ ## Version 1.0.2 - 2011-06-19
213
+
214
+ * Fix security bug where DIGEST-MD5 client nonce was not properly
215
+ randomized.
216
+ * Fix double escaping in copyElement.
217
+ * Fix IE errors related to importNode.
218
+ * Add ability to pass text into Builder.c().
219
+ * Improve performance by skipping debugging callbacks when not
220
+ overridden.
221
+ * Wrap handler runs in try/catch so they don't affect or remove later
222
+ handlers.
223
+ * Add ' and " to escaped characters and other escaping fixes.
224
+ * Fix _throttledRequestHandler to use proper window size.
225
+ * Fix timed handler management.
226
+ * Fix flXHR plugin to better deal with errors.
227
+ * Fix bind() to be ECMAScript 5 compatible.
228
+ * Use bosh.metajack.im in examples so they work out of the box.
229
+ * Add simple XHR tests.
230
+ * Update basic example to HTML5.
231
+ * Move community plugins to their own repository.
232
+ * Fix bug causing infinite retries.
233
+ * Fix 5xx error handling.
234
+ * Store stream:features for later use by plugins.
235
+ * Fix to prevent passing stanzas during disconnect.
236
+ * Fix handling of disconnect responses.
237
+ * Fix getBareJidFromJid to return null on error.
238
+ * Fix equality testing in matchers so that string literals and string
239
+ objects both match.
240
+ * Fix bare matching on missing from attributes.
241
+ * Remove use of reserved word self.
242
+ * Fix various documentation errors.
243
+
244
+ ## Version 1.0.1 - 2010-01-27
245
+
246
+ * Fix handling of window, hold, and wait attributes. Bug #75.
247
+
248
+ ## Version 1.0 - 2010-01-01
249
+
250
+ * First release.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2006-2009 Collecta, Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,92 @@
1
+ CHROMIUM ?= ./node_modules/.bin/run-headless-chromium
2
+ DOC_DIR = doc
3
+ DOC_TEMP = doc-temp
4
+ HTTPSERVE ?= ./node_modules/.bin/http-server
5
+ HTTPSERVE_PORT ?= 8080
6
+ ESLINT ?= ./node_modules/.bin/eslint
7
+ NDPROJ_DIR = ndproj
8
+ SED ?= sed
9
+ SHELL ?= /usr/env/bin/bash
10
+ SRC_DIR = src
11
+ STROPHE = dist/strophe.umd.js
12
+ NATURALDOCS ?= $(shell which naturaldocs)
13
+
14
+ all: doc $(STROPHE)
15
+
16
+ .PHONY: help
17
+ help:
18
+ @echo "Please use \`make <target>' where <target> is one of the following:"
19
+ @echo ""
20
+ @echo " all Update docs + build strophe"
21
+ @echo " doc Update docs"
22
+ @echo " dist Build strophe"
23
+ @echo " check Build and run the tests"
24
+ @echo " eslint Check code quality"
25
+ @echo " release Prepare a new release of strophe. E.g. \`make release VERSION=1.2.14\`"
26
+ @echo " serve Serve this directory via a webserver on port 8000."
27
+ @echo " node_modules Install all dependencies"
28
+ @echo ""
29
+ @echo "If you are a Mac user:\n 1. Install \`gnu-sed\` (brew install gnu-sed) \n 2. Set \`SED\` to \`gsed\` in all commands. E.g. \`make release SED=gsed VERSION=1.2.14\`"
30
+
31
+ node_modules: package.json
32
+ npm install
33
+
34
+ .PHONY: doc
35
+ doc:
36
+ ifndef NATURALDOCS
37
+ $(error "Naturaldocs not found: we won't be building the documentation")
38
+ endif
39
+ @@echo "Building Strophe documentation..."
40
+ @@if [ ! -d $(NDPROJ_DIR) ]; then mkdir $(NDPROJ_DIR); fi
41
+ @@cp docs.css $(NDPROJ_DIR);
42
+ @@if [ ! -d $(DOC_DIR) ]; then mkdir $(DOC_DIR); fi
43
+ @@if [ ! -d $(DOC_TEMP) ]; then mkdir $(DOC_TEMP); fi
44
+ @@cp $(STROPHE) $(DOC_TEMP)
45
+ @@${NATURALDOCS} -r -ro -q -i $(DOC_TEMP) -o html $(DOC_DIR) -p $(NDPROJ_DIR) -s docs
46
+ @@rm -r $(DOC_TEMP)
47
+ @@echo "Documentation built."
48
+ @@echo
49
+
50
+ .PHONY: release
51
+ release:
52
+ $(SED) -i 's/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/' package.json
53
+ $(SED) -i 's/VERSION:\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/VERSION:\ \"$(VERSION)\"/' src/core.js
54
+ $(SED) -i "s/Unreleased/`date +%Y-%m-%d`/" CHANGELOG.md
55
+ make dist
56
+ make doc
57
+
58
+ .PHONY: watchjs
59
+ watchjs: node_modules
60
+ ./node_modules/.bin/npx webpack --mode=development --watch
61
+
62
+ .PHONY: dist
63
+ dist: $(STROPHE)
64
+
65
+ $(STROPHE): src rollup.config.js node_modules Makefile
66
+ npm run build
67
+
68
+ .PHONY: eslint
69
+ eslint: node_modules
70
+ $(ESLINT) src/
71
+
72
+ .PHONY: check
73
+ check:: node_modules eslint
74
+ LOG_CR_VERBOSITY=INFO $(CHROMIUM) --no-sandbox http://localhost:$(HTTPSERVE_PORT)/tests/
75
+
76
+ .PHONY: serve
77
+ serve: node_modules
78
+ $(HTTPSERVE) -p $(HTTPSERVE_PORT)
79
+
80
+ .PHONY: serve_bg
81
+ serve_bg: node_modules
82
+ $(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1 -s &
83
+
84
+ .PHONY: clean
85
+ clean:
86
+ @@rm -rf node_modules
87
+ @@rm -f $(STROPHE)
88
+ @@rm -f $(STROPHE_MIN)
89
+ @@rm -f $(PLUGIN_FILES_MIN)
90
+ @@rm -rf $(NDPROJ_DIR) $(DOC_DIR) $(DOC_TEMP)
91
+ @@echo "Done."
92
+ @@echo
@@ -0,0 +1,45 @@
1
+ # Strophe.js
2
+
3
+ [![Build Status](https://travis-ci.org/strophe/strophejs.png?branch=master)](https://travis-ci.org/strophe/strophejs)
4
+
5
+ Strophe.js is a JavaScript library for speaking XMPP via BOSH
6
+ ([XEP 124](http://xmpp.org/extensions/xep-0124.html)
7
+ and [XEP 206](http://xmpp.org/extensions/xep-0206.html)) and WebSockets
8
+ ([RFC 7395](http://tools.ietf.org/html/rfc7395)).
9
+
10
+ Its primary purpose is to enable web-based, real-time XMPP applications that
11
+ run in any browser.
12
+
13
+ The book [Professional XMPP Programming with JavaScript and jQuery](http://professionalxmpp.com)
14
+ covers Strophe in detail in the context of web applications.
15
+
16
+ ## Quick Links
17
+
18
+ * [Homepage](http://strophe.im/strophejs)
19
+ * [Documentation](http://strophe.im/strophejs/doc/1.4.0/files/strophe-js.html)
20
+ * [Mailing list](http://groups.google.com/group/strophe)
21
+ * [Community Plugins](http://github.com/strophe/strophejs-plugins)
22
+
23
+ ## Browser support
24
+
25
+ Versions <= 1.2.16 have been tested on Firefox, Firefox for Android, IE, Safari,
26
+ Mobile Safari, Chrome, Chrome for Android, Opera and the mobile Opera browser.
27
+
28
+ Since version 1.3.0, support for IE < 11 has been dropped.
29
+
30
+ ## Running tests
31
+
32
+ You'll need to have [GNU Make](https://www.gnu.org/software/make/) available.
33
+ Then, simply run `make check` to run the tests.
34
+
35
+ ## License
36
+
37
+ It is licensed under the [MIT license](https://github.com/strophe/strophejs/raw/master/LICENSE.txt),
38
+ except for the files sha1.js, base64.js and md5.js, which are licensed as public domain and BSD (see these files for details).
39
+
40
+ ## Author & History
41
+
42
+ Strophe.js was originally created by Jack Moffitt. It was originally developed
43
+ for Chesspark, an online chess community based on XMPP technology. It has been
44
+ cared for and improved over the years and is currently maintained by many
45
+ people in the community.