mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
chore: bump dependencies (#11225)
This commit is contained in:
@@ -57,21 +57,21 @@
|
||||
"@rushstack/ts-command-line": "5.0.1",
|
||||
"colors": "~1.4.0",
|
||||
"lodash": "~4.17.21",
|
||||
"resolve": "~1.22.10",
|
||||
"resolve": "~1.22.11",
|
||||
"semver": "~7.6.3",
|
||||
"source-map": "~0.6.1",
|
||||
"typescript": "~5.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/node": "^22.18.8",
|
||||
"@types/node": "^22.18.13",
|
||||
"@types/resolve": "^1.20.6",
|
||||
"@types/semver": "^7.7.1",
|
||||
"cpy-cli": "^6.0.0",
|
||||
"cross-env": "^10.1.0",
|
||||
"eslint": "^9.37.0",
|
||||
"eslint-config-neon": "^0.2.7",
|
||||
"eslint-formatter-compact": "^8.40.0",
|
||||
"eslint": "^9.38.0",
|
||||
"eslint-config-neon": "^0.2.9",
|
||||
"eslint-formatter-compact": "^9.0.1",
|
||||
"eslint-formatter-pretty": "^7.0.0",
|
||||
"prettier": "^3.6.2",
|
||||
"terser": "^5.44.0",
|
||||
|
||||
@@ -176,7 +176,7 @@ export class TypeScriptHelpers {
|
||||
}
|
||||
|
||||
// If we ran out of items, or if the kind doesn't match, then fail
|
||||
if (!current || current.kind !== parentKind) {
|
||||
if (current?.kind !== parentKind) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -956,10 +956,8 @@ export class Collector {
|
||||
declaration,
|
||||
ts.SyntaxKind.VariableStatement,
|
||||
) as ts.VariableStatement | undefined;
|
||||
if (
|
||||
statement !== undefined && // For a compound declaration, fall back to looking for C instead of A
|
||||
statement.declarationList.declarations.length === 1
|
||||
) {
|
||||
// For a compound declaration, fall back to looking for C instead of A
|
||||
if (statement?.declarationList.declarations.length === 1) {
|
||||
nodeForComment = statement;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user