bitbucket-repository-provider 3.9.4 → 3.9.9
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": "3.9.
|
|
3
|
+
"version": "3.9.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"content-entry": "^2.
|
|
33
|
+
"content-entry": "^2.9.4",
|
|
34
34
|
"matching-iterator": "^2.0.0",
|
|
35
|
-
"node-fetch": "^3.
|
|
35
|
+
"node-fetch": "^3.1.0",
|
|
36
36
|
"one-time-execution-method": "^2.0.9",
|
|
37
|
-
"repository-provider": "^25.5.
|
|
37
|
+
"repository-provider": "^25.5.9"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"ava": "^3.15.0",
|
|
41
41
|
"c8": "^7.10.0",
|
|
42
42
|
"documentation": "^13.2.5",
|
|
43
|
-
"repository-provider-test-support": "^1.
|
|
43
|
+
"repository-provider-test-support": "^1.8.3",
|
|
44
44
|
"semantic-release": "^18.0.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=14.
|
|
47
|
+
"node": ">=14.18.1"
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
package/src/bitbucket-branch.mjs
CHANGED
|
@@ -75,7 +75,7 @@ export class BitbucketBranch extends Branch {
|
|
|
75
75
|
//searchParams.set("parents", XXX);
|
|
76
76
|
|
|
77
77
|
for (const u of updates) {
|
|
78
|
-
searchParams.set(u.name, await u.
|
|
78
|
+
searchParams.set(u.name, await u.string);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
return this.fetch(`repositories/${this.slug}/src`, {
|
|
@@ -100,6 +100,11 @@ class LazyBufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
get buffer()
|
|
104
|
+
{
|
|
105
|
+
return this.getBuffer();
|
|
106
|
+
}
|
|
107
|
+
|
|
103
108
|
async getBuffer() {
|
|
104
109
|
const branch = this.branch;
|
|
105
110
|
|
|
@@ -123,6 +123,6 @@ export class BitbucketPullRequest extends PullRequest {
|
|
|
123
123
|
|
|
124
124
|
get url()
|
|
125
125
|
{
|
|
126
|
-
return `${this.provider.url}/${
|
|
126
|
+
return `${this.provider.url}/${this.destination.slug}pull-requests/${this.name}`;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -107,7 +107,11 @@ export class BitbucketRepository extends Repository {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
|
|
111
|
+
if(!res.ok) {
|
|
112
|
+
// TODO handle error
|
|
113
|
+
console.log(res.ok, res.status, res.statusText);
|
|
114
|
+
}
|
|
111
115
|
|
|
112
116
|
const json = await res.json();
|
|
113
117
|
|