Skip to content

Commit dea48d6

Browse files
authored
chore(Deps): upgrade deps (#4701)
1 parent 178439e commit dea48d6

File tree

12 files changed

+11320
-51
lines changed

12 files changed

+11320
-51
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"singleQuote": true,
2727
"quoteProps": "as-needed",
2828
"trailingComma": "all",
29-
"endOfLine": "lf"
29+
"endOfLine": "lf",
30+
"arrowParens": "avoid"
3031
}
3132
],
3233
"strict": ["error", "global"],

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Packages
22
node_modules/
33
yarn.lock
4-
package-lock.json
54

65
# Log files
76
logs/

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

Lines changed: 11262 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "eslint src",
2323
"lint:fix": "eslint src --fix",
2424
"lint:typings": "tslint typings/index.d.ts",
25-
"prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf src/**/*.js typings/**/*.ts",
25+
"prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid src/**/*.js typings/**/*.ts",
2626
"build:browser": "webpack",
2727
"prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser"
2828
},
@@ -47,37 +47,37 @@
4747
"runkitExampleFilename": "./docs/examples/ping.js",
4848
"unpkg": "./webpack/discord.min.js",
4949
"dependencies": {
50-
"@discordjs/collection": "^0.1.5",
50+
"@discordjs/collection": "^0.1.6",
5151
"@discordjs/form-data": "^3.0.1",
5252
"abort-controller": "^3.0.0",
5353
"node-fetch": "^2.6.0",
54-
"prism-media": "^1.2.0",
54+
"prism-media": "^1.2.2",
5555
"setimmediate": "^1.0.5",
5656
"tweetnacl": "^1.0.3",
57-
"ws": "^7.2.1"
57+
"ws": "^7.3.1"
5858
},
5959
"devDependencies": {
60-
"@commitlint/cli": "^8.3.5",
61-
"@commitlint/config-angular": "^8.3.4",
62-
"@types/node": "^10.12.24",
63-
"@types/ws": "^7.2.1",
60+
"@commitlint/cli": "^9.1.2",
61+
"@commitlint/config-angular": "^9.1.1",
62+
"@types/node": "^12.12.6",
63+
"@types/ws": "^7.2.6",
6464
"cross-env": "^7.0.2",
6565
"discord.js-docgen": "discordjs/docgen",
66-
"dtslint": "^3.0.0",
67-
"eslint": "^6.8.0",
68-
"eslint-config-prettier": "^6.10.0",
69-
"eslint-plugin-import": "^2.20.1",
70-
"eslint-plugin-prettier": "^3.1.2",
71-
"husky": "^4.2.3",
72-
"jest": "^25.1.0",
66+
"dtslint": "^3.6.14",
67+
"eslint": "^7.6.0",
68+
"eslint-config-prettier": "^6.11.0",
69+
"eslint-plugin-import": "^2.22.0",
70+
"eslint-plugin-prettier": "^3.1.4",
71+
"husky": "^4.2.5",
72+
"jest": "^26.4.0",
7373
"json-filter-loader": "^1.0.0",
74-
"lint-staged": "^10.0.8",
75-
"prettier": "^1.19.1",
76-
"terser-webpack-plugin": "^1.2.2",
77-
"tslint": "^6.0.0",
78-
"typescript": "^3.8.2",
79-
"webpack": "^4.41.6",
80-
"webpack-cli": "^3.3.11"
74+
"lint-staged": "^10.2.11",
75+
"prettier": "^2.0.5",
76+
"terser-webpack-plugin": "^4.1.0",
77+
"tslint": "^6.1.3",
78+
"typescript": "^3.9.7",
79+
"webpack": "^4.44.1",
80+
"webpack-cli": "^3.3.12"
8181
},
8282
"engines": {
8383
"node": ">=12.0.0"
@@ -122,7 +122,7 @@
122122
},
123123
"lint-staged": {
124124
"*.js": "eslint --fix",
125-
"*.ts": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf"
125+
"*.ts": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid"
126126
},
127127
"commitlint": {
128128
"extends": [

src/client/websocket/WebSocketManager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const BeforeReadyWhitelist = [
1818
WSEvents.GUILD_MEMBER_REMOVE,
1919
];
2020

21-
const UNRECOVERABLE_CLOSE_CODES = Object.keys(WSCodes)
22-
.slice(1)
23-
.map(Number);
21+
const UNRECOVERABLE_CLOSE_CODES = Object.keys(WSCodes).slice(1).map(Number);
2422
const UNRESUMABLE_CLOSE_CODES = [1000, 4006, 4007];
2523

2624
/**

src/managers/MessageManager.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ class MessageManager extends BaseManager {
121121
async delete(message, reason) {
122122
message = this.resolveID(message);
123123
if (message) {
124-
await this.client.api
125-
.channels(this.channel.id)
126-
.messages(message)
127-
.delete({ reason });
124+
await this.client.api.channels(this.channel.id).messages(message).delete({ reason });
128125
}
129126
}
130127

src/structures/GuildEmoji.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ class GuildEmoji extends BaseGuildEmoji {
7474
throw new Error('MISSING_MANAGE_EMOJIS_PERMISSION', this.guild);
7575
}
7676
}
77-
const data = await this.client.api
78-
.guilds(this.guild.id)
79-
.emojis(this.id)
80-
.get();
77+
const data = await this.client.api.guilds(this.guild.id).emojis(this.id).get();
8178
this._patch(data);
8279
return this.author;
8380
}

src/structures/interfaces/TextBasedChannel.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,7 @@ class TextBasedChannel {
330330
}
331331
if (messageIDs.length === 0) return new Collection();
332332
if (messageIDs.length === 1) {
333-
await this.client.api
334-
.channels(this.id)
335-
.messages(messageIDs[0])
336-
.delete();
333+
await this.client.api.channels(this.id).messages(messageIDs[0]).delete();
337334
const message = this.client.actions.MessageDelete.getMessage(
338335
{
339336
message_id: messageIDs[0],

src/util/Snowflake.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ class SnowflakeUtil {
6464
* @returns {DeconstructedSnowflake} Deconstructed snowflake
6565
*/
6666
static deconstruct(snowflake) {
67-
const BINARY = Util.idToBinary(snowflake)
68-
.toString(2)
69-
.padStart(64, '0');
67+
const BINARY = Util.idToBinary(snowflake).toString(2).padStart(64, '0');
7068
const res = {
7169
timestamp: parseInt(BINARY.substring(0, 42), 2) + EPOCH,
7270
workerID: parseInt(BINARY.substring(42, 47), 2),

0 commit comments

Comments
 (0)