repository-provider 30.3.3 → 30.3.4

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": "30.3.3",
3
+ "version": "30.3.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,6 +10,18 @@ import { BaseObject } from "./base-object.mjs";
10
10
  * @property {string} name
11
11
  */
12
12
  export class NamedObject extends BaseObject {
13
+ /**
14
+ * options
15
+ */
16
+ static get attributes() {
17
+ return {
18
+ ...super.attributes,
19
+ name: {
20
+ type: "string"
21
+ }
22
+ };
23
+ }
24
+
13
25
  constructor(name, options, additionalProperties) {
14
26
  super(options, {
15
27
  name: { value: name },
@@ -35,7 +47,7 @@ export class NamedObject extends BaseObject {
35
47
  get fullName() {
36
48
  return this.owner ? this.owner.name + "/" + this.name : this.name;
37
49
  }
38
-
50
+
39
51
  /**
40
52
  * Provided name and all defined attributes.
41
53
  */
@@ -280,7 +280,7 @@ export class PullRequest extends OwnedObject {
280
280
  ...Object.keys(this.constructor.attributes)
281
281
  .filter(
282
282
  k =>
283
- k !== "id" && k !== "title" && k !== "body" && k !== "url" && this[k] !== undefined
283
+ k !== "id" && k !== "title" && k !== "body" && k !== "url" && k !== "name" && this[k] !== undefined
284
284
  )
285
285
  .map(k => [k, this[k]])
286
286
  ]
@@ -291,8 +291,7 @@ export class PullRequest extends OwnedObject {
291
291
  toJSON() {
292
292
  return optionJSON(this, {
293
293
  source: this.source,
294
- destination: this.owner,
295
- name: this.name
294
+ destination: this.owner
296
295
  });
297
296
  }
298
297