1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-10-16 22:24:41 +02:00

ran npm run build

This commit is contained in:
John Wesley Walker III 2024-10-16 18:18:09 +00:00
parent 7fcbcdce7d
commit 19060a122d

6
dist/index.js vendored
View file

@ -2464,10 +2464,10 @@ function getServerApiUrl(url) {
if (hasContent(url, false)) {
let serverUrl = getServerUrl(url);
if (isGhes(url)) {
serverUrl.pathname = "api/v3";
serverUrl.pathname = 'api/v3';
}
else {
serverUrl.hostname = "api." + serverUrl.hostname;
serverUrl.hostname = 'api.' + serverUrl.hostname;
}
return pruneSuffix(serverUrl.toString(), '/');
}
@ -2488,7 +2488,7 @@ function pruneSuffix(text, suffix) {
return text;
}
function hasContent(text, allowPureWhitespace) {
let refinedText = text !== null && text !== void 0 ? text : "";
let refinedText = text !== null && text !== void 0 ? text : '';
if (!allowPureWhitespace) {
refinedText = refinedText.trim();
}