github-repository-provider 7.33.7 → 7.33.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": "github-repository-provider",
3
- "version": "7.33.7",
3
+ "version": "7.33.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "matching-iterator": "^2.0.10",
37
37
  "node-fetch": "^3.3.0",
38
38
  "one-time-execution-method": "^3.0.5",
39
- "repository-provider": "^32.2.1"
39
+ "repository-provider": "^32.3.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^5.1.0",
@@ -45,11 +45,11 @@
45
45
  "etag-cache-leveldb": "^1.3.0",
46
46
  "leveldown": "^6.1.1",
47
47
  "levelup": "^5.1.1",
48
- "repository-provider-test-support": "^2.2.19",
48
+ "repository-provider-test-support": "^2.2.21",
49
49
  "semantic-release": "^19.0.5"
50
50
  },
51
51
  "engines": {
52
- "node": ">=16.18.0"
52
+ "node": ">=16.18.1"
53
53
  },
54
54
  "repository": {
55
55
  "type": "git",
@@ -99,6 +99,7 @@ export class GithubProvider extends MultiGroupProvider {
99
99
  return stateActionHandler(fetch, new URL(url, this.api), {
100
100
  ...options,
101
101
  headers: {
102
+ accept: "application/vnd.github+json",
102
103
  authorization: `token ${this.authentication.token}`,
103
104
  ...options.headers
104
105
  }
@@ -120,12 +121,12 @@ export class GithubProvider extends MultiGroupProvider {
120
121
  try {
121
122
  for (let page = 1; ; page++) {
122
123
  const url = `user/repos?page=${page}&per_page=100`;
123
- const { response, json } = await this.fetchJSON(url, {
124
+ const { json } = await this.fetchJSON(url, /*{
124
125
  headers: {
125
- accept: "application/vnd.github.baptiste-preview+json"
126
- // accept: "application/vnd.github.v3+json"
126
+ //accept: "application/vnd.github.baptiste-preview+json"
127
+ accept: "application/vnd.github+json"
127
128
  }
128
- });
129
+ }*/);
129
130
 
130
131
  if (json.length === 0 || !Array.isArray(json)) {
131
132
  break;