github-repository-provider 7.33.42 → 7.33.43

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.33.42",
3
+ "version": "7.33.43",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,7 +45,7 @@
45
45
  "leveldown": "^6.1.1",
46
46
  "levelup": "^5.1.1",
47
47
  "repository-provider-test-support": "^2.2.36",
48
- "semantic-release": "^20.0.3"
48
+ "semantic-release": "^20.1.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=16.19.0"
@@ -16,10 +16,10 @@ export class GithubOwner extends RepositoryGroup {
16
16
  };
17
17
  }
18
18
 
19
- get reposApi() {
19
+ get api() {
20
20
  return this.type === "Organization"
21
- ? `orgs/${this.name}/repos`
22
- : "user/repos";
21
+ ? `orgs/${this.name}`
22
+ : "user";
23
23
  }
24
24
 
25
25
  /**
@@ -29,7 +29,7 @@ export class GithubOwner extends RepositoryGroup {
29
29
  * @return {Repository} newly created repository
30
30
  */
31
31
  async createRepository(name, options = {}) {
32
- const response = await this.provider.fetch(this.reposApi, {
32
+ const response = await this.provider.fetch(`${this.api}/repos`, {
33
33
  method: "POST",
34
34
  headers: {
35
35
  accept: "application/vnd.github.nebula-preview+json"