File tree Expand file tree Collapse file tree 7 files changed +23
-9
lines changed Expand file tree Collapse file tree 7 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ pnpm i @coderabbitai/bitbucket
1818### Cloud
1919
2020``` ts
21- import { createBitbucketCloudClient , toBase64 } from " @coderabbitai/bitbucket"
21+ import { createBitbucketCloudClient } from " @coderabbitai/bitbucket/cloud"
22+ import { toBase64 } from " @coderabbitai/bitbucket"
2223import {
2324BITBUCKET_CLOUD_APP_PASSWORD ,
2425BITBUCKET_CLOUD_URL ,
@@ -38,7 +39,7 @@ const client = createBitbucketCloudClient({
3839### Server
3940
4041``` ts
41- import { createBitbucketServerClient } from " @coderabbitai/bitbucket"
42+ import { createBitbucketServerClient } from " @coderabbitai/bitbucket/server "
4243import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from " ./env.js"
4344
4445const server = createBitbucketServerClient ({
Original file line number Diff line number Diff line change 7373"." : {
7474"types" : " ./dist/index.d.ts" ,
7575"default" : " ./dist/index.js"
76+ },
77+ "./cloud" : {
78+ "types" : " ./dist/cloud/index.d.ts" ,
79+ "default" : " ./dist/cloud/index.js"
80+ },
81+ "./server" : {
82+ "types" : " ./dist/server/index.d.ts" ,
83+ "default" : " ./dist/server/index.js"
7684}
7785},
7886"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11export * from "./client.js"
2- export type * as cloud from "./openapi/index.js"
2+ export type * from "./openapi/index.js"
Original file line number Diff line number Diff line change 11export * from "./base64.js"
2- export * from "./cloud/index.js"
3- export * from "./server/index.js"
2+ export * as cloud from "./cloud/index.js"
3+ export * as server from "./server/index.js"
Original file line number Diff line number Diff line change 1- import { createBitbucketCloudClient , toBase64 } from "../../src/index.js"
1+ import { createBitbucketCloudClient } from "../../src/cloud/index.js"
2+ import { toBase64 } from "../../src/index.js"
23import {
34BITBUCKET_CLOUD_APP_PASSWORD ,
45BITBUCKET_CLOUD_URL ,
56BITBUCKET_CLOUD_USERNAME ,
67} from "../env.js"
78
89const basic = toBase64 (
9- BITBUCKET_CLOUD_USERNAME + ":" + BITBUCKET_CLOUD_APP_PASSWORD ,
10+ ` ${ BITBUCKET_CLOUD_USERNAME } : ${ BITBUCKET_CLOUD_APP_PASSWORD } ` ,
1011)
1112
1213export const client = createBitbucketCloudClient ( {
Original file line number Diff line number Diff line change 1- import { createBitbucketServerClient } from "../../src/index.js"
1+ import { createBitbucketServerClient } from "../../src/server/ index.js"
22import { BITBUCKET_SERVER_TOKEN , BITBUCKET_SERVER_URL } from "../env.js"
33
44export const client = createBitbucketServerClient ( {
Original file line number Diff line number Diff line change 11{
22"$schema" : " https://typedoc.org/schema.json" ,
3- "entryPoints" : [" ./src/index.ts" ],
3+ "entryPoints" : [
4+ " ./src/index.ts" ,
5+ " ./src/cloud/index.ts" ,
6+ " ./src/server/index.ts"
7+ ],
48"highlightLanguages" : [" ini" , " sh" , " ts" ]
59}
You canβt perform that action at this time.
0 commit comments