git ssb

0+

cel / ssb-activity



Commit a3b6e67a79ab15e9e37b77d0493be9a811e5862e

Remove partial interval at end

It creates an uneven effect in the image
cel committed on 11/17/2019, 11:41:11 PM
Parent: c05ef3d7a163d0205ee54329f8a7a0fba176ad0a

Files changed

index.jschanged
package.jsonchanged
index.jsView
@@ -1,7 +1,6 @@
11 var FlumeViewLevel = require('flumeview-level')
22 var pull = require('pull-stream')
3-var cat = require('pull-cat')
43
54 function map(msg) {
65 var author = msg.value.author
76 var ts = msg.value.timestamp
@@ -77,10 +76,9 @@
7776 }
7877 if (!readOpts.gt && !readOpts.gte) readOpts.gt = [series, null, null]
7978 if (!readOpts.lt && !readOpts.lte) readOpts.lt = [series, undefined, undefined]
8079 return pull(
81- // add object at end of stream to make the last group-by interval work
82- cat([activity.read(readOpts), pull.once({key: []})]),
80 + activity.read(readOpts),
8381 groupByIds(groupOpts),
8482 pull.filter(Boolean)
8583 )
8684 }
package.jsonView
@@ -4,9 +4,8 @@
44 "license": "ISC",
55 "dependencies": {
66 "flumeview-level": "^3.0.13",
77 "pngjs": "^3.4.0",
8- "pull-cat": "^1.1.11",
98 "pull-file": "^1.1.0",
109 "pull-split": "^0.2.1",
1110 "pull-stream": "^3.6.9"
1211 }

Built with git-ssb-web