repository-provider 32.7.22 → 32.7.24
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 +39 -33
- package/package.json +3 -3
- package/src/owned-object.mjs +54 -4
- package/src/ref.mjs +0 -43
package/README.md
CHANGED
|
@@ -193,6 +193,11 @@ console.log(await readme.string);
|
|
|
193
193
|
* [delete](#delete-1)
|
|
194
194
|
* [equals](#equals-3)
|
|
195
195
|
* [Parameters](#parameters-45)
|
|
196
|
+
* [homePageURL](#homepageurl)
|
|
197
|
+
* [issuesURL](#issuesurl)
|
|
198
|
+
* [isLocked](#islocked)
|
|
199
|
+
* [isArchived](#isarchived)
|
|
200
|
+
* [isDisabled](#isdisabled)
|
|
196
201
|
* [api](#api)
|
|
197
202
|
* [url](#url-1)
|
|
198
203
|
* [provider](#provider-1)
|
|
@@ -255,11 +260,6 @@ console.log(await readme.string);
|
|
|
255
260
|
* [repository](#repository-2)
|
|
256
261
|
* [fullName](#fullname-3)
|
|
257
262
|
* [fullCondensedName](#fullcondensedname-1)
|
|
258
|
-
* [issuesURL](#issuesurl)
|
|
259
|
-
* [homePageURL](#homepageurl)
|
|
260
|
-
* [isLocked](#islocked)
|
|
261
|
-
* [isArchived](#isarchived)
|
|
262
|
-
* [isDisabled](#isdisabled)
|
|
263
263
|
* [isProtected](#isprotected)
|
|
264
264
|
* [isDefault](#isdefault-1)
|
|
265
265
|
* [attributes](#attributes-1)
|
|
@@ -1160,6 +1160,40 @@ Check for equality.
|
|
|
1160
1160
|
|
|
1161
1161
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if receiver and owner are equal
|
|
1162
1162
|
|
|
1163
|
+
### homePageURL
|
|
1164
|
+
|
|
1165
|
+
* **See**: [Repository#homePageURL](#repositoryhomepageurl)
|
|
1166
|
+
|
|
1167
|
+
Url of home page.
|
|
1168
|
+
|
|
1169
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1170
|
+
|
|
1171
|
+
### issuesURL
|
|
1172
|
+
|
|
1173
|
+
* **See**: [Repository#issuesURL](#repositoryissuesurl)
|
|
1174
|
+
|
|
1175
|
+
Url of issue tracking system.
|
|
1176
|
+
|
|
1177
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the repository
|
|
1178
|
+
|
|
1179
|
+
### isLocked
|
|
1180
|
+
|
|
1181
|
+
Forwarded from the owner.
|
|
1182
|
+
|
|
1183
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1184
|
+
|
|
1185
|
+
### isArchived
|
|
1186
|
+
|
|
1187
|
+
Forwarded from the owner.
|
|
1188
|
+
|
|
1189
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1190
|
+
|
|
1191
|
+
### isDisabled
|
|
1192
|
+
|
|
1193
|
+
Forwarded from the owner.
|
|
1194
|
+
|
|
1195
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1196
|
+
|
|
1163
1197
|
### api
|
|
1164
1198
|
|
|
1165
1199
|
API as given by the owner.
|
|
@@ -1502,34 +1536,6 @@ But skipping the branch name if it is the default branch.
|
|
|
1502
1536
|
|
|
1503
1537
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'user/repo#branch'
|
|
1504
1538
|
|
|
1505
|
-
### issuesURL
|
|
1506
|
-
|
|
1507
|
-
* **See**: [Repository#issuesURL](#repositoryissuesurl)
|
|
1508
|
-
|
|
1509
|
-
Url of issue tracking system.
|
|
1510
|
-
|
|
1511
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the repository
|
|
1512
|
-
|
|
1513
|
-
### homePageURL
|
|
1514
|
-
|
|
1515
|
-
* **See**: [Repository#homePageURL](#repositoryhomepageurl)
|
|
1516
|
-
|
|
1517
|
-
Url of home page.
|
|
1518
|
-
|
|
1519
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the repository
|
|
1520
|
-
|
|
1521
|
-
### isLocked
|
|
1522
|
-
|
|
1523
|
-
Forwarded from the repository
|
|
1524
|
-
|
|
1525
|
-
### isArchived
|
|
1526
|
-
|
|
1527
|
-
Forwarded from the repository
|
|
1528
|
-
|
|
1529
|
-
### isDisabled
|
|
1530
|
-
|
|
1531
|
-
Forwarded from the repository
|
|
1532
|
-
|
|
1533
1539
|
### isProtected
|
|
1534
1540
|
|
|
1535
1541
|
Returns **any** false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.7.
|
|
3
|
+
"version": "32.7.24",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ava": "^5.3.0",
|
|
37
37
|
"browser-ava": "^1.3.47",
|
|
38
|
-
"c8": "^
|
|
38
|
+
"c8": "^8.0.0",
|
|
39
39
|
"documentation": "^14.0.2",
|
|
40
|
-
"repository-provider-test-support": "^2.3.
|
|
40
|
+
"repository-provider-test-support": "^2.3.8",
|
|
41
41
|
"semantic-release": "^21.0.5",
|
|
42
42
|
"typescript": "^5.1.3"
|
|
43
43
|
},
|
package/src/owned-object.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export class OwnedObject extends NamedObject {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
owner;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
constructor(owner, name, options, additionalProperties) {
|
|
28
28
|
super(name, options, additionalProperties);
|
|
29
29
|
this.owner = owner;
|
|
@@ -46,6 +46,48 @@ export class OwnedObject extends NamedObject {
|
|
|
46
46
|
return super.equals(other) && this.owner.equals(other.owner);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Url of home page.
|
|
51
|
+
* @see {@link Repository#homePageURL}
|
|
52
|
+
* @return {string} as provided from the owner
|
|
53
|
+
*/
|
|
54
|
+
get homePageURL() {
|
|
55
|
+
return this.owner.homePageURL;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Url of issue tracking system.
|
|
60
|
+
* @see {@link Repository#issuesURL}
|
|
61
|
+
* @return {string} as provided from the repository
|
|
62
|
+
*/
|
|
63
|
+
get issuesURL() {
|
|
64
|
+
return this.owner.issuesURL;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Forwarded from the owner.
|
|
69
|
+
* @return {boolean}
|
|
70
|
+
*/
|
|
71
|
+
get isLocked() {
|
|
72
|
+
return this.owner.isLocked;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Forwarded from the owner.
|
|
77
|
+
* @return {boolean}
|
|
78
|
+
*/
|
|
79
|
+
get isArchived() {
|
|
80
|
+
return this.owner.isArchived;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Forwarded from the owner.
|
|
85
|
+
* @return {boolean}
|
|
86
|
+
*/
|
|
87
|
+
get isDisabled() {
|
|
88
|
+
return this.owner.isDisabled;
|
|
89
|
+
}
|
|
90
|
+
|
|
49
91
|
/**
|
|
50
92
|
* API as given by the owner.
|
|
51
93
|
* @return {string} url
|
|
@@ -54,6 +96,14 @@ export class OwnedObject extends NamedObject {
|
|
|
54
96
|
return this.owner.api;
|
|
55
97
|
}
|
|
56
98
|
|
|
99
|
+
/**
|
|
100
|
+
* API as given by the owner.
|
|
101
|
+
* @return {string} url
|
|
102
|
+
*/
|
|
103
|
+
get slug() {
|
|
104
|
+
return this.owner.slug;
|
|
105
|
+
}
|
|
106
|
+
|
|
57
107
|
/**
|
|
58
108
|
* URL as given by the owner.
|
|
59
109
|
* @return {string} url
|
|
@@ -82,9 +132,9 @@ export class OwnedObject extends NamedObject {
|
|
|
82
132
|
* @return {string} name with owner name
|
|
83
133
|
*/
|
|
84
134
|
get fullName() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
135
|
+
return this.owner === this.provider || this.owner.name === undefined
|
|
136
|
+
? this.name
|
|
137
|
+
: this.owner.name + "/" + this.name;
|
|
88
138
|
}
|
|
89
139
|
|
|
90
140
|
/**
|
package/src/ref.mjs
CHANGED
|
@@ -99,10 +99,6 @@ export class Ref extends OwnedObject {
|
|
|
99
99
|
return this.owner;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
get slug() {
|
|
103
|
-
return this.owner.slug;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
102
|
/**
|
|
107
103
|
* Repository and branch name combined.
|
|
108
104
|
* @return {string} 'repo#branch'
|
|
@@ -128,45 +124,6 @@ export class Ref extends OwnedObject {
|
|
|
128
124
|
: `${this.owner.identifier}#${this.name}`;
|
|
129
125
|
}
|
|
130
126
|
|
|
131
|
-
/**
|
|
132
|
-
* Url of issue tracking system.
|
|
133
|
-
* @see {@link Repository#issuesURL}
|
|
134
|
-
* @return {string} as provided from the repository
|
|
135
|
-
*/
|
|
136
|
-
get issuesURL() {
|
|
137
|
-
return this.owner.issuesURL;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Url of home page.
|
|
142
|
-
* @see {@link Repository#homePageURL}
|
|
143
|
-
* @return {string} as provided from the repository
|
|
144
|
-
*/
|
|
145
|
-
get homePageURL() {
|
|
146
|
-
return this.owner.homePageURL;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Forwarded from the repository
|
|
151
|
-
*/
|
|
152
|
-
get isLocked() {
|
|
153
|
-
return this.owner.isLocked;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Forwarded from the repository
|
|
158
|
-
*/
|
|
159
|
-
get isArchived() {
|
|
160
|
-
return this.owner.isArchived;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Forwarded from the repository
|
|
165
|
-
*/
|
|
166
|
-
get isDisabled() {
|
|
167
|
-
return this.owner.isDisabled;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
127
|
/**
|
|
171
128
|
*
|
|
172
129
|
* @return false
|