(obj: Record<string, any>)
| 164 | } |
| 165 | |
| 166 | function sanitizeObject(obj: Record<string, any>): Record<string, any> { |
| 167 | const result: Record<string, any> = {} |
| 168 | for (const key of Object.keys(obj)) { |
| 169 | result[key] = sanitizeValue(obj[key], key) |
| 170 | } |
| 171 | return result |
| 172 | } |
| 173 | |
| 174 | return sanitizeNullBytes(sanitizeObject(metadata)) |
| 175 | } |
no test coverage detected