bitbucket-repository-provider 4.1.7 → 4.1.8
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 +2 -2
- package/src/bitbucket-provider.mjs +15 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitbucket-repository-provider",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"content-entry": "^5.0.0",
|
|
34
|
-
"fetch-rate-limit-util": "^2.
|
|
34
|
+
"fetch-rate-limit-util": "^2.10.0",
|
|
35
35
|
"matching-iterator": "^2.0.4",
|
|
36
36
|
"node-fetch": "^3.2.4",
|
|
37
37
|
"one-time-execution-method": "^2.0.13",
|
|
@@ -136,12 +136,12 @@ export class BitbucketProvider extends MultiGroupProvider {
|
|
|
136
136
|
return BitbucketPullRequest;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
/**
|
|
140
140
|
* @return {Class} hook class used by the Provider
|
|
141
141
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
get hookClass() {
|
|
143
|
+
return BitbucketHook;
|
|
144
|
+
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* All possible base urls.
|
|
@@ -177,7 +177,7 @@ export class BitbucketProvider extends MultiGroupProvider {
|
|
|
177
177
|
} catch {}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
fetch(url, options = {}, responseHandler) {
|
|
180
|
+
fetch(url, options = {}, responseHandler, actions) {
|
|
181
181
|
let authorization;
|
|
182
182
|
|
|
183
183
|
if (this.authentication.username) {
|
|
@@ -211,15 +211,20 @@ export class BitbucketProvider extends MultiGroupProvider {
|
|
|
211
211
|
headers
|
|
212
212
|
},
|
|
213
213
|
responseHandler,
|
|
214
|
-
|
|
214
|
+
actions,
|
|
215
215
|
(url, ...args) => this.trace(url.toString(), ...args)
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
fetchJSON(url, options) {
|
|
220
|
-
return this.fetch(
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
fetchJSON(url, options, actions) {
|
|
220
|
+
return this.fetch(
|
|
221
|
+
url,
|
|
222
|
+
options,
|
|
223
|
+
async response => {
|
|
224
|
+
return { response, json: await response.json() };
|
|
225
|
+
},
|
|
226
|
+
actions
|
|
227
|
+
);
|
|
223
228
|
}
|
|
224
229
|
}
|
|
225
230
|
|