github-repository-provider 8.0.1 → 8.0.3

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": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,8 +31,9 @@
31
31
  "dependencies": {
32
32
  "content-entry": "^6.0.0",
33
33
  "fetch-link-util": "^1.0.14",
34
- "fetch-rate-limit-util": "^3.1.7",
34
+ "fetch-rate-limit-util": "^3.1.8",
35
35
  "matching-iterator": "^2.0.11",
36
+ "node-fetch": "^3.3.0",
36
37
  "one-time-execution-method": "^3.0.6",
37
38
  "repository-provider": "^32.6.9"
38
39
  },
@@ -43,7 +44,7 @@
43
44
  "etag-cache-leveldb": "^1.4.1",
44
45
  "leveldown": "^6.1.1",
45
46
  "levelup": "^5.1.1",
46
- "repository-provider-test-support": "^2.2.38",
47
+ "repository-provider-test-support": "^2.3.0",
47
48
  "semantic-release": "^20.1.1"
48
49
  },
49
50
  "engines": {
@@ -1,3 +1,4 @@
1
+ import fetch from "node-fetch";
1
2
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
3
  import { stateActionHandler } from "fetch-rate-limit-util";
3
4
  import { BufferContentEntry } from "content-entry";
@@ -108,6 +109,10 @@ export class GithubProvider extends MultiGroupProvider {
108
109
 
109
110
  fetchJSON(url, options={}) {
110
111
  options.postprocess = async response => {
112
+ if(!response.ok) {
113
+ console.log("failed",url, response.status);
114
+ }
115
+
111
116
  return { response, json: await response.json() };
112
117
  };
113
118