git ssb

0+

cel / ssb-wikimedia



Commit d66bbc88625c75a18132a506bcd522775047b1c9

Add whitespace

cel committed on 12/1/2019, 5:36:41 AM
Parent: a9397726c101b1c2984678dd09d09f3a57d1cfb5

Files changed

bin.jschanged
bin.jsView
@@ -257,8 +257,9 @@
257257 var revisions = pull(
258258 function (abort, cb) {
259259 if (aborted = abort) return cb(abort)
260260 if (rvdone) return cb(true)
261 +
261262 console.log('Getting revisions for', pageInfo.title + '...',
262263 rvstart || '', rvcontinue || '')
263264 var url = api + '?format=json&action=query&prop=revisions&rvslots=*'
264265 + '&titles=' + encodeURIComponent(pageInfo.title)
@@ -349,8 +350,9 @@
349350 cb(null, rev)
350351 })
351352 )
352353 }),
354 +
353355 pull.asyncMap(function (rev, cb) {
354356 var waiting = 0
355357 for (var slot in rev.slots) (function (slot) {
356358 waiting++
@@ -393,8 +395,9 @@
393395 draftId: prevId,
394396 content: content
395397 })
396398 }
399 +
397400 return function (abort, cb) {
398401 if (abort) return revisions(abort, cb)
399402 if (ended) return cb(true)
400403 var content = {
@@ -417,8 +420,9 @@
417420 })
418421 }
419422 }),
420423 pull.flatten(),
424 +
421425 pull.collect(function (err, drafts) {
422426 if (err) throw err
423427 if (dry) {
424428 console.log(JSON.stringify(drafts, 0, 2))

Built with git-ssb-web