quickblox 2.17.2-logger → 2.17.4-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 +36571 -38627
  3. package/quickblox.min.js +1 -1
  4. package/src/libs/strophe/strophe.common.js +6668 -0
  5. package/src/libs/strophe/strophe.esm.js +6660 -0
  6. package/src/libs/strophe/strophe.umd.js +6873 -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 +8634 -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 +3535 -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 +561 -0
  58. package/strophejs-1.4.0/src/worker-websocket.js +152 -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,264 @@
1
+ {
2
+ "parser": "@babel/eslint-parser",
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 @@
1
+ v16.13.1
@@ -0,0 +1,288 @@
1
+ # Strophe.js Change Log
2
+
3
+ ## Version 1.6.1 - (2023-05-15)
4
+
5
+ * #602 Websocket connection times out instead of being disconnected
6
+
7
+ ## Version 1.6.0 - (2022-10-29)
8
+
9
+ * #314 Support for SCRAM-SHA-256 and SCRAM-SHA-512 authentication
10
+
11
+ ## Version 1.5.0 - (2022-04-28)
12
+
13
+ * Add an automatic fallback handler for unhandled IQ "set" and "get" stanzas
14
+ that returns an IQ error with `service-unavailable`.
15
+ * Update various 3rd party dependencies
16
+ * #390 Replace deprecated String.prototype.substr()
17
+ * #418 BOSH fix: mark first request dead when second is done
18
+
19
+ ## Version 1.4.4 - (2022-01-21)
20
+
21
+ * #388 Properly import xmldom
22
+
23
+ ## Version 1.4.3 - (2021-12-16)
24
+
25
+ * Update xmldom to version 0.7.5
26
+ * Add disconnection_timeout setting: an optional timeout in milliseconds before `_doDisconnect` is called.
27
+ * Update ws optional dependency to fix security issue https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff
28
+
29
+ ## Version 1.4.2 - (2021-04-28)
30
+
31
+ * Update optional NodeJS-specific dependency xmldom to version 0.5.0 which includes a security fix.
32
+ * #369 Add `clientChallenge` SASL mechanism method to avoid having to monkey patch `onChallenge`,
33
+ which prevents reconnection when using SCRAM-SHA1.
34
+
35
+ ## Version 1.4.1 - (2020-12-02)
36
+
37
+ * #201: NodeJS related fixes: `window` and `WebSocket` are `undefined`
38
+ * New method `Strophe.Connection.prototype.setProtocol` which can be used to
39
+ determine the protocol used after the connection has been constructed.
40
+
41
+ ## Version 1.4.0 - (2020-09-10)
42
+
43
+ * #347: Bugfix. Reconnection fails when SessionResultIQ arrives too late
44
+ * #354: Strophe.js sends an authzid during PLAIN when not acting on behalf of another entity
45
+ * #359: Bugfix: WebSocket connection failed: Data frame received after close
46
+ * Add support for running a websocket connection inside a shared worker
47
+
48
+ ## Version 1.3.6 - (2020-06-15)
49
+
50
+ - #250 Bugfix: OAuth's SASL priority being higher causes problems
51
+ - #352 Bugfix: Referencing undefined property
52
+
53
+ ## Version 1.3.5 - (2020-04-29)
54
+
55
+ * Remove support for obselete SASL DIGEST-MD5 auth
56
+ * #329 Varous compatibility fixes to make Strophe.js work in NodeJS
57
+ * #344 Properly set Strophe.VERSION
58
+
59
+ ## Version 1.3.4 - (2019-08-08)
60
+
61
+ * Replace webpack with rollup
62
+ * `TypeError: this._changeConnectStatus is not a function`
63
+ * Bugfix. Remove handlers on closed socket
64
+ * Add new Strophe.Connection option `explicitResourceBinding`.
65
+ If is set to true the XMPP client needs to explicitly
66
+ call `Strophe.Connection.prototype.bind` once the XMPP
67
+ server has advertised the "urn:ietf:params:xml:ns:xmpp-bind" feature.
68
+
69
+ ## Version 1.3.3 - (2019-05-13)
70
+
71
+ * The dist files are no longer included in the repo, but generated by NPM/Yarn
72
+ * Moved some log statements from INFO to DEBUG level
73
+ * Don't break when a falsy value is passed to `getResourceFromJid`
74
+
75
+ ## Version 1.3.2 - (2019-03-21)
76
+
77
+ * #320 Fix error on SCRAM-SHA-1 client nonce generation
78
+
79
+ ## Version 1.3.1 - (2018-11-15)
80
+
81
+ * #311 Expose `Strophe`, `$build`, `$msg` and `$iq` as globals
82
+
83
+ ## Version 1.3.0 - (2018-10-21)
84
+
85
+ * Use ES2015 modules
86
+ * Drop support for Internet Explorer < 11
87
+
88
+ ## Version 1.2.16 - (2018-09-16)
89
+ * #299 'no-auth-mech' error. Server did not offer a supported authentication mechanism
90
+ * #306 Fix websocket close handler exception and reporting
91
+
92
+ ## Version 1.2.15 - (2018-05-21)
93
+ * #259 XML element should be sent to xmlOutput
94
+ * #266 Support Browserify/CommonJS. `require('strophe.js/src/wrapper')`
95
+ * #296 Remove error handler from old websocket before closing
96
+ * #271 SASL X-OAUTH2 authentication mechanism implemented
97
+ * #288 Strophe now logs fatal errors by default.
98
+ * Run tests with headless Chromium instead of Phantomjs
99
+
100
+ ## Version 1.2.14 - 2017-06-15
101
+ * #231 SASL OAuth Bearer authentication should not require a JID node, when a user identifer
102
+ can be retreived from the bearer token.
103
+ * #250 Show XHR error message
104
+ * #254 Set connection status to CONNFAIL after max retries
105
+ * #255 Set CONNFAIL error status when connection fails on Safari 10
106
+
107
+ ## Version 1.2.13 - 2017-02-25
108
+
109
+ * Use almond to create the build. This means that the build itself is an AMD
110
+ module and can be loaded via `require`.
111
+ * Remove Grunt as a build tool.
112
+
113
+ ## Version 1.2.12 - 2017-01-15
114
+
115
+ * Reduce the priority of the SASL-EXTERNAL auth mechanism. OpenFire 4.1.1
116
+ advertises support for SASL-EXTERNAL and the vast majority of Strophe.js
117
+ installs are not set up to support SASL-EXTERNAl, causing them to fail
118
+ logging users in.
119
+
120
+ ## Version 1.2.11 - 2016-12-13
121
+ * 189 Strophe never reaches DISCONNECTED status after .connect(..) and
122
+ .disconnect(..) calls while offline.
123
+ * Add `sendPresence` method, similar to `sendIQ`, i.e. for cases where you expect a
124
+ responding presence (e.g. when leaving a MUC room).
125
+
126
+ ## Version 1.2.10 - 2016-11-30
127
+ * #172 and #215: Strophe shouldn't require `from` attribute in iq response
128
+ * #216 Get inactivity attribute from session creation response
129
+ * Enable session restoration for anonymous logins
130
+
131
+ ## Version 1.2.9 - 2016-10-24
132
+ * Allow SASL mechanisms to be supported to be passed in as option to `Strophe.Connection` constructor.
133
+ * Add new matching option to `Strophe.Handler`, namely `ignoreNamespaceFragment`.
134
+ * The `matchBare` matching option for `Strophe.Handler` has been renamed to
135
+ `matchBareFromJid`. The old name will still work in this release but is
136
+ deprecated and will be removed in a future release.
137
+ * #114 Add an error handler for HTTP calls
138
+ * #213 "XHR open failed." in BOSH in IE9
139
+ * #214 Add function to move Strophe.Builder pointer back to the root node
140
+ * #172, #215 Don't compare `to` and `to` values of sent and received IQ stanzas
141
+ to determine correctness (we rely on UUIDs for that).
142
+
143
+ ## Version 1.2.8 - 2016-09-16
144
+ * #200 Fix for webpack
145
+ * #203 Allow custom Content-Type header for requests
146
+ * #206 XML stanza attributes: there is no 'quot' escape inside 'serialize' method
147
+ * The files in `./src` are now also included in the NPM distribution.
148
+ * Add support for SASL-EXTERNAL
149
+
150
+ ## Version 1.2.7 - 2016-06-17
151
+ * #193 Move phantomjs dependencies to devDependencies
152
+
153
+ ## Version 1.2.6 - 2016-06-06
154
+ * #178 Added new value (CONNTIMEOUT) to Strophe.Status
155
+ * #180 bosh: check sessionStorage support before using it
156
+ * #182 Adding SASL OAuth Bearer authentication
157
+ * #190 Fix .c() to accept both text and numbers as text for the child element
158
+ * #192 User requirejs instead of require for node compat
159
+
160
+ ## Version 1.2.5 - 2016-02-09
161
+ * Add a new Strophe.Connection option to add cookies
162
+ * Add new Strophe.Connection option "withCredentials"
163
+
164
+ ## Version 1.2.4 - 2016-01-28
165
+ * #147 Support for UTF-16 encoded usernames (e.g. Chinese)
166
+ * #162 allow empty expectedFrom according to W3C DOM 3 Specification
167
+ * #171 Improve invalid BOSH URL handling
168
+
169
+ ## Version 1.2.3 - 2015-09-01
170
+ * Bugfix. Check if JID is null when restoring a session.
171
+ * #127 IE-Fix: error on setting null value with setAttributes
172
+ * #138 New stub method nextValidRid
173
+ * #144 Change ID generator to generate UUIDs
174
+
175
+ ## Version 1.2.2 - 2015-06-20
176
+ * #109 Explicitly define AMD modules to prevent errors with AlmondJS and AngularJS.
177
+ * #111 Fixed IE9 compatibility.
178
+ * #113 Permit connecting with an alternative authcid.
179
+ * #116 tree.attrs() now removes Elements when they are set to undefined
180
+ * #119 Provide the 'keepalive' option to keep a BOSH session alive across page loads.
181
+ * #121 Ensure that the node names of HTML elements copied into XHTML are lower case.
182
+ * #124 Strophe's Builder will swallow elements if given a blank string as a 'text' parameter.
183
+
184
+ ## Version 1.2.1 - 2015-02-22
185
+ * Rerelease of 1.2.0 but with a semver tag and proper formatting of bower.json
186
+ for usage with Bower.io.
187
+
188
+ ## Version 1.2.0 - 2015-02-21
189
+ * Add bower package manager support.
190
+ * Add commandline testing support via qunit-phantomjs-runner
191
+ * Add integrated testing via TravisCI.
192
+ * Fix Websocket connections now use the current XMPP-over-WebSockets RFC
193
+ * #25 Item-not-found-error caused by long term request.
194
+ * #29 Add support for the Asynchronous Module Definition (AMD) and require.js
195
+ * #30 Base64 encoding problem in some older browsers.
196
+ * #45 Move xhlr plugin to strophejs-plugins repo.
197
+ * #60 Fixed deletion of handlers in websocket connections
198
+ * #62 Add `xmlunescape` method.
199
+ * #67 Use correct Content-Type in BOSH
200
+ * #70 `_onDisconnectTimeout` never tiggers because maxRetries is undefined.
201
+ * #71 switched to case sensitive handling of XML elements
202
+ * #73 `getElementsByTagName` problem with namespaced elements.
203
+ * #76 respect "Invalid SID" message
204
+ * #79 connect.pause work correctly again
205
+ * #90 The queue data was not reset in .reset() method.
206
+ * #104 Websocket connections with MongooseIM work now
207
+
208
+ ## Version 1.1.3 - 2014-01-20
209
+ * Fix SCRAM-SHA1 auth now works for multiple connections at the same time
210
+ * Fix Connecting to a different server with the same connection after disconnect
211
+ * Add Gruntfile so StropheJS can now also be built using grunt
212
+ * Fix change in sha1.js that broke the caps plugin
213
+ * Fix all warnings from jshint.
214
+
215
+ ## Version 1.1.2 - 2014-01-04
216
+ * Add option for synchronous BOSH connections
217
+ * moved bower.json to other repository
218
+ * Remove unused code in sha1 and md5 modules
219
+
220
+ ## Version 1.1.1 - 2013-12-16
221
+ * Fix BOSH attach is working again
222
+
223
+ ## Version 1.1.0 - 2013-12-11
224
+ * Add Support for XMPP-over-WebSocket
225
+ * Authentication mechanisms are now modular and can be toggled
226
+ * Transport protocols are now modular and will be chosen based on the
227
+ connection URL. Currently supported protocols are BOSH and WebSocket
228
+ * Add Strings to some disconnects that indicate the reason
229
+ * Add option to strip <body> tags before passing to xmlInput/xmlOutput
230
+ * Fix Connection status staying at CONNFAIL or CONNECTING in certain
231
+ error scenarios
232
+ * Add package.json for use with npm
233
+ * Add bower.json for use with bower
234
+ * Fix handlers not being removed after disconnect
235
+ * Fix legacy non-sasl authentication
236
+ * Add better tests for BOSH bind
237
+ * Fix use of deprecated functions in tests
238
+ * Remove some dead code
239
+ * Remove deprecated documentation
240
+ * Fix Memory leak in IE9
241
+ * Add An options object can be passed to a Connection constructor now
242
+ * Add "Route" Parameter for BOSH Connections
243
+ * Add Maximum number of connection attempts before disconnecting
244
+ * Add conflict condition for AUTHFAIL
245
+ * Add XHTML message support
246
+ * Fix parsing chat messages in IE
247
+ * Add SCRAM-SHA-1 SASL mechanism
248
+ * Fix escaping of messages
249
+
250
+ ## Version 1.0.2 - 2011-06-19
251
+
252
+ * Fix security bug where DIGEST-MD5 client nonce was not properly
253
+ randomized.
254
+ * Fix double escaping in copyElement.
255
+ * Fix IE errors related to importNode.
256
+ * Add ability to pass text into Builder.c().
257
+ * Improve performance by skipping debugging callbacks when not
258
+ overridden.
259
+ * Wrap handler runs in try/catch so they don't affect or remove later
260
+ handlers.
261
+ * Add ' and " to escaped characters and other escaping fixes.
262
+ * Fix _throttledRequestHandler to use proper window size.
263
+ * Fix timed handler management.
264
+ * Fix flXHR plugin to better deal with errors.
265
+ * Fix bind() to be ECMAScript 5 compatible.
266
+ * Use bosh.metajack.im in examples so they work out of the box.
267
+ * Add simple XHR tests.
268
+ * Update basic example to HTML5.
269
+ * Move community plugins to their own repository.
270
+ * Fix bug causing infinite retries.
271
+ * Fix 5xx error handling.
272
+ * Store stream:features for later use by plugins.
273
+ * Fix to prevent passing stanzas during disconnect.
274
+ * Fix handling of disconnect responses.
275
+ * Fix getBareJidFromJid to return null on error.
276
+ * Fix equality testing in matchers so that string literals and string
277
+ objects both match.
278
+ * Fix bare matching on missing from attributes.
279
+ * Remove use of reserved word self.
280
+ * Fix various documentation errors.
281
+
282
+ ## Version 1.0.1 - 2010-01-27
283
+
284
+ * Fix handling of window, hold, and wait attributes. Bug #75.
285
+
286
+ ## Version 1.0 - 2010-01-01
287
+
288
+ * 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/run-headless-chromium/run-headless-chromium.js
2
+ DOC_DIR = doc
3
+ DOC_TEMP = doc-temp
4
+ HTTPSERVE ?= ./node_modules/http-server/bin/http-server
5
+ HTTPSERVE_PORT ?= 8080
6
+ ESLINT ?= ./node_modules/eslint/bin/eslint.js
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 dist
74
+ npm run test
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