bitbucket-repository-provider 4.1.1 → 4.1.2

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": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -153,17 +153,19 @@ export class BitbucketProvider extends MultiGroupProvider {
153
153
  * {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories}
154
154
  */
155
155
  async initializeRepositories() {
156
- let next = "repositories/?role=contributor";
157
-
158
- do {
159
- const { json } = await this.fetchJSON(next);
160
-
161
- next = json.next;
162
- json.values.map(b => {
163
- const groupName = b.owner.nickname || b.owner.username;
164
- this.addRepositoryGroup(groupName, b.owner).addRepository(b.name, b);
165
- });
166
- } while (next);
156
+ try {
157
+ let next = "repositories/?role=contributor";
158
+
159
+ do {
160
+ const { json } = await this.fetchJSON(next);
161
+
162
+ next = json.next;
163
+ json.values.map(b => {
164
+ const groupName = b.owner.nickname || b.owner.username;
165
+ this.addRepositoryGroup(groupName, b.owner).addRepository(b.name, b);
166
+ });
167
+ } while (next);
168
+ } catch {}
167
169
  }
168
170
 
169
171
  fetch(url, options = {}, responseHandler) {