repository-provider 32.7.0 → 32.7.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.7.0",
3
+ "version": "32.7.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,9 @@
1
- import { definePropertiesFromOptions, mapAttributes } from "./attribute-extras.mjs";
1
+ import {
2
+ definePropertiesFromOptions,
3
+ mapAttributes
4
+ } from "./attribute-extras.mjs";
2
5
  import { description_attribute, id_attribute } from "./attributes.mjs";
3
-
6
+
4
7
  /**
5
8
  * @param {Object} options
6
9
  * @param {Object} additionalProperties
@@ -83,7 +86,7 @@ export class BaseObject {
83
86
  * @return {string} fullName
84
87
  */
85
88
  toString() {
86
- return this.fullName;
89
+ return this.identifier;
87
90
  }
88
91
 
89
92
  /**
@@ -102,6 +105,10 @@ export class BaseObject {
102
105
  return this.name;
103
106
  }
104
107
 
108
+ get identifier() {
109
+ return this.fullName;
110
+ }
111
+
105
112
  /**
106
113
  * Complete name in the hierachy.
107
114
  * @return {string}
@@ -1,6 +1,10 @@
1
1
  import { optionJSON } from "./attribute-extras.mjs";
2
2
  import { BaseObject } from "./base-object.mjs";
3
- import { name_attribute, url_attribute, description_attribute, id_attribute } from "./attributes.mjs";
3
+ import {
4
+ name_attribute,
5
+ description_attribute,
6
+ id_attribute
7
+ } from "./attributes.mjs";
4
8
 
5
9
  /**
6
10
  * Object with a name.
@@ -11,7 +15,6 @@ import { name_attribute, url_attribute, description_attribute, id_attribute } fr
11
15
  * @property {string} name
12
16
  */
13
17
  export class NamedObject extends BaseObject {
14
-
15
18
  static get attributes() {
16
19
  return {
17
20
  id: id_attribute,
@@ -39,7 +42,7 @@ export class NamedObject extends BaseObject {
39
42
  this.provider.equals(other.provider)
40
43
  );
41
44
  }
42
-
45
+
43
46
  /**
44
47
  * Provided name and all defined attributes.
45
48
  */
package/src/ref.mjs CHANGED
@@ -128,14 +128,6 @@ export class Ref extends OwnedObject {
128
128
  : `${this.owner.identifier}#${this.name}`;
129
129
  }
130
130
 
131
- /**
132
- * Same as identifier.
133
- * @return {string}
134
- */
135
- toString() {
136
- return this.identifier;
137
- }
138
-
139
131
  /**
140
132
  * Url of issue tracking system.
141
133
  * @see {@link Repository#issuesURL}