(value: string)
| 1771 | * @returns {ICredentialDataDecrypted} |
| 1772 | */ |
| 1773 | const maskUrlPassword = (value: string): string | null => { |
| 1774 | try { |
| 1775 | const url = new URL(value) |
| 1776 | if (!url.password) return null |
| 1777 | url.password = 'FLOWISE_MASKED' |
| 1778 | return url.toString().replace('FLOWISE_MASKED', '\u2022\u2022\u2022\u2022\u2022\u2022') |
| 1779 | } catch { |
| 1780 | return null |
| 1781 | } |
| 1782 | } |
| 1783 | |
| 1784 | export const redactCredentialWithPasswordType = ( |
| 1785 | componentCredentialName: string, |
no outgoing calls
no test coverage detected