(labels: Record<string, string>)
| 388 | } |
| 389 | |
| 390 | private buildSelector(labels: Record<string, string>): string { |
| 391 | const parts = Object.entries(labels).map( |
| 392 | ([key, value]) => `${key}="${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`, |
| 393 | ); |
| 394 | return `{${parts.join(',')}}`; |
| 395 | } |
| 396 | |
| 397 | private normalizeLabels(input: unknown): Record<string, string> { |
| 398 | if (!input || typeof input !== 'object') { |
no outgoing calls
no test coverage detected