(text: string)
| 82 | } |
| 83 | |
| 84 | static parse(text: string): unknown { |
| 85 | try { |
| 86 | return JSON.parse(text); |
| 87 | } catch { |
| 88 | // Return error object for failed parsing |
| 89 | return { |
| 90 | success: false, |
| 91 | error: 'Invalid JSON format', |
| 92 | rawText: text.substring(0, 200) |
| 93 | }; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | class SafeCleanup { |
no outgoing calls
no test coverage detected