bitbucket-repository-provider 6.0.20 → 6.0.22
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
CHANGED
|
@@ -82,7 +82,7 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
82
82
|
|
|
83
83
|
#### Parameters
|
|
84
84
|
|
|
85
|
-
* `patterns`
|
|
85
|
+
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** 
|
|
86
86
|
|
|
87
87
|
### commit
|
|
88
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitbucket-repository-provider",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.22",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"content-entry": "^
|
|
39
|
-
"fetch-rate-limit-util": "^4.
|
|
38
|
+
"content-entry": "^11.0.1",
|
|
39
|
+
"fetch-rate-limit-util": "^4.3.1",
|
|
40
40
|
"matching-iterator": "^2.1.3",
|
|
41
41
|
"one-time-execution-method": "^3.1.1",
|
|
42
|
-
"repository-provider": "^35.2.
|
|
42
|
+
"repository-provider": "^35.2.19"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "^20.
|
|
46
|
-
"ava": "^6.1.
|
|
45
|
+
"@types/node": "^20.14.1",
|
|
46
|
+
"ava": "^6.1.3",
|
|
47
47
|
"c8": "^9.1.0",
|
|
48
48
|
"documentation": "^14.0.3",
|
|
49
|
-
"repository-provider-test-support": "^3.1.
|
|
50
|
-
"semantic-release": "^
|
|
51
|
-
"typescript": "^5.4.
|
|
49
|
+
"repository-provider-test-support": "^3.1.5",
|
|
50
|
+
"semantic-release": "^24.0.0",
|
|
51
|
+
"typescript": "^5.4.5"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": ">=20.
|
|
54
|
+
"node": ">=20.12.2"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
package/src/bitbucket-branch.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ContentEntry,
|
|
5
5
|
BufferContentEntry,
|
|
6
6
|
BufferContentEntryMixin,
|
|
7
|
-
|
|
7
|
+
CollectionEntry
|
|
8
8
|
} from "content-entry";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -62,7 +62,7 @@ export class BitbucketBranch extends Branch {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @param patterns
|
|
65
|
+
* @param {string[]|string} patterns
|
|
66
66
|
*/
|
|
67
67
|
async *entries(patterns) {
|
|
68
68
|
await this.initialize();
|
|
@@ -73,7 +73,7 @@ export class BitbucketBranch extends Branch {
|
|
|
73
73
|
|
|
74
74
|
for (const entry of matcher(json.values, patterns, { name: "path" })) {
|
|
75
75
|
yield entry.type === "commit_directory"
|
|
76
|
-
? new
|
|
76
|
+
? new CollectionEntry(entry.path)
|
|
77
77
|
: new LazyBufferContentEntry(entry.path, this);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -4,22 +4,11 @@
|
|
|
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>;
|
|
13
7
|
/**
|
|
14
8
|
*
|
|
15
|
-
* @param patterns
|
|
9
|
+
* @param {string[]|string} patterns
|
|
16
10
|
*/
|
|
17
|
-
entries(patterns:
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
readonly isCollection: boolean;
|
|
20
|
-
readonly types: string[];
|
|
21
|
-
readonly mode: number;
|
|
22
|
-
} | LazyBufferContentEntry, void, unknown>;
|
|
11
|
+
entries(patterns: string[] | string): AsyncGenerator<CollectionEntry | LazyBufferContentEntry, void, unknown>;
|
|
23
12
|
/**
|
|
24
13
|
* Commit entries
|
|
25
14
|
* @param {string} message commit message
|
|
@@ -31,7 +20,7 @@ export class BitbucketBranch extends Branch {
|
|
|
31
20
|
get entryClass(): typeof BufferContentEntry;
|
|
32
21
|
}
|
|
33
22
|
import { Branch } from "repository-provider";
|
|
34
|
-
import {
|
|
23
|
+
import { CollectionEntry } from "content-entry";
|
|
35
24
|
declare const LazyBufferContentEntry_base: new (name: string) => {
|
|
36
25
|
readonly string: string;
|
|
37
26
|
readonly readStream: ReadableStream<any>;
|
|
@@ -61,5 +50,6 @@ declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
|
|
|
61
50
|
get buffer(): Promise<Buffer>;
|
|
62
51
|
_buffer(): Promise<Buffer>;
|
|
63
52
|
}
|
|
53
|
+
import { ContentEntry } from "content-entry";
|
|
64
54
|
import { BufferContentEntry } from "content-entry";
|
|
65
55
|
export {};
|
|
@@ -35,8 +35,8 @@ export class BitbucketProvider extends MultiGroupProvider {
|
|
|
35
35
|
* {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories}
|
|
36
36
|
*/
|
|
37
37
|
initializeRepositories(): Promise<void>;
|
|
38
|
-
fetch(url: any, options?: {}):
|
|
39
|
-
fetchJSON(url: any, options?: {}):
|
|
38
|
+
fetch(url: any, options?: {}): Promise<Response>;
|
|
39
|
+
fetchJSON(url: any, options?: {}): Promise<Response>;
|
|
40
40
|
}
|
|
41
41
|
export default BitbucketProvider;
|
|
42
42
|
import { BitbucketBranch } from "./bitbucket-branch.mjs";
|
|
@@ -55,7 +55,7 @@ export class BitbucketRepository extends Repository {
|
|
|
55
55
|
description: import("pacc").AttributeDefinition;
|
|
56
56
|
};
|
|
57
57
|
static get attributMapping(): any;
|
|
58
|
-
get user():
|
|
58
|
+
get user(): string;
|
|
59
59
|
/**
|
|
60
60
|
* @see https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put
|
|
61
61
|
*/
|