mirror of https://github.com/renovatebot/renovate
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
import * as memCache from './cache/memory';
|
|
|
|
let customEnv: Record<string, string> = {};
|
|
|
|
export function setCustomEnv(envObj: Record<string, string>): void {
|
|
customEnv = envObj;
|
|
}
|
|
|
|
export function getCustomEnv(): Record<string, string> {
|
|
return customEnv;
|
|
}
|
|
|
|
export function setUserEnv(envObj: Record<string, string> | undefined): void {
|
|
memCache.set('userEnv', envObj);
|
|
}
|
|
|
|
export function getUserEnv(): Record<string, string> {
|
|
return memCache.get('userEnv') ?? {};
|
|
}
|