Skip to content

Commit 3c4ab02

Browse files
committedNov 29, 2017
breaking: remove .get{Scope name}Api() methods
BREAKING CHANGE: `.get{Scope name}Api()` methods have been removed. Before you could do this ```js const reposApi = github.getReposApi() ``` Which is the same as doing ```js const reposApi = github.repos ``` So we removed it :)
1 parent 1956da2 commit 3c4ab02

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎lib/index.js

-5
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,6 @@ var Client = module.exports = function (config) {
231231

232232
if (!self[section]) {
233233
self[section] = {}
234-
// add a utility function 'getFooApi()', which returns the
235-
// section to which functions are attached.
236-
self[toCamelCase('get-' + section + '-api')] = function () {
237-
return self[section]
238-
}
239234
}
240235

241236
self[section][funcName] = function (msg, callback) {

0 commit comments

Comments
 (0)
Please sign in to comment.