mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 10:30:09 +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
13
diff.js
13
diff.js
@ -733,9 +733,16 @@ var diff =
|
||||
module.diff =
|
||||
function(A, B, options){
|
||||
options = options || {}
|
||||
return options.tree_diff ?
|
||||
_diff(A, B, options)
|
||||
: flatten(_diff(A, B, options)) }
|
||||
return {
|
||||
format: 'object-diff',
|
||||
varsion: '0.0.0',
|
||||
|
||||
options: Object.assign({}, options),
|
||||
|
||||
diff: options.tree_diff ?
|
||||
_diff(A, B, options)
|
||||
: flatten(_diff(A, B, options))
|
||||
}}
|
||||
|
||||
|
||||
var patch =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user