repository-provider 35.5.6 → 35.5.8

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": "35.5.6",
3
+ "version": "35.5.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -39,14 +39,14 @@
39
39
  "dependencies": {
40
40
  "content-entry": "^14.2.3",
41
41
  "matching-iterator": "^2.1.4",
42
- "pacc": "^4.1.0"
42
+ "pacc": "^4.2.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "ava": "^6.4.1",
46
46
  "browser-ava": "^2.3.31",
47
47
  "c8": "^10.1.3",
48
48
  "documentation": "^14.0.3",
49
- "repository-provider-test-support": "^3.1.49",
49
+ "repository-provider-test-support": "^3.1.50",
50
50
  "semantic-release": "^24.2.7",
51
51
  "typescript": "^5.8.3"
52
52
  },
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  url_attribute,
3
3
  name_attribute,
4
- description_attribute,
5
4
  priority_attribute,
6
5
  default_attribute
7
6
  } from "pacc";
@@ -119,6 +118,8 @@ export class BaseProvider extends BaseObject {
119
118
  }
120
119
 
121
120
  static attributes = {
121
+ ...BaseObject.attributes,
122
+
122
123
  /**
123
124
  * Name of the provider.
124
125
  */
@@ -128,7 +129,6 @@ export class BaseProvider extends BaseObject {
128
129
  },
129
130
 
130
131
  url: url_attribute,
131
- description: description_attribute,
132
132
  priority: priority_attribute,
133
133
 
134
134
  /**
package/src/hook.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  boolean_attribute,
4
4
  active_attribute,
5
5
  url_attribute,
6
- default_attribute
6
+ string_attribute
7
7
  } from "pacc";
8
8
  import { OwnedObject } from "./owned-object.mjs";
9
9
 
@@ -18,7 +18,7 @@ export class Hook extends OwnedObject {
18
18
  active: active_attribute,
19
19
  secret: secret_attribute,
20
20
  url: { ...url_attribute, description: "target url", writable: true },
21
- content_type: { ...default_attribute, default: "json", writable: true },
21
+ content_type: { ...string_attribute, default: "json", writable: true },
22
22
  insecure_ssl: boolean_attribute,
23
23
  events: { type: "set", default: this.defaultEvents }
24
24
  };
@@ -1,4 +1,4 @@
1
- import { name_attribute, description_attribute, id_attribute } from "pacc";
1
+ import { name_attribute } from "pacc";
2
2
  import { optionJSON } from "./attribute-extras.mjs";
3
3
  import { BaseObject } from "./base-object.mjs";
4
4
 
@@ -15,9 +15,8 @@ import { BaseObject } from "./base-object.mjs";
15
15
  */
16
16
  export class NamedObject extends BaseObject {
17
17
  static attributes = {
18
- id: id_attribute,
19
- name: name_attribute,
20
- description: description_attribute
18
+ ...BaseObject.attributes,
19
+ name: name_attribute
21
20
  };
22
21
 
23
22
  constructor(name, options, additionalProperties) {
@@ -1,5 +1,5 @@
1
1
  import {
2
- default_attribute,
2
+ string_attribute,
3
3
  url_attribute,
4
4
  boolean_attribute,
5
5
  boolean_attribute_false
@@ -56,7 +56,7 @@ export class Repository extends OwnedObject {
56
56
  * @return {string}
57
57
  */
58
58
  defaultBranchName: {
59
- ...default_attribute,
59
+ ...string_attribute,
60
60
  default: Repository.defaultBranchName
61
61
  },
62
62
 
@@ -67,7 +67,6 @@ export class BaseProvider extends BaseObject {
67
67
  get?: Function;
68
68
  };
69
69
  url: import("pacc").AttributeDefinition;
70
- description: import("pacc").AttributeDefinition;
71
70
  priority: import("pacc").AttributeDefinition;
72
71
  /**
73
72
  * To forward info/warn and error messages to
@@ -86,6 +85,8 @@ export class BaseProvider extends BaseObject {
86
85
  get?: Function;
87
86
  env?: string[] | string;
88
87
  };
88
+ id: import("pacc").AttributeDefinition;
89
+ description: import("pacc").AttributeDefinition;
89
90
  };
90
91
  /**
91
92
  * @typedef {Object} parsedName
package/types/hook.d.mts CHANGED
@@ -39,8 +39,8 @@ export class Hook extends OwnedObject {
39
39
  type: string;
40
40
  default: Set<string>;
41
41
  };
42
- id: import("pacc").AttributeDefinition;
43
42
  name: import("pacc").AttributeDefinition;
43
+ id: import("pacc").AttributeDefinition;
44
44
  description: import("pacc").AttributeDefinition;
45
45
  };
46
46
  static get delteteMethodName(): string;
@@ -3,8 +3,8 @@
3
3
  export class Milestone extends OwnedObject {
4
4
  static attributes: {
5
5
  state: import("pacc").AttributeDefinition;
6
- id: import("pacc").AttributeDefinition;
7
6
  name: import("pacc").AttributeDefinition;
7
+ id: import("pacc").AttributeDefinition;
8
8
  description: import("pacc").AttributeDefinition;
9
9
  };
10
10
  issues(): AsyncGenerator<never, void, unknown>;
@@ -11,8 +11,8 @@
11
11
  */
12
12
  export class NamedObject extends BaseObject {
13
13
  static attributes: {
14
- id: import("pacc").AttributeDefinition;
15
14
  name: import("pacc").AttributeDefinition;
15
+ id: import("pacc").AttributeDefinition;
16
16
  description: import("pacc").AttributeDefinition;
17
17
  };
18
18
  constructor(name: any, options: any, additionalProperties: any);
@@ -102,8 +102,8 @@ export class PullRequest extends OwnedObject {
102
102
  draft: import("pacc").AttributeDefinition;
103
103
  dry: import("pacc").AttributeDefinition;
104
104
  empty: import("pacc").AttributeDefinition;
105
- id: import("pacc").AttributeDefinition;
106
105
  name: import("pacc").AttributeDefinition;
106
+ id: import("pacc").AttributeDefinition;
107
107
  description: import("pacc").AttributeDefinition;
108
108
  };
109
109
  /** @type {Branch} */ source: Branch;
@@ -41,8 +41,8 @@ export class Repository extends OwnedObject {
41
41
  isDisabled: import("pacc").AttributeDefinition;
42
42
  isTemplate: import("pacc").AttributeDefinition;
43
43
  isFork: import("pacc").AttributeDefinition;
44
- id: import("pacc").AttributeDefinition;
45
44
  name: import("pacc").AttributeDefinition;
45
+ id: import("pacc").AttributeDefinition;
46
46
  description: import("pacc").AttributeDefinition;
47
47
  };
48
48
  /**