(value: unknown)
| 152 | } |
| 153 | |
| 154 | function describeValue(value: unknown): string { |
| 155 | if (value === null) return 'null' |
| 156 | if (value === undefined) return 'undefined' |
| 157 | if (Array.isArray(value)) return `array with ${value.length} items` |
| 158 | if (typeof value === 'string') return `string with ${value.length} characters` |
| 159 | if (typeof value === 'object') return `object with ${Object.keys(value).length} keys` |
| 160 | return typeof value |
| 161 | } |
| 162 | |
| 163 | function summarizeValueForExecutionData(value: unknown, maxBytes: number): unknown { |
| 164 | const size = getJsonByteSize(value, maxBytes) |
no outgoing calls
no test coverage detected