@gitbeaker/rest
Advanced tools
Comparing version 36.0.2--canary.2258.829547280.0 to 36.0.2--canary.2258.833254894.0
@@ -72,5 +72,8 @@ 'use strict'; | ||
const { prefixUrl, asStream, searchParams, ...opts } = options; | ||
let baseUrl; | ||
if (prefixUrl) | ||
baseUrl = prefixUrl.endsWith("/") ? prefixUrl : `${prefixUrl}/`; | ||
const url = new URL(endpoint, baseUrl); | ||
url.search = searchParams || ""; | ||
for (let i = 0; i < maxRetries; i += 1) { | ||
const url = new URL(endpoint, prefixUrl); | ||
url.search = searchParams || ""; | ||
const response = await fetch(url, { ...opts, mode: "same-origin" }); | ||
@@ -77,0 +80,0 @@ if (response.ok) |
{ | ||
"name": "@gitbeaker/rest", | ||
"version": "36.0.2--canary.2258.829547280.0", | ||
"version": "36.0.2--canary.2258.833254894.0", | ||
"description": "Cross Platform implementation of the GitLab API", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@gitbeaker/core": "36.0.2--canary.2258.829547280.0", | ||
"@gitbeaker/requester-utils": "36.0.2--canary.2258.829547280.0" | ||
"@gitbeaker/core": "36.0.2--canary.2258.833254894.0", | ||
"@gitbeaker/requester-utils": "36.0.2--canary.2258.833254894.0" | ||
}, | ||
@@ -70,3 +70,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "ecf6f497f80d50fff343a05a99e11acfdfdf6927" | ||
"gitHead": "ad47533b21559e2951291281660f1d2eb4466f46" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76328
936
+ Added@gitbeaker/core@36.0.2--canary.2258.833254894.0(transitive)
+ Added@gitbeaker/requester-utils@36.0.2--canary.2258.833254894.0(transitive)
- Removed@gitbeaker/core@36.0.2--canary.2258.829547280.0(transitive)
- Removed@gitbeaker/requester-utils@36.0.2--canary.2258.829547280.0(transitive)
Updated@gitbeaker/requester-utils@36.0.2--canary.2258.833254894.0