mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-30 08:10:34 +01:00
d77f77cea9
* Fail on unsupported export format Issue #5194: https://github.com/bitwarden/clients/issues/5194 The cli previously would take any value for the export format and default to unencrypted json if it wasn't a supported format. This behavior is a little dangerous because if for instance typed "json_encrypted" instead of "encrypted_json" and naively saved the file you might be surprised to learn the payload was not actually encrypted even though the command completed successfully. This change adds a guard clause when converting the string value passed in via `--format` into the type `ExportFormat` to ensure that the format provided is one of the supported types. * Move isSupportedExportFormat to private method |
||
---|---|---|
.. | ||
completion.command.ts | ||
config.command.ts | ||
convert-to-key-connector.command.ts | ||
download.command.ts | ||
edit.command.ts | ||
encode.command.ts | ||
export.command.ts | ||
get.command.ts | ||
list.command.ts | ||
restore.command.ts | ||
serve.command.ts | ||
status.command.ts | ||
update.command.ts |