forked from kpdecker/jsdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
64 lines (54 loc) · 1.61 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* See LICENSE file for terms of use */
/*
* Text diff implementation.
*
* This library supports the following APIs:
* Diff.diffChars: Character by character diff
* Diff.diffWords: Word (as defined by \b regex) diff which ignores whitespace
* Diff.diffLines: Line based diff
*
* Diff.diffCss: Diff targeted at CSS content
*
* These methods are based on the implementation proposed in
* "An O(ND) Difference Algorithm and its Variations" (Myers, 1986).
* http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927
*/
import Diff from './diff/base';
import {diffChars} from './diff/character';
import {diffWords, diffWordsWithSpace} from './diff/word';
import {diffLines, diffTrimmedLines} from './diff/line';
import {diffSentences} from './diff/sentence';
import {diffCss} from './diff/css';
import {diffJson, canonicalize} from './diff/json';
import {diffArrays} from './diff/array';
import {applyPatch, applyPatches} from './patch/apply';
import {parsePatch} from './patch/parse';
import {merge} from './patch/merge';
import {reversePatch} from './patch/reverse';
import {structuredPatch, createTwoFilesPatch, createPatch, formatPatch} from './patch/create';
import {convertChangesToDMP} from './convert/dmp';
import {convertChangesToXML} from './convert/xml';
export {
Diff,
diffChars,
diffWords,
diffWordsWithSpace,
diffLines,
diffTrimmedLines,
diffSentences,
diffCss,
diffJson,
diffArrays,
structuredPatch,
createTwoFilesPatch,
createPatch,
formatPatch,
applyPatch,
applyPatches,
parsePatch,
merge,
reversePatch,
convertChangesToDMP,
convertChangesToXML,
canonicalize
};