@gitbeaker/rest 39.34.2 → 39.34.3
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/dist/index.js +4 -13
- package/dist/index.mjs +4 -13
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24,18 +24,6 @@ function _interopNamespace(e) {
|
|
|
24
24
|
var CORE__namespace = /*#__PURE__*/_interopNamespace(CORE);
|
|
25
25
|
|
|
26
26
|
// src/index.ts
|
|
27
|
-
async function defaultOptionsHandler(resourceOptions, requestOptions) {
|
|
28
|
-
const options = { ...requestOptions };
|
|
29
|
-
if (resourceOptions.url.includes("https") && resourceOptions.rejectUnauthorized != null && resourceOptions.rejectUnauthorized === false) {
|
|
30
|
-
if (typeof window === "undefined") {
|
|
31
|
-
const { Agent } = await import('https');
|
|
32
|
-
options.agent = new Agent({
|
|
33
|
-
rejectUnauthorized: false
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return options;
|
|
38
|
-
}
|
|
39
27
|
async function processBody(response) {
|
|
40
28
|
const contentType = (response.headers.get("content-type") || "").split(";")[0].trim();
|
|
41
29
|
if (contentType === "application/json") {
|
|
@@ -116,7 +104,10 @@ async function defaultRequestHandler(endpoint, options) {
|
|
|
116
104
|
`Could not successfully complete this request due to Error 429. Check the applicable rate limits for this endpoint.`
|
|
117
105
|
);
|
|
118
106
|
}
|
|
119
|
-
var requesterFn = requesterUtils.createRequesterFn(
|
|
107
|
+
var requesterFn = requesterUtils.createRequesterFn(
|
|
108
|
+
(_, reqo) => Promise.resolve(reqo),
|
|
109
|
+
defaultRequestHandler
|
|
110
|
+
);
|
|
120
111
|
|
|
121
112
|
// src/index.ts
|
|
122
113
|
var { AccessLevel: AL, ...Resources } = CORE__namespace;
|
package/dist/index.mjs
CHANGED
|
@@ -2,18 +2,6 @@ import * as CORE from '@gitbeaker/core';
|
|
|
2
2
|
import { createRequesterFn, presetResourceArguments, getMatchingRateLimiter, GitbeakerTimeoutError, GitbeakerRetryError, GitbeakerRequestError } from '@gitbeaker/requester-utils';
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
5
|
-
async function defaultOptionsHandler(resourceOptions, requestOptions) {
|
|
6
|
-
const options = { ...requestOptions };
|
|
7
|
-
if (resourceOptions.url.includes("https") && resourceOptions.rejectUnauthorized != null && resourceOptions.rejectUnauthorized === false) {
|
|
8
|
-
if (typeof window === "undefined") {
|
|
9
|
-
const { Agent } = await import('https');
|
|
10
|
-
options.agent = new Agent({
|
|
11
|
-
rejectUnauthorized: false
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return options;
|
|
16
|
-
}
|
|
17
5
|
async function processBody(response) {
|
|
18
6
|
const contentType = (response.headers.get("content-type") || "").split(";")[0].trim();
|
|
19
7
|
if (contentType === "application/json") {
|
|
@@ -94,7 +82,10 @@ async function defaultRequestHandler(endpoint, options) {
|
|
|
94
82
|
`Could not successfully complete this request due to Error 429. Check the applicable rate limits for this endpoint.`
|
|
95
83
|
);
|
|
96
84
|
}
|
|
97
|
-
var requesterFn = createRequesterFn(
|
|
85
|
+
var requesterFn = createRequesterFn(
|
|
86
|
+
(_, reqo) => Promise.resolve(reqo),
|
|
87
|
+
defaultRequestHandler
|
|
88
|
+
);
|
|
98
89
|
|
|
99
90
|
// src/index.ts
|
|
100
91
|
var { AccessLevel: AL, ...Resources } = CORE;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/rest",
|
|
3
|
-
"version": "39.34.
|
|
3
|
+
"version": "39.34.3",
|
|
4
4
|
"description": "Cross Platform implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"lint:fix": "yarn lint --fix"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@gitbeaker/core": "^39.34.
|
|
57
|
-
"@gitbeaker/requester-utils": "^39.34.
|
|
56
|
+
"@gitbeaker/core": "^39.34.3",
|
|
57
|
+
"@gitbeaker/requester-utils": "^39.34.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@playwright/test": "^1.40.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"tsup": "^8.0.1",
|
|
63
63
|
"typescript": "^5.3.3"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e71987ea932600fa570da91cb7a17d25fe7d017b"
|
|
66
66
|
}
|