Skip to content

Commit dc2a6c4

Browse files
fix(cooldown): handle CooldownFunction in config file (#1565)
1 parent ce17ed7 commit dc2a6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ const cliOptions: CLIOption[] = [
985985
'Sets a minimum age (in days) for package versions to be considered for upgrade, reducing the risk of installing newly published, potentially compromised packages.',
986986
type: `number | CooldownFunction`,
987987
help: extendedHelpCooldown,
988-
parse: s => parseInt(s, 10),
988+
parse: s => (typeof s === 'function' ? s : parseInt(s, 10)),
989989
},
990990
]
991991

0 commit comments

Comments
 (0)