bitbucket-repository-provider 6.0.20 → 6.0.21

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.0.20",
3
+ "version": "6.0.21",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -35,23 +35,23 @@
35
35
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
36
36
  },
37
37
  "dependencies": {
38
- "content-entry": "^10.0.1",
39
- "fetch-rate-limit-util": "^4.2.2",
38
+ "content-entry": "^11.0.0",
39
+ "fetch-rate-limit-util": "^4.3.1",
40
40
  "matching-iterator": "^2.1.3",
41
41
  "one-time-execution-method": "^3.1.1",
42
42
  "repository-provider": "^35.2.15"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^20.11.25",
46
- "ava": "^6.1.2",
45
+ "@types/node": "^20.12.11",
46
+ "ava": "^6.1.3",
47
47
  "c8": "^9.1.0",
48
48
  "documentation": "^14.0.3",
49
49
  "repository-provider-test-support": "^3.1.4",
50
- "semantic-release": "^23.0.2",
51
- "typescript": "^5.4.2"
50
+ "semantic-release": "^23.1.1",
51
+ "typescript": "^5.4.5"
52
52
  },
53
53
  "engines": {
54
- "node": ">=20.11.1"
54
+ "node": ">=20.12.2"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",
@@ -4,7 +4,7 @@ import {
4
4
  ContentEntry,
5
5
  BufferContentEntry,
6
6
  BufferContentEntryMixin,
7
- BaseCollectionEntry
7
+ CollectionEntry
8
8
  } from "content-entry";
9
9
 
10
10
  /**
@@ -62,7 +62,7 @@ export class BitbucketBranch extends Branch {
62
62
 
63
63
  /**
64
64
  *
65
- * @param patterns
65
+ * @param {string[]|string} patterns
66
66
  */
67
67
  async *entries(patterns) {
68
68
  await this.initialize();
@@ -73,7 +73,7 @@ export class BitbucketBranch extends Branch {
73
73
 
74
74
  for (const entry of matcher(json.values, patterns, { name: "path" })) {
75
75
  yield entry.type === "commit_directory"
76
- ? new BaseCollectionEntry(entry.path)
76
+ ? new CollectionEntry(entry.path)
77
77
  : new LazyBufferContentEntry(entry.path, this);
78
78
  }
79
79
  }
@@ -12,14 +12,9 @@ export class BitbucketBranch extends Branch {
12
12
  entry(name: string): Promise<ContentEntry>;
13
13
  /**
14
14
  *
15
- * @param patterns
15
+ * @param {string[]|string} patterns
16
16
  */
17
- entries(patterns: any): AsyncGenerator<{
18
- [x: string]: any;
19
- readonly isCollection: boolean;
20
- readonly types: string[];
21
- readonly mode: number;
22
- } | LazyBufferContentEntry, void, unknown>;
17
+ entries(patterns: string[] | string): AsyncGenerator<CollectionEntry | LazyBufferContentEntry, void, unknown>;
23
18
  /**
24
19
  * Commit entries
25
20
  * @param {string} message commit message
@@ -32,6 +27,7 @@ export class BitbucketBranch extends Branch {
32
27
  }
33
28
  import { Branch } from "repository-provider";
34
29
  import { ContentEntry } from "content-entry";
30
+ import { CollectionEntry } from "content-entry";
35
31
  declare const LazyBufferContentEntry_base: new (name: string) => {
36
32
  readonly string: string;
37
33
  readonly readStream: ReadableStream<any>;
@@ -35,8 +35,8 @@ export class BitbucketProvider extends MultiGroupProvider {
35
35
  * {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories}
36
36
  */
37
37
  initializeRepositories(): Promise<void>;
38
- fetch(url: any, options?: {}): any;
39
- fetchJSON(url: any, options?: {}): any;
38
+ fetch(url: any, options?: {}): Promise<Response>;
39
+ fetchJSON(url: any, options?: {}): Promise<Response>;
40
40
  }
41
41
  export default BitbucketProvider;
42
42
  import { BitbucketBranch } from "./bitbucket-branch.mjs";