mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-01 05:36:46 -07:00
chore(deps): pin dependencies and enforce 14-day update cooldown (#27948)
This commit is contained in:
@@ -44,8 +44,11 @@ export function resolveEnvVarsInString(
|
||||
if (customEnv && typeof customEnv[varName] === 'string') {
|
||||
return customEnv[varName];
|
||||
}
|
||||
if (process && process.env && typeof process.env[varName] === 'string') {
|
||||
return process.env[varName];
|
||||
if (process && process.env) {
|
||||
const val = process.env[varName];
|
||||
if (typeof val === 'string') {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
if (defaultValue !== undefined) {
|
||||
return defaultValue;
|
||||
|
||||
@@ -69,7 +69,13 @@ export const getLatestGitHubRelease = async (
|
||||
'X-GitHub-Api-Version': '2022-11-28',
|
||||
},
|
||||
dispatcher: proxy ? new ProxyAgent(proxy) : undefined,
|
||||
signal: AbortSignal.any([AbortSignal.timeout(30_000), controller.signal]),
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-type-assertion */
|
||||
signal: (
|
||||
AbortSignal as unknown as {
|
||||
any: (signals: AbortSignal[]) => AbortSignal;
|
||||
}
|
||||
).any([AbortSignal.timeout(30_000), controller.signal]),
|
||||
/* eslint-enable @typescript-eslint/no-unsafe-type-assertion */
|
||||
} as RequestInit);
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
@@ -805,7 +805,7 @@ export async function start_sandbox(
|
||||
});
|
||||
|
||||
return await new Promise<number>((resolve, reject) => {
|
||||
sandboxProcess.on('error', (err) => {
|
||||
sandboxProcess?.on('error', (err) => {
|
||||
coreEvents.emitFeedback('error', 'Sandbox process error', err);
|
||||
reject(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user