add node modules

This commit is contained in:
2025-11-24 21:27:19 +01:00
parent 4e2ff6abc8
commit 3e17a6df59
574 changed files with 441158 additions and 1 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
};