
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
bitbucketapi
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
High CVE
#node-bitbucket
Simple api wrapper for calling the bitbucket api
Returns promises.
If the token fails with a 401 it will throw a boom error w/ code 511 So that end-clients receiving errors can differentiate between 401s from your app and 401s from your own api
If you give it a client_id
, client_secret
, and refresh_token
it will
attempt to use those to get a new token
if the current one is found to
be expired. If this happens the instance variable token_refreshed
will be set to true, so you can test against that to see if the code
that is using this module needs to update its own state.
###examples
const BitBucketApi = require('bitbucketapi');
const bitbucket = new BitbucketApi({
token: 'required oauth token'
refresh_token: `optional refresh token`,
client_id: 'optional client_id',
client_secret: 'optional client secret',
token_refresh_function: function (new_token) {
// If defined, this function will be called with the value of a new token if one is generated
// You can use it to update your local state if you need.
}
});
return bitbucket.apiCall({ path: '/user' });
const BitBucketApi = require('bitbucketapi');
const bitbucket = new BitbucketApi({
token: 'oauth token'
});
return bitbucket.apiCall({ path: `/repositories/cool_user`, query: { role: 'member' } }).then((repos) => {
if (bitbucket.hasNextPage(repos) {
return bitbucket.apiCall({ next: repos.next }).then((nextRepos) {
return repos.values.concat(nextRepos.values);
}
}
//bitbucket.token_refreshed will be true here if a new token was retrieved
return repos.value;
});
FAQs
Simple api wrapper for calling the bitbucket api
The npm package bitbucketapi receives a total of 0 weekly downloads. As such, bitbucketapi popularity was classified as not popular.
We found that bitbucketapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.