Github actions require checking in the entire node_modules or using a vercel service what the fuck github

This commit is contained in:
2024-06-15 11:40:38 +02:00
parent 5cfda63817
commit c835cadd76
614 changed files with 433819 additions and 0 deletions

17
node_modules/@octokit/auth-token/dist-src/auth.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
const REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
const REGEX_IS_INSTALLATION = /^ghs_/;
const REGEX_IS_USER_TO_SERVER = /^ghu_/;
async function auth(token) {
const isApp = token.split(/\./).length === 3;
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
return {
type: "token",
token,
tokenType
};
}
export {
auth
};

12
node_modules/@octokit/auth-token/dist-src/hook.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import { withAuthorizationPrefix } from "./with-authorization-prefix";
async function hook(token, request, route, parameters) {
const endpoint = request.endpoint.merge(
route,
parameters
);
endpoint.headers.authorization = withAuthorizationPrefix(token);
return request(endpoint);
}
export {
hook
};

19
node_modules/@octokit/auth-token/dist-src/index.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import { auth } from "./auth";
import { hook } from "./hook";
const createTokenAuth = function createTokenAuth2(token) {
if (!token) {
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
}
if (typeof token !== "string") {
throw new Error(
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
);
}
token = token.replace(/^(token|bearer) +/i, "");
return Object.assign(auth.bind(null, token), {
hook: hook.bind(null, token)
});
};
export {
createTokenAuth
};

View File

@@ -0,0 +1,9 @@
function withAuthorizationPrefix(token) {
if (token.split(/\./).length === 3) {
return `bearer ${token}`;
}
return `token ${token}`;
}
export {
withAuthorizationPrefix
};