repository-provider 32.3.3 → 32.3.5
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 +12 -7
- package/package.json +4 -4
- package/src/base-object.mjs +0 -96
- package/src/owned-object.mjs +96 -0
package/README.md
CHANGED
|
@@ -76,7 +76,6 @@ console.log(await readme.getString());
|
|
|
76
76
|
* [equals](#equals)
|
|
77
77
|
* [Parameters](#parameters-9)
|
|
78
78
|
* [provider](#provider)
|
|
79
|
-
* [api](#api)
|
|
80
79
|
* [trace](#trace)
|
|
81
80
|
* [Parameters](#parameters-10)
|
|
82
81
|
* [info](#info)
|
|
@@ -207,6 +206,7 @@ console.log(await readme.getString());
|
|
|
207
206
|
* [Parameters](#parameters-46)
|
|
208
207
|
* [equals](#equals-3)
|
|
209
208
|
* [Parameters](#parameters-47)
|
|
209
|
+
* [api](#api)
|
|
210
210
|
* [addMethodName](#addmethodname)
|
|
211
211
|
* [Project](#project)
|
|
212
212
|
* [PullRequest](#pullrequest)
|
|
@@ -546,12 +546,6 @@ The provider we live in.
|
|
|
546
546
|
|
|
547
547
|
Returns **[BaseProvider](#baseprovider)** 
|
|
548
548
|
|
|
549
|
-
### api
|
|
550
|
-
|
|
551
|
-
API as given by the owner.
|
|
552
|
-
|
|
553
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
554
|
-
|
|
555
549
|
### trace
|
|
556
550
|
|
|
557
551
|
Forwarded to the owner.
|
|
@@ -626,12 +620,17 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
626
620
|
|
|
627
621
|
### collectionName
|
|
628
622
|
|
|
623
|
+
Tag -> tags
|
|
624
|
+
Repository -> repositories
|
|
625
|
+
|
|
629
626
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the collection holding us in the owner
|
|
630
627
|
|
|
631
628
|
### attributes
|
|
632
629
|
|
|
633
630
|
Attributes definitions
|
|
634
631
|
|
|
632
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
633
|
+
|
|
635
634
|
### writableAttributes
|
|
636
635
|
|
|
637
636
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** writable attributes
|
|
@@ -1232,6 +1231,12 @@ Check for equality.
|
|
|
1232
1231
|
|
|
1233
1232
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if receiver and owner are equal
|
|
1234
1233
|
|
|
1234
|
+
### api
|
|
1235
|
+
|
|
1236
|
+
API as given by the owner.
|
|
1237
|
+
|
|
1238
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1239
|
+
|
|
1235
1240
|
### addMethodName
|
|
1236
1241
|
|
|
1237
1242
|
Method name to be called to register one instance in the owner.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.3.
|
|
3
|
+
"version": "32.3.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"ava": "^5.1.0",
|
|
38
|
-
"browser-ava": "^1.3.
|
|
38
|
+
"browser-ava": "^1.3.13",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
40
|
"documentation": "^14.0.1",
|
|
41
|
-
"repository-provider-test-support": "^2.2.
|
|
41
|
+
"repository-provider-test-support": "^2.2.22",
|
|
42
42
|
"semantic-release": "^19.0.5",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=16.
|
|
46
|
+
"node": ">=16.19.0"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
package/src/base-object.mjs
CHANGED
|
@@ -123,14 +123,6 @@ export class BaseObject {
|
|
|
123
123
|
return this.name;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
/**
|
|
127
|
-
* Short human readable identifier with provider and branch.
|
|
128
|
-
* @return {string}
|
|
129
|
-
*/
|
|
130
|
-
get identifier() {
|
|
131
|
-
return `${this.provider.name}:${this.fullCondensedName}`;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
126
|
/**
|
|
135
127
|
* By default cannot be written to.
|
|
136
128
|
* @return {boolean} false
|
|
@@ -147,92 +139,4 @@ export class BaseObject {
|
|
|
147
139
|
equals(other) {
|
|
148
140
|
return other !== undefined;
|
|
149
141
|
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The provider we live in.
|
|
153
|
-
* @return {BaseProvider}
|
|
154
|
-
*/
|
|
155
|
-
get provider() {
|
|
156
|
-
return this.owner.provider;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Forwarded to the owner.
|
|
161
|
-
* @param {...any} args
|
|
162
|
-
*/
|
|
163
|
-
trace(...args) {
|
|
164
|
-
return this.owner.trace(...args);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Forwarded to the owner.
|
|
169
|
-
* @param {...any} args
|
|
170
|
-
*/
|
|
171
|
-
info(...args) {
|
|
172
|
-
return this.owner.info(...args);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Forwarded to the owner.
|
|
177
|
-
* @param {...any} args
|
|
178
|
-
*/
|
|
179
|
-
warn(...args) {
|
|
180
|
-
return this.owner.warn(...args);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Forwarded to the owner.
|
|
185
|
-
* @param {...any} args
|
|
186
|
-
*/
|
|
187
|
-
error(...args) {
|
|
188
|
-
return this.owner.error(...args);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* By default we use the owners implementation.
|
|
193
|
-
* @return {Function} as defined in the owner
|
|
194
|
-
*/
|
|
195
|
-
get repositoryClass() {
|
|
196
|
-
return this.owner.repositoryClass;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* By default we use the owners implementation.
|
|
201
|
-
* @return {Function} as defined in the owner
|
|
202
|
-
*/
|
|
203
|
-
get pullRequestClass() {
|
|
204
|
-
return this.owner.pullRequestClass;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* By default we use the owners implementation.
|
|
209
|
-
* @return {Function} as defined in the owner
|
|
210
|
-
*/
|
|
211
|
-
get branchClass() {
|
|
212
|
-
return this.owner.branchClass;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* By default we use the owners implementation.
|
|
217
|
-
* @return {Function} as defined in the owner
|
|
218
|
-
*/
|
|
219
|
-
get tagClass() {
|
|
220
|
-
return this.owner.tagClass;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* By default we use the owners implementation.
|
|
225
|
-
* @return {Function} as defined in the owner
|
|
226
|
-
*/
|
|
227
|
-
get entryClass() {
|
|
228
|
-
return this.owner.entryClass;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* By default we use the owners implementation.
|
|
233
|
-
* @return {Function} as defined in the owner
|
|
234
|
-
*/
|
|
235
|
-
get hookClass() {
|
|
236
|
-
return this.owner.hookClass;
|
|
237
|
-
}
|
|
238
142
|
}
|
package/src/owned-object.mjs
CHANGED
|
@@ -38,4 +38,100 @@ export class OwnedObject extends NamedObject {
|
|
|
38
38
|
get api() {
|
|
39
39
|
return this.owner.api;
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The provider we live in.
|
|
44
|
+
* @return {BaseProvider}
|
|
45
|
+
*/
|
|
46
|
+
get provider() {
|
|
47
|
+
return this.owner.provider;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Short human readable identifier with provider and branch.
|
|
52
|
+
* @return {string}
|
|
53
|
+
*/
|
|
54
|
+
get identifier() {
|
|
55
|
+
return `${this.provider.name}:${this.fullCondensedName}`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Forwarded to the owner.
|
|
60
|
+
* @param {...any} args
|
|
61
|
+
*/
|
|
62
|
+
trace(...args) {
|
|
63
|
+
return this.owner.trace(...args);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Forwarded to the owner.
|
|
68
|
+
* @param {...any} args
|
|
69
|
+
*/
|
|
70
|
+
info(...args) {
|
|
71
|
+
return this.owner.info(...args);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Forwarded to the owner.
|
|
76
|
+
* @param {...any} args
|
|
77
|
+
*/
|
|
78
|
+
warn(...args) {
|
|
79
|
+
return this.owner.warn(...args);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Forwarded to the owner.
|
|
84
|
+
* @param {...any} args
|
|
85
|
+
*/
|
|
86
|
+
error(...args) {
|
|
87
|
+
return this.owner.error(...args);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* By default we use the owners implementation.
|
|
92
|
+
* @return {Function} as defined in the owner
|
|
93
|
+
*/
|
|
94
|
+
get repositoryClass() {
|
|
95
|
+
return this.owner.repositoryClass;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* By default we use the owners implementation.
|
|
100
|
+
* @return {Function} as defined in the owner
|
|
101
|
+
*/
|
|
102
|
+
get pullRequestClass() {
|
|
103
|
+
return this.owner.pullRequestClass;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* By default we use the owners implementation.
|
|
108
|
+
* @return {Function} as defined in the owner
|
|
109
|
+
*/
|
|
110
|
+
get branchClass() {
|
|
111
|
+
return this.owner.branchClass;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* By default we use the owners implementation.
|
|
116
|
+
* @return {Function} as defined in the owner
|
|
117
|
+
*/
|
|
118
|
+
get tagClass() {
|
|
119
|
+
return this.owner.tagClass;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* By default we use the owners implementation.
|
|
124
|
+
* @return {Function} as defined in the owner
|
|
125
|
+
*/
|
|
126
|
+
get entryClass() {
|
|
127
|
+
return this.owner.entryClass;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* By default we use the owners implementation.
|
|
132
|
+
* @return {Function} as defined in the owner
|
|
133
|
+
*/
|
|
134
|
+
get hookClass() {
|
|
135
|
+
return this.owner.hookClass;
|
|
136
|
+
}
|
|
41
137
|
}
|