github-repository-provider 7.26.39 → 7.26.40

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": "github-repository-provider",
3
- "version": "7.26.39",
3
+ "version": "7.26.40",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -126,15 +126,14 @@ export class GithubProvider extends MultiGroupProvider {
126
126
  async initializeRepositories() {
127
127
  try {
128
128
  for (let page = 1; ; page++) {
129
- const { json } = await this.fetchJSON(
130
- `user/repos?page=${page}&per_page=100`,
131
- {
132
- headers: {
133
- accept: "application/vnd.github.baptiste-preview+json"
134
- // accept: "application/vnd.github.v3+json"
135
- }
129
+ const url = `user/repos?page=${page}&per_page=100`;
130
+ const { response, json } = await this.fetchJSON(url, {
131
+ headers: {
132
+ accept: "application/vnd.github.baptiste-preview+json"
133
+ // accept: "application/vnd.github.v3+json"
136
134
  }
137
- );
135
+ });
136
+
138
137
  if (json.length === 0 || !Array.isArray(json)) {
139
138
  break;
140
139
  }