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 CHANGED
@@ -8,6 +8,10 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2026-07-07 v10.0.5
12
+ -------------------
13
+ * gui settings
14
+
11
15
  2026-07-07 v10.0.5
12
16
  -------------------
13
17
  + alias name return in pick sap connection
@@ -125,7 +125,7 @@ class GlobalContext {
125
125
  return this.cloneArrayOfInstances(this._connections);
126
126
  }
127
127
  setSetting(key, value) {
128
- if (this._settings[key] === undefined) {
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
- guiRegistryAutoconnect: registryAliases.length === 1,
177
- guiRegistryAutoconnectAlias: registryAliases.length === 1 ? registryAliases[0].alias : undefined,
178
- guiSystemAutoconnect: false,
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
- guiRegistryAutoconnect: boolean;
7
- guiRegistryAutoconnectAlias?: string;
8
- guiSystemAutoconnect: boolean;
9
- guiSystemAutoconnectAlias?: string;
6
+ guiRegistryAutoConnect: boolean;
7
+ guiRegistryAutoConnectAlias?: string;
8
+ guiSystemAutoConnect: boolean;
9
+ guiSystemAutoConnectAlias?: string;
10
10
  sapLandscape?: string;
11
11
  r3transDocker?: boolean;
12
12
  r3transDockerName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "10.0.5",
3
+ "version": "10.0.7",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",