korveniq 1.0.1 → 1.0.2

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 (519) hide show
  1. package/bin/index.js +1 -1
  2. package/lib/build-profile.json +5 -0
  3. package/lib/chat.js +3 -1
  4. package/lib/endpoints.js +8 -5
  5. package/lib/select-menu.js +154 -0
  6. package/lib/tools.js +13 -0
  7. package/lib/utils.js +12 -0
  8. package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
  9. package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
  10. package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
  11. package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
  12. package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
  13. package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
  14. package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
  15. package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
  16. package/node_modules/@socket.io/component-emitter/package.json +28 -0
  17. package/node_modules/ansi-regex/index.d.ts +37 -0
  18. package/node_modules/ansi-regex/index.js +10 -0
  19. package/node_modules/ansi-regex/license +9 -0
  20. package/node_modules/ansi-regex/package.json +55 -0
  21. package/node_modules/ansi-regex/readme.md +78 -0
  22. package/node_modules/ansi-styles/index.d.ts +345 -0
  23. package/node_modules/ansi-styles/index.js +163 -0
  24. package/node_modules/ansi-styles/license +9 -0
  25. package/node_modules/ansi-styles/package.json +56 -0
  26. package/node_modules/ansi-styles/readme.md +152 -0
  27. package/node_modules/base64-js/LICENSE +21 -0
  28. package/node_modules/base64-js/README.md +34 -0
  29. package/node_modules/base64-js/base64js.min.js +1 -0
  30. package/node_modules/base64-js/index.d.ts +3 -0
  31. package/node_modules/base64-js/index.js +150 -0
  32. package/node_modules/base64-js/package.json +47 -0
  33. package/node_modules/bl/.travis.yml +17 -0
  34. package/node_modules/bl/BufferList.js +396 -0
  35. package/node_modules/bl/LICENSE.md +13 -0
  36. package/node_modules/bl/README.md +247 -0
  37. package/node_modules/bl/bl.js +84 -0
  38. package/node_modules/bl/package.json +37 -0
  39. package/node_modules/bl/test/convert.js +21 -0
  40. package/node_modules/bl/test/indexOf.js +492 -0
  41. package/node_modules/bl/test/isBufferList.js +32 -0
  42. package/node_modules/bl/test/test.js +869 -0
  43. package/node_modules/buffer/AUTHORS.md +70 -0
  44. package/node_modules/buffer/LICENSE +21 -0
  45. package/node_modules/buffer/README.md +410 -0
  46. package/node_modules/buffer/index.d.ts +186 -0
  47. package/node_modules/buffer/index.js +1817 -0
  48. package/node_modules/buffer/package.json +96 -0
  49. package/node_modules/chalk/index.d.ts +415 -0
  50. package/node_modules/chalk/license +9 -0
  51. package/node_modules/chalk/package.json +68 -0
  52. package/node_modules/chalk/readme.md +341 -0
  53. package/node_modules/chalk/source/index.js +229 -0
  54. package/node_modules/chalk/source/templates.js +134 -0
  55. package/node_modules/chalk/source/util.js +39 -0
  56. package/node_modules/cli-cursor/index.d.ts +45 -0
  57. package/node_modules/cli-cursor/index.js +35 -0
  58. package/node_modules/cli-cursor/license +9 -0
  59. package/node_modules/cli-cursor/package.json +46 -0
  60. package/node_modules/cli-cursor/readme.md +55 -0
  61. package/node_modules/cli-spinners/index.d.ts +128 -0
  62. package/node_modules/cli-spinners/index.js +15 -0
  63. package/node_modules/cli-spinners/license +9 -0
  64. package/node_modules/cli-spinners/package.json +50 -0
  65. package/node_modules/cli-spinners/readme.md +54 -0
  66. package/node_modules/cli-spinners/spinners.json +1622 -0
  67. package/node_modules/clone/.npmignore +4 -0
  68. package/node_modules/clone/LICENSE +18 -0
  69. package/node_modules/clone/README.md +126 -0
  70. package/node_modules/clone/clone.iml +10 -0
  71. package/node_modules/clone/clone.js +166 -0
  72. package/node_modules/clone/package.json +51 -0
  73. package/node_modules/color-convert/CHANGELOG.md +54 -0
  74. package/node_modules/color-convert/LICENSE +21 -0
  75. package/node_modules/color-convert/README.md +68 -0
  76. package/node_modules/color-convert/conversions.js +839 -0
  77. package/node_modules/color-convert/index.js +81 -0
  78. package/node_modules/color-convert/package.json +48 -0
  79. package/node_modules/color-convert/route.js +97 -0
  80. package/node_modules/color-name/LICENSE +8 -0
  81. package/node_modules/color-name/README.md +11 -0
  82. package/node_modules/color-name/index.js +152 -0
  83. package/node_modules/color-name/package.json +28 -0
  84. package/node_modules/commander/LICENSE +22 -0
  85. package/node_modules/commander/Readme.md +1157 -0
  86. package/node_modules/commander/esm.mjs +16 -0
  87. package/node_modules/commander/index.js +24 -0
  88. package/node_modules/commander/lib/argument.js +149 -0
  89. package/node_modules/commander/lib/command.js +2509 -0
  90. package/node_modules/commander/lib/error.js +39 -0
  91. package/node_modules/commander/lib/help.js +520 -0
  92. package/node_modules/commander/lib/option.js +330 -0
  93. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  94. package/node_modules/commander/package-support.json +16 -0
  95. package/node_modules/commander/package.json +84 -0
  96. package/node_modules/commander/typings/esm.d.mts +3 -0
  97. package/node_modules/commander/typings/index.d.ts +969 -0
  98. package/node_modules/debug/LICENSE +20 -0
  99. package/node_modules/debug/README.md +481 -0
  100. package/node_modules/debug/package.json +60 -0
  101. package/node_modules/debug/src/browser.js +271 -0
  102. package/node_modules/debug/src/common.js +274 -0
  103. package/node_modules/debug/src/index.js +10 -0
  104. package/node_modules/debug/src/node.js +263 -0
  105. package/node_modules/defaults/LICENSE +22 -0
  106. package/node_modules/defaults/README.md +39 -0
  107. package/node_modules/defaults/index.js +13 -0
  108. package/node_modules/defaults/package.json +33 -0
  109. package/node_modules/defaults/test.js +34 -0
  110. package/node_modules/define-lazy-prop/index.d.ts +33 -0
  111. package/node_modules/define-lazy-prop/index.js +19 -0
  112. package/node_modules/define-lazy-prop/license +9 -0
  113. package/node_modules/define-lazy-prop/package.json +48 -0
  114. package/node_modules/define-lazy-prop/readme.md +64 -0
  115. package/node_modules/engine.io-client/LICENSE +22 -0
  116. package/node_modules/engine.io-client/README.md +331 -0
  117. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
  118. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
  119. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
  120. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
  121. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
  122. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
  123. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
  124. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
  125. package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
  126. package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
  127. package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +20 -0
  128. package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
  129. package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
  130. package/node_modules/engine.io-client/build/cjs/index.js +29 -0
  131. package/node_modules/engine.io-client/build/cjs/package.json +10 -0
  132. package/node_modules/engine.io-client/build/cjs/socket.d.ts +439 -0
  133. package/node_modules/engine.io-client/build/cjs/socket.js +698 -0
  134. package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
  135. package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
  136. package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
  137. package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
  138. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
  139. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
  140. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
  141. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
  142. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
  143. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +54 -0
  144. package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
  145. package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
  146. package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
  147. package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
  148. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
  149. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +78 -0
  150. package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
  151. package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
  152. package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
  153. package/node_modules/engine.io-client/build/cjs/util.js +65 -0
  154. package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
  155. package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
  156. package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
  157. package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
  158. package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
  159. package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
  160. package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
  161. package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
  162. package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
  163. package/node_modules/engine.io-client/build/esm/globals.js +22 -0
  164. package/node_modules/engine.io-client/build/esm/globals.node.d.ts +20 -0
  165. package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
  166. package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
  167. package/node_modules/engine.io-client/build/esm/index.js +14 -0
  168. package/node_modules/engine.io-client/build/esm/package.json +10 -0
  169. package/node_modules/engine.io-client/build/esm/socket.d.ts +439 -0
  170. package/node_modules/engine.io-client/build/esm/socket.js +662 -0
  171. package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
  172. package/node_modules/engine.io-client/build/esm/transport.js +142 -0
  173. package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
  174. package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
  175. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
  176. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
  177. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
  178. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
  179. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
  180. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
  181. package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
  182. package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
  183. package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
  184. package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
  185. package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
  186. package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
  187. package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
  188. package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
  189. package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
  190. package/node_modules/engine.io-client/build/esm/util.js +59 -0
  191. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
  192. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  193. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
  194. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
  195. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
  196. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
  197. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
  198. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
  199. package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
  200. package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
  201. package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +20 -0
  202. package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
  203. package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
  204. package/node_modules/engine.io-client/build/esm-debug/index.js +14 -0
  205. package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
  206. package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +439 -0
  207. package/node_modules/engine.io-client/build/esm-debug/socket.js +691 -0
  208. package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
  209. package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
  210. package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
  211. package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
  212. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
  213. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
  214. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
  215. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
  216. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
  217. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
  218. package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
  219. package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
  220. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
  221. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
  222. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
  223. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
  224. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
  225. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
  226. package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
  227. package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
  228. package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
  229. package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
  230. package/node_modules/engine.io-client/dist/engine.io.js +2989 -0
  231. package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
  232. package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
  233. package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
  234. package/node_modules/engine.io-client/node_modules/debug/LICENSE +20 -0
  235. package/node_modules/engine.io-client/node_modules/debug/README.md +481 -0
  236. package/node_modules/engine.io-client/node_modules/debug/package.json +64 -0
  237. package/node_modules/engine.io-client/node_modules/debug/src/browser.js +272 -0
  238. package/node_modules/engine.io-client/node_modules/debug/src/common.js +292 -0
  239. package/node_modules/engine.io-client/node_modules/debug/src/index.js +10 -0
  240. package/node_modules/engine.io-client/node_modules/debug/src/node.js +263 -0
  241. package/node_modules/engine.io-client/package.json +95 -0
  242. package/node_modules/engine.io-parser/LICENSE +22 -0
  243. package/node_modules/engine.io-parser/Readme.md +158 -0
  244. package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
  245. package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
  246. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
  247. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
  248. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
  249. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
  250. package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
  251. package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
  252. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
  253. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
  254. package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
  255. package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
  256. package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
  257. package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
  258. package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
  259. package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
  260. package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
  261. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
  262. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
  263. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
  264. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
  265. package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
  266. package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
  267. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
  268. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
  269. package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
  270. package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
  271. package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
  272. package/node_modules/engine.io-parser/build/esm/index.js +156 -0
  273. package/node_modules/engine.io-parser/build/esm/package.json +8 -0
  274. package/node_modules/engine.io-parser/package.json +46 -0
  275. package/node_modules/has-flag/index.d.ts +39 -0
  276. package/node_modules/has-flag/index.js +8 -0
  277. package/node_modules/has-flag/license +9 -0
  278. package/node_modules/has-flag/package.json +46 -0
  279. package/node_modules/has-flag/readme.md +89 -0
  280. package/node_modules/ieee754/LICENSE +11 -0
  281. package/node_modules/ieee754/README.md +51 -0
  282. package/node_modules/ieee754/index.d.ts +10 -0
  283. package/node_modules/ieee754/index.js +85 -0
  284. package/node_modules/ieee754/package.json +52 -0
  285. package/node_modules/inherits/LICENSE +16 -0
  286. package/node_modules/inherits/README.md +42 -0
  287. package/node_modules/inherits/inherits.js +9 -0
  288. package/node_modules/inherits/inherits_browser.js +27 -0
  289. package/node_modules/inherits/package.json +29 -0
  290. package/node_modules/is-docker/cli.js +5 -0
  291. package/node_modules/is-docker/index.d.ts +15 -0
  292. package/node_modules/is-docker/index.js +29 -0
  293. package/node_modules/is-docker/license +9 -0
  294. package/node_modules/is-docker/package.json +42 -0
  295. package/node_modules/is-docker/readme.md +27 -0
  296. package/node_modules/is-interactive/index.d.ts +31 -0
  297. package/node_modules/is-interactive/index.js +9 -0
  298. package/node_modules/is-interactive/license +9 -0
  299. package/node_modules/is-interactive/package.json +38 -0
  300. package/node_modules/is-interactive/readme.md +51 -0
  301. package/node_modules/is-unicode-supported/index.d.ts +14 -0
  302. package/node_modules/is-unicode-supported/index.js +13 -0
  303. package/node_modules/is-unicode-supported/license +9 -0
  304. package/node_modules/is-unicode-supported/package.json +41 -0
  305. package/node_modules/is-unicode-supported/readme.md +35 -0
  306. package/node_modules/is-wsl/index.d.ts +15 -0
  307. package/node_modules/is-wsl/index.js +31 -0
  308. package/node_modules/is-wsl/license +9 -0
  309. package/node_modules/is-wsl/package.json +45 -0
  310. package/node_modules/is-wsl/readme.md +36 -0
  311. package/node_modules/log-symbols/browser.js +8 -0
  312. package/node_modules/log-symbols/index.d.ts +25 -0
  313. package/node_modules/log-symbols/index.js +19 -0
  314. package/node_modules/log-symbols/license +9 -0
  315. package/node_modules/log-symbols/package.json +52 -0
  316. package/node_modules/log-symbols/readme.md +51 -0
  317. package/node_modules/mimic-fn/index.d.ts +54 -0
  318. package/node_modules/mimic-fn/index.js +13 -0
  319. package/node_modules/mimic-fn/license +9 -0
  320. package/node_modules/mimic-fn/package.json +42 -0
  321. package/node_modules/mimic-fn/readme.md +69 -0
  322. package/node_modules/ms/index.js +162 -0
  323. package/node_modules/ms/license.md +21 -0
  324. package/node_modules/ms/package.json +38 -0
  325. package/node_modules/ms/readme.md +59 -0
  326. package/node_modules/onetime/index.d.ts +64 -0
  327. package/node_modules/onetime/index.js +44 -0
  328. package/node_modules/onetime/license +9 -0
  329. package/node_modules/onetime/package.json +43 -0
  330. package/node_modules/onetime/readme.md +94 -0
  331. package/node_modules/open/index.d.ts +153 -0
  332. package/node_modules/open/index.js +334 -0
  333. package/node_modules/open/license +9 -0
  334. package/node_modules/open/package.json +61 -0
  335. package/node_modules/open/readme.md +171 -0
  336. package/node_modules/open/xdg-open +1066 -0
  337. package/node_modules/ora/index.d.ts +277 -0
  338. package/node_modules/ora/index.js +407 -0
  339. package/node_modules/ora/license +9 -0
  340. package/node_modules/ora/package.json +57 -0
  341. package/node_modules/ora/readme.md +264 -0
  342. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  343. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  344. package/node_modules/readable-stream/LICENSE +47 -0
  345. package/node_modules/readable-stream/README.md +106 -0
  346. package/node_modules/readable-stream/errors-browser.js +127 -0
  347. package/node_modules/readable-stream/errors.js +116 -0
  348. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  349. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  350. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  351. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  352. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  353. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  354. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  355. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  356. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  357. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  358. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  359. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  360. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  361. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  362. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  363. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  364. package/node_modules/readable-stream/package.json +68 -0
  365. package/node_modules/readable-stream/readable-browser.js +9 -0
  366. package/node_modules/readable-stream/readable.js +16 -0
  367. package/node_modules/restore-cursor/index.d.ts +13 -0
  368. package/node_modules/restore-cursor/index.js +9 -0
  369. package/node_modules/restore-cursor/license +9 -0
  370. package/node_modules/restore-cursor/package.json +52 -0
  371. package/node_modules/restore-cursor/readme.md +26 -0
  372. package/node_modules/safe-buffer/LICENSE +21 -0
  373. package/node_modules/safe-buffer/README.md +584 -0
  374. package/node_modules/safe-buffer/index.d.ts +187 -0
  375. package/node_modules/safe-buffer/index.js +65 -0
  376. package/node_modules/safe-buffer/package.json +51 -0
  377. package/node_modules/signal-exit/LICENSE.txt +16 -0
  378. package/node_modules/signal-exit/README.md +39 -0
  379. package/node_modules/signal-exit/index.js +202 -0
  380. package/node_modules/signal-exit/package.json +38 -0
  381. package/node_modules/signal-exit/signals.js +53 -0
  382. package/node_modules/socket.io-client/LICENSE +21 -0
  383. package/node_modules/socket.io-client/README.md +29 -0
  384. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
  385. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
  386. package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
  387. package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
  388. package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
  389. package/node_modules/socket.io-client/build/cjs/index.js +76 -0
  390. package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
  391. package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
  392. package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
  393. package/node_modules/socket.io-client/build/cjs/on.js +9 -0
  394. package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
  395. package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
  396. package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
  397. package/node_modules/socket.io-client/build/cjs/url.js +69 -0
  398. package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
  399. package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
  400. package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
  401. package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
  402. package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
  403. package/node_modules/socket.io-client/build/esm/index.js +58 -0
  404. package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
  405. package/node_modules/socket.io-client/build/esm/manager.js +367 -0
  406. package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
  407. package/node_modules/socket.io-client/build/esm/on.js +6 -0
  408. package/node_modules/socket.io-client/build/esm/package.json +5 -0
  409. package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
  410. package/node_modules/socket.io-client/build/esm/socket.js +882 -0
  411. package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
  412. package/node_modules/socket.io-client/build/esm/url.js +59 -0
  413. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
  414. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  415. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
  416. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
  417. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
  418. package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
  419. package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
  420. package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
  421. package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
  422. package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
  423. package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
  424. package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
  425. package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
  426. package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
  427. package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
  428. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
  429. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
  430. package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
  431. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
  432. package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
  433. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
  434. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
  435. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
  436. package/node_modules/socket.io-client/package.json +101 -0
  437. package/node_modules/socket.io-parser/LICENSE +20 -0
  438. package/node_modules/socket.io-parser/Readme.md +81 -0
  439. package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
  440. package/node_modules/socket.io-parser/build/cjs/binary.js +90 -0
  441. package/node_modules/socket.io-parser/build/cjs/index.d.ts +101 -0
  442. package/node_modules/socket.io-parser/build/cjs/index.js +366 -0
  443. package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
  444. package/node_modules/socket.io-parser/build/cjs/is-binary.js +54 -0
  445. package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
  446. package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
  447. package/node_modules/socket.io-parser/build/esm/binary.js +86 -0
  448. package/node_modules/socket.io-parser/build/esm/index.d.ts +101 -0
  449. package/node_modules/socket.io-parser/build/esm/index.js +352 -0
  450. package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
  451. package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
  452. package/node_modules/socket.io-parser/build/esm/package.json +3 -0
  453. package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
  454. package/node_modules/socket.io-parser/build/esm-debug/binary.js +86 -0
  455. package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +101 -0
  456. package/node_modules/socket.io-parser/build/esm-debug/index.js +357 -0
  457. package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
  458. package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
  459. package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
  460. package/node_modules/socket.io-parser/node_modules/debug/LICENSE +20 -0
  461. package/node_modules/socket.io-parser/node_modules/debug/README.md +481 -0
  462. package/node_modules/socket.io-parser/node_modules/debug/package.json +64 -0
  463. package/node_modules/socket.io-parser/node_modules/debug/src/browser.js +272 -0
  464. package/node_modules/socket.io-parser/node_modules/debug/src/common.js +292 -0
  465. package/node_modules/socket.io-parser/node_modules/debug/src/index.js +10 -0
  466. package/node_modules/socket.io-parser/node_modules/debug/src/node.js +263 -0
  467. package/node_modules/socket.io-parser/package.json +44 -0
  468. package/node_modules/string_decoder/LICENSE +48 -0
  469. package/node_modules/string_decoder/README.md +47 -0
  470. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  471. package/node_modules/string_decoder/package.json +34 -0
  472. package/node_modules/strip-ansi/index.d.ts +17 -0
  473. package/node_modules/strip-ansi/index.js +4 -0
  474. package/node_modules/strip-ansi/license +9 -0
  475. package/node_modules/strip-ansi/package.json +54 -0
  476. package/node_modules/strip-ansi/readme.md +46 -0
  477. package/node_modules/supports-color/browser.js +5 -0
  478. package/node_modules/supports-color/index.js +135 -0
  479. package/node_modules/supports-color/license +9 -0
  480. package/node_modules/supports-color/package.json +53 -0
  481. package/node_modules/supports-color/readme.md +76 -0
  482. package/node_modules/util-deprecate/History.md +16 -0
  483. package/node_modules/util-deprecate/LICENSE +24 -0
  484. package/node_modules/util-deprecate/README.md +53 -0
  485. package/node_modules/util-deprecate/browser.js +67 -0
  486. package/node_modules/util-deprecate/node.js +6 -0
  487. package/node_modules/util-deprecate/package.json +27 -0
  488. package/node_modules/wcwidth/.npmignore +1 -0
  489. package/node_modules/wcwidth/LICENSE +30 -0
  490. package/node_modules/wcwidth/Readme.md +33 -0
  491. package/node_modules/wcwidth/combining.js +50 -0
  492. package/node_modules/wcwidth/docs/index.md +65 -0
  493. package/node_modules/wcwidth/index.js +99 -0
  494. package/node_modules/wcwidth/package.json +42 -0
  495. package/node_modules/wcwidth/test/index.js +64 -0
  496. package/node_modules/ws/LICENSE +20 -0
  497. package/node_modules/ws/README.md +548 -0
  498. package/node_modules/ws/browser.js +8 -0
  499. package/node_modules/ws/index.js +22 -0
  500. package/node_modules/ws/lib/buffer-util.js +131 -0
  501. package/node_modules/ws/lib/constants.js +19 -0
  502. package/node_modules/ws/lib/event-target.js +292 -0
  503. package/node_modules/ws/lib/extension.js +203 -0
  504. package/node_modules/ws/lib/limiter.js +55 -0
  505. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  506. package/node_modules/ws/lib/receiver.js +743 -0
  507. package/node_modules/ws/lib/sender.js +607 -0
  508. package/node_modules/ws/lib/stream.js +161 -0
  509. package/node_modules/ws/lib/subprotocol.js +62 -0
  510. package/node_modules/ws/lib/validation.js +152 -0
  511. package/node_modules/ws/lib/websocket-server.js +562 -0
  512. package/node_modules/ws/lib/websocket.js +1407 -0
  513. package/node_modules/ws/package.json +74 -0
  514. package/node_modules/ws/wrapper.mjs +21 -0
  515. package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
  516. package/node_modules/xmlhttprequest-ssl/README.md +67 -0
  517. package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
  518. package/node_modules/xmlhttprequest-ssl/package.json +40 -0
  519. package/package.json +8 -15
