github-repository-provider 7.29.3 → 7.29.6

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.29.3",
3
+ "version": "7.29.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
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": "^30.3.4"
39
+ "repository-provider": "^31.1.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^4.2.0",
@@ -10,11 +10,6 @@ import {
10
10
  * Branch on GitHub.
11
11
  */
12
12
  export class GithubBranch extends Branch {
13
-
14
- get api()
15
- {
16
- return this.repository.api;
17
- }
18
13
 
19
14
  /**
20
15
  * Writes content into the branch
@@ -13,6 +13,13 @@ export class GithubPullRequest extends PullRequest {
13
13
  return new Set(["MERGE", "SQUASH", "REBASE"]);
14
14
  }
15
15
 
16
+ static get attributeMapping() {
17
+ return {
18
+ ...super.attributeMapping,
19
+ url: "api"
20
+ };
21
+ }
22
+
16
23
  static get attributes() {
17
24
  return {
18
25
  ...super.attributes,
@@ -19,7 +19,8 @@ export class GithubRepository extends Repository {
19
19
  is_template: "isTemplate",
20
20
  private: "isPrivate",
21
21
  fork: "isFork",
22
- default_branch: "defaultBranchName"
22
+ default_branch: "defaultBranchName",
23
+ url: "api"
23
24
  };
24
25
  }
25
26
 
@@ -94,10 +95,10 @@ export class GithubRepository extends Repository {
94
95
  }
95
96
 
96
97
  /**
97
- * @return {string[]} github https url
98
+ * @return {string} github https url
98
99
  */
99
- get urls() {
100
- return [`${this.provider.url}${this.fullName}.git`];
100
+ get url() {
101
+ return `${this.provider.url}${this.fullName}.git`;
101
102
  }
102
103
 
103
104
  /**