@gitbeaker/rest 38.1.0 → 38.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/README.md +48 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,48 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<br>
|
|
3
|
-
<
|
|
3
|
+
<br>
|
|
4
|
+
<img alt="gitbeaker" src="../../.github/ASSETS/header.svg">
|
|
5
|
+
<br>
|
|
6
|
+
<br>
|
|
7
|
+
<br>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div align="center">
|
|
11
|
+
<p>
|
|
12
|
+
<sup>
|
|
13
|
+
<a href="https://github.com/jdalrymple">My open source work is supported by the community</a>
|
|
14
|
+
</sup>
|
|
15
|
+
</p>
|
|
16
|
+
<br>
|
|
17
|
+
<sup>Special thanks to:</sup>
|
|
18
|
+
<br>
|
|
19
|
+
<br>
|
|
20
|
+
|
|
21
|
+
<a href="https://wearecws.com/">
|
|
22
|
+
<img src="https://wearecws.com/images/brand/cws-logo.svg" width="210">
|
|
23
|
+
</a>
|
|
24
|
+
|
|
25
|
+
<br>
|
|
26
|
+
<br>
|
|
27
|
+
<br>
|
|
28
|
+
|
|
29
|
+
<a href="https://axolo.co/gitlab-slack-integration/?ref=gitbeaker">
|
|
30
|
+
<div>
|
|
31
|
+
<img src="https://apichaos.s3.eu-west-3.amazonaws.com/logo_axolo.png" width="210" alt="Axolo Logo"/>
|
|
32
|
+
<br>
|
|
33
|
+
<br>
|
|
34
|
+
</div>
|
|
35
|
+
<b>Review merge requests in Slack to merge code faster</b>
|
|
36
|
+
<div>
|
|
37
|
+
<sub>Improve your code review process by creating an ephemeral channel per merge request.</sub>
|
|
38
|
+
<br>
|
|
39
|
+
</div>
|
|
40
|
+
</a>
|
|
41
|
+
|
|
42
|
+
<br>
|
|
43
|
+
<hr>
|
|
4
44
|
</div>
|
|
5
|
-
|
|
45
|
+
|
|
6
46
|
<p align="center">
|
|
7
47
|
<a href="https://gitlab.com/jdalrymple/gitbeaker/-/commits/main"><img alt="pipeline status" src="https://gitlab.com/jdalrymple/gitbeaker/badges/main/pipeline.svg?ignore_skipped=true" /></a>
|
|
8
48
|
<a href="https://gitlab.com/jdalrymple/gitbeaker/-/commits/main"><img alt="coverage report" src="https://gitlab.com/jdalrymple/gitbeaker/badges/main/coverage.svg?job=test:unit:rest" /></a>
|
|
@@ -37,8 +77,8 @@
|
|
|
37
77
|
- [Pagination](#pagination)
|
|
38
78
|
- [Error Handling](#error-handling)
|
|
39
79
|
- [Examples](#examples)
|
|
40
|
-
- [Testing](
|
|
41
|
-
- [FAQ](
|
|
80
|
+
- [Testing](../../docs/TESTING.md)
|
|
81
|
+
- [FAQ](../../FAQ.md)
|
|
42
82
|
- [Contributors](#contributors)
|
|
43
83
|
- [Changelog](./CHANGELOG.md)
|
|
44
84
|
|
|
@@ -56,11 +96,11 @@
|
|
|
56
96
|
<tr><th>
|
|
57
97
|
Browsers
|
|
58
98
|
</th><td width=100%>
|
|
59
|
-
Load <code>@gitbeaker/rest</code> directly from <a href="https://
|
|
99
|
+
Load <code>@gitbeaker/rest</code> directly from <a href="https://esm.sh">esm.sh</a>
|
|
60
100
|
|
|
61
101
|
```html
|
|
62
102
|
<script type="module">
|
|
63
|
-
import { Gitlab } from 'https://
|
|
103
|
+
import { Gitlab } from 'https://esm.sh/@gitbeaker/rest';
|
|
64
104
|
</script>
|
|
65
105
|
```
|
|
66
106
|
|
|
@@ -68,10 +108,10 @@ Load <code>@gitbeaker/rest</code> directly from <a href="https://cdn.skypack.dev
|
|
|
68
108
|
<tr><th>
|
|
69
109
|
Deno
|
|
70
110
|
</th><td width=100%>
|
|
71
|
-
Load <code>@gitbeaker/rest</code> directly from <a href="https://
|
|
111
|
+
Load <code>@gitbeaker/rest</code> directly from <a href="https://esm.sh">esm.sh</a>
|
|
72
112
|
|
|
73
113
|
```ts
|
|
74
|
-
import { Gitlab } from 'https://
|
|
114
|
+
import { Gitlab } from 'https://esm.sh/@gitbeaker/rest?dts';
|
|
75
115
|
```
|
|
76
116
|
|
|
77
117
|
</td></tr>
|
package/dist/index.js
CHANGED
|
@@ -95,7 +95,7 @@ async function defaultRequestHandler(endpoint, options) {
|
|
|
95
95
|
const url = new URL(endpoint, baseUrl);
|
|
96
96
|
url.search = searchParams || "";
|
|
97
97
|
for (let i = 0; i < maxRetries; i += 1) {
|
|
98
|
-
const response = await fetch(url, { ...opts, mode: "
|
|
98
|
+
const response = await fetch(url, { ...opts, mode: "cors" });
|
|
99
99
|
if (response.ok)
|
|
100
100
|
return parseResponse(response, asStream);
|
|
101
101
|
if (!retryCodes.includes(response.status))
|
package/dist/index.mjs
CHANGED
|
@@ -73,7 +73,7 @@ async function defaultRequestHandler(endpoint, options) {
|
|
|
73
73
|
const url = new URL(endpoint, baseUrl);
|
|
74
74
|
url.search = searchParams || "";
|
|
75
75
|
for (let i = 0; i < maxRetries; i += 1) {
|
|
76
|
-
const response = await fetch(url, { ...opts, mode: "
|
|
76
|
+
const response = await fetch(url, { ...opts, mode: "cors" });
|
|
77
77
|
if (response.ok)
|
|
78
78
|
return parseResponse(response, asStream);
|
|
79
79
|
if (!retryCodes.includes(response.status))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/rest",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.2.0",
|
|
4
4
|
"description": "Cross Platform implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"release": "auto shipit"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@gitbeaker/core": "^38.
|
|
60
|
-
"@gitbeaker/requester-utils": "^38.
|
|
59
|
+
"@gitbeaker/core": "^38.2.0",
|
|
60
|
+
"@gitbeaker/requester-utils": "^38.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@playwright/test": "^1.33.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"tsup": "^6.7.0",
|
|
67
67
|
"typescript": "^5.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "fcf745552dee6c0134a0a615a63d73ff92209ca3"
|
|
70
70
|
}
|