repository-provider 32.3.2 → 32.3.3

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": "32.3.2",
3
+ "version": "32.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "ava": "^5.1.0",
38
- "browser-ava": "^1.3.9",
38
+ "browser-ava": "^1.3.12",
39
39
  "c8": "^7.12.0",
40
- "documentation": "^14.0.0",
40
+ "documentation": "^14.0.1",
41
41
  "repository-provider-test-support": "^2.2.21",
42
42
  "semantic-release": "^19.0.5",
43
43
  "typescript": "^4.9.4"
@@ -13,6 +13,10 @@ export class BaseObject {
13
13
  }
14
14
 
15
15
  /**
16
+ * ```
17
+ * Tag -> tags
18
+ * Repository -> repositories
19
+ * ```
16
20
  * @return {string} name of the collection holding us in the owner
17
21
  */
18
22
  static get collectionName() {
@@ -21,6 +25,7 @@ export class BaseObject {
21
25
 
22
26
  /**
23
27
  * Attributes definitions
28
+ * @return {Object}
24
29
  */
25
30
  static get attributes() {
26
31
  return {
@@ -150,16 +155,7 @@ export class BaseObject {
150
155
  get provider() {
151
156
  return this.owner.provider;
152
157
  }
153
-
154
- /**
155
- * API as given by the owner.
156
- * @return {string} url
157
- */
158
- get api() {
159
- // TODO move into owner-object
160
- return this.owner?.api;
161
- }
162
-
158
+
163
159
  /**
164
160
  * Forwarded to the owner.
165
161
  * @param {...any} args
@@ -30,4 +30,12 @@ export class OwnedObject extends NamedObject {
30
30
  equals(other) {
31
31
  return super.equals(other) && this.owner.equals(other.owner);
32
32
  }
33
+
34
+ /**
35
+ * API as given by the owner.
36
+ * @return {string} url
37
+ */
38
+ get api() {
39
+ return this.owner.api;
40
+ }
33
41
  }