(content: string, diff: string, mode?: 'create')
| 29 | } |
| 30 | |
| 31 | function patchContent(content: string, diff: string, mode?: 'create'): string { |
| 32 | try { |
| 33 | return applyDiff(content, diff, mode); |
| 34 | } catch (error) { |
| 35 | throw new ApplyPatchRejectedError( |
| 36 | error instanceof Error ? error.message : 'ApplyPatch could not be applied.', |
| 37 | ); |
| 38 | } |
| 39 | } |
no outgoing calls
no test coverage detected