@gitbeaker/requester-utils 39.34.2 → 40.0.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
@@ -212,6 +212,7 @@ import { RequesterUtils, BaseResource } from '@gitbeaker/requester-utils';
212
212
  <td align="center" valign="top" width="0.33%"><a href="https://github.com/kseino"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/1378066?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Kohei Seino"/></td>
213
213
  <td align="center" valign="top" width="0.33%"><a href="https://www.1stg.me/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/8336744?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="JounQin"/></td>
214
214
  <td align="center" valign="top" width="0.33%"><a href="https://github.com/elaine-mattos"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/79633988?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Elaine Mattos"/></td>
215
+ <td align="center" valign="top" width="0.33%"><a href="https://github.com/vitamindck"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/10766587?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="DK"/></td>
215
216
  </tr>
216
217
  </p>
217
218
 
package/dist/index.js CHANGED
@@ -30,14 +30,13 @@ async function defaultOptionsHandler(resourceOptions, {
30
30
  method = "GET"
31
31
  } = {}) {
32
32
  const { headers: preconfiguredHeaders, authHeaders, url } = resourceOptions;
33
- const headers = { ...preconfiguredHeaders };
34
33
  const defaultOptions = {
35
34
  method,
36
35
  asStream,
37
36
  signal,
38
37
  prefixUrl: url
39
38
  };
40
- defaultOptions.headers = headers;
39
+ defaultOptions.headers = { ...preconfiguredHeaders };
41
40
  if (sudo)
42
41
  defaultOptions.headers.sudo = `${sudo}`;
43
42
  if (body) {
package/dist/index.mjs CHANGED
@@ -24,14 +24,13 @@ async function defaultOptionsHandler(resourceOptions, {
24
24
  method = "GET"
25
25
  } = {}) {
26
26
  const { headers: preconfiguredHeaders, authHeaders, url } = resourceOptions;
27
- const headers = { ...preconfiguredHeaders };
28
27
  const defaultOptions = {
29
28
  method,
30
29
  asStream,
31
30
  signal,
32
31
  prefixUrl: url
33
32
  };
34
- defaultOptions.headers = headers;
33
+ defaultOptions.headers = { ...preconfiguredHeaders };
35
34
  if (sudo)
36
35
  defaultOptions.headers.sudo = `${sudo}`;
37
36
  if (body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/requester-utils",
3
- "version": "39.34.2",
3
+ "version": "40.0.0",
4
4
  "description": "Utility functions for requester implementatons used in @gitbeaker",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -57,5 +57,5 @@
57
57
  "tsup": "^8.0.1",
58
58
  "typescript": "^5.3.3"
59
59
  },
60
- "gitHead": "c0ad1a7077833e0aa2222bcae7e558c85b5c4283"
60
+ "gitHead": "d9759dfdbb4e69e198b49a68a80fdc7b0ff5efa8"
61
61
  }