@oclif/core
Advanced tools
+1
-1
@@ -298,3 +298,3 @@ "use strict"; | ||
| const [id] = (0, util_1.normalizeArgv)(this.config); | ||
| if (this.ctor.deprecateAliases && this.ctor.aliases.includes(id)) { | ||
| if (this.ctor.deprecateAliases && [...this.ctor.aliases, ...this.ctor.hiddenAliases].includes(id)) { | ||
| const cmdName = (0, ids_1.toConfiguredId)(this.ctor.id, this.config); | ||
@@ -301,0 +301,0 @@ const aliasName = (0, ids_1.toConfiguredId)(id, this.config); |
@@ -177,4 +177,4 @@ "use strict"; | ||
| } | ||
| if (command.deprecateAliases && command.aliases.includes(name)) { | ||
| const actualCmd = this.config.commands.find((c) => c.aliases.includes(name)); | ||
| if (command.deprecateAliases && [...(command.aliases ?? []), ...(command.hiddenAliases ?? [])].includes(name)) { | ||
| const actualCmd = this.config.commands.find((c) => [...(c.aliases ?? []), ...(c.hiddenAliases ?? [])].includes(name)); | ||
| const actualCmdName = actualCmd ? (0, ids_1.toConfiguredId)(actualCmd.id, this.config) : ''; | ||
@@ -181,0 +181,0 @@ const opts = { ...command.deprecationOptions, ...(actualCmd ? { to: actualCmdName } : {}) }; |
+1
-1
| { | ||
| "name": "@oclif/core", | ||
| "description": "base library for oclif CLIs", | ||
| "version": "4.8.4", | ||
| "version": "4.9.0", | ||
| "author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
411337
0.03%