@oclif/core 3.0.6 → 3.0.8

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.
@@ -68,7 +68,11 @@ async function cacheArgs(cmdArgs, respectNoCacheDefault) {
68
68
  }
69
69
  async function cacheCommand(uncachedCmd, plugin, respectNoCacheDefault = false) {
70
70
  const cmd = mergePrototype(uncachedCmd, uncachedCmd);
71
- const flags = await cacheFlags((0, aggregate_flags_1.aggregateFlags)(cmd.flags, cmd.baseFlags, cmd.enableJsonFlag), respectNoCacheDefault);
71
+ // @ts-expect-error because v2 commands have flags stored in _flags
72
+ const uncachedFlags = cmd.flags ?? cmd._flags;
73
+ // @ts-expect-error because v2 commands have base flags stored in _baseFlags
74
+ const uncachedBaseFlags = cmd.baseFlags ?? cmd._baseFlags;
75
+ const flags = await cacheFlags((0, aggregate_flags_1.aggregateFlags)(uncachedFlags, uncachedBaseFlags, cmd.enableJsonFlag), respectNoCacheDefault);
72
76
  const args = await cacheArgs((0, ensure_arg_object_1.ensureArgObject)(cmd.args), respectNoCacheDefault);
73
77
  const stdProperties = {
74
78
  aliases: cmd.aliases || [],
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": "3.0.6",
4
+ "version": "3.0.8",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {