trm-client 10.0.8 → 10.1.0

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,9 +8,9 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
- 2026-07-07 v10.0.8
11
+ 2026-07-20 v10.1.0
12
12
  -------------------
13
- * gui settings
13
+ ! trm-core ^9.9.0
14
14
 
15
15
  2026-07-07 v10.0.7
16
16
  -------------------
@@ -125,6 +125,9 @@ class GlobalContext {
125
125
  return this.cloneArrayOfInstances(this._connections);
126
126
  }
127
127
  setSetting(key, value) {
128
+ if (!Object.prototype.hasOwnProperty.call(this._settings, key)) {
129
+ throw new Error(`Invalid key ${key}.`);
130
+ }
128
131
  const filePath = this.getSettingsFilePath();
129
132
  this._settings[key] = value;
130
133
  this.generateSettingsFile(this._settings, filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "10.0.8",
3
+ "version": "10.1.0",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "sanitize-filename": "^1.6.3",
48
48
  "semver": "^7.7.4",
49
49
  "trm-commons": "^5.0.1",
50
- "trm-core": "^9.8.1",
51
- "trm-registry-types": "^2.1.0",
50
+ "trm-core": "^9.9.0",
51
+ "trm-registry-types": "^2.2.0",
52
52
  "xml2js": "^0.6.2"
53
53
  },
54
54
  "peerDependencies": {