bitbucket-repository-provider 6.0.29 → 6.0.30

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/LICENSE CHANGED
@@ -1,23 +1,12 @@
1
- Copyright (c) 2017-2024 by arlac77
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ Copyright (C) 2017-2025 by arlac77
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted.
5
+
6
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
12
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![npm](https://img.shields.io/npm/v/bitbucket-repository-provider.svg)](https://www.npmjs.com/package/bitbucket-repository-provider)
2
- [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
2
+ [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
3
  [![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\&label\&labelColor=blue\&color=555555)](https://typescriptlang.org)
4
4
  [![bundlejs](https://deno.bundlejs.com/?q=bitbucket-repository-provider\&badge=detailed)](https://bundlejs.com/?q=bitbucket-repository-provider)
5
5
  [![downloads](http://img.shields.io/npm/dm/bitbucket-repository-provider.svg?style=flat-square)](https://npmjs.org/package/bitbucket-repository-provider)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-repository-provider",
3
- "version": "6.0.29",
3
+ "version": "6.0.30",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -22,36 +22,36 @@
22
22
  "email": "markus.felten@gmx.de"
23
23
  }
24
24
  ],
25
- "license": "BSD-2-Clause",
25
+ "license": "0BSD",
26
26
  "scripts": {
27
- "prepare": "npm run prepare:typescript",
28
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
29
- "test": "npm run test:ava",
27
+ "prepare": "node --run prepare:typescript",
28
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
29
+ "test": "node --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
- "docs": "documentation readme --section=API ./src/**/*.mjs",
33
- "lint": "npm run lint:docs && npm run lint:typescript",
34
- "lint:docs": "documentation lint ./src/**/*.mjs",
35
- "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
32
+ "docs": "documentation readme --section=API ./src**/*.mjs",
33
+ "lint": "node --run lint:docs && node --run lint:typescript",
34
+ "lint:docs": "documentation lint ./src**/*.mjs",
35
+ "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
36
36
  },
37
37
  "dependencies": {
38
- "content-entry": "^11.0.1",
39
- "fetch-rate-limit-util": "^4.4.0",
38
+ "content-entry": "^13.0.4",
39
+ "fetch-rate-limit-util": "^4.4.1",
40
40
  "matching-iterator": "^2.1.3",
41
41
  "one-time-execution-method": "^3.1.1",
42
- "repository-provider": "^35.2.23"
42
+ "repository-provider": "^35.3.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^22.1.0",
46
- "ava": "^6.1.3",
47
- "c8": "^10.1.2",
45
+ "@types/node": "^22.15.3",
46
+ "ava": "^6.3.0",
47
+ "c8": "^10.1.3",
48
48
  "documentation": "^14.0.3",
49
- "repository-provider-test-support": "^3.1.7",
50
- "semantic-release": "^24.0.0",
51
- "typescript": "^5.5.4"
49
+ "repository-provider-test-support": "^3.1.11",
50
+ "semantic-release": "^24.2.3",
51
+ "typescript": "^5.8.3"
52
52
  },
53
53
  "engines": {
54
- "node": ">=20.12.2"
54
+ "node": ">=22.15.0"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",
@@ -3,7 +3,6 @@ import { Branch } from "repository-provider";
3
3
  import {
4
4
  ContentEntry,
5
5
  BufferContentEntry,
6
- BufferContentEntryMixin,
7
6
  CollectionEntry
8
7
  } from "content-entry";
9
8
 
@@ -109,19 +108,22 @@ export class BitbucketBranch extends Branch {
109
108
  }
110
109
  }
111
110
 
112
- class LazyBufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
111
+ class LazyBufferContentEntry extends BufferContentEntry {
113
112
  constructor(name, branch) {
114
113
  super(name);
115
- Object.defineProperties(this, {
116
- branch: { value: branch }
117
- });
114
+ this.branch = branch;
118
115
  }
119
116
 
120
117
  get buffer() {
121
- return this._buffer();
118
+ return this.getBuffer();
122
119
  }
123
120
 
124
- async _buffer() {
121
+ set buffer(value)
122
+ {
123
+ this._buffer = value;
124
+ }
125
+
126
+ async getBuffer() {
125
127
  const branch = this.branch;
126
128
 
127
129
  const res = await branch.provider.fetch(
@@ -54,7 +54,6 @@ export class BitbucketPullRequest extends PullRequest {
54
54
  url = json.next;
55
55
 
56
56
  if (json.values) {
57
- console.log("N",json.values.length);
58
57
  for (const p of json.values) {
59
58
  const source = await getBranch(p.source);
60
59
 
@@ -21,34 +21,12 @@ export class BitbucketBranch extends Branch {
21
21
  }
22
22
  import { Branch } from "repository-provider";
23
23
  import { CollectionEntry } from "content-entry";
24
- declare const LazyBufferContentEntry_base: new (name: string) => {
25
- readonly string: string;
26
- readonly readStream: ReadableStream<any>;
27
- readonly isEmpty: boolean;
28
- readonly size: number;
29
- getReadStream(): Promise<ReadableStream<any>>;
30
- readonly isBlob: boolean;
31
- readonly types: string[];
32
- readonly buffer: Uint8Array;
33
- readonly encoding: string;
34
- equalsContent(other: ContentEntry): Promise<boolean>;
35
- name: string;
36
- readonly isCollection: boolean;
37
- readonly mode: number;
38
- readonly mtime: Date;
39
- readonly isDeleted: boolean;
40
- readonly isExistent: boolean;
41
- toJSON(): {
42
- name: string;
43
- isBlob: boolean;
44
- isCollection: boolean;
45
- };
46
- equals(other: import("content-entry").BaseEntry): Promise<boolean>;
47
- };
48
- declare class LazyBufferContentEntry extends LazyBufferContentEntry_base {
24
+ declare class LazyBufferContentEntry extends BufferContentEntry {
49
25
  constructor(name: any, branch: any);
50
- get buffer(): Promise<Buffer>;
51
- _buffer(): Promise<Buffer>;
26
+ branch: any;
27
+ set buffer(value: Promise<Buffer<any>>);
28
+ get buffer(): Promise<Buffer<any>>;
29
+ getBuffer(): Promise<Buffer<any>>;
52
30
  }
53
31
  import { ContentEntry } from "content-entry";
54
32
  import { BufferContentEntry } from "content-entry";