(
envelope: StructuredOutputEnvelope<unknown>,
options: NormalizeStructuredEnvelopeOptions = {},
)
| 493 | } |
| 494 | |
| 495 | export function normalizeStructuredEnvelope( |
| 496 | envelope: StructuredOutputEnvelope<unknown>, |
| 497 | options: NormalizeStructuredEnvelopeOptions = {}, |
| 498 | ): StructuredOutputEnvelope<unknown> { |
| 499 | return normalizeValue( |
| 500 | normalizeXcodeBridgeCallEnvelope(envelope), |
| 501 | options, |
| 502 | ) as StructuredOutputEnvelope<unknown>; |
| 503 | } |
| 504 | |
| 505 | const FRAME_OBJECT_REGEX = |
| 506 | /"frame": \{\n\s+"y": (?<y>\d+(?:\.\d+)?),\n\s+"x": (?<x>\d+(?:\.\d+)?),\n\s+"width": (?<width>\d+(?:\.\d+)?),\n\s+"height": (?<height>\d+(?:\.\d+)?)\n\s+\}/g; |
no test coverage detected