repository-provider 28.3.9 → 28.3.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "28.3.9",
3
+ "version": "28.3.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -5,9 +5,9 @@ import { NamedObject } from "./named-object.mjs";
5
5
  */
6
6
  export class OwnedObject extends NamedObject {
7
7
  /**
8
- * Method name to be called to register one instance in the owner.
8
+ * Method name to be called to register one instance in the owner.
9
9
  * sample: Application => _addApplication
10
- * @return {string}
10
+ * @return {string}
11
11
  */
12
12
  static get registerInstanceMethodName() {
13
13
  return "_add" + this.name;
@@ -21,4 +21,13 @@ export class OwnedObject extends NamedObject {
21
21
 
22
22
  owner[this.constructor.registerInstanceMethodName](this);
23
23
  }
24
+
25
+ /**
26
+ * Check for equality.
27
+ * @param {OwnedObject} other
28
+ * @return {boolean} true if receiver and owner are equal
29
+ */
30
+ equals(other) {
31
+ return super.equals(other) && this.owner.equals(other.owner);
32
+ }
24
33
  }
package/src/ref.mjs CHANGED
@@ -25,15 +25,6 @@ export class Ref extends OwnedObject {
25
25
  };
26
26
  }
27
27
 
28
- /**
29
- * Check for equality.
30
- * @param {Ref} other
31
- * @return {boolean} true if name and repository are equal
32
- */
33
- equals(other) {
34
- return super.equals(other) && this.repository.equals(other.repository);
35
- }
36
-
37
28
  get refType() {
38
29
  return "unknown";
39
30
  }