@oclif/core 3.10.6 → 3.10.7

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/help/index.js CHANGED
@@ -193,7 +193,7 @@ class Help extends HelpBase {
193
193
  if (command) {
194
194
  if (command.hasDynamicHelp && command.pluginType !== 'jit') {
195
195
  const loaded = await command.load();
196
- for (const [name, flag] of Object.entries(loaded.flags)) {
196
+ for (const [name, flag] of Object.entries(loaded.flags ?? {})) {
197
197
  // As of v3 each flag that needs to be re-evaluated has the `hasDynamicHelp` property.
198
198
  // However, we cannot assume that the absence of this property means that the flag
199
199
  // doesn't need to be re-evaluated since any command from a v2 or older plugin will
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.10.6",
4
+ "version": "3.10.7",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {