repository-provider 37.1.4 → 37.1.6

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": "37.1.4",
3
+ "version": "37.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -35,14 +35,14 @@
35
35
  "dependencies": {
36
36
  "content-entry": "^14.2.7",
37
37
  "matching-iterator": "^2.1.7",
38
- "pacc": "^10.0.2"
38
+ "pacc": "^10.4.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "ava": "^8.0.1",
42
- "browser-ava": "^2.3.62",
42
+ "browser-ava": "^2.3.63",
43
43
  "c8": "^11.0.0",
44
44
  "documentation": "^14.0.3",
45
- "repository-provider-test-support": "^5.0.25",
45
+ "repository-provider-test-support": "^5.0.26",
46
46
  "semantic-release": "^25.0.5"
47
47
  },
48
48
  "overrides": {
@@ -1,4 +1,4 @@
1
- import { getAttributesJSON, name_attribute_writable } from "pacc";
1
+ import { getAttributesJSON, name_attribute, name_attribute_writable } from "pacc";
2
2
  import { BaseObject } from "./base-object.mjs";
3
3
 
4
4
  /**
@@ -15,7 +15,8 @@ import { BaseObject } from "./base-object.mjs";
15
15
  export class NamedObject extends BaseObject {
16
16
  static attributes = {
17
17
  ...BaseObject.attributes,
18
- name: name_attribute_writable
18
+ name: name_attribute_writable,
19
+ displayName: { ...name_attribute, name: "displayName" }
19
20
  };
20
21
 
21
22
  name;
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  getAttributesJSON,
3
3
  attributeIterator,
4
+ default_attribute_writable,
4
5
  url_attribute,
5
6
  state_attribute_writable,
6
7
  body_attribute_writable,
@@ -97,6 +98,9 @@ export class PullRequest extends OwnedObject {
97
98
 
98
99
  static attributes = {
99
100
  ...super.attributes,
101
+ source: { ...default_attribute_writable, name: "source", type: "Branch" },
102
+ destination: { ...default_attribute_writable, name: "destination", type: "Branch" },
103
+
100
104
  body: body_attribute_writable,
101
105
  title: title_attribute_writable,
102
106
  url: url_attribute,
@@ -132,7 +136,8 @@ export class PullRequest extends OwnedObject {
132
136
  */
133
137
  draft: { ...boolean_attribute_writable_false, name: "draft" },
134
138
  dry: { ...boolean_attribute_false, name: "dry" },
135
- empty: empty_attribute
139
+ empty: empty_attribute,
140
+
136
141
  };
137
142
 
138
143
  /** @type {Branch} */ source;
@@ -238,8 +243,6 @@ export class PullRequest extends OwnedObject {
238
243
  toString() {
239
244
  return [
240
245
  [this.name, this.title],
241
- ["source", this.source?.identifier],
242
- ["destination", this.owner.identifier],
243
246
  ...[
244
247
  ...attributeIterator(
245
248
  this.constructor.attributes,