@gitbeaker/rest 38.1.1 → 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 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://cdn.skypack.dev">cdn.skypack.dev</a>
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://cdn.skypack.dev/@gitbeaker/rest';
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://cdn.skypack.dev">cdn.skypack.dev</a>
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://cdn.skypack.dev/@gitbeaker/rest?dts';
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: "same-origin" });
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: "same-origin" });
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.1.1",
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.1.1",
60
- "@gitbeaker/requester-utils": "^38.1.1"
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": "747a6a0e960524895b3fb852e5f51ca2d9f8d682"
69
+ "gitHead": "fcf745552dee6c0134a0a615a63d73ff92209ca3"
70
70
  }