Commit 6265721f1afb89664116866cfab644d8e413a9cd
Rename createFeedStream to list
Charles Lehner committed on 4/17/2016, 12:16:20 AMParent: 5ba5ed8f4b7cd0ca004b81ac3c4594eb91488aa1
Files changed
README.md | changed |
index.js | changed |
README.md | ||
---|---|---|
@@ -71,14 +71,14 @@ | ||
71 | 71 | - `projectAuthor`: the author of the project |
72 | 72 | - `msg`: ssb message object that created the issue (with |
73 | 73 | `.key` and `.value`). |
74 | 74 | |
75 | -#### createFeedStream: source | |
75 | +#### list: source | |
76 | 76 | |
77 | 77 | Get a stream of issues |
78 | 78 | |
79 | 79 | ```js |
80 | -issues.createFeedStream({ project:, open:, author:, live:, gt:, gte:, lt:, lte:, reverse: }) | |
80 | +issues.list({ project:, open:, author:, live:, gt:, gte:, lt:, lte:, reverse: }) | |
81 | 81 | ``` |
82 | 82 | |
83 | 83 | - `project` (Ref): get only issues for the given target |
84 | 84 | - `open` (boolean): get only open or closed issues |
index.js | ||
---|---|---|
@@ -16,9 +16,9 @@ | ||
16 | 16 | exports.name = 'issues' |
17 | 17 | |
18 | 18 | exports.manifest = { |
19 | 19 | get: 'async', |
20 | - createFeedStream: 'source', | |
20 | + list: 'source', | |
21 | 21 | new: 'async', |
22 | 22 | edit: 'async', |
23 | 23 | close: 'async', |
24 | 24 | reopen: 'async', |
@@ -185,9 +185,9 @@ | ||
185 | 185 | } |
186 | 186 | } |
187 | 187 | }) |
188 | 188 | |
189 | - function createFeedStream(opts) { | |
189 | + function listIssues(opts) { | |
190 | 190 | opts.type = 'issue' |
191 | 191 | return pull( |
192 | 192 | // TODO: use links2 for this |
193 | 193 | ssb.messagesByType(opts), |
@@ -231,9 +231,9 @@ | ||
231 | 231 | } |
232 | 232 | |
233 | 233 | return { |
234 | 234 | get: getIssue, |
235 | - createFeedStream: createFeedStream, | |
235 | + list: listIssues, | |
236 | 236 | new: newIssue, |
237 | 237 | edit: editIssue, |
238 | 238 | close: closeIssue, |
239 | 239 | reopen: reopenIssue, |
Built with git-ssb-web