repository-provider 29.2.0 → 29.2.1
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 +4 -4
- package/src/base-object.mjs +16 -0
- package/src/hook.mjs +1 -1
- package/src/ref.mjs +0 -8
- package/src/repository.mjs +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "29.2.
|
|
3
|
+
"version": "29.2.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ava": "^4.2.0",
|
|
37
|
-
"c8": "^7.11.
|
|
37
|
+
"c8": "^7.11.3",
|
|
38
38
|
"documentation": "^13.2.5",
|
|
39
|
-
"repository-provider-test-support": "^2.1.
|
|
39
|
+
"repository-provider-test-support": "^2.1.18",
|
|
40
40
|
"semantic-release": "^19.0.2",
|
|
41
41
|
"typescript": "^4.6.3"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
|
-
"node": ">=16.
|
|
44
|
+
"node": ">=16.15.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
package/src/base-object.mjs
CHANGED
|
@@ -104,6 +104,22 @@ export class BaseObject {
|
|
|
104
104
|
return this.name;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Complete name in the hierachy.
|
|
109
|
+
* @return {string}
|
|
110
|
+
*/
|
|
111
|
+
get fullCondensedName() {
|
|
112
|
+
return this.fullName;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Short human readable identifier with provider and branch.
|
|
117
|
+
* @return {string}
|
|
118
|
+
*/
|
|
119
|
+
get identifier() {
|
|
120
|
+
return `${this.provider.name}:${this.fullCondensedName}`;
|
|
121
|
+
}
|
|
122
|
+
|
|
107
123
|
/**
|
|
108
124
|
* By default cannot be written to.
|
|
109
125
|
* @return {boolean} false
|
package/src/hook.mjs
CHANGED
|
@@ -8,7 +8,6 @@ export class Hook extends OwnedObject {
|
|
|
8
8
|
static get attributes() {
|
|
9
9
|
return {
|
|
10
10
|
...super.attributes,
|
|
11
|
-
id: { type: "string", writable: true },
|
|
12
11
|
url: { type: "url", description: "target url", writable: true },
|
|
13
12
|
secret: { type: "string", private: true, writable: true },
|
|
14
13
|
content_type: { type: "string", default: "json", writable: true },
|
|
@@ -34,3 +33,4 @@ export class Hook extends OwnedObject {
|
|
|
34
33
|
return optionJSON(this, { name: this.name, id: this.id, events: [...this.events] });
|
|
35
34
|
}
|
|
36
35
|
}
|
|
36
|
+
|
package/src/ref.mjs
CHANGED
|
@@ -116,14 +116,6 @@ export class Ref extends OwnedObject {
|
|
|
116
116
|
: `${this.owner.fullName}#${this.name}`;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
/**
|
|
120
|
-
* Short human readable identifier with provider and branch.
|
|
121
|
-
* @return {string}
|
|
122
|
-
*/
|
|
123
|
-
get identifier() {
|
|
124
|
-
return `${this.provider.name}:${this.fullCondensedName}`;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
119
|
/**
|
|
128
120
|
* Same as identifier.
|
|
129
121
|
* @return {string}
|
package/src/repository.mjs
CHANGED
|
@@ -96,14 +96,6 @@ export class Repository extends OwnedObject {
|
|
|
96
96
|
return `${this.owner.name}/${this.name}`;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* Short human readable identifier with provider and branch.
|
|
101
|
-
* @return {string}
|
|
102
|
-
*/
|
|
103
|
-
get identifier() {
|
|
104
|
-
return `${this.provider.name}:${this.fullName}`;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
99
|
/**
|
|
108
100
|
* Lookup entries form the head of the default branch.
|
|
109
101
|
* {@link Branch#entry}
|