( aLines: Array<string>, bLines: Array<string>, options?: DiffOptions, )
| 103 | |
| 104 | // Compare two arrays of strings line-by-line. Format as comparison lines. |
| 105 | export function diffLinesUnified( |
| 106 | aLines: Array<string>, |
| 107 | bLines: Array<string>, |
| 108 | options?: DiffOptions, |
| 109 | ): string { |
| 110 | const normalizedOptions = normalizeDiffOptions(options) |
| 111 | const [diffs, truncated] = diffLinesRaw( |
| 112 | isEmptyString(aLines) ? [] : aLines, |
| 113 | isEmptyString(bLines) ? [] : bLines, |
| 114 | normalizedOptions, |
| 115 | ) |
| 116 | return printDiffLines(diffs, truncated, normalizedOptions) |
| 117 | } |
| 118 | |
| 119 | // Given two pairs of arrays of strings: |
| 120 | // Compare the pair of comparison arrays line-by-line. |
no test coverage detected