Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@sleavely/bitbucket
Advanced tools
API client and collection of common utility methods for managing Bitbucket Cloud via their REST API.
npm install @sleavely/bitbucket
import { BitbucketClient } from '@sleavely/bitbucket'
const bitbucket = new BitbucketClient({
auth: {
username: 'foobar',
password: 'secret', // Create an app password: https://bitbucket.org/account/settings/app-passwords/
},
})
console.log(await bitbucket.getCurrentUser())
The initial types were handcrafted according to the Bitbucket Cloud REST API reference which in turn are likely autogenerated from their OpenAPI schema. Unfortunately their schema in many cases differs from reality, so discrepancies will occur from time to time. Let me know in an issue (or pull request) and I'll do my best to amend it.
I've only added utility methods for things I've personally needed in the past, but I'd be happy to add more. In the meantime the public client
property acts as an escape hatch to the got
instance:
// List branches and tags without the need for helper utils.
await bitbucket.client('/repositories/{workspace}/{repo_slug}/refs')
.json<unknown>()
// or simply `.json()`
FAQs
Client and utils for Bitbucket Cloud REST APIs
The npm package @sleavely/bitbucket receives a total of 1 weekly downloads. As such, @sleavely/bitbucket popularity was classified as not popular.
We found that @sleavely/bitbucket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.