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
Loading…
Add table
Add a link
Reference in a new issue