(payload: Record<string, unknown>, field: string)
| 340 | } |
| 341 | |
| 342 | function assertJsonObject(payload: Record<string, unknown>, field: string): void { |
| 343 | if (!payload || typeof payload !== 'object' || Array.isArray(payload)) { |
| 344 | throw new AppError('INVALID_ARGS', `${field} must be a JSON object`); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | function stringifyJsonObject(payload: Record<string, unknown>, field: string): string { |
| 349 | try { |
no outgoing calls
no test coverage detected
searching dependent graphs…