repository-provider 31.2.0 → 31.2.3

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/README.md CHANGED
@@ -97,8 +97,6 @@ console.log(await readme.getString());
97
97
  * [description](#description)
98
98
  * [id](#id)
99
99
  * [uuid](#uuid)
100
- * [avatarURL](#avatarurl)
101
- * [homePageURL](#homepageurl)
102
100
  * [MessageDestination](#messagedestination)
103
101
  * [Properties](#properties-1)
104
102
  * [BaseProvider](#baseprovider)
@@ -202,6 +200,8 @@ console.log(await readme.getString());
202
200
  * [fullName](#fullname-1)
203
201
  * [toJSON](#tojson-1)
204
202
  * [attributes](#attributes-1)
203
+ * [avatarURL](#avatarurl)
204
+ * [homePageURL](#homepageurl)
205
205
  * [OwnedObject](#ownedobject)
206
206
  * [Parameters](#parameters-45)
207
207
  * [equals](#equals-3)
@@ -650,18 +650,6 @@ Unique id.
650
650
 
651
651
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
652
652
 
653
- ## avatarURL
654
-
655
- Avatar.
656
-
657
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
658
-
659
- ## homePageURL
660
-
661
- The url of home page.
662
-
663
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
664
-
665
653
  ## MessageDestination
666
654
 
667
655
  Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
@@ -1205,6 +1193,18 @@ Provided name and all defined attributes.
1205
1193
 
1206
1194
  options
1207
1195
 
1196
+ ## avatarURL
1197
+
1198
+ Avatar.
1199
+
1200
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
1201
+
1202
+ ## homePageURL
1203
+
1204
+ The url of home page.
1205
+
1206
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
1207
+
1208
1208
  ## OwnedObject
1209
1209
 
1210
1210
  **Extends NamedObject**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "31.2.0",
3
+ "version": "31.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,10 +33,10 @@
33
33
  "matching-iterator": "^2.0.4"
34
34
  },
35
35
  "devDependencies": {
36
- "ava": "^4.2.0",
36
+ "ava": "^4.3.0",
37
37
  "c8": "^7.11.3",
38
38
  "documentation": "^13.2.5",
39
- "repository-provider-test-support": "^2.1.26",
39
+ "repository-provider-test-support": "^2.2.0",
40
40
  "semantic-release": "^19.0.2",
41
41
  "typescript": "^4.7.2"
42
42
  },
@@ -153,7 +153,7 @@ export class PullRequest extends OwnedObject {
153
153
  },
154
154
 
155
155
  url: {
156
- type: "string"
156
+ type: "url"
157
157
  }
158
158
  };
159
159
  }
@@ -277,12 +277,16 @@ export class PullRequest extends OwnedObject {
277
277
  [this.name, this.title],
278
278
  ["source", this.source.identifier],
279
279
  ["destination", this.owner.identifier],
280
- ...Object.keys(this.constructor.attributes)
280
+ ...Object.entries(this.constructor.attributes)
281
281
  .filter(
282
- k =>
283
- k !== "id" && k !== "title" && k !== "body" && k !== "url" && k !== "name" && this[k] !== undefined
282
+ ([k, v]) =>
283
+ !v.isKey &&
284
+ v.type !== "url" &&
285
+ k !== "title" &&
286
+ k !== "body" &&
287
+ this[k] !== undefined
284
288
  )
285
- .map(k => [k, this[k]])
289
+ .map(([k]) => [k, this[k]])
286
290
  ]
287
291
  .map(([k, v]) => `${k}: ${v}`)
288
292
  .join(", ");