Commit f210e08c7d20d3cb4aadebb387ce5c2d1ed3f939
Add deinit method
Charles Lehner committed on 9/20/2016, 1:52:22 AMParent: d325d29bb44efcd78a0d9bd1efb5369324262a49
Files changed
README.md | changed |
index.js | changed |
package.json | changed |
README.md | |||
---|---|---|---|
@@ -91,8 +91,16 @@ | |||
91 | 91 … | ``` | |
92 | 92 … | ||
93 | 93 … | - `mergeable`: whether the pull request can be automatically merged | |
94 | 94 … | ||
95 … | +#### deinit: async | ||
96 … | + | ||
97 … | +Deinit `pulls`. Closes all live streams. | ||
98 … | + | ||
99 … | +```js | ||
100 … | +pulls.deinit(cb) | ||
101 … | +``` | ||
102 … | + | ||
95 | 103 … | ## Schemas | |
96 | 104 … | ||
97 | 105 … | ```js | |
98 | 106 … | var prSchemas = Pulls.schemas |
index.js | ||
---|---|---|
@@ -112,8 +112,9 @@ | ||
112 | 112 … | ) |
113 | 113 … | } |
114 | 114 … | |
115 | 115 … | return { |
116 … | + deinit: issues.deinit, | |
116 | 117 … | get: getPullReq, |
117 | 118 … | getRevs: getRevs, |
118 | 119 … | list: listPullReqs |
119 | 120 … | } |
package.json | ||
---|---|---|
@@ -6,9 +6,9 @@ | ||
6 | 6 … | "homepage": "http://git-ssb.celehner.com/%254aw2wDMB07FH03P6EAHT1Q5x4TZ8mRS7j9%2FOLAcj%2FNw%3D.sha256", |
7 | 7 … | "bugs": "http://git-ssb.celehner.com/%254aw2wDMB07FH03P6EAHT1Q5x4TZ8mRS7j9%2FOLAcj%2FNw%3D.sha256/issues", |
8 | 8 … | "dependencies": { |
9 | 9 … | "asyncmemo": "^0.1.0", |
10 | - "ssb-issues": "^0.2.0", | |
10 … | + "ssb-issues": "^0.2.1", | |
11 | 11 … | "pull-paramap": "^1.1.2", |
12 | 12 … | "pull-stream": "^3.2.0", |
13 | 13 … | "ssb-ref": "^2.3.0" |
14 | 14 … | }, |
Built with git-ssb-web