github-repository-provider 8.0.2 → 8.0.4

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.2",
3
+ "version": "8.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,9 +31,8 @@
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.9",
35
35
  "matching-iterator": "^2.0.11",
36
- "node-fetch": "^3.3.0",
37
36
  "one-time-execution-method": "^3.0.6",
38
37
  "repository-provider": "^32.6.9"
39
38
  },
@@ -41,10 +40,10 @@
41
40
  "ava": "^5.2.0",
42
41
  "c8": "^7.13.0",
43
42
  "documentation": "^14.0.1",
44
- "etag-cache-leveldb": "^1.4.1",
43
+ "etag-cache-leveldb": "^1.4.2",
45
44
  "leveldown": "^6.1.1",
46
45
  "levelup": "^5.1.1",
47
- "repository-provider-test-support": "^2.2.38",
46
+ "repository-provider-test-support": "^2.3.0",
48
47
  "semantic-release": "^20.1.1"
49
48
  },
50
49
  "engines": {
@@ -1,4 +1,3 @@
1
- import fetch from "node-fetch";
2
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
3
2
  import { stateActionHandler } from "fetch-rate-limit-util";
4
3
  import { BufferContentEntry } from "content-entry";
@@ -43,7 +42,7 @@ export class GithubProvider extends MultiGroupProvider {
43
42
  * @return {string} default environment name prefix for the provider instance
44
43
  */
45
44
  static get instanceIdentifier() {
46
- return "GITHUB_"; // "GH_" "GH_ENTERPRISE_"
45
+ return "GITHUB_";
47
46
  }
48
47
 
49
48
  static get attributes() {
@@ -109,6 +108,10 @@ export class GithubProvider extends MultiGroupProvider {
109
108
 
110
109
  fetchJSON(url, options={}) {
111
110
  options.postprocess = async response => {
111
+ if(!response.ok) {
112
+ console.log("failed",url, response.status);
113
+ }
114
+
112
115
  return { response, json: await response.json() };
113
116
  };
114
117