repository-provider 32.7.23 → 32.7.25
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 +49 -36
- package/package.json +5 -5
- package/src/attribute.mjs +3 -1
- package/src/branch.mjs +1 -1
- package/src/owned-object.mjs +8 -0
- package/src/ref.mjs +1 -6
package/README.md
CHANGED
|
@@ -193,7 +193,13 @@ 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)
|
|
202
|
+
* [slug](#slug)
|
|
197
203
|
* [url](#url-1)
|
|
198
204
|
* [provider](#provider-1)
|
|
199
205
|
* [identifier](#identifier)
|
|
@@ -255,11 +261,6 @@ console.log(await readme.string);
|
|
|
255
261
|
* [repository](#repository-2)
|
|
256
262
|
* [fullName](#fullname-3)
|
|
257
263
|
* [fullCondensedName](#fullcondensedname-1)
|
|
258
|
-
* [issuesURL](#issuesurl)
|
|
259
|
-
* [homePageURL](#homepageurl)
|
|
260
|
-
* [isLocked](#islocked)
|
|
261
|
-
* [isArchived](#isarchived)
|
|
262
|
-
* [isDisabled](#isdisabled)
|
|
263
264
|
* [isProtected](#isprotected)
|
|
264
265
|
* [isDefault](#isdefault-1)
|
|
265
266
|
* [attributes](#attributes-1)
|
|
@@ -275,7 +276,7 @@ console.log(await readme.string);
|
|
|
275
276
|
* [Repository](#repository-3)
|
|
276
277
|
* [Parameters](#parameters-60)
|
|
277
278
|
* [Properties](#properties-10)
|
|
278
|
-
* [slug](#slug)
|
|
279
|
+
* [slug](#slug-1)
|
|
279
280
|
* [entry](#entry-1)
|
|
280
281
|
* [Parameters](#parameters-61)
|
|
281
282
|
* [entries](#entries-1)
|
|
@@ -922,7 +923,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
922
923
|
|
|
923
924
|
### isWritable
|
|
924
925
|
|
|
925
|
-
Returns **any** true if not [isArchived](isArchived) and [isDisabled](isDisabled) and [isLocked](isLocked)
|
|
926
|
+
Returns **any** true if not [isArchived](isArchived) and [isDisabled](isDisabled) and [isLocked](isLocked) and [isProtected](#isprotected)
|
|
926
927
|
|
|
927
928
|
### isDefault
|
|
928
929
|
|
|
@@ -1160,12 +1161,52 @@ Check for equality.
|
|
|
1160
1161
|
|
|
1161
1162
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if receiver and owner are equal
|
|
1162
1163
|
|
|
1164
|
+
### homePageURL
|
|
1165
|
+
|
|
1166
|
+
* **See**: [Repository#homePageURL](#repositoryhomepageurl)
|
|
1167
|
+
|
|
1168
|
+
Url of home page.
|
|
1169
|
+
|
|
1170
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1171
|
+
|
|
1172
|
+
### issuesURL
|
|
1173
|
+
|
|
1174
|
+
* **See**: [Repository#issuesURL](#repositoryissuesurl)
|
|
1175
|
+
|
|
1176
|
+
Url of issue tracking system.
|
|
1177
|
+
|
|
1178
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the repository
|
|
1179
|
+
|
|
1180
|
+
### isLocked
|
|
1181
|
+
|
|
1182
|
+
Forwarded from the owner.
|
|
1183
|
+
|
|
1184
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1185
|
+
|
|
1186
|
+
### isArchived
|
|
1187
|
+
|
|
1188
|
+
Forwarded from the owner.
|
|
1189
|
+
|
|
1190
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1191
|
+
|
|
1192
|
+
### isDisabled
|
|
1193
|
+
|
|
1194
|
+
Forwarded from the owner.
|
|
1195
|
+
|
|
1196
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1197
|
+
|
|
1163
1198
|
### api
|
|
1164
1199
|
|
|
1165
1200
|
API as given by the owner.
|
|
1166
1201
|
|
|
1167
1202
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1168
1203
|
|
|
1204
|
+
### slug
|
|
1205
|
+
|
|
1206
|
+
API as given by the owner.
|
|
1207
|
+
|
|
1208
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1209
|
+
|
|
1169
1210
|
### url
|
|
1170
1211
|
|
|
1171
1212
|
URL as given by the owner.
|
|
@@ -1502,34 +1543,6 @@ But skipping the branch name if it is the default branch.
|
|
|
1502
1543
|
|
|
1503
1544
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'user/repo#branch'
|
|
1504
1545
|
|
|
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
1546
|
### isProtected
|
|
1534
1547
|
|
|
1535
1548
|
Returns **any** false
|
|
@@ -1548,7 +1561,7 @@ options
|
|
|
1548
1561
|
|
|
1549
1562
|
Can the ref be modified.
|
|
1550
1563
|
|
|
1551
|
-
Returns **[
|
|
1564
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
1552
1565
|
|
|
1553
1566
|
## RepositoryGroup
|
|
1554
1567
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.7.
|
|
3
|
+
"version": "32.7.25",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"matching-iterator": "^2.0.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"ava": "^5.3.
|
|
37
|
-
"browser-ava": "^1.3.
|
|
38
|
-
"c8": "^
|
|
36
|
+
"ava": "^5.3.1",
|
|
37
|
+
"browser-ava": "^1.3.49",
|
|
38
|
+
"c8": "^8.0.0",
|
|
39
39
|
"documentation": "^14.0.2",
|
|
40
|
-
"repository-provider-test-support": "^2.
|
|
40
|
+
"repository-provider-test-support": "^2.4.0",
|
|
41
41
|
"semantic-release": "^21.0.5",
|
|
42
42
|
"typescript": "^5.1.3"
|
|
43
43
|
},
|
package/src/attribute.mjs
CHANGED
package/src/branch.mjs
CHANGED
|
@@ -55,7 +55,7 @@ export class Branch extends Ref {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @return true if not {@link isArchived} and {@link isDisabled} and {@link isLocked}
|
|
58
|
+
* @return true if not {@link isArchived} and {@link isDisabled} and {@link isLocked} and {@link isProtected}
|
|
59
59
|
*/
|
|
60
60
|
get isWritable() {
|
|
61
61
|
return (
|
package/src/owned-object.mjs
CHANGED
|
@@ -96,6 +96,14 @@ export class OwnedObject extends NamedObject {
|
|
|
96
96
|
return this.owner.api;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/**
|
|
100
|
+
* API as given by the owner.
|
|
101
|
+
* @return {string} url
|
|
102
|
+
*/
|
|
103
|
+
get slug() {
|
|
104
|
+
return this.owner.slug;
|
|
105
|
+
}
|
|
106
|
+
|
|
99
107
|
/**
|
|
100
108
|
* URL as given by the owner.
|
|
101
109
|
* @return {string} url
|
package/src/ref.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class Ref extends OwnedObject {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Can the ref be modified.
|
|
23
|
-
* @return {
|
|
23
|
+
* @return {boolean}
|
|
24
24
|
*/
|
|
25
25
|
isProtected: boolean_attribute
|
|
26
26
|
};
|
|
@@ -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,7 +124,6 @@ export class Ref extends OwnedObject {
|
|
|
128
124
|
: `${this.owner.identifier}#${this.name}`;
|
|
129
125
|
}
|
|
130
126
|
|
|
131
|
-
|
|
132
127
|
/**
|
|
133
128
|
*
|
|
134
129
|
* @return false
|