vcord.js 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 (64) hide show
  1. package/package.json +1 -1
  2. package/vcord/client/extentions/WsHandler.js +1 -1
  3. package/ws/.gitattributes +0 -1
  4. package/ws/.github/FUNDING.yml +0 -2
  5. package/ws/.github/ISSUE_TEMPLATE/bug_report.yml +0 -52
  6. package/ws/.github/ISSUE_TEMPLATE/config.yml +0 -1
  7. package/ws/.github/workflows/ci.yml +0 -82
  8. package/ws/.prettierrc.yaml +0 -5
  9. package/ws/FUNDING.json +0 -7
  10. package/ws/LICENSE +0 -20
  11. package/ws/README.md +0 -548
  12. package/ws/SECURITY.md +0 -41
  13. package/ws/bench/parser.benchmark.js +0 -95
  14. package/ws/bench/sender.benchmark.js +0 -48
  15. package/ws/bench/speed.js +0 -115
  16. package/ws/browser.js +0 -8
  17. package/ws/doc/ws.md +0 -712
  18. package/ws/eslint.config.js +0 -28
  19. package/ws/examples/express-session-parse/index.js +0 -111
  20. package/ws/examples/express-session-parse/package.json +0 -11
  21. package/ws/examples/express-session-parse/public/app.js +0 -67
  22. package/ws/examples/express-session-parse/public/index.html +0 -24
  23. package/ws/examples/server-stats/index.js +0 -35
  24. package/ws/examples/server-stats/package.json +0 -9
  25. package/ws/examples/server-stats/public/index.html +0 -63
  26. package/ws/examples/ssl.js +0 -41
  27. package/ws/index.js +0 -13
  28. package/ws/lib/buffer-util.js +0 -131
  29. package/ws/lib/constants.js +0 -18
  30. package/ws/lib/event-target.js +0 -292
  31. package/ws/lib/extension.js +0 -203
  32. package/ws/lib/limiter.js +0 -55
  33. package/ws/lib/permessage-deflate.js +0 -514
  34. package/ws/lib/receiver.js +0 -706
  35. package/ws/lib/sender.js +0 -602
  36. package/ws/lib/stream.js +0 -161
  37. package/ws/lib/subprotocol.js +0 -62
  38. package/ws/lib/validation.js +0 -152
  39. package/ws/lib/websocket-server.js +0 -540
  40. package/ws/lib/websocket.js +0 -1388
  41. package/ws/package.json +0 -69
  42. package/ws/test/autobahn-server.js +0 -17
  43. package/ws/test/autobahn.js +0 -39
  44. package/ws/test/buffer-util.test.js +0 -15
  45. package/ws/test/create-websocket-stream.test.js +0 -611
  46. package/ws/test/duplex-pair.js +0 -73
  47. package/ws/test/event-target.test.js +0 -253
  48. package/ws/test/extension.test.js +0 -190
  49. package/ws/test/fixtures/ca-certificate.pem +0 -12
  50. package/ws/test/fixtures/ca-key.pem +0 -5
  51. package/ws/test/fixtures/certificate.pem +0 -12
  52. package/ws/test/fixtures/client-certificate.pem +0 -12
  53. package/ws/test/fixtures/client-key.pem +0 -5
  54. package/ws/test/fixtures/key.pem +0 -5
  55. package/ws/test/limiter.test.js +0 -41
  56. package/ws/test/permessage-deflate.test.js +0 -647
  57. package/ws/test/receiver.test.js +0 -1201
  58. package/ws/test/sender.test.js +0 -478
  59. package/ws/test/subprotocol.test.js +0 -91
  60. package/ws/test/validation.test.js +0 -52
  61. package/ws/test/websocket-server.test.js +0 -1387
  62. package/ws/test/websocket.integration.js +0 -55
  63. package/ws/test/websocket.test.js +0 -5053
  64. package/ws/wrapper.mjs +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcord.js",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "vcord/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,4 @@
1
- const WebSocket = require('./ws/ws');
1
+ const WebSocket = require('ws');
2
2
  const { GATEWAY_URL } = require('./config');
3
3
 
