repository-provider 26.2.0 → 26.3.0
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 +1 -1
- package/src/base-object.mjs +29 -0
- package/src/hook.mjs +5 -12
- package/src/named-object.mjs +0 -7
- package/src/ref.mjs +0 -12
- package/src/repository-group.mjs +6 -13
- package/src/repository.mjs +0 -12
package/package.json
CHANGED
package/src/base-object.mjs
CHANGED
|
@@ -71,6 +71,11 @@ export class BaseObject {
|
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Save object attributes in the backing store.
|
|
76
|
+
*/
|
|
77
|
+
async update() {}
|
|
78
|
+
|
|
74
79
|
/**
|
|
75
80
|
* Check for equality
|
|
76
81
|
* @param {BaseObject} other
|
|
@@ -79,4 +84,28 @@ export class BaseObject {
|
|
|
79
84
|
equals(other) {
|
|
80
85
|
return other !== undefined;
|
|
81
86
|
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Forwarded to the owner.
|
|
90
|
+
* @param {...any} args
|
|
91
|
+
*/
|
|
92
|
+
info(...args) {
|
|
93
|
+
return this.owner.info(...args);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Forwarded to the owner.
|
|
98
|
+
* @param {...any} args
|
|
99
|
+
*/
|
|
100
|
+
warn(...args) {
|
|
101
|
+
return this.owner.warn(...args);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Forwarded to the owner.
|
|
106
|
+
* @param {...any} args
|
|
107
|
+
*/
|
|
108
|
+
error(...args) {
|
|
109
|
+
return this.owner.error(...args);
|
|
110
|
+
}
|
|
82
111
|
}
|
package/src/hook.mjs
CHANGED
|
@@ -36,6 +36,11 @@ export class Hook extends BaseObject {
|
|
|
36
36
|
repository._addHook(this);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
get owner()
|
|
40
|
+
{
|
|
41
|
+
return this.repository;
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
get fullName() {
|
|
40
45
|
return `${this.repository.fullName}/${this.id}`;
|
|
41
46
|
}
|
|
@@ -59,16 +64,4 @@ export class Hook extends BaseObject {
|
|
|
59
64
|
toJSON() {
|
|
60
65
|
return optionJSON(this, { id: this.id, events: [...this.events] });
|
|
61
66
|
}
|
|
62
|
-
|
|
63
|
-
info(...args) {
|
|
64
|
-
return this.repository.info(...args);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
warn(...args) {
|
|
68
|
-
return this.repository.warn(...args);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
error(...args) {
|
|
72
|
-
return this.repository.error(...args);
|
|
73
|
-
}
|
|
74
67
|
}
|
package/src/named-object.mjs
CHANGED
package/src/ref.mjs
CHANGED
|
@@ -208,16 +208,4 @@ export class Ref extends NamedObject {
|
|
|
208
208
|
!this.isProtected
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
info(...args) {
|
|
213
|
-
return this.repository.info(...args);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
warn(...args) {
|
|
217
|
-
return this.repository.warn(...args);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
error(...args) {
|
|
221
|
-
return this.repository.error(...args);
|
|
222
|
-
}
|
|
223
211
|
}
|
package/src/repository-group.mjs
CHANGED
|
@@ -49,6 +49,11 @@ export class RepositoryGroup extends RepositoryOwner(NamedObject) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
get owner()
|
|
53
|
+
{
|
|
54
|
+
return this.provider;
|
|
55
|
+
}
|
|
56
|
+
|
|
52
57
|
get isAdmin() {
|
|
53
58
|
return false;
|
|
54
59
|
}
|
|
@@ -82,7 +87,7 @@ export class RepositoryGroup extends RepositoryOwner(NamedObject) {
|
|
|
82
87
|
* @return {Class} as defined in the provider
|
|
83
88
|
*/
|
|
84
89
|
get tagClass() {
|
|
85
|
-
return this.provider.
|
|
90
|
+
return this.provider.tagClass;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
/**
|
|
@@ -108,16 +113,4 @@ export class RepositoryGroup extends RepositoryOwner(NamedObject) {
|
|
|
108
113
|
get hookClass() {
|
|
109
114
|
return this.provider.hookClass;
|
|
110
115
|
}
|
|
111
|
-
|
|
112
|
-
info(...args) {
|
|
113
|
-
return this.provider.info(...args);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
warn(...args) {
|
|
117
|
-
return this.provider.warn(...args);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
error(...args) {
|
|
121
|
-
return this.provider.error(...args);
|
|
122
|
-
}
|
|
123
116
|
}
|
package/src/repository.mjs
CHANGED
|
@@ -553,18 +553,6 @@ export class Repository extends NamedObject {
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
info(...args) {
|
|
557
|
-
return this.owner.info(...args);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
warn(...args) {
|
|
561
|
-
return this.owner.warn(...args);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
error(...args) {
|
|
565
|
-
return this.owner.error(...args);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
556
|
initialize() {}
|
|
569
557
|
|
|
570
558
|
initializeHooks() {
|