bitbucket-repository-provider 6.2.0 → 6.2.2

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": "bitbucket-repository-provider",
3
- "version": "6.2.0",
3
+ "version": "6.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -39,10 +39,10 @@
39
39
  "fetch-rate-limit-util": "^4.5.3",
40
40
  "matching-iterator": "^2.1.4",
41
41
  "one-time-execution-method": "^3.1.3",
42
- "repository-provider": "^35.5.0"
42
+ "repository-provider": "^35.5.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^24.0.15",
45
+ "@types/node": "^24.1.0",
46
46
  "ava": "^6.4.1",
47
47
  "c8": "^10.1.3",
48
48
  "documentation": "^14.0.3",
@@ -1,5 +1,6 @@
1
1
  import { matcher } from "matching-iterator";
2
2
  import { Branch } from "repository-provider";
3
+ import { default_attribute } from "pacc";
3
4
  import {
4
5
  ContentEntry,
5
6
  BufferContentEntry,
@@ -20,7 +21,7 @@ export class BitbucketBranch extends Branch {
20
21
  *
21
22
  * @return {string}
22
23
  */
23
- hash: { type: "string" }
24
+ hash: default_attribute
24
25
  };
25
26
  }
26
27
 
@@ -1,6 +1,6 @@
1
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
2
  import { stateActionHandler } from "fetch-rate-limit-util";
3
- import { url_attribute, secret_attribute, default_attribute } from "pacc";
3
+ import { url_attribute, token_attribute, username_attribute, password_attribute } from "pacc";
4
4
  import { MultiGroupProvider } from "repository-provider";
5
5
  import { BitbucketBranch } from "./bitbucket-branch.mjs";
6
6
  import { BitbucketRepositoryGroup } from "./bitbucket-repository-group.mjs";
@@ -75,13 +75,13 @@ export class BitbucketProvider extends MultiGroupProvider {
75
75
  default: `https://api.${domain}/2.0/`
76
76
  },
77
77
  "authentication.token": {
78
- ...secret_attribute,
78
+ ...token_attribute,
79
79
  description: "API token",
80
80
  env: "{{instanceIdentifier}}TOKEN",
81
81
  additionalAttributes: { "authentication.type": "token" }
82
82
  },
83
83
  "authentication.password": {
84
- ...secret_attribute,
84
+ ...password_attribute,
85
85
  description: "Password for plain authentification",
86
86
  env: [
87
87
  "{{instanceIdentifier}}APP_PASSWORD",
@@ -90,7 +90,7 @@ export class BitbucketProvider extends MultiGroupProvider {
90
90
  additionalAttributes: { "authentication.type": "basic" }
91
91
  },
92
92
  "authentication.username": {
93
- ...default_attribute,
93
+ ...username_attribute,
94
94
  description: "Username for plain authentification",
95
95
  env: "{{instanceIdentifier}}USERNAME",
96
96
  additionalAttributes: { "authentication.type": "basic" }
@@ -25,8 +25,8 @@ export class BitbucketRepository extends Repository {
25
25
  return {
26
26
  ...super.attributes,
27
27
  uuid: uuid_attribute,
28
- size_attribute,
29
- language_attribute,
28
+ size: size_attribute,
29
+ language: language_attribute,
30
30
  fork_policy: { ...default_attribute, default: "allow_forks" }
31
31
  };
32
32
  }
@@ -13,8 +13,8 @@
13
13
  export class BitbucketRepository extends Repository {
14
14
  static get attributes(): {
15
15
  uuid: import("pacc").AttributeDefinition;
16
- size_attribute: import("pacc").AttributeDefinition;
17
- language_attribute: import("pacc").AttributeDefinition;
16
+ size: import("pacc").AttributeDefinition;
17
+ language: import("pacc").AttributeDefinition;
18
18
  fork_policy: {
19
19
  default: string;
20
20
  type: string;
@@ -42,15 +42,7 @@ export class BitbucketRepository extends Repository {
42
42
  description?: string;
43
43
  set?: Function;
44
44
  get?: Function;
45
- env
46
- /**
47
- * Deliver the url of home page.
48
- * @return {string} '.../overwiew'
49
- */
50
- ? /**
51
- * Deliver the url of home page.
52
- * @return {string} '.../overwiew'
53
- */: string[] | string;
45
+ env?: string[] | string;
54
46
  };
55
47
  cloneURL: import("pacc").AttributeDefinition;
56
48
  isArchived: import("pacc").AttributeDefinition;