4
4
  class WsHandler {
package/ws/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * text=auto eol=lf
@@ -1,2 +0,0 @@
1
- github:
2
- - lpinca
@@ -1,52 +0,0 @@
1
- name: Bug report
2
- description: Create a bug report
3
- body:
4
- - type: markdown
5
- attributes:
6
- value: |
7
- Thank you for reporting an issue.
8
-
9
- This issue tracker is for bugs and issues found in ws.
10
- General support questions should be raised on a channel like Stack Overflow.
11
-
12
- Please fill in as much of the template below as you're able.
13
- - type: checkboxes
14
- attributes:
15
- label: Is there an existing issue for this?
16
- description:
17
- Please search to see if an issue already exists for the bug you
18
- encountered.
19
- options:
20
- - label:
21
- I've searched for any related issues and avoided creating a
22
- duplicate issue.
23
- required: true
24
- - type: textarea
25
- attributes:
26
- label: Description
27
- description:
28
- Description of the bug or feature, preferably a simple code snippet that
29
- can be run directly without installing third-party dependencies.
30
- - type: input
31
- attributes:
32
- label: ws version
33
- - type: input
34
- attributes:
35
- label: Node.js Version
36
- description: Output of `node -v`.
37
- - type: textarea
38
- attributes:
39
- label: System
40
- description: Output of `npx envinfo --system`.
41
- - type: textarea
42
- attributes:
43
- label: Expected result
44
- description: What you expected to happen.
45
- - type: textarea
46
- attributes:
47
- label: Actual result
48
- description: What actually happened.
49
- - type: textarea
50
- attributes:
51
- label: Attachments
52
- description: Logs, screenshots, screencast, etc.
@@ -1 +0,0 @@
1
- blank_issues_enabled: false
@@ -1,82 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- permissions: {}
8
-
9
- jobs:
10
- test:
11
- runs-on: ${{ matrix.os }}
12
- strategy:
13
- matrix:
14
- arch:
15
- - x64
16
- node:
17
- - 10
18
- - 12
19
- - 14
20
- - 16
21
- - 18
22
- - 20
23
- - 22
24
- - 23
25
- os:
26
- - macOS-latest
27
- - ubuntu-latest
28
- - windows-latest
29
- include:
30
- - arch: x86
31
- node: 10
32
- os: windows-latest
33
- - arch: x86
34
- node: 12
35
- os: windows-latest
36
- - arch: x86
37
- node: 14
38
- os: windows-latest
39
- - arch: x86
40
- node: 16
41
- os: windows-latest
42
- - arch: x86
43
- node: 20
44
- os: windows-latest
45
- - arch: x86
46
- node: 22
47
- os: windows-latest
48
- steps:
49
- - uses: actions/checkout@v4
50
- - uses: actions/setup-node@v4
51
- with:
52
- node-version: ${{ matrix.node }}
53
- architecture: ${{ matrix.arch }}
54
- cache: npm
55
- cache-dependency-path: ./package.json
56
- - run: npm install
57
- - run: npm run lint
58
- if:
59
- matrix.os == 'ubuntu-latest' && matrix.node == 20 && matrix.arch ==
60
- 'x64'
61
- - run: npm test
62
- - run: |
63
- id=$(node -e "console.log(crypto.randomBytes(16).toString('hex'))")
64
-
65
- echo "job_id=$id" >> $GITHUB_OUTPUT
66
- id: get_job_id
67
- shell: bash
68
- - uses: coverallsapp/github-action@v2
69
- with:
70
- flag-name:
71
- ${{ steps.get_job_id.outputs.job_id }} (Node.js ${{ matrix.node }}
72
- ${{ matrix.arch }} on ${{ matrix.os }})
73
- github-token: ${{ secrets.GITHUB_TOKEN }}
74
- parallel: true
75
- coverage:
76
- needs: test
77
- runs-on: ubuntu-latest
78
- steps:
79
- - uses: coverallsapp/github-action@v2
80
- with:
81
- github-token: ${{ secrets.GITHUB_TOKEN }}
82
- parallel-finished: true
@@ -1,5 +0,0 @@
1
- arrowParens: always
2
- endOfLine: lf
3
- proseWrap: always
4
- singleQuote: true
5
- trailingComma: none
package/ws/FUNDING.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "drips": {
3
- "ethereum": {
4
- "ownedBy": "0x3D4f997A071d2BA735AC767E68052679423c3dBe"
5
- }
6
- }
7
- }
package/ws/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
2
- Copyright (c) 2013 Arnout Kazemier and contributors
3
- Copyright (c) 2016 Luigi Pinca and contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.