repository-provider 31.2.0 → 31.2.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": "31.2.0",
3
+ "version": "31.2.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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(", ");