Update checked-in dependencies
This commit is contained in:
parent
c9f0d30a86
commit
95d52b7807
647 changed files with 498055 additions and 3880 deletions
40
node_modules/@octokit/auth-app/dist-node/index.js
generated
vendored
40
node_modules/@octokit/auth-app/dist-node/index.js
generated
vendored
|
|
@ -157,15 +157,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
};
|
||||
return factory(factoryAuthOptions);
|
||||
}
|
||||
const optionsWithInstallationTokenFromState = Object.assign(
|
||||
{ installationId },
|
||||
options
|
||||
const request = customRequest || state.request;
|
||||
return getInstallationAuthenticationConcurrently(
|
||||
state,
|
||||
{ ...options, installationId },
|
||||
request
|
||||
);
|
||||
}
|
||||
var pendingPromises = /* @__PURE__ */ new Map();
|
||||
function getInstallationAuthenticationConcurrently(state, options, request) {
|
||||
const cacheKey = optionsToCacheKey(options);
|
||||
if (pendingPromises.has(cacheKey)) {
|
||||
return pendingPromises.get(cacheKey);
|
||||
}
|
||||
const promise = getInstallationAuthenticationImpl(
|
||||
state,
|
||||
options,
|
||||
request
|
||||
).finally(() => pendingPromises.delete(cacheKey));
|
||||
pendingPromises.set(cacheKey, promise);
|
||||
return promise;
|
||||
}
|
||||
async function getInstallationAuthenticationImpl(state, options, request) {
|
||||
if (!options.refresh) {
|
||||
const result = await get(
|
||||
state.cache,
|
||||
optionsWithInstallationTokenFromState
|
||||
);
|
||||
const result = await get(state.cache, options);
|
||||
if (result) {
|
||||
const {
|
||||
token: token2,
|
||||
|
|
@ -178,7 +193,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
repositorySelection: repositorySelection2
|
||||
} = result;
|
||||
return toTokenAuthentication({
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token: token2,
|
||||
createdAt: createdAt2,
|
||||
expiresAt: expiresAt2,
|
||||
|
|
@ -191,9 +206,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
}
|
||||
}
|
||||
const appAuthentication = await getAppAuthentication(state);
|
||||
const request = customRequest || state.request;
|
||||
const payload = {
|
||||
installation_id: installationId,
|
||||
installation_id: options.installationId,
|
||||
mediaType: {
|
||||
previews: ["machine-man"]
|
||||
},
|
||||
|
|
@ -242,9 +256,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
if (singleFileName) {
|
||||
Object.assign(payload, { singleFileName });
|
||||
}
|
||||
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
|
||||
await set(state.cache, options, cacheOptions);
|
||||
const cacheData = {
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token,
|
||||
createdAt,
|
||||
expiresAt,
|
||||
|
|
@ -407,7 +421,7 @@ async function sendRequestWithRetries(state, request, options, createdAt, retrie
|
|||
}
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION = "7.1.5";
|
||||
var VERSION = "7.2.1";
|
||||
|
||||
// pkg/dist-src/index.js
|
||||
import { createOAuthUserAuth } from "@octokit/auth-oauth-user";
|
||||
|
|
|
|||
4
node_modules/@octokit/auth-app/dist-node/index.js.map
generated
vendored
4
node_modules/@octokit/auth-app/dist-node/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/@octokit/auth-app/dist-src/cache.js
generated
vendored
1
node_modules/@octokit/auth-app/dist-src/cache.js
generated
vendored
|
|
@ -74,5 +74,6 @@ function optionsToCacheKey({
|
|||
export {
|
||||
get,
|
||||
getCache,
|
||||
optionsToCacheKey,
|
||||
set
|
||||
};
|
||||
|
|
|
|||
40
node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js
generated
vendored
40
node_modules/@octokit/auth-app/dist-src/get-installation-authentication.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import { get, set } from "./cache.js";
|
||||
import { get, optionsToCacheKey, set } from "./cache.js";
|
||||
import { getAppAuthentication } from "./get-app-authentication.js";
|
||||
import { toTokenAuthentication } from "./to-token-authentication.js";
|
||||
async function getInstallationAuthentication(state, options, customRequest) {
|
||||
|
|
@ -15,15 +15,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
};
|
||||
return factory(factoryAuthOptions);
|
||||
}
|
||||
const optionsWithInstallationTokenFromState = Object.assign(
|
||||
{ installationId },
|
||||
options
|
||||
const request = customRequest || state.request;
|
||||
return getInstallationAuthenticationConcurrently(
|
||||
state,
|
||||
{ ...options, installationId },
|
||||
request
|
||||
);
|
||||
}
|
||||
const pendingPromises = /* @__PURE__ */ new Map();
|
||||
function getInstallationAuthenticationConcurrently(state, options, request) {
|
||||
const cacheKey = optionsToCacheKey(options);
|
||||
if (pendingPromises.has(cacheKey)) {
|
||||
return pendingPromises.get(cacheKey);
|
||||
}
|
||||
const promise = getInstallationAuthenticationImpl(
|
||||
state,
|
||||
options,
|
||||
request
|
||||
).finally(() => pendingPromises.delete(cacheKey));
|
||||
pendingPromises.set(cacheKey, promise);
|
||||
return promise;
|
||||
}
|
||||
async function getInstallationAuthenticationImpl(state, options, request) {
|
||||
if (!options.refresh) {
|
||||
const result = await get(
|
||||
state.cache,
|
||||
optionsWithInstallationTokenFromState
|
||||
);
|
||||
const result = await get(state.cache, options);
|
||||
if (result) {
|
||||
const {
|
||||
token: token2,
|
||||
|
|
@ -36,7 +51,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
repositorySelection: repositorySelection2
|
||||
} = result;
|
||||
return toTokenAuthentication({
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token: token2,
|
||||
createdAt: createdAt2,
|
||||
expiresAt: expiresAt2,
|
||||
|
|
@ -49,9 +64,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
}
|
||||
}
|
||||
const appAuthentication = await getAppAuthentication(state);
|
||||
const request = customRequest || state.request;
|
||||
const payload = {
|
||||
installation_id: installationId,
|
||||
installation_id: options.installationId,
|
||||
mediaType: {
|
||||
previews: ["machine-man"]
|
||||
},
|
||||
|
|
@ -100,9 +114,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
|
|||
if (singleFileName) {
|
||||
Object.assign(payload, { singleFileName });
|
||||
}
|
||||
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
|
||||
await set(state.cache, options, cacheOptions);
|
||||
const cacheData = {
|
||||
installationId,
|
||||
installationId: options.installationId,
|
||||
token,
|
||||
createdAt,
|
||||
expiresAt,
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-app/dist-src/version.js
generated
vendored
2
node_modules/@octokit/auth-app/dist-src/version.js
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
const VERSION = "7.1.5";
|
||||
const VERSION = "7.2.1";
|
||||
export {
|
||||
VERSION
|
||||
};
|
||||
|
|
|
|||
7
node_modules/@octokit/auth-app/dist-types/cache.d.ts
generated
vendored
7
node_modules/@octokit/auth-app/dist-types/cache.d.ts
generated
vendored
|
|
@ -1,5 +1,6 @@
|
|||
import { Lru } from "toad-cache";
|
||||
import type { InstallationAuthOptions, Cache, CacheData, InstallationAccessTokenData } from "./types.js";
|
||||
import type { CacheableInstallationAuthOptions, Cache, CacheData, InstallationAccessTokenData } from "./types.js";
|
||||
export declare function getCache(): Lru<string>;
|
||||
export declare function get(cache: Cache, options: InstallationAuthOptions): Promise<InstallationAccessTokenData | void>;
|
||||
export declare function set(cache: Cache, options: InstallationAuthOptions, data: CacheData): Promise<void>;
|
||||
export declare function get(cache: Cache, options: CacheableInstallationAuthOptions): Promise<InstallationAccessTokenData | void>;
|
||||
export declare function set(cache: Cache, options: CacheableInstallationAuthOptions, data: CacheData): Promise<void>;
|
||||
export declare function optionsToCacheKey({ installationId, permissions, repositoryIds, repositoryNames, }: CacheableInstallationAuthOptions): string;
|
||||
|
|
|
|||
3
node_modules/@octokit/auth-app/dist-types/types.d.ts
generated
vendored
3
node_modules/@octokit/auth-app/dist-types/types.d.ts
generated
vendored
|
|
@ -46,6 +46,9 @@ export type InstallationAuthOptionsWithFactory<T> = {
|
|||
factory: FactoryInstallation<T>;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
export type CacheableInstallationAuthOptions = InstallationAuthOptions & {
|
||||
installationId: number;
|
||||
};
|
||||
export type OAuthAppAuthOptions = OAuthAppAuth.AppAuthOptions;
|
||||
export type OAuthWebFlowAuthOptions = OAuthAppAuth.WebFlowAuthOptions;
|
||||
export type OAuthDeviceFlowAuthOptions = OAuthAppAuth.GitHubAppDeviceFlowAuthOptions;
|
||||
|
|
|
|||
2
node_modules/@octokit/auth-app/dist-types/version.d.ts
generated
vendored
2
node_modules/@octokit/auth-app/dist-types/version.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
|||
export declare const VERSION = "7.1.5";
|
||||
export declare const VERSION = "7.2.1";
|
||||
|
|
|
|||
22
node_modules/@octokit/auth-app/package.json
generated
vendored
22
node_modules/@octokit/auth-app/package.json
generated
vendored
|
|
@ -5,7 +5,7 @@
|
|||
"provenance": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "7.1.5",
|
||||
"version": "7.2.1",
|
||||
"description": "GitHub App authentication for JavaScript",
|
||||
"repository": "github:octokit/auth-app.js",
|
||||
"keywords": [
|
||||
|
|
@ -17,11 +17,11 @@
|
|||
"author": "Gregor Martynus (https://github.com/gr2m)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/auth-oauth-app": "^8.1.3",
|
||||
"@octokit/auth-oauth-user": "^5.1.3",
|
||||
"@octokit/request": "^9.2.1",
|
||||
"@octokit/request-error": "^6.1.7",
|
||||
"@octokit/types": "^13.8.0",
|
||||
"@octokit/auth-oauth-app": "^8.1.4",
|
||||
"@octokit/auth-oauth-user": "^5.1.4",
|
||||
"@octokit/request": "^9.2.3",
|
||||
"@octokit/request-error": "^6.1.8",
|
||||
"@octokit/types": "^14.0.0",
|
||||
"toad-cache": "^3.7.0",
|
||||
"universal-github-app-jwt": "^2.2.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
|
|
@ -29,15 +29,15 @@
|
|||
"devDependencies": {
|
||||
"@octokit/tsconfig": "^4.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@vitest/coverage-v8": "^2.1.2",
|
||||
"@vitest/ui": "^2.1.2",
|
||||
"@vitest/coverage-v8": "^3.0.0",
|
||||
"@vitest/ui": "^3.0.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"fetch-mock": "^11.0.0",
|
||||
"glob": "^11.0.0",
|
||||
"prettier": "3.5.1",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"prettier": "3.5.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vitest": "^2.1.2"
|
||||
"vitest": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue