(prefix: string)
| 60 | new Date().toISOString().replace(/[:.]/g, "-"); |
| 61 | |
| 62 | export const normalizeS3Path = (prefix: string) => { |
| 63 | // Trim whitespace and remove leading/trailing slashes |
| 64 | const normalizedPrefix = prefix.trim().replace(/^\/+|\/+$/g, ""); |
| 65 | // Return empty string if prefix is empty, otherwise append trailing slash |
| 66 | return normalizedPrefix ? `${normalizedPrefix}/` : ""; |
| 67 | }; |
| 68 | |
| 69 | export const getS3Credentials = (destination: Destination) => { |
| 70 | const { accessKey, secretAccessKey, region, endpoint, provider } = |
no outgoing calls
no test coverage detected