(resource_paths: ReadonlyArray<string>)
| 517 | * Applies debug meta data to an event from a list of paths to resources (sourcemaps) |
| 518 | */ |
| 519 | export function applyDebugMetadata(resource_paths: ReadonlyArray<string>): DebugImage[] { |
| 520 | const client = getClient(); |
| 521 | const options = client?.getOptions(); |
| 522 | const stackParser = options?.stackParser; |
| 523 | |
| 524 | if (!stackParser) { |
| 525 | return []; |
| 526 | } |
| 527 | |
| 528 | return getDebugImagesForResources(stackParser, resource_paths); |
| 529 | } |
| 530 | |
| 531 | /** |
| 532 | * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1). |
no test coverage detected