@gitbeaker/rest 38.1.1 → 38.3.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 +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
<tr><th>
|
|
97
97
|
Browsers
|
|
98
98
|
</th><td width=100%>
|
|
99
|
-
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>
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
102
|
<script type="module">
|
|
103
|
-
import { Gitlab } from 'https://
|
|
103
|
+
import { Gitlab } from 'https://esm.sh/@gitbeaker/rest';
|
|
104
104
|
</script>
|
|
105
105
|
```
|
|
106
106
|
|
|
@@ -108,10 +108,10 @@ Load <code>@gitbeaker/rest</code> directly from <a href="https://cdn.skypack.dev
|
|
|
108
108
|
<tr><th>
|
|
109
109
|
Deno
|
|
110
110
|
</th><td width=100%>
|
|
111
|
-
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>
|
|
112
112
|
|
|
113
113
|
```ts
|
|
114
|
-
import { Gitlab } from 'https://
|
|
114
|
+
import { Gitlab } from 'https://esm.sh/@gitbeaker/rest?dts';
|
|
115
115
|
```
|
|
116
116
|
|
|
117
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.3.0",
|
|
4
4
|
"description": "Cross Platform implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"release": "auto shipit"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@gitbeaker/core": "^38.
|
|
60
|
-
"@gitbeaker/requester-utils": "^38.
|
|
59
|
+
"@gitbeaker/core": "^38.3.0",
|
|
60
|
+
"@gitbeaker/requester-utils": "^38.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@playwright/test": "^1.33.0",
|
|
64
|
-
"@types/node": "^
|
|
64
|
+
"@types/node": "^20.0.0",
|
|
65
65
|
"playwright": "^1.33.0",
|
|
66
66
|
"tsup": "^6.7.0",
|
|
67
67
|
"typescript": "^5.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "81fb16c89d0909431c828a219dae199458ea0b3f"
|
|
70
70
|
}
|