trm-client 10.0.5 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.txt +4 -0
- package/dist/utils/GlobalContext.js +16 -4
- package/dist/utils/SettingsData.d.ts +4 -4
- package/package.json +1 -1
package/changelog.txt
CHANGED
|
@@ -125,7 +125,7 @@ class GlobalContext {
|
|
|
125
125
|
return this.cloneArrayOfInstances(this._connections);
|
|
126
126
|
}
|
|
127
127
|
setSetting(key, value) {
|
|
128
|
-
if (this._settings
|
|
128
|
+
if (!Object.prototype.hasOwnProperty.call(this._settings, key)) {
|
|
129
129
|
throw new Error(`Invalid key ${key}.`);
|
|
130
130
|
}
|
|
131
131
|
const filePath = this.getSettingsFilePath();
|
|
@@ -173,9 +173,9 @@ class GlobalContext {
|
|
|
173
173
|
logOutputFolder: 'default',
|
|
174
174
|
cliUpdateCheckCache: 60,
|
|
175
175
|
npmGlobalPathCheckCache: 180,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
guiRegistryAutoConnect: registryAliases.length === 1,
|
|
177
|
+
guiRegistryAutoConnectAlias: registryAliases.length === 1 ? registryAliases[0].alias : undefined,
|
|
178
|
+
guiSystemAutoConnect: false,
|
|
179
179
|
sapLandscape
|
|
180
180
|
};
|
|
181
181
|
}
|
|
@@ -208,6 +208,18 @@ class GlobalContext {
|
|
|
208
208
|
settingsData.npmGlobalPathCheckCache = defaultSettings.npmGlobalPathCheckCache;
|
|
209
209
|
this.generateSettingsFile(settingsData, filePath);
|
|
210
210
|
}
|
|
211
|
+
if (settingsData.guiRegistryAutoConnect === undefined) {
|
|
212
|
+
settingsData.guiRegistryAutoConnect = defaultSettings.guiRegistryAutoConnect;
|
|
213
|
+
this.generateSettingsFile(settingsData, filePath);
|
|
214
|
+
}
|
|
215
|
+
if (settingsData.guiSystemAutoConnect === undefined) {
|
|
216
|
+
settingsData.guiSystemAutoConnect = defaultSettings.guiSystemAutoConnect;
|
|
217
|
+
this.generateSettingsFile(settingsData, filePath);
|
|
218
|
+
}
|
|
219
|
+
if (!settingsData.guiRegistryAutoConnectAlias) {
|
|
220
|
+
settingsData.guiRegistryAutoConnectAlias = defaultSettings.guiRegistryAutoConnectAlias;
|
|
221
|
+
this.generateSettingsFile(settingsData, filePath);
|
|
222
|
+
}
|
|
211
223
|
if (settingsData.globalNodeModules) {
|
|
212
224
|
delete settingsData.globalNodeModules;
|
|
213
225
|
this.generateSettingsFile(settingsData, filePath);
|
|
@@ -3,10 +3,10 @@ export type SettingsData = {
|
|
|
3
3
|
logOutputFolder: string;
|
|
4
4
|
cliUpdateCheckCache: number;
|
|
5
5
|
npmGlobalPathCheckCache: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
guiRegistryAutoConnect: boolean;
|
|
7
|
+
guiRegistryAutoConnectAlias?: string;
|
|
8
|
+
guiSystemAutoConnect: boolean;
|
|
9
|
+
guiSystemAutoConnectAlias?: string;
|
|
10
10
|
sapLandscape?: string;
|
|
11
11
|
r3transDocker?: boolean;
|
|
12
12
|
r3transDockerName?: string;
|