bitbucket-repository-provider 6.0.19 → 6.0.20

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/README.md CHANGED
@@ -263,8 +263,12 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
263
263
 
264
264
  ### update
265
265
 
266
+ * **See**: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put>
267
+
266
268
  ### initializeHooks
267
269
 
270
+ * **See**: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-get>
271
+
268
272
  ### initializeBranches
269
273
 
270
274
  <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-group-refs>
@@ -280,7 +284,7 @@ Create a new branch
280
284
  * `from` **[BitbucketBranch](#bitbucketbranch)** (optional, default `this.defaultBranch`)
281
285
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
282
286
 
283
- * `options.message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
287
+ * `options.message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**&#x20;
284
288
 
285
289
  ### deleteBranch
286
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-repository-provider",
3
- "version": "6.0.19",
3
+ "version": "6.0.20",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -25,17 +25,17 @@
25
25
  "license": "BSD-2-Clause",
26
26
  "scripts": {
27
27
  "prepare": "npm run prepare:typescript",
28
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
28
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
29
29
  "test": "npm run test:ava",
30
30
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
31
31
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
32
32
  "docs": "documentation readme --section=API ./src/**/*.mjs",
33
33
  "lint": "npm run lint:docs && npm run lint:typescript",
34
34
  "lint:docs": "documentation lint ./src/**/*.mjs",
35
- "lint:typescript": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
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": "^9.0.2",
38
+ "content-entry": "^10.0.1",
39
39
  "fetch-rate-limit-util": "^4.2.2",
40
40
  "matching-iterator": "^2.1.3",
41
41
  "one-time-execution-method": "^3.1.1",
@@ -4,6 +4,12 @@
4
4
  export class BitbucketBranch extends Branch {
5
5
  initialize(): Promise<void>;
6
6
  hash: any;
7
+ /**
8
+ * {@link https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/src/%7Bnode%7D/%7Bpath%7D}
9
+ * @param {string} name
10
+ * @return {Promise<ContentEntry>}
11
+ */
12
+ entry(name: string): Promise<ContentEntry>;
7
13
  /**
8
14
  *
9
15
  * @param patterns
@@ -25,6 +31,7 @@ export class BitbucketBranch extends Branch {
25
31
  get entryClass(): typeof BufferContentEntry;
26
32
  }
27
33
  import { Branch } from "repository-provider";
34
+ import { ContentEntry } from "content-entry";
28
35
  declare const LazyBufferContentEntry_base: new (name: string) => {
29
36
  readonly string: string;
30
37
  readonly readStream: ReadableStream<any>;
@@ -47,13 +54,12 @@ declare const LazyBufferContentEntry_base: new (name: string) => {
47
54
  isBlob: boolean;
48
55
  isCollection: boolean;
49
56
  };
50
- equals(other: any): Promise<boolean>;
57
+ equals(other: import("content-entry").BaseEntry): Promise<boolean>;
51
58
  };
52
59
  declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
53
60
  constructor(name: any, branch: any);
54
61
  get buffer(): Promise<Buffer>;
55
62
  _buffer(): Promise<Buffer>;
56
63
  }
57
- import { ContentEntry } from "content-entry";
58
64
  import { BufferContentEntry } from "content-entry";
59
65
  export {};