github-repository-provider 7.27.1 → 7.28.0

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.27.1",
3
+ "version": "7.28.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,11 +32,11 @@
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.2",
35
+ "fetch-rate-limit-util": "^2.10.3",
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.2"
39
+ "repository-provider": "^29.2.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^4.2.0",
@@ -39,6 +39,9 @@ export class GithubRepository extends Repository {
39
39
  };
40
40
  }
41
41
 
42
+ /**
43
+ * @return {string} "main"
44
+ */
42
45
  get defaultBranchName() {
43
46
  return "main";
44
47
  }
@@ -117,11 +120,10 @@ export class GithubRepository extends Repository {
117
120
  * API endpoint for ourselfs.
118
121
  * @return {string}
119
122
  */
120
- get api()
121
- {
122
- return `repos/${this.slug}`;
123
+ get api() {
124
+ return `repos/${this.slug}`;
123
125
  }
124
-
126
+
125
127
  /**
126
128
  * {@link https://developer.github.com/v3/repos/#update-a-repository}
127
129
  */
@@ -137,7 +139,6 @@ export class GithubRepository extends Repository {
137
139
  });
138
140
  }
139
141
 
140
-
141
142
  #ref;
142
143
 
143
144
  /**
@@ -177,7 +178,7 @@ export class GithubRepository extends Repository {
177
178
 
178
179
  async createBranch(name, from, options) {
179
180
  await this.initializeBranches();
180
-
181
+
181
182
  const branch = await this.branch(name);
182
183
  if (branch) {
183
184
  return branch;
@@ -189,8 +190,7 @@ export class GithubRepository extends Repository {
189
190
  sha = await this.refId(
190
191
  `heads/${from ? from.name : this.defaultBranchName}`
191
192
  );
192
- }
193
- else {
193
+ } else {
194
194
  /*
195
195
  * https://stackoverflow.com/questions/9765453/is-gits-semi-secret-empty-tree-object-reliable-and-why-is-there-not-a-symbolic/9766506#9766506
196
196
  * sha1:4b825dc642cb6eb9a060e54bf8d69288fbee4904
@@ -270,6 +270,7 @@ export class GithubRepository extends Repository {
270
270
  next = getHeaderLink(response.headers);
271
271
  } while (next);
272
272
  }
273
+
273
274
  }
274
275
 
275
276
  replaceWithOneTimeExecutionMethod(