@repository-settings/app 4.1.3 → 4.1.5

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.
@@ -4,7 +4,7 @@ import Diffable from './diffable.js'
4
4
 
5
5
  export default class Rulesets extends Diffable {
6
6
  async find () {
7
- const { data: rulesets } = await this.github.repos.getRepoRulesets(this.repo)
7
+ const { data: rulesets } = await this.github.repos.getRepoRulesets({ ...this.repo, includes_parents: false })
8
8
 
9
9
  const expandedRulesetsData = await Promise.all(
10
10
  rulesets.map(({ id }) => this.github.repos.getRepoRuleset({ ...this.repo, ruleset_id: id }))
@@ -18,7 +18,17 @@ export default class Rulesets extends Diffable {
18
18
  }
19
19
 
20
20
  changed (existing, attrs) {
21
- const { id, ...existingAttrs } = existing
21
+ const {
22
+ id,
23
+ _links,
24
+ created_at: createdAt,
25
+ updated_at: updatedAd,
26
+ source_type: sourceType,
27
+ source,
28
+ node_id: nodeId,
29
+ current_user_can_bypass: currentUserCanBypass,
30
+ ...existingAttrs
31
+ } = existing
22
32
 
23
33
  return !deepEqual(existingAttrs, attrs)
24
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repository-settings/app",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Pull Requests for GitHub repository settings",
5
5
  "repository": "github:repository-settings/app",
6
6
  "type": "module",