repository-provider 35.2.18 → 35.2.19

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": "35.2.18",
3
+ "version": "35.2.19",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -37,13 +37,13 @@
37
37
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
38
38
  },
39
39
  "dependencies": {
40
- "content-entry": "^11.0.0",
40
+ "content-entry": "^11.0.1",
41
41
  "matching-iterator": "^2.1.3",
42
42
  "pacc": "^3.1.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "ava": "^6.1.3",
46
- "browser-ava": "^2.2.14",
46
+ "browser-ava": "^2.2.15",
47
47
  "c8": "^9.1.0",
48
48
  "documentation": "^14.0.3",
49
49
  "repository-provider-test-support": "^3.1.5",
@@ -56,7 +56,7 @@ export class OwnedObject extends NamedObject {
56
56
  /**
57
57
  * Url of home page.
58
58
  * @see {@link Repository#homePageURL}
59
- * @return {string} as provided from the owner
59
+ * @return {string|undefined} as provided from the owner
60
60
  */
61
61
  get homePageURL() {
62
62
  return this.owner.homePageURL;
@@ -97,6 +97,9 @@ export class Repository extends OwnedObject {
97
97
  return `${this.owner.name}/${this.name}`;
98
98
  }
99
99
 
100
+ /**
101
+ * @return {string}
102
+ */
100
103
  get url() {
101
104
  // @ts-ignore
102
105
  return `${this.provider.url}${this.slug}`;
@@ -130,7 +133,7 @@ export class Repository extends OwnedObject {
130
133
  * @return {Promise<ContentEntry|undefined>}
131
134
  */
132
135
  async maybeEntry(name) {
133
- return (await this.defaultBranch).maybeEntry(name);
136
+ return (await this.defaultBranch)?.maybeEntry(name);
134
137
  }
135
138
 
136
139
  /**
@@ -33,7 +33,7 @@ export class OwnedObject extends NamedObject {
33
33
  /**
34
34
  * Url of home page.
35
35
  * @see {@link Repository#homePageURL}
36
- * @return {string} as provided from the owner
36
+ * @return {string|undefined} as provided from the owner
37
37
  */
38
38
  get homePageURL(): string;
39
39
  /**