Revert "add @discordjs/opus + jmd.js"

This reverts commit 5c2e0737c0.
This commit is contained in:
2021-04-11 12:15:40 +02:00
parent 5c2e0737c0
commit ead89a22d8
977 changed files with 1074 additions and 199471 deletions

2
node_modules/ws/README.md generated vendored
View File

@@ -1,7 +1,7 @@
# ws: a Node.js WebSocket library
[![Version npm](https://img.shields.io/npm/v/ws.svg?logo=npm)](https://www.npmjs.com/package/ws)
[![Build](https://img.shields.io/github/workflow/status/websockets/ws/CI/master?label=build&logo=github)](https://github.com/websockets/ws/actions?query=workflow%3ACI+branch%3Amaster)
[![Build](https://img.shields.io/travis/websockets/ws/master.svg?logo=travis)](https://travis-ci.com/websockets/ws)
[![Windows x86 Build](https://img.shields.io/appveyor/ci/lpinca/ws/master.svg?logo=appveyor)](https://ci.appveyor.com/project/lpinca/ws)
[![Coverage Status](https://img.shields.io/coveralls/websockets/ws/master.svg)](https://coveralls.io/github/websockets/ws)

View File

@@ -376,16 +376,12 @@ class PerMessageDeflate {
this._inflate[kTotalLength]
);
if (this._inflate._readableState.endEmitted) {
if (fin && this.params[`${endpoint}_no_context_takeover`]) {
this._inflate.close();
this._inflate = null;
} else {
this._inflate[kTotalLength] = 0;
this._inflate[kBuffers] = [];
if (fin && this.params[`${endpoint}_no_context_takeover`]) {
this._inflate.reset();
}
}
callback(null, data);
@@ -452,11 +448,12 @@ class PerMessageDeflate {
//
this._deflate[kCallback] = null;
this._deflate[kTotalLength] = 0;
this._deflate[kBuffers] = [];
if (fin && this.params[`${endpoint}_no_context_takeover`]) {
this._deflate.reset();
this._deflate.close();
this._deflate = null;
} else {
this._deflate[kTotalLength] = 0;
this._deflate[kBuffers] = [];
}
callback(null, data);

View File

@@ -225,7 +225,7 @@ class WebSocketServer extends EventEmitter {
const info = {
origin:
req.headers[`${version === 8 ? 'sec-websocket-origin' : 'origin'}`],
secure: !!(req.socket.authorized || req.socket.encrypted),
secure: !!(req.connection.authorized || req.connection.encrypted),
req
};

2
node_modules/ws/lib/websocket.js generated vendored
View File

@@ -695,7 +695,7 @@ function tlsConnect(options) {
options.path = undefined;
if (!options.servername && options.servername !== '') {
options.servername = net.isIP(options.host) ? '' : options.host;
options.servername = options.host;
}
return tls.connect(options);

27
node_modules/ws/package.json generated vendored
View File

@@ -1,27 +1,27 @@
{
"_from": "ws@^7.4.4",
"_id": "ws@7.4.4",
"_from": "ws@^7.3.1",
"_id": "ws@7.4.1",
"_inBundle": false,
"_integrity": "sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==",
"_integrity": "sha512-pTsP8UAfhy3sk1lSk/O/s4tjD0CRwvMnzvwr4OKGX7ZvqZtUyx4KIJB5JWbkykPoc55tixMGgTNoh3k4FkNGFQ==",
"_location": "/ws",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "ws@^7.4.4",
"raw": "ws@^7.3.1",
"name": "ws",
"escapedName": "ws",
"rawSpec": "^7.4.4",
"rawSpec": "^7.3.1",
"saveSpec": null,
"fetchSpec": "^7.4.4"
"fetchSpec": "^7.3.1"
},
"_requiredBy": [
"/discord.js"
],
"_resolved": "https://registry.npmjs.org/ws/-/ws-7.4.4.tgz",
"_shasum": "383bc9742cb202292c9077ceab6f6047b17f2d59",
"_spec": "ws@^7.4.4",
"_where": "C:\\Users\\j4kub\\Desktop\\git\\gractwo-bot\\node_modules\\discord.js",
"_resolved": "https://registry.npmjs.org/ws/-/ws-7.4.1.tgz",
"_shasum": "a333be02696bd0e54cea0434e21dcc8a9ac294bb",
"_spec": "ws@^7.3.1",
"_where": "C:\\Users\\j4kub\\Desktop\\code\\git\\gractwo-bot\\node_modules\\discord.js",
"author": {
"name": "Einar Otto Stangvik",
"email": "einaros@gmail.com",
@@ -37,8 +37,9 @@
"devDependencies": {
"benchmark": "^2.1.4",
"bufferutil": "^4.0.1",
"coveralls": "^3.0.3",
"eslint": "^7.2.0",
"eslint-config-prettier": "^8.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.0.1",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
@@ -84,7 +85,7 @@
"scripts": {
"integration": "mocha --throw-deprecation test/*.integration.js",
"lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,yaml,yml}\"",
"test": "nyc --reporter=lcov --reporter=text mocha --throw-deprecation test/*.test.js"
"test": "nyc --reporter=html --reporter=text mocha --throw-deprecation test/*.test.js"
},
"version": "7.4.4"
"version": "7.4.1"
}