Permalink
Browse files

Re-merge split out dependencies, update to ES2015

  • Loading branch information...
legastero committed Nov 6, 2018
1 parent 17985fa commit 4632d96be838f25ee9b0de389c004d0e52070fb2
Showing with 6,668 additions and 1,122 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .npmignore
  3. +37 −13 package.json
  4. +369 −400 src/client.js
  5. +13 −8 src/index.js
  6. +4 −6 src/plugins/attention.js
  7. +8 −8 src/plugins/avatar.js
  8. +3 −6 src/plugins/bind.js
  9. +4 −4 src/plugins/blocking.js
  10. +4 −5 src/plugins/bob.js
  11. +3 −5 src/plugins/bookmarks.js
  12. +3 −3 src/plugins/bosh.js
  13. +2 −6 src/plugins/carbons.js
  14. +2 −5 src/plugins/chatstates.js
  15. +2 −5 src/plugins/command.js
  16. +2 −2 src/plugins/correction.js
  17. +2 −2 src/plugins/csi.js
  18. +2 −2 src/plugins/dataforms.js
  19. +2 −2 src/plugins/delayed.js
  20. +2 −2 src/plugins/disco.js
  21. +2 −2 src/plugins/escaping.js
  22. +2 −2 src/plugins/extdisco.js
  23. +2 −2 src/plugins/features.js
  24. +2 −2 src/plugins/forwarding.js
  25. +2 −2 src/plugins/geoloc.js
  26. +2 −2 src/plugins/hashes.js
  27. +4 −7 src/plugins/hostmeta.js
  28. +2 −2 src/plugins/idle.js
  29. +95 −49 src/plugins/index.js
  30. +2 −2 src/plugins/invisible.js
  31. +2 −2 src/plugins/jidprep.js
  32. +2 −2 src/plugins/jingle.js
  33. +2 −2 src/plugins/json.js
  34. +2 −2 src/plugins/keepalive.js
  35. +2 −2 src/plugins/logging.js
  36. +2 −2 src/plugins/mam.js
  37. +2 −2 src/plugins/markers.js
  38. +2 −2 src/plugins/mood.js
  39. +2 −2 src/plugins/muc.js
  40. +2 −2 src/plugins/nick.js
  41. +3 −3 src/plugins/oldwebsocket.js
  42. +2 −2 src/plugins/oob.js
  43. +2 −2 src/plugins/ping.js
  44. +2 −2 src/plugins/private.js
  45. +2 −2 src/plugins/psa.js
  46. +2 −2 src/plugins/pubsub.js
  47. +2 −2 src/plugins/push.js
  48. +2 −2 src/plugins/reach.js
  49. +2 −2 src/plugins/receipts.js
  50. +2 −2 src/plugins/references.js
  51. +2 −2 src/plugins/register.js
  52. +2 −2 src/plugins/roster.js
  53. +2 −2 src/plugins/rtt.js
  54. +2 −2 src/plugins/sasl.js
  55. +2 −2 src/plugins/session.js
  56. +2 −2 src/plugins/shim.js
  57. +2 −2 src/plugins/smacks.js
  58. +2 −2 src/plugins/time.js
  59. +2 −2 src/plugins/tune.js
  60. +2 −2 src/plugins/vcard.js
  61. +2 −2 src/plugins/version.js
  62. +3 −3 src/plugins/websocket.js
  63. +143 −0 src/protocol/index.js
  64. +342 −0 src/protocol/namespaces.js
  65. +131 −0 src/protocol/shortcuts.js
  66. +36 −0 src/protocol/stanzas/addresses.js
  67. +55 −0 src/protocol/stanzas/avatar.js
  68. +21 −0 src/protocol/stanzas/bind.js
  69. +68 −0 src/protocol/stanzas/blocking.js
  70. +24 −0 src/protocol/stanzas/bob.js
  71. +33 −0 src/protocol/stanzas/bookmarks.js
  72. +69 −0 src/protocol/stanzas/bosh.js
  73. +51 −0 src/protocol/stanzas/carbons.js
  74. +91 −0 src/protocol/stanzas/command.js
  75. +30 −0 src/protocol/stanzas/csi.js
  76. +297 −0 src/protocol/stanzas/dataforms.js
  77. +21 −0 src/protocol/stanzas/delayed.js
  78. +81 −0 src/protocol/stanzas/disco.js
  79. +95 −0 src/protocol/stanzas/error.js
  80. +48 −0 src/protocol/stanzas/extdisco.js
  81. +89 −0 src/protocol/stanzas/file.js
  82. +68 −0 src/protocol/stanzas/file3.js
  83. +35 −0 src/protocol/stanzas/forwarded.js
  84. +31 −0 src/protocol/stanzas/framing.js
  85. +41 −0 src/protocol/stanzas/geoloc.js
  86. +15 −0 src/protocol/stanzas/hash.js
  87. +22 −0 src/protocol/stanzas/hats.js
  88. +126 −0 src/protocol/stanzas/ibb.js
  89. +86 −0 src/protocol/stanzas/iceUdp.js
  90. +62 −0 src/protocol/stanzas/iq.js
  91. +25 −0 src/protocol/stanzas/jidprep.js
  92. +179 −0 src/protocol/stanzas/jingle.js
  93. +33 −0 src/protocol/stanzas/json.js
  94. +42 −0 src/protocol/stanzas/logging.js
  95. +118 −0 src/protocol/stanzas/mam.js
  96. +13 −0 src/protocol/stanzas/markers.js
  97. +59 −0 src/protocol/stanzas/message.js
  98. +105 −0 src/protocol/stanzas/mood.js
  99. +276 −0 src/protocol/stanzas/muc.js
  100. +23 −0 src/protocol/stanzas/nick.js
  101. +29 −0 src/protocol/stanzas/oob.js
  102. +13 −0 src/protocol/stanzas/ping.js
  103. +89 −0 src/protocol/stanzas/presence.js
  104. +13 −0 src/protocol/stanzas/private.js
  105. +25 −0 src/protocol/stanzas/psa.js
  106. +215 −0 src/protocol/stanzas/pubsub.js
  107. +49 −0 src/protocol/stanzas/pubsubError.js
  108. +135 −0 src/protocol/stanzas/pubsubEvents.js
  109. +113 −0 src/protocol/stanzas/pubsubOwner.js
  110. +42 −0 src/protocol/stanzas/push.js
  111. +71 −0 src/protocol/stanzas/reach.js
  112. +26 −0 src/protocol/stanzas/references.js
  113. +47 −0 src/protocol/stanzas/register.js
  114. +51 −0 src/protocol/stanzas/roster.js
  115. +36 −0 src/protocol/stanzas/rsm.js
  116. +319 −0 src/protocol/stanzas/rtp.js
  117. +105 −0 src/protocol/stanzas/rtt.js
  118. +126 −0 src/protocol/stanzas/sasl.js
  119. +19 −0 src/protocol/stanzas/session.js
  120. +49 −0 src/protocol/stanzas/shim.js
  121. +90 −0 src/protocol/stanzas/sm.js
  122. +20 −0 src/protocol/stanzas/stream.js
  123. +84 −0 src/protocol/stanzas/streamError.js
  124. +28 −0 src/protocol/stanzas/streamFeatures.js
  125. +18 −0 src/protocol/stanzas/time.js
  126. +26 −0 src/protocol/stanzas/tune.js
  127. +110 −0 src/protocol/stanzas/vcard.js
  128. +18 −0 src/protocol/stanzas/version.js
  129. +11 −0 src/protocol/stanzas/visibility.js
  130. +83 −0 src/protocol/types.js
  131. +11 −0 src/sasl/anonymous.js
  132. +112 −0 src/sasl/digest-md5.js
  133. +11 −0 src/sasl/external.js
  134. +44 −0 src/sasl/index.js
  135. +18 −0 src/sasl/plain.js
  136. +173 −0 src/sasl/scram-sha-1.js
  137. +16 −0 src/sasl/x-oauth2.js
  138. +65 −68 src/sm.js
  139. +170 −202 src/transports/bosh.js
  140. +77 −89 src/transports/old-websocket.js
  141. +115 −135 src/transports/websocket.js
  142. +25 −0 test/auth/digest-md5.js
  143. +29 −0 test/auth/scram-sha-1.js
  144. +1 −1 test/connection.js
  145. +1 −1 test/hostmeta.js
  146. +1 −1 test/index.js
  147. +1 −2 test/stanza-dataforms.js
  148. +6 −1 webpack.config.js
