github-repository-provider 7.28.0 → 7.29.1

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/README.md CHANGED
@@ -68,6 +68,7 @@ console.log(entry.name);
68
68
  * [open](#open)
69
69
  * [Parameters](#parameters-10)
70
70
  * [GithubRepository](#githubrepository)
71
+ * [defaultBranchName](#defaultbranchname)
71
72
  * [commits](#commits)
72
73
  * [Parameters](#parameters-11)
73
74
  * [initializeBranches](#initializebranches)
@@ -75,6 +76,7 @@ console.log(entry.name);
75
76
  * [urls](#urls)
76
77
  * [issuesURL](#issuesurl)
77
78
  * [homePageURL](#homepageurl)
79
+ * [api](#api)
78
80
  * [update](#update-1)
79
81
  * [refId](#refid)
80
82
  * [Parameters](#parameters-12)
@@ -280,6 +282,10 @@ Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
280
282
 
281
283
  Repository on GitHub.
282
284
 
285
+ ### defaultBranchName
286
+
287
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** "main"
288
+
283
289
  ### commits
284
290
 
285
291
  <https://docs.github.com/en/rest/reference/commits#list-commits>
@@ -314,6 +320,12 @@ Deliver the url of the repositories home page.
314
320
 
315
321
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
316
322
 
323
+ ### api
324
+
325
+ API endpoint for ourselfs.
326
+
327
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
328
+
317
329
  ### update
318
330
 
319
331
  <https://developer.github.com/v3/repos/#update-a-repository>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-repository-provider",
3
- "version": "7.28.0",
3
+ "version": "7.29.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,17 +32,17 @@
32
32
  "dependencies": {
33
33
  "content-entry": "^5.0.1",
34
34
  "fetch-link-util": "^1.0.8",
35
- "fetch-rate-limit-util": "^2.10.3",
35
+ "fetch-rate-limit-util": "^3.0.2",
36
36
  "matching-iterator": "^2.0.4",
37
37
  "node-fetch": "^3.2.4",
38
38
  "one-time-execution-method": "^3.0.1",
39
- "repository-provider": "^29.2.3"
39
+ "repository-provider": "^30.3.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^4.2.0",
43
43
  "c8": "^7.11.3",
44
44
  "documentation": "^13.2.5",
45
- "repository-provider-test-support": "^2.1.19",
45
+ "repository-provider-test-support": "^2.1.23",
46
46
  "semantic-release": "^19.0.2"
47
47
  },
48
48
  "engines": {
@@ -262,7 +262,7 @@ export class GithubRepository extends Repository {
262
262
  const { response, json } = await this.provider.fetchJSON(next);
263
263
 
264
264
  for (const h of json) {
265
- new this.hookClass(this, h.name, new Set(h.events), {
265
+ this.addHook(h.name, {
266
266
  ...h,
267
267
  ...h.config
268
268
  });
@@ -270,7 +270,6 @@ export class GithubRepository extends Repository {
270
270
  next = getHeaderLink(response.headers);
271
271
  } while (next);
272
272
  }
273
-
274
273
  }
275
274
 
276
275
  replaceWithOneTimeExecutionMethod(