bitbucket-repository-provider 6.0.18 → 6.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +8 -7
- package/types/bitbucket-branch.d.mts +29 -10
package/README.md
CHANGED
|
@@ -263,8 +263,12 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
263
263
|
|
|
264
264
|
### update
|
|
265
265
|
|
|
266
|
+
* **See**: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put>
|
|
267
|
+
|
|
266
268
|
### initializeHooks
|
|
267
269
|
|
|
270
|
+
* **See**: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-get>
|
|
271
|
+
|
|
268
272
|
### initializeBranches
|
|
269
273
|
|
|
270
274
|
<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-group-refs>
|
|
@@ -280,7 +284,7 @@ Create a new branch
|
|
|
280
284
|
* `from` **[BitbucketBranch](#bitbucketbranch)** (optional, default `this.defaultBranch`)
|
|
281
285
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
282
286
|
|
|
283
|
-
* `options.message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
287
|
+
* `options.message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
284
288
|
|
|
285
289
|
### deleteBranch
|
|
286
290
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitbucket-repository-provider",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -24,30 +24,31 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "BSD-2-Clause",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"prepare": "
|
|
27
|
+
"prepare": "npm run prepare:typescript",
|
|
28
|
+
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
28
29
|
"test": "npm run test:ava",
|
|
29
30
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
30
31
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
31
32
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
32
|
-
"lint": "npm run lint:docs && npm run lint:
|
|
33
|
+
"lint": "npm run lint:docs && npm run lint:typescript",
|
|
33
34
|
"lint:docs": "documentation lint ./src/**/*.mjs",
|
|
34
|
-
"lint:
|
|
35
|
+
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"content-entry": "^
|
|
38
|
+
"content-entry": "^10.0.1",
|
|
38
39
|
"fetch-rate-limit-util": "^4.2.2",
|
|
39
40
|
"matching-iterator": "^2.1.3",
|
|
40
41
|
"one-time-execution-method": "^3.1.1",
|
|
41
42
|
"repository-provider": "^35.2.15"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^20.11.
|
|
45
|
+
"@types/node": "^20.11.25",
|
|
45
46
|
"ava": "^6.1.2",
|
|
46
47
|
"c8": "^9.1.0",
|
|
47
48
|
"documentation": "^14.0.3",
|
|
48
49
|
"repository-provider-test-support": "^3.1.4",
|
|
49
50
|
"semantic-release": "^23.0.2",
|
|
50
|
-
"typescript": "^5.
|
|
51
|
+
"typescript": "^5.4.2"
|
|
51
52
|
},
|
|
52
53
|
"engines": {
|
|
53
54
|
"node": ">=20.11.1"
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
export class BitbucketBranch extends Branch {
|
|
5
5
|
initialize(): Promise<void>;
|
|
6
6
|
hash: any;
|
|
7
|
+
/**
|
|
8
|
+
* {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/src/%7Bnode%7D/%7Bpath%7D}
|
|
9
|
+
* @param {string} name
|
|
10
|
+
* @return {Promise<ContentEntry>}
|
|
11
|
+
*/
|
|
12
|
+
entry(name: string): Promise<ContentEntry>;
|
|
7
13
|
/**
|
|
8
14
|
*
|
|
9
15
|
* @param patterns
|
|
@@ -25,22 +31,35 @@ export class BitbucketBranch extends Branch {
|
|
|
25
31
|
get entryClass(): typeof BufferContentEntry;
|
|
26
32
|
}
|
|
27
33
|
import { Branch } from "repository-provider";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
import { ContentEntry } from "content-entry";
|
|
35
|
+
declare const LazyBufferContentEntry_base: new (name: string) => {
|
|
36
|
+
readonly string: string;
|
|
37
|
+
readonly readStream: ReadableStream<any>;
|
|
38
|
+
readonly isEmpty: boolean;
|
|
39
|
+
readonly size: number;
|
|
40
|
+
getReadStream(): Promise<ReadableStream<any>>;
|
|
41
|
+
readonly isBlob: boolean;
|
|
42
|
+
readonly types: string[];
|
|
43
|
+
readonly buffer: Uint8Array;
|
|
44
|
+
readonly encoding: string;
|
|
45
|
+
equalsContent(other: ContentEntry): Promise<boolean>;
|
|
46
|
+
name: string;
|
|
47
|
+
readonly isCollection: boolean;
|
|
48
|
+
readonly mode: number;
|
|
49
|
+
readonly mtime: Date;
|
|
50
|
+
readonly isDeleted: boolean;
|
|
51
|
+
readonly isExistent: boolean;
|
|
52
|
+
toJSON(): {
|
|
53
|
+
name: string;
|
|
54
|
+
isBlob: boolean;
|
|
55
|
+
isCollection: boolean;
|
|
36
56
|
};
|
|
37
|
-
|
|
57
|
+
equals(other: import("content-entry").BaseEntry): Promise<boolean>;
|
|
38
58
|
};
|
|
39
59
|
declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
|
|
40
60
|
constructor(name: any, branch: any);
|
|
41
61
|
get buffer(): Promise<Buffer>;
|
|
42
62
|
_buffer(): Promise<Buffer>;
|
|
43
63
|
}
|
|
44
|
-
import { ContentEntry } from "content-entry";
|
|
45
64
|
import { BufferContentEntry } from "content-entry";
|
|
46
65
|
export {};
|