trm-client 11.0.0 → 11.1.1

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,15 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2026-07-28 v11.1.1
12
+ -------------------
13
+ + pass system packages from api
14
+
15
+ 2026-07-28 v11.1.0
16
+ -------------------
17
+ ! trm-core ^9.10.4
18
+ - rfc manual connection if node-rfc is not installed globally
19
+
11
20
  2026-07-22 v11.0.0
12
21
  -------------------
13
22
  ! trm-core ^9.10.0
@@ -5,6 +5,7 @@ import * as Core from "trm-core";
5
5
  import { Package } from "trm-registry-types";
6
6
  export interface AbstractCommandRunOptions {
7
7
  registry?: Core.AbstractRegistry;
8
+ systemPackages?: Core.TrmPackage[];
8
9
  }
9
10
  export declare abstract class AbstractCommand {
10
11
  protected command: Command;
@@ -405,6 +405,9 @@ class AbstractCommand {
405
405
  this.args = this.normalizeArgs(args);
406
406
  this.onArgs();
407
407
  this.registry = options.registry;
408
+ if (options.systemPackages !== undefined) {
409
+ this.systemPackages = options.systemPackages;
410
+ }
408
411
  try {
409
412
  yield this.handler();
410
413
  }
@@ -1,6 +1,4 @@
1
- import type * as Core from "trm-core";
1
+ import type { AbstractCommandRunOptions } from "./AbstractCommand";
2
2
  export type CommandHandlerValues = Record<string, unknown>;
3
- export interface CommandHandlerOptions {
4
- registry?: Core.AbstractRegistry;
5
- }
3
+ export type CommandHandlerOptions = AbstractCommandRunOptions;
6
4
  export declare function runCommandHandler(id: string, values?: CommandHandlerValues, options?: CommandHandlerOptions): Promise<void>;
@@ -113,7 +113,7 @@ class GlobalContext {
113
113
  });
114
114
  trm_commons_1.Logger.log(`Loaded ${this._plugins.length} plugins: ${this._plugins.map(o => o.name).join(', ')}`, true);
115
115
  trm_commons_1.Logger.loading(`Calling event onContextLoadConnections...`, true);
116
- this._connections = yield trm_commons_1.Plugin.call("client", "onContextLoadConnections", [new RESTConnectExtended(), new RFCConnectExtended()]);
116
+ this._connections = yield trm_commons_1.Plugin.call("client", "onContextLoadConnections", (0, _1.getNodeRfcPackage)() ? [new RFCConnectExtended(), new RESTConnectExtended()] : [new RESTConnectExtended()]);
117
117
  this._pluginsLoaded = true;
118
118
  }
119
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "11.0.0",
3
+ "version": "11.1.1",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "sanitize-filename": "^1.6.3",
48
48
  "semver": "^7.7.4",
49
49
  "trm-commons": "^5.0.1",
50
- "trm-core": "^9.10.0",
50
+ "trm-core": "^9.10.4",
51
51
  "trm-registry-types": "^2.4.0",
52
52
  "xml2js": "^0.6.2"
53
53
  },