@oclif/core 4.5.0 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/main.js CHANGED
@@ -98,6 +98,7 @@ async function run(argv, options) {
98
98
  }
99
99
  catch (error) {
100
100
  err = error;
101
+ throw error;
101
102
  }
102
103
  finally {
103
104
  await runFinally(cmd, err);
@@ -78,7 +78,8 @@ async function cacheCommand(uncachedCmd, plugin, respectNoCacheDefault = false)
78
78
  cacheArgs((0, ensure_arg_object_1.ensureArgObject)(cmd.args), respectNoCacheDefault),
79
79
  ]);
80
80
  const stdProperties = {
81
- aliases: cmd.aliases ?? [],
81
+ // Replace all spaces in aliases with colons to standardize them.
82
+ aliases: (cmd.aliases ?? []).map((a) => a.replaceAll(' ', ':')),
82
83
  args,
83
84
  deprecateAliases: cmd.deprecateAliases,
84
85
  deprecationOptions: cmd.deprecationOptions,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.5.0",
4
+ "version": "4.5.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {