( value: unknown, options: CompactExecutionPayloadOptions )
| 201 | } |
| 202 | |
| 203 | async function forceStoreValue( |
| 204 | value: unknown, |
| 205 | options: CompactExecutionPayloadOptions |
| 206 | ): Promise<unknown> { |
| 207 | if (isLargeValueRef(value) || isLargeArrayManifest(value)) { |
| 208 | return value |
| 209 | } |
| 210 | const measured = getJsonAndSize(value) |
| 211 | if (!measured) { |
| 212 | return value |
| 213 | } |
| 214 | return storeLargeValue(value, measured.json, measured.size, options) |
| 215 | } |
| 216 | |
| 217 | export async function compactExecutionPayload<T>( |
| 218 | value: T, |
no test coverage detected