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 +12 -23
- package/README.md +1 -1
- package/package.json +19 -19
- package/src/bitbucket-branch.mjs +9 -7
- package/src/bitbucket-pull-request.mjs +0 -1
- package/types/bitbucket-branch.d.mts +5 -27
package/LICENSE
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
Copyright (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
[](https://www.npmjs.com/package/bitbucket-repository-provider)
|
|
2
|
-
[](https://spdx.org/licenses/0BSD.html)
|
|
3
3
|
[](https://typescriptlang.org)
|
|
4
4
|
[](https://bundlejs.com/?q=bitbucket-repository-provider)
|
|
5
5
|
[](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.
|
|
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": "
|
|
25
|
+
"license": "0BSD",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"prepare": "
|
|
28
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule
|
|
29
|
-
"test": "
|
|
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
|
|
33
|
-
"lint": "
|
|
34
|
-
"lint:docs": "documentation lint ./src
|
|
35
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule
|
|
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": "^
|
|
39
|
-
"fetch-rate-limit-util": "^4.4.
|
|
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.
|
|
42
|
+
"repository-provider": "^35.3.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "^22.
|
|
46
|
-
"ava": "^6.
|
|
47
|
-
"c8": "^10.1.
|
|
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.
|
|
50
|
-
"semantic-release": "^24.
|
|
51
|
-
"typescript": "^5.
|
|
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": ">=
|
|
54
|
+
"node": ">=22.15.0"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
package/src/bitbucket-branch.mjs
CHANGED
|
@@ -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
|
|
111
|
+
class LazyBufferContentEntry extends BufferContentEntry {
|
|
113
112
|
constructor(name, branch) {
|
|
114
113
|
super(name);
|
|
115
|
-
|
|
116
|
-
branch: { value: branch }
|
|
117
|
-
});
|
|
114
|
+
this.branch = branch;
|
|
118
115
|
}
|
|
119
116
|
|
|
120
117
|
get buffer() {
|
|
121
|
-
return this.
|
|
118
|
+
return this.getBuffer();
|
|
122
119
|
}
|
|
123
120
|
|
|
124
|
-
|
|
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(
|
|
@@ -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
|
|
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
|
-
|
|
51
|
-
|
|
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";
|