github-repository-provider 8.0.20 → 8.0.22

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.20",
3
+ "version": "8.0.22",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,20 +34,20 @@
34
34
  "fetch-rate-limit-util": "^4.0.3",
35
35
  "matching-iterator": "^2.0.12",
36
36
  "one-time-execution-method": "^3.0.6",
37
- "repository-provider": "^32.7.21"
37
+ "repository-provider": "^32.7.29"
38
38
  },
39
39
  "devDependencies": {
40
- "ava": "^5.3.0",
41
- "c8": "^7.14.0",
40
+ "ava": "^5.3.1",
41
+ "c8": "^8.0.1",
42
42
  "documentation": "^14.0.2",
43
43
  "etag-cache-leveldb": "^2.0.3",
44
44
  "leveldown": "^6.1.1",
45
45
  "levelup": "^5.1.1",
46
- "repository-provider-test-support": "^2.3.8",
47
- "semantic-release": "^21.0.5"
46
+ "repository-provider-test-support": "^2.4.2",
47
+ "semantic-release": "^21.0.7"
48
48
  },
49
49
  "engines": {
50
- "node": ">=18.16.0"
50
+ "node": ">=18.17.0"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
@@ -29,7 +29,6 @@ export class GithubRepository extends Repository {
29
29
  ...super.attributeMapping,
30
30
  disabled: "isDisabled",
31
31
  archived: "isArchived",
32
-
33
32
  is_template: "isTemplate",
34
33
  private: "isPrivate",
35
34
  fork: "isFork",
@@ -41,7 +40,6 @@ export class GithubRepository extends Repository {
41
40
  static get attributes() {
42
41
  return {
43
42
  ...super.attributes,
44
- isLocked: boolean_attribute,
45
43
  auto_init: boolean_attribute,
46
44
  size: size_attribute,
47
45
  language: language_attribute,
@@ -225,7 +223,7 @@ export class GithubRepository extends Repository {
225
223
  }
226
224
 
227
225
  /**
228
- * {@link https://developer.github.com/v3/repos/#update-a-repository}
226
+ * {@link https://docs.github.com/de/rest/repos/repos?apiVersion=2022-11-28#update-a-repository}
229
227
  */
230
228
  async update() {
231
229
  return this.provider.fetch(this.api, {
@@ -259,7 +257,13 @@ export class GithubRepository extends Repository {
259
257
  );
260
258
  // TODO why does this happen ?
261
259
  if (!response.ok || !json.object.sha) {
262
- throw new Error(`No refId for '${this.fullName}' '${ref}'`);
260
+ let message = `No refId for '${this.fullName}' '${ref}'`;
261
+
262
+ if(!response.ok) {
263
+ message += ',' + response.statusText + " (" + response.status + ")";
264
+ }
265
+
266
+ throw new Error(message);
263
267
  }
264
268
 
265
269
  sha = json.object.sha;