Commit Graph

7 Commits

Author SHA1 Message Date
ScottSWu
2fb8651931 Add additional patch methods in jsdiff
* Add `IUniDiff` struct, representing a unified diff
* Add `IHunk` struct, representing a section of modified lines and context
* Fix `createPatch` optional `options` argument
* Fix `applyPatch` to accept either a patch string, IUniDiff or IUniDiff array
* Add `createTwoFilesPatch`, `structuredPatch` and `applyPatches`
* Add test code for these new functions
2016-08-09 16:21:39 -07:00
Shardul Mahadik
3bf834b6e8 Add count variable to IDiffResult 2016-03-18 13:37:27 +05:30
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Adam Roderick
4087da1722 Update diff.d.ts
JsDiff can now diff javascript objects with the "diffJson" function.
2015-09-22 23:11:07 -06:00
vvakame
d3dd12701c add diff/diff.d.ts 2014-04-10 18:59:19 +09:00