@augment-vir/core 31.50.0 → 31.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes a pretty diff output.
|
|
3
|
+
*
|
|
4
|
+
* @category Internal
|
|
5
|
+
* @category Package : @augment-vir/common
|
|
6
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
7
|
+
*/
|
|
1
8
|
export declare function prettyDiff(actual: unknown, expected: unknown): string;
|
|
@@ -2,6 +2,13 @@ import { diffLines, diffWords } from 'diff';
|
|
|
2
2
|
import { sortObject } from '../object/object-sort.js';
|
|
3
3
|
import { stringify } from '../object/stringify.js';
|
|
4
4
|
import { isRuntimeEnv, RuntimeEnv } from '../runtime-env.js';
|
|
5
|
+
/**
|
|
6
|
+
* Makes a pretty diff output.
|
|
7
|
+
*
|
|
8
|
+
* @category Internal
|
|
9
|
+
* @category Package : @augment-vir/common
|
|
10
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
11
|
+
*/
|
|
5
12
|
export function prettyDiff(actual, expected) {
|
|
6
13
|
const bothStrings = typeof expected === 'string' && typeof actual === 'string';
|
|
7
14
|
const useLines = typeof expected !== 'string' || typeof actual !== 'string';
|