@forge/cli
12.10.1-next.512.10.1-next.6-experimental-a8bc05b
out/service/cached-config-service.jsout/service/cached-config-service.js+10
Index: package/out/service/cached-config-service.js
===================================================================
--- package/out/service/cached-config-service.js
+++ package/out/service/cached-config-service.js
@@ -4,13 +4,23 @@
const ANALYTICS_PREFERENCES_KEY = 'analytics-preferences';
const DEFAULT_ENVIRONMENT_KEY = 'default-environment';
const ASSISTANT_NAME_KEY = 'assistant-name';
const SEASONAL_EFFECTS_KEY = 'seasonal-effects';
+const GLOBAL_PROXY_KEY = 'proxy';
class CachedConfigService {
cachedConf;
constructor(cachedConf) {
this.cachedConf = cachedConf;
}
+ getGlobalProxy() {
+ return this.cachedConf.get(GLOBAL_PROXY_KEY);
+ }
+ setGlobalProxy(preference) {
+ this.cachedConf.set(GLOBAL_PROXY_KEY, preference);
+ }
+ deleteGlobalProxy() {
+ this.cachedConf.delete(GLOBAL_PROXY_KEY);
+ }
getAnalyticsPreferences() {
if (process.env.FORGE_DISABLE_ANALYTICS) {
return false;
}