mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 19:10:11 +00:00
working on finalizing the root format...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5404d4880b
commit
832851476e
11
diff.js
11
diff.js
@ -733,9 +733,16 @@ var diff =
|
|||||||
module.diff =
|
module.diff =
|
||||||
function(A, B, options){
|
function(A, B, options){
|
||||||
options = options || {}
|
options = options || {}
|
||||||
return options.tree_diff ?
|
return {
|
||||||
|
format: 'object-diff',
|
||||||
|
varsion: '0.0.0',
|
||||||
|
|
||||||
|
options: Object.assign({}, options),
|
||||||
|
|
||||||
|
diff: options.tree_diff ?
|
||||||
_diff(A, B, options)
|
_diff(A, B, options)
|
||||||
: flatten(_diff(A, B, options)) }
|
: flatten(_diff(A, B, options))
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
var patch =
|
var patch =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user