@@ -3,5 +3,6 @@ node_modules
*.swp
*.gz
build
lib
package-lock.json
@@ -0,0 +1,2 @@
!lib
@@ -3,6 +3,14 @@
"description": "Modern XMPP in the browser, with a JSON API",
"version": "9.3.0",
"author": "Lance Stout <lancestout@gmail.com>",
"babel": {
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"browser": {
"request": "xhr",
"faye-websocket": false
@@ -13,34 +21,37 @@
"Steven Lloyd Watkin <lloyd@evilprofessor.co.uk>"
],
"dependencies": {
"alt-sasl-digest-md5": "^1.0.0",
"@babel/runtime": "^7.1.2",
"async": "^2.5.0",
"create-hash": "^1.2.0",
"create-hmac": "^1.1.7",
"faye-websocket": "^0.11.0",
"iana-hashes": "^1.0.2",
"jingle": "^3.0.0",
"jxt": "^3.1.0",
"jxt-xmpp": "^3.3.0",
"jxt-xmpp-types": "^3.0.0",
"lodash.assign": "^3.0.0",
"lodash.filter": "^3.1.0",
"lodash.foreach": "^3.0.2",
"lodash.isarray": "^3.0.1",
"lodash.uniq": "^3.1.0",
"randombytes": "^2.0.6",
"request": "^2.53.0",
"sasl-anonymous": "^0.1.0",
"sasl-external": "^0.1.0",
"sasl-plain": "^0.1.0",
"sasl-scram-sha-1": "^1.1.0",
"sasl-x-oauth2": "^0.1.0",
"saslmechanisms": "^0.1.1",
"uuid": "^3.0.1",
"wildemitter": "^1.0.1",
"xhr": "^2.0.1",
"xmpp-jid": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/node": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"babel-loader": "^8.0.4",
"eslint": "^5.8.0",
"husky": "^1.1.3",
"rimraf": "^2.6.2",
"rollup": "^0.67.0",
"string-replace-loader": "^2.1.1",
"tap-spec": "^5.0.0",
"tape": "^4.8.0",
@@ -56,12 +67,24 @@
"es6": true
},
"rules": {
"indent": ["error", 4],
"no-console": 0
"indent": [
"error",
4
],
"prefer-const": "error",
"no-console": 0,
"semi": [
"error",
"always"
]
},
"parserOptions": {
"sourceType": "module"
}
},
"eslintIgnore": [
"build/*"
"build/*",
"lib/*"
],
"homepage": "https://stanza.io",
"husky": {
@@ -86,8 +109,9 @@
},
"scripts": {
"build": "webpack --mode production",
"compile": "rimraf lib && babel --optional runtime -sd lib/ src/",
"lint": "eslint .",
"test": "node test/index.js | tap-spec",
"test": "npm run compile && node test/index.js | tap-spec",
"validate": "npm ls"
}
}
Oops, something went wrong.

0 comments on commit 4632d96

Please sign in to comment.