repository-provider 30.3.4 → 31.1.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": "repository-provider",
3
- "version": "30.3.4",
3
+ "version": "31.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "ava": "^4.2.0",
37
37
  "c8": "^7.11.3",
38
38
  "documentation": "^13.2.5",
39
- "repository-provider-test-support": "^2.1.24",
39
+ "repository-provider-test-support": "^2.1.25",
40
40
  "semantic-release": "^19.0.2",
41
41
  "typescript": "^4.7.2"
42
42
  },
@@ -123,10 +123,14 @@ export class BaseObject {
123
123
  * Complete name in the hierachy.
124
124
  * @return {string}
125
125
  */
126
- get fullCondensedName() {
126
+ get fullCondensedName() {
127
127
  return this.fullName;
128
128
  }
129
129
 
130
+ get condensedName() {
131
+ return this.name;
132
+ }
133
+
130
134
  /**
131
135
  * Short human readable identifier with provider and branch.
132
136
  * @return {string}
@@ -160,6 +164,14 @@ export class BaseObject {
160
164
  return this.owner.provider;
161
165
  }
162
166
 
167
+ /**
168
+ * API as given by the owner.
169
+ * @return {string} url
170
+ */
171
+ get api() {
172
+ return this.owner.api;
173
+ }
174
+
163
175
  /**
164
176
  * Forwarded to the owner.
165
177
  * @param {...any} args
@@ -48,10 +48,10 @@ export class Repository extends OwnedObject {
48
48
  defaultBranchName: { type: "string", default: "master" },
49
49
 
50
50
  /**
51
- * URLs of the repository
52
- * @return {string[]}
51
+ * URL of the repository
52
+ * @return {string}
53
53
  */
54
- urls: {},
54
+ url: { type: "url" },
55
55
 
56
56
  cloneURL: { type: "url" },
57
57
 
@@ -134,22 +134,6 @@ export class Repository extends OwnedObject {
134
134
  */
135
135
  async *commits(options) {}
136
136
 
137
- /**
138
- * Urls to access the repo.
139
- * @return {string[]}
140
- */
141
- get urls() {
142
- return [];
143
- }
144
-
145
- /**
146
- * Preffered url to access the repo.
147
- * @return {string}
148
- */
149
- get url() {
150
- return this.urls[0];
151
- }
152
-
153
137
  /**
154
138
  * The url used for cloning the repo.
155
139
  * @return {string}
@@ -174,14 +158,6 @@ export class Repository extends OwnedObject {
174
158
  return undefined;
175
159
  }
176
160
 
177
- /**
178
- * Name without owner.
179
- * @return {string} name
180
- */
181
- get condensedName() {
182
- return this.name;
183
- }
184
-
185
161
  /**
186
162
  * By default we are not archived.
187
163
  * @return {boolean} false