repository-provider 28.2.0 → 28.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 +1 -1
- package/src/named-object.mjs +1 -1
- package/src/repository.mjs +0 -23
package/package.json
CHANGED
package/src/named-object.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export class NamedObject extends BaseObject {
|
|
|
23
23
|
* @return {boolean} true if names are equal and have the same owner
|
|
24
24
|
*/
|
|
25
25
|
equals(other) {
|
|
26
|
-
return super.equals(other) && this.
|
|
26
|
+
return super.equals(other) && this.fullName === other.fullName && this.provider.equals(other.provider);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
package/src/repository.mjs
CHANGED
|
@@ -91,14 +91,6 @@ export class Repository extends NamedObject {
|
|
|
91
91
|
return `${this.owner.name}/${this.name}`;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
/**
|
|
95
|
-
* The owners provider.
|
|
96
|
-
* @return {BaseProvider}
|
|
97
|
-
*/
|
|
98
|
-
get provider() {
|
|
99
|
-
return this.owner.provider;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
94
|
/**
|
|
103
95
|
* Short human readable identifier with provider and branch.
|
|
104
96
|
* @return {string}
|
|
@@ -107,21 +99,6 @@ export class Repository extends NamedObject {
|
|
|
107
99
|
return `${this.provider.name}:${this.fullName}`;
|
|
108
100
|
}
|
|
109
101
|
|
|
110
|
-
/**
|
|
111
|
-
* Check for equality.
|
|
112
|
-
* @param {Repository} other
|
|
113
|
-
* @return {boolean} true if name and provider are equal
|
|
114
|
-
*/
|
|
115
|
-
equals(other) {
|
|
116
|
-
if (other === undefined) {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return (
|
|
121
|
-
this.fullName === other.fullName && this.provider.equals(other.provider)
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
102
|
/**
|
|
126
103
|
* Lookup entries form the head of the default branch.
|
|
127
104
|
* {@link Branch#entry}
|