@@ -0,0 +1,33 @@
1
+ import { PACKET_TYPES } from "./commons.js";
2
+ export const encodePacket = ({ type, data }, supportsBinary, callback) => {
3
+ if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {
4
+ return callback(supportsBinary ? data : "b" + toBuffer(data, true).toString("base64"));
5
+ }
6
+ // plain string
7
+ return callback(PACKET_TYPES[type] + (data || ""));
8
+ };
9
+ const toBuffer = (data, forceBufferConversion) => {
10
+ if (Buffer.isBuffer(data) ||
11
+ (data instanceof Uint8Array && !forceBufferConversion)) {
12
+ return data;
13
+ }
14
+ else if (data instanceof ArrayBuffer) {
15
+ return Buffer.from(data);
16
+ }
17
+ else {
18
+ return Buffer.from(data.buffer, data.byteOffset, data.byteLength);
19
+ }
20
+ };
21
+ let TEXT_ENCODER;
22
+ export function encodePacketToBinary(packet, callback) {
23
+ if (packet.data instanceof ArrayBuffer || ArrayBuffer.isView(packet.data)) {
24
+ return callback(toBuffer(packet.data, false));
25
+ }
26
+ encodePacket(packet, true, (encoded) => {
27
+ if (!TEXT_ENCODER) {
28
+ // lazily created for compatibility with Node.js 10
29
+ TEXT_ENCODER = new TextEncoder();
30
+ }
31
+ callback(TEXT_ENCODER.encode(encoded));
32
+ });
33
+ }
@@ -0,0 +1,9 @@
1
+ import { encodePacket } from "./encodePacket.js";
2
+ import { decodePacket } from "./decodePacket.js";
3
+ import { Packet, PacketType, RawData, BinaryType } from "./commons.js";
4
+ declare const encodePayload: (packets: Packet[], callback: (encodedPayload: string) => void) => void;
5
+ declare const decodePayload: (encodedPayload: string, binaryType?: BinaryType) => Packet[];
6
+ export declare function createPacketEncoderStream(): any;
7
+ export declare function createPacketDecoderStream(maxPayload: number, binaryType: BinaryType): any;
8
+ export declare const protocol = 4;
9
+ export { encodePacket, encodePayload, decodePacket, decodePayload, Packet, PacketType, RawData, BinaryType, };
@@ -0,0 +1,156 @@
1
+ import { encodePacket, encodePacketToBinary } from "./encodePacket.js";
2
+ import { decodePacket } from "./decodePacket.js";
3
+ import { ERROR_PACKET, } from "./commons.js";
4
+ const SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text
5
+ const encodePayload = (packets, callback) => {
6
+ // some packets may be added to the array while encoding, so the initial length must be saved
7
+ const length = packets.length;
8
+ const encodedPackets = new Array(length);
9
+ let count = 0;
10
+ packets.forEach((packet, i) => {
11
+ // force base64 encoding for binary packets
12
+ encodePacket(packet, false, (encodedPacket) => {
13
+ encodedPackets[i] = encodedPacket;
14
+ if (++count === length) {
15
+ callback(encodedPackets.join(SEPARATOR));
16
+ }
17
+ });
18
+ });
19
+ };
20
+ const decodePayload = (encodedPayload, binaryType) => {
21
+ const encodedPackets = encodedPayload.split(SEPARATOR);
22
+ const packets = [];
23
+ for (let i = 0; i < encodedPackets.length; i++) {
24
+ const decodedPacket = decodePacket(encodedPackets[i], binaryType);
25
+ packets.push(decodedPacket);
26
+ if (decodedPacket.type === "error") {
27
+ break;
28
+ }
29
+ }
30
+ return packets;
31
+ };
32
+ export function createPacketEncoderStream() {
33
+ return new TransformStream({
34
+ transform(packet, controller) {
35
+ encodePacketToBinary(packet, (encodedPacket) => {
36
+ const payloadLength = encodedPacket.length;
37
+ let header;
38
+ // inspired by the WebSocket format: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length
39
+ if (payloadLength < 126) {
40
+ header = new Uint8Array(1);
41
+ new DataView(header.buffer).setUint8(0, payloadLength);
42
+ }
43
+ else if (payloadLength < 65536) {
44
+ header = new Uint8Array(3);
45
+ const view = new DataView(header.buffer);
46
+ view.setUint8(0, 126);
47
+ view.setUint16(1, payloadLength);
48
+ }
49
+ else {
50
+ header = new Uint8Array(9);
51
+ const view = new DataView(header.buffer);
52
+ view.setUint8(0, 127);
53
+ view.setBigUint64(1, BigInt(payloadLength));
54
+ }
55
+ // first bit indicates whether the payload is plain text (0) or binary (1)
56
+ if (packet.data && typeof packet.data !== "string") {
57
+ header[0] |= 0x80;
58
+ }
59
+ controller.enqueue(header);
60
+ controller.enqueue(encodedPacket);
61
+ });
62
+ },
63
+ });
64
+ }
65
+ let TEXT_DECODER;
66
+ function totalLength(chunks) {
67
+ return chunks.reduce((acc, chunk) => acc + chunk.length, 0);
68
+ }
69
+ function concatChunks(chunks, size) {
70
+ if (chunks[0].length === size) {
71
+ return chunks.shift();
72
+ }
73
+ const buffer = new Uint8Array(size);
74
+ let j = 0;
75
+ for (let i = 0; i < size; i++) {
76
+ buffer[i] = chunks[0][j++];
77
+ if (j === chunks[0].length) {
78
+ chunks.shift();
79
+ j = 0;
80
+ }
81
+ }
82
+ if (chunks.length && j < chunks[0].length) {
83
+ chunks[0] = chunks[0].slice(j);
84
+ }
85
+ return buffer;
86
+ }
87
+ export function createPacketDecoderStream(maxPayload, binaryType) {
88
+ if (!TEXT_DECODER) {
89
+ TEXT_DECODER = new TextDecoder();
90
+ }
91
+ const chunks = [];
92
+ let state = 0 /* State.READ_HEADER */;
93
+ let expectedLength = -1;
94
+ let isBinary = false;
95
+ return new TransformStream({
96
+ transform(chunk, controller) {
97
+ chunks.push(chunk);
98
+ while (true) {
99
+ if (state === 0 /* State.READ_HEADER */) {
100
+ if (totalLength(chunks) < 1) {
101
+ break;
102
+ }
103
+ const header = concatChunks(chunks, 1);
104
+ isBinary = (header[0] & 0x80) === 0x80;
105
+ expectedLength = header[0] & 0x7f;
106
+ if (expectedLength < 126) {
107
+ state = 3 /* State.READ_PAYLOAD */;
108
+ }
109
+ else if (expectedLength === 126) {
110
+ state = 1 /* State.READ_EXTENDED_LENGTH_16 */;
111
+ }
112
+ else {
113
+ state = 2 /* State.READ_EXTENDED_LENGTH_64 */;
114
+ }
115
+ }
116
+ else if (state === 1 /* State.READ_EXTENDED_LENGTH_16 */) {
117
+ if (totalLength(chunks) < 2) {
118
+ break;
119
+ }
120
+ const headerArray = concatChunks(chunks, 2);
121
+ expectedLength = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length).getUint16(0);
122
+ state = 3 /* State.READ_PAYLOAD */;
123
+ }
124
+ else if (state === 2 /* State.READ_EXTENDED_LENGTH_64 */) {
125
+ if (totalLength(chunks) < 8) {
126
+ break;
127
+ }
128
+ const headerArray = concatChunks(chunks, 8);
129
+ const view = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length);
130
+ const n = view.getUint32(0);
131
+ if (n > Math.pow(2, 53 - 32) - 1) {
132
+ // the maximum safe integer in JavaScript is 2^53 - 1
133
+ controller.enqueue(ERROR_PACKET);
134
+ break;
135
+ }
136
+ expectedLength = n * Math.pow(2, 32) + view.getUint32(4);
137
+ state = 3 /* State.READ_PAYLOAD */;
138
+ }
139
+ else {
140
+ if (totalLength(chunks) < expectedLength) {
141
+ break;
142
+ }
143
+ const data = concatChunks(chunks, expectedLength);
144
+ controller.enqueue(decodePacket(isBinary ? data : TEXT_DECODER.decode(data), binaryType));
145
+ state = 0 /* State.READ_HEADER */;
146
+ }
147
+ if (expectedLength === 0 || expectedLength > maxPayload) {
148
+ controller.enqueue(ERROR_PACKET);
149
+ break;
150
+ }
151
+ }
152
+ },
153
+ });
154
+ }
155
+ export const protocol = 4;
156
+ export { encodePacket, encodePayload, decodePacket, decodePayload, };
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "engine.io-parser",
3
+ "type": "module",
4
+ "browser": {
5
+ "./encodePacket.js": "./encodePacket.browser.js",
6
+ "./decodePacket.js": "./decodePacket.browser.js"
7
+ }
8
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "engine.io-parser",
3
+ "description": "Parser for the client for the realtime Engine",
4
+ "license": "MIT",
5
+ "version": "5.2.3",
6
+ "main": "./build/cjs/index.js",
7
+ "module": "./build/esm/index.js",
8
+ "exports": {
9
+ "import": "./build/esm/index.js",
10
+ "require": "./build/cjs/index.js"
11
+ },
12
+ "types": "build/esm/index.d.ts",
13
+ "devDependencies": {
14
+ "prettier": "^3.3.2"
15
+ },
16
+ "scripts": {
17
+ "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
18
+ "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
19
+ "test:node": "nyc mocha -r ts-node/register test/index.ts",
20
+ "test:browser": "zuul test/index.ts --no-coverage",
21
+ "format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'",
22
+ "format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'",
23
+ "prepack": "npm run compile"
24
+ },
25
+ "homepage": "https://github.com/socketio/socket.io/tree/main/packages/engine.io-parser#readme",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/socketio/socket.io.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/socketio/socket.io/issues"
32
+ },
33
+ "files": [
34
+ "build/"
35
+ ],
36
+ "browser": {
37
+ "./test/node": "./test/browser",
38
+ "./build/esm/encodePacket.js": "./build/esm/encodePacket.browser.js",
39
+ "./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js",
40
+ "./build/cjs/encodePacket.js": "./build/cjs/encodePacket.browser.js",
41
+ "./build/cjs/decodePacket.js": "./build/cjs/decodePacket.browser.js"
42
+ },
43
+ "engines": {
44
+ "node": ">=10.0.0"
45
+ }
46
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag.
3
+
4
+ @param flag - CLI flag to look for. The `--` prefix is optional.
5
+ @param argv - CLI arguments. Default: `process.argv`.
6
+ @returns Whether the flag exists.
7
+
8
+ @example
9
+ ```
10
+ // $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow
11
+
12
+ // foo.ts
13
+ import hasFlag = require('has-flag');
14
+
15
+ hasFlag('unicorn');
16
+ //=> true
17
+
18
+ hasFlag('--unicorn');
19
+ //=> true
20
+
21
+ hasFlag('f');
22
+ //=> true
23
+
24
+ hasFlag('-f');
25
+ //=> true
26
+
27
+ hasFlag('foo=bar');
28
+ //=> true
29
+
30
+ hasFlag('foo');
31
+ //=> false
32
+
33
+ hasFlag('rainbow');
34
+ //=> false
35
+ ```
36
+ */
37
+ declare function hasFlag(flag: string, argv?: string[]): boolean;
38
+
39
+ export = hasFlag;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ module.exports = (flag, argv = process.argv) => {
4
+ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
5
+ const position = argv.indexOf(prefix + flag);
6
+ const terminatorPosition = argv.indexOf('--');
7
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
8
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "has-flag",
3
+ "version": "4.0.0",
4
+ "description": "Check if argv has a specific flag",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/has-flag",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && tsd"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts"
21
+ ],
22
+ "keywords": [
23
+ "has",
24
+ "check",
25
+ "detect",
26
+ "contains",
27
+ "find",
28
+ "flag",
29
+ "cli",
30
+ "command-line",
31
+ "argv",
32
+ "process",
33
+ "arg",
34
+ "args",
35
+ "argument",
36
+ "arguments",
37
+ "getopt",
38
+ "minimist",
39
+ "optimist"
40
+ ],
41
+ "devDependencies": {
42
+ "ava": "^1.4.1",
43
+ "tsd": "^0.7.2",
44
+ "xo": "^0.24.0"
45
+ }
46
+ }
@@ -0,0 +1,89 @@
1
+ # has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag)
2
+
3
+ > Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag
4
+
5
+ Correctly stops looking after an `--` argument terminator.
6
+
7
+ ---
8
+
9
+ <div align="center">
10
+ <b>
11
+ <a href="https://tidelift.com/subscription/pkg/npm-has-flag?utm_source=npm-has-flag&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
12
+ </b>
13
+ <br>
14
+ <sub>
15
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
16
+ </sub>
17
+ </div>
18
+
19
+ ---
20
+
21
+
22
+ ## Install
23
+
24
+ ```
25
+ $ npm install has-flag
26
+ ```
27
+
28
+
29
+ ## Usage
30
+
31
+ ```js
32
+ // foo.js
33
+ const hasFlag = require('has-flag');
34
+
35
+ hasFlag('unicorn');
36
+ //=> true
37
+
38
+ hasFlag('--unicorn');
39
+ //=> true
40
+
41
+ hasFlag('f');
42
+ //=> true
43
+
44
+ hasFlag('-f');
45
+ //=> true
46
+
47
+ hasFlag('foo=bar');
48
+ //=> true
49
+
50
+ hasFlag('foo');
51
+ //=> false
52
+
53
+ hasFlag('rainbow');
54
+ //=> false
55
+ ```
56
+
57
+ ```
58
+ $ node foo.js -f --unicorn --foo=bar -- --rainbow
59
+ ```
60
+
61
+
62
+ ## API
63
+
64
+ ### hasFlag(flag, [argv])
65
+
66
+ Returns a boolean for whether the flag exists.
67
+
68
+ #### flag
69
+
70
+ Type: `string`
71
+
72
+ CLI flag to look for. The `--` prefix is optional.
73
+
74
+ #### argv
75
+
76
+ Type: `string[]`<br>
77
+ Default: `process.argv`
78
+
79
+ CLI arguments.
80
+
81
+
82
+ ## Security
83
+
84
+ To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
85
+
86
+
87
+ ## License
88
+
89
+ MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -0,0 +1,11 @@
1
+ Copyright 2008 Fair Oaks Labs, Inc.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,51 @@
1
+ # ieee754 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
2
+
3
+ [travis-image]: https://img.shields.io/travis/feross/ieee754/master.svg
4
+ [travis-url]: https://travis-ci.org/feross/ieee754
5
+ [npm-image]: https://img.shields.io/npm/v/ieee754.svg
6
+ [npm-url]: https://npmjs.org/package/ieee754
7
+ [downloads-image]: https://img.shields.io/npm/dm/ieee754.svg
8
+ [downloads-url]: https://npmjs.org/package/ieee754
9
+ [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
10
+ [standard-url]: https://standardjs.com
11
+
12
+ [![saucelabs][saucelabs-image]][saucelabs-url]
13
+
14
+ [saucelabs-image]: https://saucelabs.com/browser-matrix/ieee754.svg
15
+ [saucelabs-url]: https://saucelabs.com/u/ieee754
16
+
17
+ ### Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.
18
+
19
+ ## install
20
+
21
+ ```
22
+ npm install ieee754
23
+ ```
24
+
25
+ ## methods
26
+
27
+ `var ieee754 = require('ieee754')`
28
+
29
+ The `ieee754` object has the following functions:
30
+
31
+ ```
32
+ ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
33
+ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
34
+ ```
35
+
36
+ The arguments mean the following:
37
+
38
+ - buffer = the buffer
39
+ - offset = offset into the buffer
40
+ - value = value to set (only for `write`)
41
+ - isLe = is little endian?
42
+ - mLen = mantissa length
43
+ - nBytes = number of bytes
44
+
45
+ ## what is ieee754?
46
+
47
+ The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. [Read more](http://en.wikipedia.org/wiki/IEEE_floating_point).
48
+
49
+ ## license
50
+
51
+ BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.
@@ -0,0 +1,10 @@
1
+ declare namespace ieee754 {
2
+ export function read(
3
+ buffer: Uint8Array, offset: number, isLE: boolean, mLen: number,
4
+ nBytes: number): number;
5
+ export function write(
6
+ buffer: Uint8Array, value: number, offset: number, isLE: boolean,
7
+ mLen: number, nBytes: number): void;
8
+ }
9
+
10
+ export = ieee754;
@@ -0,0 +1,85 @@
1
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2
+ exports.read = function (buffer, offset, isLE, mLen, nBytes) {
3
+ var e, m
4
+ var eLen = (nBytes * 8) - mLen - 1
5
+ var eMax = (1 << eLen) - 1
6
+ var eBias = eMax >> 1
7
+ var nBits = -7
8
+ var i = isLE ? (nBytes - 1) : 0
9
+ var d = isLE ? -1 : 1
10
+ var s = buffer[offset + i]
11
+
12
+ i += d
13
+
14
+ e = s & ((1 << (-nBits)) - 1)
15
+ s >>= (-nBits)
16
+ nBits += eLen
17
+ for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
18
+
19
+ m = e & ((1 << (-nBits)) - 1)
20
+ e >>= (-nBits)
21
+ nBits += mLen
22
+ for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
23
+
24
+ if (e === 0) {
25
+ e = 1 - eBias
26
+ } else if (e === eMax) {
27
+ return m ? NaN : ((s ? -1 : 1) * Infinity)
28
+ } else {
29
+ m = m + Math.pow(2, mLen)
30
+ e = e - eBias
31
+ }
32
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
33
+ }
34
+
35
+ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
36
+ var e, m, c
37
+ var eLen = (nBytes * 8) - mLen - 1
38
+ var eMax = (1 << eLen) - 1
39
+ var eBias = eMax >> 1
40
+ var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
41
+ var i = isLE ? 0 : (nBytes - 1)
42
+ var d = isLE ? 1 : -1
43
+ var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
44
+
45
+ value = Math.abs(value)
46
+
47
+ if (isNaN(value) || value === Infinity) {
48
+ m = isNaN(value) ? 1 : 0
49
+ e = eMax
50
+ } else {
51
+ e = Math.floor(Math.log(value) / Math.LN2)
52
+ if (value * (c = Math.pow(2, -e)) < 1) {
53
+ e--
54
+ c *= 2
55
+ }
56
+ if (e + eBias >= 1) {
57
+ value += rt / c
58
+ } else {
59
+ value += rt * Math.pow(2, 1 - eBias)
60
+ }
61
+ if (value * c >= 2) {
62
+ e++
63
+ c /= 2
64
+ }
65
+
66
+ if (e + eBias >= eMax) {
67
+ m = 0
68
+ e = eMax
69
+ } else if (e + eBias >= 1) {
70
+ m = ((value * c) - 1) * Math.pow(2, mLen)
71
+ e = e + eBias
72
+ } else {
73
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
74
+ e = 0
75
+ }
76
+ }
77
+
78
+ for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
79
+
80
+ e = (e << mLen) | m
81
+ eLen += mLen
82
+ for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
83
+
84
+ buffer[offset + i - d] |= s * 128
85
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "ieee754",
3
+ "description": "Read/write IEEE754 floating point numbers from/to a Buffer or array-like object",
4
+ "version": "1.2.1",
5
+ "author": {
6
+ "name": "Feross Aboukhadijeh",
7
+ "email": "feross@feross.org",
8
+ "url": "https://feross.org"
9
+ },
10
+ "contributors": [
11
+ "Romain Beauxis <toots@rastageeks.org>"
12
+ ],
13
+ "devDependencies": {
14
+ "airtap": "^3.0.0",
15
+ "standard": "*",
16
+ "tape": "^5.0.1"
17
+ },
18
+ "keywords": [
19
+ "IEEE 754",
20
+ "buffer",
21
+ "convert",
22
+ "floating point",
23
+ "ieee754"
24
+ ],
25
+ "license": "BSD-3-Clause",
26
+ "main": "index.js",
27
+ "types": "index.d.ts",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git://github.com/feross/ieee754.git"
31
+ },
32
+ "scripts": {
33
+ "test": "standard && npm run test-node && npm run test-browser",
34
+ "test-browser": "airtap -- test/*.js",
35
+ "test-browser-local": "airtap --local -- test/*.js",
36
+ "test-node": "tape test/*.js"
37
+ },
38
+ "funding": [
39
+ {
40
+ "type": "github",
41
+ "url": "https://github.com/sponsors/feross"
42
+ },
43
+ {
44
+ "type": "patreon",
45
+ "url": "https://www.patreon.com/feross"
46
+ },
47
+ {
48
+ "type": "consulting",
49
+ "url": "https://feross.org/support"
50
+ }
51
+ ]
52
+ }