🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@oclif/core

Package Overview
Dependencies
Maintainers
2
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version
4.8.4
to
4.9.0
+1
-1
lib/command.js

@@ -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 } : {}) };

{
"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",