mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:02:41 +08:00
chore: knip fix (#34481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export type DownloadUrlOptions = {
|
||||
type DownloadUrlOptions = {
|
||||
url: string
|
||||
fileName?: string
|
||||
rel?: string
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* @param plaintext - The plain text to encode
|
||||
* @returns Base64 encoded text
|
||||
*/
|
||||
export function encryptField(plaintext: string): string {
|
||||
function encryptField(plaintext: string): string {
|
||||
try {
|
||||
// Base64 encode the plaintext
|
||||
// btoa works with ASCII, so we need to handle UTF-8 properly
|
||||
|
||||
@@ -51,7 +51,7 @@ export const getNewVarInWorkflow = (key: string, type = InputVarType.textInput):
|
||||
}
|
||||
}
|
||||
|
||||
export type VarKeyErrorMessageKey = I18nKeysByPrefix<'appDebug', 'varKeyError.'>
|
||||
type VarKeyErrorMessageKey = I18nKeysByPrefix<'appDebug', 'varKeyError.'>
|
||||
|
||||
export const checkKey = (key: string, canBeEmpty?: boolean, _keys?: string[]): true | VarKeyErrorMessageKey => {
|
||||
if (key.length === 0 && !canBeEmpty)
|
||||
|
||||
Reference in New Issue
Block a user