Skip to content

Commit

Permalink
breaking: remove .get{Scope name}Api() methods
Browse files Browse the repository at this point in the history
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 :)
  • Loading branch information
gr2m committed Nov 29, 2017
1 parent 1956da2 commit 3c4ab02
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/index.js
Expand Up @@ -231,11 +231,6 @@ var Client = module.exports = function (config) {

if (!self[section]) {
self[section] = {}
// add a utility function 'getFooApi()', which returns the
// section to which functions are attached.
self[toCamelCase('get-' + section + '-api')] = function () {
return self[section]
}
}

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

0 comments on commit 3c4ab02

Please sign in to comment.