MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

Readme has an invalid example #63

Closed ItamarM closed 4 years ago

ItamarM commented 4 years ago

See here

bitbucket.repositories
  .list({ username: 'MunifTanjim' })
  .then(({ data }) => console.log(data.values))
  .catch((err) => console.error(err))

I think that you meant listGlobal

MunifTanjim commented 4 years ago

Yeah, it's invalid for the current version. The username should be workspace.

ItamarM commented 4 years ago

@MunifTanjim thanks. Do you want me to close this issue and wait for a stable version? I saw many breaking changes and wondered if it is WIP.

MunifTanjim commented 4 years ago

Do you want me to close this issue?

let's keep it open until the README file is fixed.

wait for a stable version? I saw many breaking changes and wondered if it is WIP.

this is a stable version and the documentation is available at https://bitbucketjs.netlify.app