repository-provider 35.2.17 → 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/README.md +15 -0
- package/package.json +4 -4
- package/src/owned-object.mjs +1 -1
- package/src/repository.mjs +4 -1
- package/types/owned-object.d.mts +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,8 @@ console.log(await readme.string);
|
|
|
80
80
|
* [BaseObject](#baseobject)
|
|
81
81
|
* [Parameters](#parameters-5)
|
|
82
82
|
* [Properties](#properties)
|
|
83
|
+
* [id](#id)
|
|
84
|
+
* [description](#description)
|
|
83
85
|
* [updateAttributes](#updateattributes)
|
|
84
86
|
* [Parameters](#parameters-6)
|
|
85
87
|
* [update](#update)
|
|
@@ -182,6 +184,7 @@ console.log(await readme.string);
|
|
|
182
184
|
* [MessageDestination](#messagedestination)
|
|
183
185
|
* [Properties](#properties-2)
|
|
184
186
|
* [name](#name-2)
|
|
187
|
+
* [name](#name-3)
|
|
185
188
|
* [messageDestination](#messagedestination-1)
|
|
186
189
|
* [parsedName](#parsedname)
|
|
187
190
|
* [Branch](#branch)
|
|
@@ -634,6 +637,14 @@ Creates an instance of BaseObject.
|
|
|
634
637
|
* `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
635
638
|
* `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
636
639
|
|
|
640
|
+
### id
|
|
641
|
+
|
|
642
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
643
|
+
|
|
644
|
+
### description
|
|
645
|
+
|
|
646
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
647
|
+
|
|
637
648
|
### updateAttributes
|
|
638
649
|
|
|
639
650
|
Takes values from options.
|
|
@@ -1207,6 +1218,10 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
1207
1218
|
|
|
1208
1219
|
Name of the provider.
|
|
1209
1220
|
|
|
1221
|
+
## name
|
|
1222
|
+
|
|
1223
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1224
|
+
|
|
1210
1225
|
## messageDestination
|
|
1211
1226
|
|
|
1212
1227
|
To forward info/warn and error messages to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -37,16 +37,16 @@
|
|
|
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.
|
|
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.
|
|
46
|
+
"browser-ava": "^2.2.15",
|
|
47
47
|
"c8": "^9.1.0",
|
|
48
48
|
"documentation": "^14.0.3",
|
|
49
|
-
"repository-provider-test-support": "^3.1.
|
|
49
|
+
"repository-provider-test-support": "^3.1.5",
|
|
50
50
|
"semantic-release": "^24.0.0",
|
|
51
51
|
"typescript": "^5.4.5"
|
|
52
52
|
},
|
package/src/owned-object.mjs
CHANGED
|
@@ -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;
|
package/src/repository.mjs
CHANGED
|
@@ -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)
|
|
136
|
+
return (await this.defaultBranch)?.maybeEntry(name);
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
/**
|
package/types/owned-object.d.mts
CHANGED
|
@@ -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
|
/**
|