bitbucket-repository-provider 6.0.32 → 6.1.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitbucket-repository-provider",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"content-entry": "^13.0
|
|
38
|
+
"content-entry": "^13.3.0",
|
|
39
39
|
"fetch-rate-limit-util": "^4.5.2",
|
|
40
40
|
"matching-iterator": "^2.1.3",
|
|
41
|
-
"one-time-execution-method": "^3.1.
|
|
42
|
-
"repository-provider": "^35.3.
|
|
41
|
+
"one-time-execution-method": "^3.1.3",
|
|
42
|
+
"repository-provider": "^35.3.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "^22.15.
|
|
45
|
+
"@types/node": "^22.15.16",
|
|
46
46
|
"ava": "^6.3.0",
|
|
47
47
|
"c8": "^10.1.3",
|
|
48
48
|
"documentation": "^14.0.3",
|
|
49
|
-
"repository-provider-test-support": "^3.1.
|
|
49
|
+
"repository-provider-test-support": "^3.1.21",
|
|
50
50
|
"semantic-release": "^24.2.3",
|
|
51
51
|
"typescript": "^5.8.3"
|
|
52
52
|
},
|
package/src/bitbucket-branch.mjs
CHANGED
|
@@ -55,7 +55,7 @@ export class BitbucketBranch extends Branch {
|
|
|
55
55
|
`repositories/${this.slug}/src/${this.hash}/${name}`
|
|
56
56
|
);
|
|
57
57
|
if (res.ok) {
|
|
58
|
-
return new
|
|
58
|
+
return new BufferContentEntry(name, undefined, Buffer.from(await res.arrayBuffer()));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -73,7 +73,7 @@ export class BitbucketBranch extends Branch {
|
|
|
73
73
|
for (const entry of matcher(json.values, patterns, { name: "path" })) {
|
|
74
74
|
yield entry.type === "commit_directory"
|
|
75
75
|
? new CollectionEntry(entry.path)
|
|
76
|
-
: new LazyBufferContentEntry(entry.path, this);
|
|
76
|
+
: new LazyBufferContentEntry(entry.path, undefined, this);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -102,15 +102,11 @@ export class BitbucketBranch extends Branch {
|
|
|
102
102
|
body: searchParams
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
get entryClass() {
|
|
107
|
-
return BufferContentEntry;
|
|
108
|
-
}
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
class LazyBufferContentEntry extends BufferContentEntry {
|
|
112
|
-
constructor(name, branch) {
|
|
113
|
-
super(name);
|
|
108
|
+
constructor(name, options, branch) {
|
|
109
|
+
super(name, options);
|
|
114
110
|
this.branch = branch;
|
|
115
111
|
}
|
|
116
112
|
|
|
@@ -118,11 +114,10 @@ class LazyBufferContentEntry extends BufferContentEntry {
|
|
|
118
114
|
return this.getBuffer();
|
|
119
115
|
}
|
|
120
116
|
|
|
121
|
-
set buffer(value)
|
|
122
|
-
{
|
|
117
|
+
set buffer(value) {
|
|
123
118
|
this._buffer = value;
|
|
124
119
|
}
|
|
125
|
-
|
|
120
|
+
|
|
126
121
|
async getBuffer() {
|
|
127
122
|
const branch = this.branch;
|
|
128
123
|
|
|
@@ -17,12 +17,11 @@ export class BitbucketBranch extends Branch {
|
|
|
17
17
|
* @return {Promise}
|
|
18
18
|
*/
|
|
19
19
|
commit(message: string, updates: ContentEntry[], options?: any): Promise<any>;
|
|
20
|
-
get entryClass(): typeof BufferContentEntry;
|
|
21
20
|
}
|
|
22
21
|
import { Branch } from "repository-provider";
|
|
23
22
|
import { CollectionEntry } from "content-entry";
|
|
24
23
|
declare class LazyBufferContentEntry extends BufferContentEntry {
|
|
25
|
-
constructor(name: any, branch: any);
|
|
24
|
+
constructor(name: any, options: any, branch: any);
|
|
26
25
|
branch: any;
|
|
27
26
|
set buffer(value: Promise<Buffer<any>>);
|
|
28
27
|
get buffer(): Promise<Buffer<any>>;
|