github-repository-provider 8.0.3 → 8.0.5

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.3",
3
+ "version": "8.0.5",
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.8",
34
+ "fetch-rate-limit-util": "^4.0.1",
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,7 +40,7 @@
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
46
  "repository-provider-test-support": "^2.3.0",
@@ -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() {
@@ -96,8 +95,8 @@ export class GithubProvider extends MultiGroupProvider {
96
95
  options.reporter = (url, ...args) => this.trace(url.toString(), ...args);
97
96
  options.cache = this.cache;
98
97
  options.agent = this.agent;
99
-
100
- return stateActionHandler(fetch, new URL(url, this.api), {
98
+
99
+ return stateActionHandler(new URL(url, this.api), {
101
100
  ...options,
102
101
  headers: {
103
102
  accept: "application/vnd.github+json",