(source, decodedSource, options)
| 478 | } |
| 479 | |
| 480 | function coerceDecodedJSONSource(source, decodedSource, options) { |
| 481 | const parsed = parseJSONLike(decodedSource, options); |
| 482 | if (!parsed) { |
| 483 | return source; |
| 484 | } |
| 485 | return parsed.normalizedSource; |
| 486 | } |
| 487 | |
| 488 | function isYAMLResource(url, contentType) { |
| 489 | const type = String(contentType || '').toLowerCase(); |
nothing calls this directly
no test coverage detected