You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying a diff using (hypothetical) jawn.applyActionStream function
varjawn=require('jawn');varthrough=require('through2').obj;varcheckout=jawn.checkout(feedOneId);varapplyActions=jawn.applyActionStreamcheckout.on('end',function(){jawn.diff(feedOneId,feedTwoId).pipe(applyActions)})applyActions.on('end',function(){// the current contents of the repo should match the contents of feedTwot.same('',jawn.diff(jawn.current,feedTwoId))})
The text was updated successfully, but these errors were encountered:
This is a Work in Progress
If I run
jawn.diff(feedOneId, feedTwoId)
I should get a stream of json objects representing actions (add/update/delete).If I apply all of the actions in that stream to the database/repository represented by
feedOne
, its contents should then matchfeedTwo
.Running a diff
Checkout a feed, run a diff and print the results of the diff.
The output should look roughly like this: (see 2015 dat beta for real examples)
Applying a diff using (hypothetical) jawn.applyActionStream function
The text was updated successfully, but these errors were encountered: