bitbucket-repository-provider 6.1.18 → 6.2.0

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.1.18",
3
+ "version": "6.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -39,19 +39,19 @@
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.4.25"
42
+ "repository-provider": "^35.5.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^24.0.14",
45
+ "@types/node": "^24.0.15",
46
46
  "ava": "^6.4.1",
47
47
  "c8": "^10.1.3",
48
48
  "documentation": "^14.0.3",
49
- "repository-provider-test-support": "^3.1.42",
49
+ "repository-provider-test-support": "^3.1.48",
50
50
  "semantic-release": "^24.2.7",
51
51
  "typescript": "^5.8.3"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.15.0"
54
+ "node": ">=22.17.1"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",
@@ -1,11 +1,7 @@
1
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
2
  import { stateActionHandler } from "fetch-rate-limit-util";
3
- import {
4
- MultiGroupProvider,
5
- url_attribute,
6
- secret_attribute,
7
- default_attribute
8
- } from "repository-provider";
3
+ import { url_attribute, secret_attribute, default_attribute } from "pacc";
4
+ import { MultiGroupProvider } from "repository-provider";
9
5
  import { BitbucketBranch } from "./bitbucket-branch.mjs";
10
6
  import { BitbucketRepositoryGroup } from "./bitbucket-repository-group.mjs";
11
7
  import { BitbucketRepository } from "./bitbucket-repository.mjs";
@@ -1,17 +1,10 @@
1
- import {
2
- PullRequest,
3
- Repository,
4
- Branch,
5
- boolean_attribute,
6
- count_attribute,
7
- default_attribute
8
- } from "repository-provider";
1
+ import { boolean_attribute, count_attribute, default_attribute } from "pacc";
2
+ import { PullRequest, Repository, Branch } from "repository-provider";
9
3
 
10
4
  /**
11
5
  * Pull request inside bitbucket
12
6
  */
13
7
  export class BitbucketPullRequest extends PullRequest {
14
-
15
8
  static states = new Set(["OPEN", "MERGED", "SUPERSEDED", "DECLINED"]);
16
9
  static mergeStrategies = new Set(["fast_forward", "squash", "merge_commit"]);
17
10
 
@@ -1,10 +1,10 @@
1
- import { Repository, RepositoryGroup, uuid_attribute } from "repository-provider";
1
+ import { uuid_attribute } from "pacc";
2
+ import { Repository, RepositoryGroup } from "repository-provider";
2
3
 
3
4
  /**
4
5
  *
5
6
  */
6
7
  export class BitbucketRepositoryGroup extends RepositoryGroup {
7
-
8
8
  static get attributes() {
9
9
  return {
10
10
  ...super.attributes,
@@ -1,12 +1,11 @@
1
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
2
  import {
3
- Repository,
4
- RepositoryOwner,
5
3
  uuid_attribute,
6
4
  size_attribute,
7
5
  language_attribute,
8
6
  default_attribute
9
- } from "repository-provider";
7
+ } from "pacc";
8
+ import { Repository, RepositoryOwner } from "repository-provider";
10
9
  import { BitbucketBranch } from "./bitbucket-branch.mjs";
11
10
 
12
11
  /**
@@ -7,7 +7,6 @@ export class BitbucketPullRequest extends PullRequest {
7
7
  state: {
8
8
  values: Set<string>;
9
9
  writeable: boolean;
10
- name: string;
11
10
  type: string;
12
11
  isKey: boolean;
13
12
  writable: boolean;
@@ -17,7 +17,6 @@ export class BitbucketRepository extends Repository {
17
17
  language_attribute: import("pacc").AttributeDefinition;
18
18
  fork_policy: {
19
19
  default: string;
20
- name: string;
21
20
  type: string;
22
21
  isKey: boolean;
23
22
  writable: boolean;
@@ -33,7 +32,6 @@ export class BitbucketRepository extends Repository {
33
32
  url: import("pacc").AttributeDefinition;
34
33
  defaultBranchName: {
35
34
  default: string;
36
- name: string;
37
35
  type: string;
38
36
  isKey: boolean;
39
37
  writable: boolean;
@@ -44,7 +42,15 @@ export class BitbucketRepository extends Repository {
44
42
  description?: string;
45
43
  set?: Function;
46
44
  get?: Function;
47
- env?: string[] | string;
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;
48
54
  };
49
55
  cloneURL: import("pacc").AttributeDefinition;
50
56
  isArchived: import("pacc").AttributeDefinition;